BLAZE: Cross-Language and Cross-Project Bug Localization via Dynamic Chunking and Hard Example Learning
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
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
- 2020Longformer: The Long-Document Transformercited by 3,413
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,373
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,310
- 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 609
- 2022Text and Code Embeddings by Contrastive Pre-Trainingcited by 361
- 2020Sparse, Dense, and Attentional Representations for Text Retrievalcited by 214
- 2022Parallel Context Windows for Large Language Modelscited by 81
- 2022Efficient Long-Text Understanding with Short-Text Modelscited by 71
- 2021Memorization vs. Generalization: Quantifying Data Leakage in NLP Performance Evaluationcited by 70
- 2023Large Language Models for Test-Free Fault Localizationcited by 67
11 more
- 2022Out-of-Domain Semantics to the Rescue! Zero-Shot Hybrid Retrieval Modelscited by 26
- 2020Text-based Question Answering from Information Retrieval and Deep Neural Network Perspectives: A Surveycited by 21
- 2021Fast Changeset-based Bug Localization with BERTcited by 13
- 2023Pre-training Code Representation with Semantic Flow Graph for Effective Bug Localizationcited by 8
- 2023RLocator: Reinforcement Learning for Bug Localizationcited by 7
- 2020RRF102: Meeting the TREC-COVID Challenge with a 100+ Runs Ensemblecited by 6
- 2020CodeMatcher: Searching Code Based on Sequential Semantics of Important Query Wordscited by 5
- 2020Industry-scale IR-based Bug Localization: A Perspective from Facebookcited by 5
- 2023Mutation-based Fault Localization of Deep Neural Networkscited by 5
- 2020Balancing Reinforcement Learning Training Experiences in Interactive Information Retrievalcited by 4
- 2021BoostNSift: A Query Boosting and Code Sifting Technique for Method Level Bug Localizationcited by 3
Built on by
Citing papers per year: 2025: 3; 2026: 4.
7 papers.
- 2025Does SWE-Bench-Verified Test Agent Ability or Model Memory?cited by 16
- 2025A Comprehensive Survey on Benchmarks and Solutions in Software Engineering of LLM-Empowered Agentic Systemcited by 15
- 2025Agentic Software Issue Resolution with Large Language Models: A Surveycited by 6
- 2026RGFL: Reasoning Guided Fault Localization for Automated Program Repair Using Large Language Modelscited by 5
- 2026Improved Bug Localization with AI Agents Leveraging Hypothesis and Dynamic Cognitioncited by 0
- 2026XAgent: eXecution-guided Agentic AI for Effective Localization and Resolution of GitHub Issuescited by 0
- 2026From Codebase to Culprit (C2C): Reducing the Search Space for Bugs with Semantic Retrieval and Hierarchical Reinforcement Learningcited by 0
- 2026From Codebase to Culprit (C2C): Reducing the Search Space for Bugs with Semantic Retrieval and Hierarchical Reinforcement Learning29 Sep 2026
- 2026XAgent: eXecution-guided Agentic AI for Effective Localization and Resolution of GitHub Issues9 Sep 2026
- 2026RGFL: Reasoning Guided Fault Localization for Automated Program Repair Using Large Language Models25 Jan 2026
- 2026Improved Bug Localization with AI Agents Leveraging Hypothesis and Dynamic Cognition18 Jan 2026
- 2025Agentic Software Issue Resolution with Large Language Models: A Survey24 Dec 2025
- 2025Does SWE-Bench-Verified Test Agent Ability or Model Memory?11 Dec 2025
- 2025A Comprehensive Survey on Benchmarks and Solutions in Software Engineering of LLM-Empowered Agentic System10 Oct 2025