Fusing Semantic and Structural Features for Code Error Detection
Large Language Models of the Transformer architecture display great promise in automated code error detection based on their strength in processing sequential data. Nevertheless, their efficacy could be further improved by addressing the inherent weakness in handling structural code dependencies. In response to this, we introduce a novel model that integrates the semantic comprehension power of RoBERTa with the structural learning strength of Graph Neural Networks. This model aims to detect the most common categories of programming faults in the form of runtime errors, index errors, and import/module errors. Experimental evaluation has demonstrated that the hybrid model, utilizing a proper fusion technique, outperforms other models in terms of accuracy and robustness. The introduced mechanism leads to numerical benefits, improving test accuracy by 1.75% over competitive baseline.
Authors
- Jingtai Cao (ORCID: https://orcid.org/0000-0002-7925-4905)
- Yiwen Zhang (ORCID: https://orcid.org/0009-0000-8168-0682)
- Fenlong Jiang (ORCID: https://orcid.org/0000-0002-3714-0600)
- Jiquan Ma (ORCID: https://orcid.org/0000-0003-3072-7799)
- Wei Liu (ORCID: https://orcid.org/0000-0001-8885-4630)
Institutions
- Changchun University of Science and Technology (CN)
- Jilin University (CN)
- Chinese Academy of Sciences (CN)
- Changchun Institute of Optics, Fine Mechanics and Physics (CN)
- National Astronomical Observatories (CN)
- Changchun University (CN)
- Heilongjiang University (CN)
Publication Details
- Journal
- Entropy
- Published
- 2025-12-04
- DOI
- https://doi.org/10.3390/e27121229
- Primary Topic
- Software Testing and Debugging Techniques
- Type
- article
- Field-Weighted Citation Impact
- 0.00