Skip to content

GraphScent: Calibrating Directional Relevance Signals for Bounded-Context Code Localization

Nov 2026 · 0 citations · 25 references
Computer Science

TL;DR

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, is introduced, alongside AST Ripple, a lightweight post-edit check for missed co-edits.

Abstract

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.

View source

Similar papers

Book Open access Nov 2026

Rethinking Graph-LLMs: Are Performance Gains Confounded by Data Leakage?

Large Language Models (LLMs) have advanced text-attributed graph (TAG) learning in recent years, leading to strong performance in Graph-LLM systems. However, these gains may partially arise from target-correlated parametric priors memorized during LLM pre-training rather than genuine graph reasoning. This issue is part...

Yang-Chun Ye, Qin Tian, Xuan Guo et al. · 0 citations
#small language model Preprint Oct 2026

API-TAIL: Detecting Model Substitution in LLM APIs through Temperature-Aligned Likelihood Tails

Commercial language model APIs return only text, allowing a provider to cut costs by quietly routing a fraction of user requests to a cheaper substitute model while billing for the advertised one. Detecting such partial substitution is challenging because honest providers also alter the output distribution through undo...

Hao-Chen Mei, Yu-Chuan Tian, Ye Yuan et al. · 0 citations

RoPE at the End of Its Rope? Theory, Diagnosis, and Mitigation of Long-Context Failures

Long-context failures of RoPE-based language models can arise from RoPE's intrinsic tradeoff between maintaining stable token preferences and distinguishing nearby positions. Determining which weakness to address, and how, requires a more precise characterization of RoPE's behavior in trained models across context leng...

Yu-Yang Wu, Yu-Feng Du, Hao Peng · 0 citations
Book Open access Nov 2026

Diagnosing and Correcting Geometric Bias in Diversity-Driven Code Instruction Data Selection

Semantically Anchored Geometric Coverage (SAGC), a framework for reshaping representation geometry using LLM-generated macro-intent labels as semantic anchors for dense micro-context representations, is proposed, using macro-intent anchors to constrain dense-space exploration toward high-level algorithmic structure.

Ke Zhang, Zixian Huang, Gong Cheng · 0 citations
#machine learning Preprint Oct 2026

Causal Syntax Circuits in CodeLMs: Budget and Probe Decide What Looks Localised

Code models write Python when the prompt does not say which language to use. We ask a mechanistic question about that habit: is it produced by a small, findable group of components inside the model? We run one pipeline---mean ablation, activation patching, greedy circuit extraction, a random-control significance test,...

Harsh Kumar, Tanmay Joshi, Rahul Maity et al. · 0 citations
2026

Compile-Time Backdoor Neutralization via LLM-Guided Localized Edits

Deep learning compilers such as TVM have become essential in deploying neural networks with high efficiency across diverse hardware. However, recent studies reveal a critical vulnerability: adversaries can embed backdoors during training and rely on compilation to re-materialize the hidden behavior in the final executa...

Ming-Hui Li, Yang Li, Li-Ming Fang · 0 citations

Related blog posts

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.