EUVIMEDEUVIMED entdecken
Open Access · CC BY 4.0

LSTM Attention-Driven Similarity Learning for Effective Bug Localization

Geunseok Yang, Jinfeng Ji, Eontae Kim

Applied Sciences · 04.02.2025 · 15 (3) · 1582

DOI: 10.3390/app15031582 ↗

Kurz gefasst

Fachartikel in der Zeitschrift Applied Sciences, online erschienen am 04.02.2025. Verfasst von Geunseok Yang und 2 weiteren Autor:innen. Die Arbeit wurde bisher 2-mal zitiert (Crossref) und nennt 44 Literaturangaben. Der Volltext ist frei zugänglich (Open Access, CC BY 4.0). Gefördert von: Korea National University Development Project (2024) at Hankyong National University.

AbstractBibliografische AngabenZitierenVerwandte Studien

Abstract (Originalsprache)

Objective

The complexity of software systems, with their multifaceted functionalities and intricate source code structures, poses significant challenges for developers in identifying and resolving bugs. This study aims to address these challenges by proposing an efficient bug localization method that improves the accuracy and effectiveness of identifying faulty code based on bug reports.

Method

We introduce a novel bug localization approach that integrates a Long Short-Term Memory (LSTM) attention mechanism with top-K code similarity learning. The proposed method preprocesses bug reports and source code files, calculates top-K code similarities using the BM25 algorithm, and trains an LSTM-Attention model to predict the most relevant buggy source code files.

Results

The model was evaluated on six open-source projects (Tomcat, AspectJ, Birt, Eclipse, JDT, SWT) and demonstrated significant improvements over the baseline method, DNNLoc. Notably, the proposed approach improved accuracy across all projects, with average gains of 18% in prediction accuracy compared to the baseline.

Conclusion

This study highlights the efficacy of combining similarity learning with attention mechanisms for bug localization. By streamlining debugging workflows and enhancing predictive accuracy, the proposed method offers a practical solution for improving software quality and reducing development costs.

Förderung

  • Korea National University Development Project (2024) at Hankyong National University

Zitieren

APA

Yang, G., Ji, J., & Kim, E. (2025). LSTM Attention-Driven Similarity Learning for Effective Bug Localization. Applied Sciences, 15(3), 1582. https://doi.org/10.3390/app15031582

Vancouver

Yang G, Ji J, Kim E. LSTM Attention-Driven Similarity Learning for Effective Bug Localization. Applied Sciences. 2025;15(3):1582. doi:10.3390/app15031582

BibTeX
@article{Yang2025,
  author = {Yang, Geunseok and Ji, Jinfeng and Kim, Eontae},
  title = {LSTM Attention-Driven Similarity Learning for Effective Bug Localization},
  journal = {Applied Sciences},
  year = {2025},
  volume = {15},
  number = {3},
  pages = {1582},
  doi = {10.3390/app15031582}
}
Kostenlos starten →