Know Before Fix: QA-Driven Repository Knowledge Acquisition for Software Issue Resolution
Summary
ACQUIRE is a QA-driven framework designed to enhance automated software issue resolution by LLM-based coding agents, specifically addressing factual errors caused by insufficient repository understanding. It decouples knowledge acquisition from patch generation into two distinct stages. First, a "Questioner" and an "Answerer" collaborate to acquire structured repository knowledge by posing targeted questions and producing evidence-grounded answers through autonomous exploration. Second, a "Resolver" leverages this acquired QA knowledge to generate informed patches. Experiments on SWE-bench Verified demonstrate that ACQUIRE consistently outperforms representative pre-repair methods, raising Pass@1 by up to 4.4 percentage points with modest additional cost and time, utilizing backbone LLMs like DeepSeek-V3.2 and GPT-5-mini.
Key takeaway
For AI Engineers developing LLM-based coding agents, integrating a QA-driven knowledge acquisition stage like ACQUIRE can significantly enhance resolution accuracy and efficiency. You should prioritize explicit repository understanding before patch generation, leveraging structured question-answering to bridge knowledge gaps. This approach reduces costly trial-and-error, leading to more reliable and interpretable automated bug fixes.
Key insights
Proactive, QA-driven knowledge acquisition significantly improves LLM-based software issue resolution by addressing factual understanding gaps.
Principles
- Decouple knowledge acquisition from patch generation.
- Decompose complex issues into targeted questions.
- Guide question generation with a category taxonomy.
Method
A Questioner poses targeted questions, an Answerer explores the repository to provide evidence-grounded answers, and a Resolver uses this QA knowledge to generate informed patches.
In practice
- Implement a two-stage agentic workflow for bug fixing.
- Use category-guided prompts for knowledge elicitation.
- Prioritize explicit knowledge acquisition before code edits.
Topics
- LLM Agents
- Software Issue Resolution
- Repository QA
- Automated Debugging
- Knowledge Acquisition
- SWE-bench Verified
Code references
Best for: Research Scientist, AI Scientist, Machine Learning Engineer, AI Engineer
Related on AIssential
See Counsel's argued verdicts on the open AI decisions leaders are weighing →
Editorial summary, takeaway, and curation by AIssential. Original article published by cs.SE updates on arXiv.org.