mlsanityData to 7 Oct 2026

FeatLens: Feature-Guided Dynamic Code Graph Construction and Retrieval for Repository-Level Code Generation

arXiv 2609.26480 ↗First posted 22 Sep 2026cs.SE cs.AIcited by 0

Not on the map. Why?

Abstract (arXiv)

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 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.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 32 of its 46 references that are in the map. First posted on arXiv 22 Sep 2026.

Builds on

32 of 46 references.

References · 32

  1. 2021Program Synthesis with Large Language Modelscited by 3,509
  2. 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineeringcited by 1,628
  3. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
  4. 2023RepoCoder: Repository-Level Code Completion Through Iterative Retrieval and Generationcited by 357
  5. 2022UniXcoder: Unified Cross-Modal Pre-training for Code Representationcited by 355
  6. 2024CodeAgent: Enhancing Code Generation with Tool-Integrated Agent Systems for Real-World Repo-level Coding Challengescited by 278
  7. 2024HippoRAG: Neurobiologically Inspired Long-Term Memory for Large Language Modelscited by 273
  8. 2024AutoCodeRover: Autonomous Program Improvementcited by 272
  9. 2024RepairAgent: An Autonomous, LLM-Based Agent for Program Repaircited by 225
  10. 2023CrossCodeEval: A Diverse and Multilingual Benchmark for Cross-File Code Completioncited by 181
  11. 2024Beyond Functional Correctness: Exploring Hallucinations in LLM-Generated Codecited by 106
  12. 2024LLM Hallucinations in Practical Code Generation: Phenomena, Mechanism, and Mitigationcited by 92
20 more
  1. 2024RepoGraph: Enhancing AI Software Engineering with Repository-level Code Graphcited by 88
  2. 2025LocAgent: Graph-Guided LLM Agents for Code Localizationcited by 82
  3. 2024DevEval: A Manually-Annotated Code Generation Benchmark Aligned with Real-World Code Repositoriescited by 71
  4. 2024CodexGraph: Bridging Large Language Models and Code Repositories via Code Graph Databasescited by 62
  5. 2024Alibaba LingmaAgent: Improving Automated Issue Resolution via Comprehensive Repository Explorationcited by 58
  6. 2025FEA-Bench: A Benchmark for Evaluating Repository-Level Code Generation for Feature Implementationcited by 57
  7. 2024RLCoder: Reinforcement Learning for Repository-Level Code Completioncited by 44
  8. 2024Dataflow-Guided Retrieval Augmentation for Repository-Level Code Completioncited by 40
  9. 2024EvoCodeBench: An Evolving Code Generation Benchmark with Domain-Specific Evaluationscited by 33
  10. 2025Issue Localization via LLM-Driven Iterative Code Graph Searchingcited by 22
  11. 2024On the Impacts of Contexts on Repository-Level Code Generationcited by 21
  12. 2025RepoMaster: Autonomous Exploration and Understanding of GitHub Repositories for Complex Task Solvingcited by 19
  13. 2025GraphCodeAgent: Dual Graph-Guided LLM Agent for Retrieval-Augmented Repo-Level Code Generationcited by 17
  14. 2024RepoHyper: Search-Expand-Refine on Semantic Graphs for Repository-Level Code Completioncited by 15
  15. 2024FT2Ra: A Fine-Tuning-Inspired Approach to Retrieval-Augmented Code Completioncited by 9
  16. 2026AlignCoder: Aligning Retrieval with Target Intent for Repository-Level Code Completioncited by 7
  17. 2025FeatBench: Towards More Realistic Evaluation of Feature-level Code Generationcited by 6
  18. 2025GRACE: Graph-Guided Repository-Aware Code Completion through Hierarchical Code Fusioncited by 4
  19. 2026Do Not Treat Code as Natural Language: Implications for Repository-Level Code Generation and Beyondcited by 3
  20. 2025Towards Iterative End-to-End Software Development: A Feature-Driven Multi-Agent Frameworkcited by 1

Built on by

Not cited yet.