Enhancing Agentic Code Localization with Traceability Recovered from Repository Evolution
Yiming Liu, Binhang Qi, Weiyu Kong, Jiawei Liu, Xinxin Shan, Saijun Gao, Yun Lin
NeurIPS page · OpenReview · Open on the map
Category: LLM Agents, Evals & Benchmarks › Verified Code Synthesis and Testing · Type: new method · Keywords: code localization, repository evolution, traceability, dual-index knowledge base, retrieval workflow, SWE-bench
Areas: Code & Coding Agents › Code Verification › Software engineering agents; AI Agents › Agent Benchmarking › Repository agents
Summary
TACO is a framework that recovers traceability from repository evolution to improve code localization accuracy and reduce token usage.
Explained to a 5-year-old
Computers sometimes need to find the right piece of code when something goes wrong. They look at old pictures of the code, like a story of changes, to see where problems might be. We made a new way to keep those old pictures useful, so the computer can follow a trail. This helps the computer guess the right code faster and uses less energy. It makes fixing computer problems easier for people who work with code.
Explained to a 5-year-old, longer
When a computer program has a bug, we need to find the exact line of code that caused it. Usually, we look at the current version of the code, but that can miss important clues. The old versions of the code, saved in its history, contain hints about why changes were made. We created a system that gathers those old versions and turns them into a helpful map. This map shows connections between problems and the code that fixed them. By using this map, the computer can quickly point to the right piece of code. It also uses less computer power, which saves money. This makes fixing bugs faster and easier for software developers.
For a technical reader
The system builds a knowledge base from past pull requests using a prompt-tuning technique to capture semantic hints and architectural reasoning. During localization, it runs two retrieval tracks in parallel, cross-validates results with an arbiter, and aligns them temporally to handle version drift. This dual-track workflow improves exact-match accuracy and reduces token consumption and cost compared to existing agentic baselines.
Problem
Agentic code localization systems that rely on static repository snapshots often lose the implicit connections between issue symptoms and their corresponding code, making accurate localization difficult.
Method
The approach builds a dual-index knowledge base from historical pull requests using a prompt auto-tuning technique to capture semantic hints and architectural rationales, and then uses a dual-track retrieval workflow with an arbiter to handle version drift during online localization.
Results
The approach improves exact-match localization accuracy by about 11-13% at file, module, and function levels, and reduces token usage and monetary costs by roughly 30%.
Contributions
It introduces a method to recover traceability from repository evolution, creating a dual-index knowledge base and a dual-track retrieval workflow that handles version drift, leading to higher localization accuracy and lower resource consumption.
Practical relevance
The framework enables more efficient and accurate code localization for developers, reducing computational costs and improving bug-fixing workflows.
Research questions this paper is counted under
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction