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

Institutions

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
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Fusing Semantic and Structural Features for Code Error Detection

Jingtai Cao, Yiwen Zhang, Fenlong Jiang, Jiquan Ma et al.
Entropy
Software Testing and Debugging Techniques
article

Fusing Semantic and Structural Features for Code Error Detection

Jingtai Cao, Yiwen Zhang, Fenlong Jiang, Jiquan Ma, Wei Liu
article en

Abstract

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.

EntropyVol. 27(12)
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)
Openalex Percentile: Top 62%
Software Testing and Debugging Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.