GraphScent: Calibrating Directional Relevance Signals for Bounded-Context Code Localization
Not on the map. Why?
Abstract (arXiv)
Running open-weight language models locally on a single consumer GPU requires replacing expanding multi-turn exploration histories with short, stateless code inspections. Stateless repository localization, however, hinges on a foundational question: when a frozen language model evaluates an unedited code entity from a compact view, which structural relationships make its relevance judgment informative about a nearby repair target? Studying Gemma 4 models across 211 real-world Python issues in 86 repositories, we uncover a systematic directional relevance asymmetry: zero-temperature relevance scores on enclosing scopes and upstream callers consistently separate true structural neighbors from hard lexical distractors, whereas scores on downstream callees, peer methods, historical co-change partners, and dense node embeddings remain near chance. Zero-leakage masked-scope probes and regressions controlling for lexical similarity and snippet length confirm that this asymmetry reflects functional role (callers expose symptom entrypoints delegating to defective routines, while downstream helpers appear benign alone) rather than target leakage or surface overlap. Guided by this finding, we introduce GraphScent, a training-free search controller that propagates out-of-repository, relation-conditioned log-likelihood ratios over runtime Typed-AST multigraphs before resolving ties via a single listwise comparison, alongside AST Ripple, a lightweight post-edit check for missed co-edits. Likelihood calibration prevents overconfident smaller models from chasing false-positive callers while lifting exact localization on lexically hard targets from 12.8 to 23.4 percent at 31B within a single-GPU budget.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Builds on 19 of its 25 references that are in the map. Submitted 12 Nov 2026.
Builds on
19 of 25 references.
References · 19
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,871
- 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineeringcited by 2,069
- 2024Agentless: Demystifying LLM-based Software Engineering Agentscited by 461
- 2024Training Software Engineering Agents and Verifiers with SWE-Gymcited by 414
- 2025SWE-smith: Scaling Data for Software Engineering Agentscited by 371
- 2025LocAgent: Graph-Guided LLM Agents for Code Localizationcited by 99
- 2025OrcaLoca: An LLM Agent Framework for Software Issue Localizationcited by 54
- 2026SWE-Explore: Benchmarking How Coding Agents Explore Repositoriescited by 25
- 2025SweRank: Software Issue Localization with Code Rankingcited by 24
- 2025Tool-integrated Reinforcement Learning for Repo Deep Searchcited by 20
- 2026CodeScout: An Effective Recipe for Reinforcement Learning of Code Search Agentscited by 12
- 2026Bayesian Active Learning with Gaussian Processes Guided by LLM Relevance Scoring for Dense Passage Retrievalcited by 7
7 more
- 2026Think Locally, Explain Globally: Graph-Guided LLM Investigations via Local Reasoning and Belief Propagationcited by 4
- 2026LARGER: Lexically Anchored Repository Graph Exploration and Retrievalcited by 4
- 2026ReBOL: Retrieval via Bayesian Optimization with Batched LLM Relevance Observations and Query Reformulationcited by 2
- 2026GREPO: A Benchmark for Graph Neural Networks on Repository-Level Bug Localizationcited by 1
- 2026Adaptive Graph Refinement and Label Propagation with LLMs for Cost-Effective Entity Resolutioncited by 1
- 2026A^2Agent: Action-Aware Reinforcement Learning for Repository-Level Code Localization Agentscited by 1
- 2026RepoAtlas: Guiding Coding Agents via Evolving Multimodal Repository Viewscited by 1
Built on by
Not cited yet.