Score: 0

SpIDER: Spatially Informed Dense Embedding Retrieval for Software Issue Localization

Published: December 18, 2025 | arXiv ID: 2512.16956v1

By: Shravan Chaudhari , Rahul Thomas Jacob , Mononito Goswami and more

Retrieving code units (e.g., files, classes, functions) that are semantically relevant to a given user query, bug report, or feature request from large codebases is a fundamental challenge for LLM-based coding agents. Agentic approaches typically employ sparse retrieval methods like BM25 or dense embedding strategies to identify relevant units. While embedding-based approaches can outperform BM25 by large margins, they often lack exploration of the codebase and underutilize its underlying graph structure. To address this, we propose SpIDER (Spatially Informed Dense Embedding Retrieval), an enhanced dense retrieval approach that incorporates LLM-based reasoning over auxiliary context obtained through graph-based exploration of the codebase. Empirical results show that SpIDER consistently improves dense retrieval performance across several programming languages.

Category
Computer Science:
Software Engineering