Test-Free Fault Localization Through Deep Source Code Analysis Using Encoder-Based Language Models
Applied Sciences · 17.07.2026 · 16 (14) · 7170
DOI: 10.3390/app16147170 ↗Kurz gefasst
Fachartikel in der Zeitschrift Applied Sciences, online erschienen am 17.07.2026. Verfasst von Jesus-Angel del-Hoyo-Gabaldon und 3 weiteren Autor:innen. Die Arbeit nennt 37 Literaturangaben. Der Volltext ist frei zugänglich (Open Access, CC BY 4.0). Gefördert von: Junta de Comunidades de Castilla-La Mancha and Programa Operativo Feder de Castilla-La Mancha.
Abstract (Originalsprache)
Fault Localization (FL) has evolved with the emergence of the Transformer architecture. Traditionally, FL relied on generating a ranking of suspiciousness scores for each code unit using information obtained during program execution from a set of test cases. However, Language Models trained with source code have enabled approaches that avoid the need for test suites, which are, sometimes, difficult or time-consuming to obtain. In this work, we present a refined training strategy tested on DeBERTa-v3-base, leveraging an encoder-based approach, to address two key challenges in FL: (1) the accurate classification of lines of code according to their suspiciousness scores, and (2) the class imbalance inherent in this type of problem. To this end, we extract the last hidden state corresponding to the embeddings of the new line tokens to generate a suspiciousness score for each line. This score then classifies each line as defective or not. The evaluation of our approach on the ConDefects dataset, repeated over ten random seeds, shows promising results compared to existing approaches, with ROC AUC gains up to 0.27 in cross-dataset comparisons. Thereby, we offer a competitive baseline for future test-free fault localization research while using language models that are approximately 200 times smaller than those used in prior work.
Förderung
- Junta de Comunidades de Castilla-La Mancha and Programa Operativo Feder de Castilla-La Mancha
Zitieren
APA
del-Hoyo-Gabaldon, J., Garcia-Cabot, A., Garcia-Lopez, E., & de-Fitero-Dominguez, D. (2026). Test-Free Fault Localization Through Deep Source Code Analysis Using Encoder-Based Language Models. Applied Sciences, 16(14), 7170. https://doi.org/10.3390/app16147170
Vancouver
del-Hoyo-Gabaldon J, Garcia-Cabot A, Garcia-Lopez E, de-Fitero-Dominguez D. Test-Free Fault Localization Through Deep Source Code Analysis Using Encoder-Based Language Models. Applied Sciences. 2026;16(14):7170. doi:10.3390/app16147170
BibTeX
@article{delHoyoGabaldon2026,
author = {del-Hoyo-Gabaldon, Jesus-Angel and Garcia-Cabot, Antonio and Garcia-Lopez, Eva and de-Fitero-Dominguez, David},
title = {Test-Free Fault Localization Through Deep Source Code Analysis Using Encoder-Based Language Models},
journal = {Applied Sciences},
year = {2026},
volume = {16},
number = {14},
pages = {7170},
doi = {10.3390/app16147170}
}
EUVIMED