Small Agents with Semantic Search: Efficient Multilingual Code Localization
Not on the map. Why?
Abstract (arXiv)
Locating relevant files from natural-language requests is a core subtask for agents operating over code repositories. We investigate whether this task can be delegated to compact, specialized models to enable on-device search while reducing the token usage, latency, and inference cost of larger agents. We show that semantic search improves file localization, with gains in accuracy, cross-language transfer, and inference efficiency. To study this setting, we introduce a training framework for file-localization agents built around ColGREP, a local semantic search tool based on late-interaction retrieval models. Our recipe combines weighted supervised fine-tuning on teacher trajectories, assigning turn-level credit based on retrieval outcomes, with reinforcement learning on localization quality. We train three model families with fewer than two billion parameters to formulate search queries, inspect retrieved content, and identify relevant files. On localization tasks derived from SWE-bench Lite and Multi-SWE-bench Flash, ColGREP-equipped agents substantially improve over their base models and outperform corresponding GREP-based agents. In addition to improving localization accuracy, ColGREP reduces mean end-to-end trajectory latency by 44.1% on CPU while using 29.1% fewer tokens, and enables better generalization to programming languages unseen during fine-tuning. These results suggest that compact, tool-specialized localization agents can provide an efficient interface between natural-language requests and large codebases.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 24 of its 31 references that are in the map. First posted on arXiv 4 Oct 2026.
Builds on
24 of 31 references.
References · 24
- 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 9,379
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,944
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,373
- 2025DAPO: An Open-Source LLM Reinforcement Learning System at Scalecited by 2,810
- 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineeringcited by 1,737
- 2025Understanding R1-Zero-Like Training: A Critical Perspectivecited by 1,345
- 2020ColBERT: Efficient and Effective Passage Search via Contextualized Late Interaction over BERTcited by 1,178
- 2026DeepSeek-V4: Towards Highly Efficient Million-Token Context Intelligencecited by 1,040
- 2024FlashAttention-3: Fast and Accurate Attention with Asynchrony and Low-precisioncited by 519
- 2024Agentless: Demystifying LLM-based Software Engineering Agentscited by 421
- 2025Multi-SWE-bench: A Multilingual Benchmark for Issue Resolvingcited by 171
- 2025SWE-rebench: An Automated Pipeline for Task Collection and Decontaminated Evaluation of Software Engineering Agentscited by 142
12 more
- 2022PLAID: An Efficient Engine for Late Interaction Retrievalcited by 101
- 2025SWE-Fixer: Training Open-Source LLMs for Effective and Efficient GitHub Issue Resolutioncited by 90
- 2025LocAgent: Graph-Guided LLM Agents for Code Localizationcited by 86
- 2025OrcaLoca: An LLM Agent Framework for Software Issue Localizationcited by 45
- 2025Supervised Fine Tuning on Curated Data is Reinforcement Learning (and can be improved)cited by 38
- 2025Tool-integrated Reinforcement Learning for Repo Deep Searchcited by 15
- 2026Rethinking Agentic Search with Pi-Serini: Is Lexical Retrieval Sufficient?cited by 10
- 2026CodeScout: An Effective Recipe for Reinforcement Learning of Code Search Agentscited by 9
- 2023On Using GUI Interaction Data to Improve Text Retrieval-based Bug Localizationcited by 5
- 2025Think Before You Retrieve: Learning Test-Time Adaptive Search with Small Language Modelscited by 5
- 2025SweRank+: Multilingual, Multi-Turn Code Ranking for Software Issue Localizationcited by 5
- 2026CodeGrep: An RL-Trained Retrieval Agent for LLM Coding Agentscited by 3
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026LARGER: Lexically Anchored Repository Graph Exploration and Retrieval
- 2026Retrieval-Oriented Code Representations in Agentic Bug Localization
- 2026Libra: Training the Environment for Agentic Information Retrieval
- 2025Reformulate, Retrieve, Localize: Agents for Repository-Level Bug Localization
- 2026Cost-Effective Repository Exploration for Agentic Issue Localization
- 2026RepoNav: From Snippet Retrieval to File-Centered Repository Navigation for Code Agents
- 2026GrepSeek: Training Search Agents for Direct Corpus Interaction
- 2026Coding Agents are Effective Long-Context Processors