Metraipolis › archive › dc_0335c0522368
FeatLens: Feature-Guided Dynamic Code Graph Construction and Retrieval for Repository-Level Code Generation — arXiv:2609.26480
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2609.26480
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-08T13:47:15.382Z
- SHA-256 of the archived text
eb603ab045cbe2d16548acd4adce8afe788dc25c4204c6c1e000aadb124f834c- Stable URL of this page
https://metraipolis.com/documento/dc_0335c0522368
How to cite
FeatLens: Feature-Guided Dynamic Code Graph Construction and Retrieval for Repository-Level Code Generation — arXiv:2609.26480 — arXiv (en), https://arxiv.org/abs/2609.26480 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_0335c0522368 (Metraipolis archive dc_0335c0522368, sha256 eb603ab045cbe2d16548acd4adce8afe788dc25c4204c6c1e000aadb124f834c)
BibTeX
@misc{dc0335c0522368,
title = {FeatLens: Feature-Guided Dynamic Code Graph Construction and Retrieval for Repository-Level Code Generation — arXiv:2609.26480},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2609.26480},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_0335c0522368; sha256 eb603ab045cbe2d16548acd4adce8afe788dc25c4204c6c1e000aadb124f834c},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2609.26480. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
Recent code generation research has moved from isolated function completion toward repository-level generation in existing codebases. To implement a target function correctly, an LLM must identify reusable repository dependencies such as existing functions, APIs, and cross-file definitions. Existing retrieval methods provide such context through code similarity search, persistent whole-repository graphs, or LLM-driven graph exploration, but often incur high graph construction, reasoning, and token costs. Feature-oriented methods offer a natural view of software functionality, yet they mainly support requirement decomposition, planning, or feature editing rather than code dependency retrieval. This paper presents \textbf{FeatLens}, a feature-guided dynamic code graph construction and retrieval approach for repository-level code generation. FeatLens builds a feature index that links natural-language feature descriptions to function-level code entities. Given a generation task, it dynamically constructs a task-specific seed graph from the feature index and applies semantic-structural graph reasoning with personalized PageRank to select a compact reasoning graph. This design replaces persistent whole-repository graph maintenance and LLM exploration with deterministic and lightweight dependency retrieval. Experiments on DevEval and EvoCodeBench show that FeatLens achieves the best DR@15 among sparse, dense, and graph-based baselines (0.501 and 0.460). On DevEval generation, it obtains the highest DIR@1, reaching 52.91\% with DeepSeek-V3.2 and 53.58\% with GPT-5-mini, while maintaining competitive Pass@1 and producing shorter code. Compared with the strongest graph-based baseline, FeatLens reduces graph nodes by 61.0\%, edges by 86.2\%, and total token overhead by 45.9\%, with no LLM tokens used during retrieval.
Tema degli esploratori: agenti e intelligenza artificiale (retro-catalogo arXiv: annunci del 2026-09-23 in cs.AI).
Categorie arXiv: Software Engineering (cs.SE) ; Artificial Intelligence (cs.AI).
Pagina del lavoro: https://arxiv.org/abs/2609.26480 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito).
Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina.
Letto il 2026-10-08T13:18:38.319Z dalla pagina https://arxiv.org/catchup/cs.AI/2026-09-23?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).