Search papers, labs, and topics across Lattice.
SHERLOC introduces a novel framework that enhances code repair agents by improving fault localization through a reasoning LLM combined with compact repository tools, all without the need for fine-tuning or multi-agent setups. This approach achieves state-of-the-art localization accuracy, with 84.33% accuracy@1 on SWE-Bench Lite and 81.27% recall@1 on SWE-Bench Verified, while also significantly improving repair effectiveness by increasing resolve rates by an average of 5.95 percentage points. The framework not only optimizes localization efficiency but also reduces the overall token usage, demonstrating a substantial improvement in resource allocation for coding tasks.
SHERLOC boosts code repair agents' effectiveness by improving fault localization accuracy while slashing token usage by over 23%.
LLM agents solve repository-level coding tasks through multi-turn tool use, but utilize half their budget on locating faults before editing. Dedicated localization frameworks have emerged, yet are still evaluated as file retrieval rather than actionable diagnosis, producing locations without the diagnostic context a repair agent needs. We introduce SHERLOC (Structured Hypothesis-driven Exploration and Reasoning for Localization), a training-free framework pairing a reasoning LLM with compact repository tools and self-recovery, without fine-tuning or multi-agent orchestration. SHERLOC reaches state-of-the-art localization across model scales: 84.33% accuracy@1 on SWE-Bench Lite and 81.27% recall@1 on SWE-Bench Verified; at ~30B parameters, it matches or outperforms other agentic methods. Injecting our locations and diagnostic findings into repair agents yields, on average, +5.95 pp resolve rate on SWE-Bench Verified while cutting localization and total tokens by 36.7% and 23.1%.