aiqbench analysis
TechPulse take: FLARE introduces a lightweight diagnostic model that provides line-level suspiciousness signals to guide LLMs in fixing code bugs, addressing the limitations of coarse-grained feedback like test failures. By combining these fine-grained predictions with a top-k candidate search strategy, the framework achieves significant performance gains over existing baselines on major code benchmarks. This approach demonstrates that reliable, granular fault localization can substantially improve the reliability of generated code without requiring heavy computational overhead.
FLARE: Fine-Grained Diagnostic Feedback for LLM Code Refinement
arXiv:2606.03852v1 Announce Type: cross Abstract: Large language models often generate code with bugs. Existing methods rely on feedback signals such as test failures and self-critiques to iteratively refine the generated code. Such signals are either too coarse-grained or too high-level, which is not sufficient to inform the model where to fix the bug. In this work, we present Flare, an iterative framework with a lightweight diagnostic model that predicts line-level suspiciousness signals for bug localization and code refinement. Given the inherent uncertainty of diagnostic predictions, Flare searches over the top-k suspicious regions and selects the best candidate according to execution outcomes. Experiments on LiveCodeBench and BigCodeBench with five base LLMs show that, even without candidate search (k=1), Flare outperforms the strongest baseline with an absolute improvement from 1.72% to 7.42%. Furthermore, searching over 10 candidates yields an average improvement of 8.50% compared with no candidate search. When evaluated in isolation, our lightweight diagnostic model achieves the best performance compared with recent fault localization methods, demonstrating that it can provide reliable fine-grained guidance for code refinement.
Abstract:Large language models often generate code with bugs. Existing methods rely on feedback signals such as test failures and self-critiques to iteratively refine the generated code. Such signals are either too coarse-grained or too high-level, which is not sufficient to inform the model where to fix the bug. In this work, we present Flare, an iterative framework with a lightweight diagnostic model that predicts line-level suspiciousness signals for bug localization and code refinement. Given the inherent uncertainty of diagnostic predictions, Flare searches over the top-k suspicious regions and selects the best candidate according to execution outcomes. Experiments on LiveCodeBench and BigCodeBench with five base LLMs show that, even without candidate search (k=1), Flare outperforms the strongest baseline with an absolute improvement from 1.72% to 7.42%. Furthermore, searching over 10 candidates yields an average improvement of 8.50% compared with no candidate search. When evaluated in isolation, our lightweight diagnostic model achieves the best performance compared with recent fault localization methods, demonstrating that it can provide reliable fine-grained guidance for code refinement.
Software Engineering (cs.SE); Artificial Intelligence (cs.AI)
arXiv:2606.03852 [cs.SE]
(or arXiv:2606.03852v1 [cs.SE] for this version)
https://doi.org/10.48550/arXiv.2606.03852 Focus to learn more arXiv-issued DOI via DataCite (pending registration)
arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.
Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.
Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.
Full text under the publisher's open licence · 267 words
Related coverage
FLARE: Fine-Grained Diagnostic Feedback for LLM Code Refinement
arXiv · Sep 17, 2026
XQDT: eXplainable and Quantitative Data-Text Alignment Metric with Feedback Signals
arXiv · Sep 1, 2026

2026.5: We're on the same frequency now 📡
Home Assistant · May 6, 2026
Imperfect Visual Verification for Code Edition : A Case Study on TikZ
arXiv · Jun 16, 2026