mlsanityData to 14 Oct 2026

BLAZE: Cross-Language and Cross-Project Bug Localization via Dynamic Chunking and Hard Example Learning

arXiv 2407.17631 ↗First posted 24 Jul 2024cs.SE cs.IR cs.LGcited by 7

Not on the map. Why?

Abstract (arXiv)

Software bugs require developers to exert significant effort to identify and resolve them, often consuming about one-third of their time. Bug localization, the process of pinpointing the exact source code files that need modification, is crucial in reducing this effort. Existing bug localization tools, typically reliant on deep learning techniques, face limitations in cross-project applicability and effectiveness in multi-language environments. Recent advancements with Large Language Models (LLMs) offer detailed representations for bug localization. However, they encounter challenges with limited context windows and mapping accuracy. To address these issues, we propose BLAZE, an approach that employs dynamic chunking and hard example learning. First, BLAZE dynamically segments source code to minimize continuity loss. Then, BLAZE fine-tunes a GPT-based model using challenging bug cases, in order to enhance cross-project and cross-language bug localization. To support the capability of BLAZE, we create the BEETLEBOX dataset, which comprises 26,321 bugs from 29 large and thriving open-source projects across five different programming languages (Java, C++, Python, Go, and JavaScript). Our evaluations of BLAZE on three benchmark datasets BEETLEBOX, SWE-Bench, and Ye et al. demonstrate substantial improvements compared to six state-of-the-art baselines. Specifically, BLAZE achieves up to an increase of 120% in Top 1 accuracy, 144% in Mean Average Precision (MAP), and 100% in Mean Reciprocal Rank (MRR). An extensive ablation study confirms the contributions of our pipeline components to the overall performance enhancement.

Key facts. Cited by 7 papers in the map (data through 14 Oct 2026). Builds on 23 of its 92 references that are in the map. First posted on arXiv 24 Jul 2024.

Builds on

23 of 92 references.

References · 23

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  2. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
  3. 2020Longformer: The Long-Document Transformercited by 3,413
  4. 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,373
  5. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,310
  6. 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 609
  7. 2022Text and Code Embeddings by Contrastive Pre-Trainingcited by 361
  8. 2020Sparse, Dense, and Attentional Representations for Text Retrievalcited by 214
  9. 2022Parallel Context Windows for Large Language Modelscited by 81
  10. 2022Efficient Long-Text Understanding with Short-Text Modelscited by 71
  11. 2021Memorization vs. Generalization: Quantifying Data Leakage in NLP Performance Evaluationcited by 70
  12. 2023Large Language Models for Test-Free Fault Localizationcited by 67
11 more
  1. 2022Out-of-Domain Semantics to the Rescue! Zero-Shot Hybrid Retrieval Modelscited by 26
  2. 2020Text-based Question Answering from Information Retrieval and Deep Neural Network Perspectives: A Surveycited by 21
  3. 2021Fast Changeset-based Bug Localization with BERTcited by 13
  4. 2023Pre-training Code Representation with Semantic Flow Graph for Effective Bug Localizationcited by 8
  5. 2023RLocator: Reinforcement Learning for Bug Localizationcited by 7
  6. 2020RRF102: Meeting the TREC-COVID Challenge with a 100+ Runs Ensemblecited by 6
  7. 2020CodeMatcher: Searching Code Based on Sequential Semantics of Important Query Wordscited by 5
  8. 2020Industry-scale IR-based Bug Localization: A Perspective from Facebookcited by 5
  9. 2023Mutation-based Fault Localization of Deep Neural Networkscited by 5
  10. 2020Balancing Reinforcement Learning Training Experiences in Interactive Information Retrievalcited by 4
  11. 2021BoostNSift: A Query Boosting and Code Sifting Technique for Method Level Bug Localizationcited by 3

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 3; 2026: 4.

7 papers.