Dataflow-Guided Retrieval Augmentation for Repository-Level Code Completion
Not on the map. Why?
Abstract (arXiv)
Recent years have witnessed the deployment of code language models (LMs) in various code intelligence tasks such as code completion. Yet, it is challenging for pre-trained LMs to generate correct completions in private repositories. Previous studies retrieve cross-file context based on import relations or text similarity, which is insufficiently relevant to completion targets. In this paper, we propose a dataflow-guided retrieval augmentation approach, called DraCo, for repository-level code completion. DraCo parses a private repository into code entities and establishes their relations through an extended dataflow analysis, forming a repo-specific context graph. Whenever triggering code completion, DraCo precisely retrieves relevant background knowledge from the repo-specific context graph and generates well-formed prompts to query code LMs. Furthermore, we construct a large Python dataset, ReccEval, with more diverse completion targets. Our experiments demonstrate the superior accuracy and applicable efficiency of DraCo, improving code exact match by 3.43% and identifier F1-score by 3.27% on average compared to the state-of-the-art approach.
Key facts. Cited by 40 papers in the map (data through 7 Oct 2026). Builds on 44 of its 67 references that are in the map. First posted on arXiv 30 May 2024.
Builds on
44 of 67 references.
References · 44
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2020Dense Passage Retrieval for Open-Domain Question Answeringcited by 3,779
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
- 2023Code Llama: Open Foundation Models for Codecited by 2,105
- 2021WebGPT: Browser-assisted question-answering with human feedbackcited by 1,722
- 2022When Not to Trust Language Models: Investigating Effectiveness of Parametric and Non-Parametric Memoriescited by 1,103
- 2022Interleaving Retrieval with Chain-of-Thought Reasoning for Knowledge-Intensive Multi-Step Questionscited by 911
- 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 890
- 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 876
32 more
- 2023REPLUG: Retrieval-Augmented Black-Box Language Modelscited by 786
- 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 732
- 2023In-Context Retrieval-Augmented Language Modelscited by 694
- 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 638
- 2023RepoCoder: Repository-Level Code Completion Through Iterative Retrieval and Generationcited by 357
- 2023RepoBench: Benchmarking Repository-Level Code Auto-Completion Systemscited by 346
- 2022Generate rather than Retrieve: Large Language Models are Strong Context Generatorscited by 296
- 2023CodeGeeX: A Pre-Trained Model for Code Generation with Multilingual Benchmarking on HumanEval-Xcited by 294
- 2022Grounded Copilot: How Programmers Interact with Code-Generating Modelscited by 216
- 2023CrossCodeEval: A Diverse and Multilingual Benchmark for Cross-File Code Completioncited by 181
- 2022GitHub Copilot AI pair programmer: Asset or Liability?cited by 150
- 2021Retrieval Augmented Code Generation and Summarizationcited by 148
- 2022ReACC: A Retrieval-Augmented Code Completion Frameworkcited by 117
- 2022Repository-Level Prompt Generation for Large Language Models of Codecited by 106
- 2023WebGLM: Towards An Efficient Web-Enhanced Question Answering System with Human Preferencescited by 100
- 2020Retrieval-Augmented Generation for Code Summarization via Hybrid GNNcited by 89
- 2023Studying the effect of AI Code Generators on Supporting Novice Learners in Introductory Programmingcited by 87
- 2018A Retrieve-and-Edit Framework for Predicting Structured Outputscited by 73
- 2024EvoCodeBench: An Evolving Code Generation Benchmark Aligned with Real-World Code Repositoriescited by 71
- 2020Code Prediction by Feeding Trees to Transformerscited by 70
- 2023PanGu-Coder2: Boosting Large Language Models for Code with Ranking Feedbackcited by 69
- 2022CoCoMIC: Code Completion By Jointly Modeling In-file and Cross-file Contextcited by 64
- 2019Pythia: AI-assisted Code Completion Systemcited by 54
- 2017Code Completion with Neural Attention and Pointer Networkscited by 49
- 2022CodeFill: Multi-token Code Completion by Jointly Learning from Structure and Naming Sequencescited by 49
- 2023Trends in Integration of Knowledge and Large Language Models: A Survey and Taxonomy of Methods, Benchmarks, and Applicationscited by 28
- 2023AceCoder: Utilizing Existing Code to Enhance Code Generationcited by 25
- 2021Revisiting, Benchmarking and Exploring API Recommendation: How Far Are We?cited by 21
- 2023Better Context Makes Better Code Language Models: A Case Study on Function Call Argument Completioncited by 14
- 2021Static Inference Meets Deep Learning: A Hybrid Type Inference Approach for Pythoncited by 12
- 2023Automating Code-Related Tasks Through Transformers: The Impact of Pre-trainingcited by 8
- 2021PyART: Python API Recommendation in Real-Timecited by 6
Built on by
Citing papers per year: 2024: 4; 2025: 18; 2026: 18.
40 papers.
Sort:
By area:
- 2024RepoGraph: Enhancing AI Software Engineering with Repository-level Code Graphcited by 88
- 2024CodexGraph: Bridging Large Language Models and Code Repositories via Code Graph Databasescited by 62
- 2025Knowledge Graph-Guided Retrieval Augmented Generationcited by 57
- 2025What to Retrieve for Effective Retrieval-Augmented Code Generation? An Empirical Study and Beyondcited by 22
- 2025Retrieval-Augmented Code Generation: A Survey with Focus on Repository-Level Approachescited by 20
- 2026In Line with Context: Repository-Level Code Generation via Context Inliningcited by 18
- 2025CodeRAG: Finding Relevant and Necessary Knowledge for Retrieval-Augmented Repository-Level Code Completioncited by 12
- 2024JavaBench: A Benchmark of Object-Oriented Code Generation for Evaluating Large Language Modelscited by 10
- 2025Towards an Understanding of Context Utilization in Code Intelligencecited by 10
- 2025Systematic Characterization of LLM Quantization: A Performance, Energy, and Quality Perspectivecited by 8
- 2026SkillRAE: Agent Skill-Based Context Compilation for Retrieval-Augmented Executioncited by 8
- 2025RANGER -- Repository-Level Agent for Graph-Enhanced Retrievalcited by 7
28 more
- 2026AlignCoder: Aligning Retrieval with Target Intent for Repository-Level Code Completioncited by 7
- 2025A Deep Dive into Retrieval-Augmented Generation for Code Completion: Experience on WeChatcited by 5
- 2025Impact-driven Context Filtering For Cross-file Code Completioncited by 5
- 2025Detection of LLM-Paraphrased Code and Identification of the Responsible LLM Using Coding Style Featurescited by 4
- 2025RepoDebug: Repository-Level Multi-Task and Multi-Language Debugging Evaluation of Large Language Modelscited by 4
- 2025CodeSSM: Towards State Space Models for Code Understandingcited by 3
- 2025Practical Code RAG at Scale: Task-Aware Retrieval Design Choices under Compute Budgetscited by 3
- 2026RepoShapley: Shapley-Enhanced Context Filtering for Repository-Level Code Completioncited by 3
- 2026Beyond Code Snippets: Benchmarking LLMs on Repository-Level Question Answeringcited by 3
- 2025FastCoder: Accelerating Repository-level Code Generation via Efficient Retrieval and Verificationcited by 2
- 2025TENET: One Step Toward Test-Driven Development for Repository-Level Code Generationcited by 2
- 2026Function-Aware Fill-in-the-Middle as Mid-Training for Coding Agent Foundation Modelscited by 2
- 2025CRABS: A syntactic-semantic pincer strategy for bounding LLM interpretation of Python notebookscited by 1
- 2025LSPRAG: LSP-Guided RAG for Language-Agnostic Real-Time Unit Test Generationcited by 1
- 2026Bridging the Knowledge Void: Inference-time Acquisition of Unfamiliar Programming Languages for Coding Taskscited by 1
- 2026MATA: Multi-Agent Framework for Reliable and Flexible Table Question Answeringcited by 1
- 2026ReCUBE: Evaluating Repository-Level Context Utilization in Code Generationcited by 1
- 2026ReFEree: Reference-Free and Fine-Grained Method for Evaluating Factual Consistency in Real-World Code Summarizationcited by 1
- 2026Effective and Efficient Context Retrieval via Partial Dependency Graph for Repository-Level Code Generationcited by 1
- 2026ReproAgent: Contract-Guided Paper-to-Code Reproductioncited by 1
- 2024A Lightweight Framework for Adaptive Retrieval In Code Completion With Critique Modelcited by 0
- 2025SaraCoder: Orchestrating Semantic and Structural Cues for Resource-Optimized Repository-Level Code Completioncited by 0
- 2026Automated Customization of LLMs for Enterprise Code Repositories Using Semantic Scopescited by 0
- 2026Hierarchical Embedding Fusion for Retrieval-Augmented Code Generationcited by 0
- 2026How Does Chunking Affect Retrieval-Augmented Code Completion? A Controlled Empirical Studycited by 0
- 2026Dependency-Guided Code Generation: Structured Matrix Decomposition and Consistency-Guided Refinementcited by 0
- 2026Adaptive Critical Token-Aware Retrieval for Repository-Level Code Generationcited by 0
- 2026FeatLens: Feature-Guided Dynamic Code Graph Construction and Retrieval for Repository-Level Code Generationcited by 0
- 2026FeatLens: Feature-Guided Dynamic Code Graph Construction and Retrieval for Repository-Level Code Generation22 Sep 2026
- 2026Adaptive Critical Token-Aware Retrieval for Repository-Level Code Generation1 Sep 2026
- 2026ReproAgent: Contract-Guided Paper-to-Code Reproduction25 Aug 2026
- 2026Effective and Efficient Context Retrieval via Partial Dependency Graph for Repository-Level Code Generation3 Aug 2026
- 2026Dependency-Guided Code Generation: Structured Matrix Decomposition and Consistency-Guided Refinement18 Jul 2026
- 2026Function-Aware Fill-in-the-Middle as Mid-Training for Coding Agent Foundation Models14 Jul 2026
- 2026SkillRAE: Agent Skill-Based Context Compilation for Retrieval-Augmented Execution11 May 2026
- 2026How Does Chunking Affect Retrieval-Augmented Code Completion? A Controlled Empirical Study6 May 2026
- 2026ReFEree: Reference-Free and Fine-Grained Method for Evaluating Factual Consistency in Real-World Code Summarization12 Apr 2026
- 2026Beyond Code Snippets: Benchmarking LLMs on Repository-Level Question Answering27 Mar 2026
- 2026ReCUBE: Evaluating Repository-Level Context Utilization in Code Generation26 Mar 2026
- 2026MATA: Multi-Agent Framework for Reliable and Flexible Table Question Answering10 Feb 2026
28 more
- 2026Automated Customization of LLMs for Enterprise Code Repositories Using Semantic Scopes5 Feb 2026
- 2026Hierarchical Embedding Fusion for Retrieval-Augmented Code Generation4 Feb 2026
- 2026AlignCoder: Aligning Retrieval with Target Intent for Repository-Level Code Completion27 Jan 2026
- 2026Bridging the Knowledge Void: Inference-time Acquisition of Unfamiliar Programming Languages for Coding Tasks16 Jan 2026
- 2026RepoShapley: Shapley-Enhanced Context Filtering for Repository-Level Code Completion6 Jan 2026
- 2026In Line with Context: Repository-Level Code Generation via Context Inlining1 Jan 2026
- 2025LSPRAG: LSP-Guided RAG for Language-Agnostic Real-Time Unit Test Generation25 Oct 2025
- 2025Practical Code RAG at Scale: Task-Aware Retrieval Design Choices under Compute Budgets23 Oct 2025
- 2025Retrieval-Augmented Code Generation: A Survey with Focus on Repository-Level Approaches6 Oct 2025
- 2025TENET: One Step Toward Test-Driven Development for Repository-Level Code Generation29 Sep 2025
- 2025RANGER -- Repository-Level Agent for Graph-Enhanced Retrieval27 Sep 2025
- 2025CodeRAG: Finding Relevant and Necessary Knowledge for Retrieval-Augmented Repository-Level Code Completion19 Sep 2025
- 2025RepoDebug: Repository-Level Multi-Task and Multi-Language Debugging Evaluation of Large Language Models4 Sep 2025
- 2025Systematic Characterization of LLM Quantization: A Performance, Energy, and Quality Perspective22 Aug 2025
- 2025SaraCoder: Orchestrating Semantic and Structural Cues for Resource-Optimized Repository-Level Code Completion13 Aug 2025
- 2025Impact-driven Context Filtering For Cross-file Code Completion8 Aug 2025
- 2025A Deep Dive into Retrieval-Augmented Generation for Code Completion: Experience on WeChat24 Jul 2025
- 2025CRABS: A syntactic-semantic pincer strategy for bounding LLM interpretation of Python notebooks15 Jul 2025
- 2025CodeSSM: Towards State Space Models for Code Understanding2 May 2025
- 2025Towards an Understanding of Context Utilization in Code Intelligence11 Apr 2025
- 2025What to Retrieve for Effective Retrieval-Augmented Code Generation? An Empirical Study and Beyond26 Mar 2025
- 2025Detection of LLM-Paraphrased Code and Identification of the Responsible LLM Using Coding Style Features25 Feb 2025
- 2025FastCoder: Accelerating Repository-level Code Generation via Efficient Retrieval and Verification24 Feb 2025
- 2025Knowledge Graph-Guided Retrieval Augmented Generation8 Feb 2025
- 2024RepoGraph: Enhancing AI Software Engineering with Repository-level Code Graph3 Oct 2024
- 2024CodexGraph: Bridging Large Language Models and Code Repositories via Code Graph Databases7 Aug 2024
- 2024A Lightweight Framework for Adaptive Retrieval In Code Completion With Critique Model11 Jun 2024
- 2024JavaBench: A Benchmark of Object-Oriented Code Generation for Evaluating Large Language Models10 Jun 2024
- 2025Knowledge Graph-Guided Retrieval Augmented Generationcited by 57
- 2025What to Retrieve for Effective Retrieval-Augmented Code Generation? An Empirical Study and Beyondcited by 22
- 2025Retrieval-Augmented Code Generation: A Survey with Focus on Repository-Level Approachescited by 20
- 2025CodeRAG: Finding Relevant and Necessary Knowledge for Retrieval-Augmented Repository-Level Code Completioncited by 12
- 2026SkillRAE: Agent Skill-Based Context Compilation for Retrieval-Augmented Executioncited by 8
- 2025A Deep Dive into Retrieval-Augmented Generation for Code Completion: Experience on WeChatcited by 5
- 2025Impact-driven Context Filtering For Cross-file Code Completioncited by 5
- 2026RepoShapley: Shapley-Enhanced Context Filtering for Repository-Level Code Completioncited by 3
- 2026Effective and Efficient Context Retrieval via Partial Dependency Graph for Repository-Level Code Generationcited by 1
- 2024A Lightweight Framework for Adaptive Retrieval In Code Completion With Critique Modelcited by 0
- 2025SaraCoder: Orchestrating Semantic and Structural Cues for Resource-Optimized Repository-Level Code Completioncited by 0
- 2026Hierarchical Embedding Fusion for Retrieval-Augmented Code Generationcited by 0
12 most cited of 13 All 13 (JSON)
- 2026Effective and Efficient Context Retrieval via Partial Dependency Graph for Repository-Level Code Generation3 Aug 2026
- 2026SkillRAE: Agent Skill-Based Context Compilation for Retrieval-Augmented Execution11 May 2026
- 2026How Does Chunking Affect Retrieval-Augmented Code Completion? A Controlled Empirical Study6 May 2026
- 2026Hierarchical Embedding Fusion for Retrieval-Augmented Code Generation4 Feb 2026
- 2026RepoShapley: Shapley-Enhanced Context Filtering for Repository-Level Code Completion6 Jan 2026
- 2025Retrieval-Augmented Code Generation: A Survey with Focus on Repository-Level Approaches6 Oct 2025
- 2025CodeRAG: Finding Relevant and Necessary Knowledge for Retrieval-Augmented Repository-Level Code Completion19 Sep 2025
- 2025SaraCoder: Orchestrating Semantic and Structural Cues for Resource-Optimized Repository-Level Code Completion13 Aug 2025
- 2025Impact-driven Context Filtering For Cross-file Code Completion8 Aug 2025
- 2025A Deep Dive into Retrieval-Augmented Generation for Code Completion: Experience on WeChat24 Jul 2025
- 2025What to Retrieve for Effective Retrieval-Augmented Code Generation? An Empirical Study and Beyond26 Mar 2025
- 2025Knowledge Graph-Guided Retrieval Augmented Generation8 Feb 2025
12 newest of 13 All 13 (JSON)
- 2024RepoGraph: Enhancing AI Software Engineering with Repository-level Code Graphcited by 88
- 2024CodexGraph: Bridging Large Language Models and Code Repositories via Code Graph Databasescited by 62
- 2026In Line with Context: Repository-Level Code Generation via Context Inliningcited by 18
- 2024JavaBench: A Benchmark of Object-Oriented Code Generation for Evaluating Large Language Modelscited by 10
- 2025Towards an Understanding of Context Utilization in Code Intelligencecited by 10
- 2025Systematic Characterization of LLM Quantization: A Performance, Energy, and Quality Perspectivecited by 8
- 2025RANGER -- Repository-Level Agent for Graph-Enhanced Retrievalcited by 7
- 2026AlignCoder: Aligning Retrieval with Target Intent for Repository-Level Code Completioncited by 7
- 2025Detection of LLM-Paraphrased Code and Identification of the Responsible LLM Using Coding Style Featurescited by 4
- 2025RepoDebug: Repository-Level Multi-Task and Multi-Language Debugging Evaluation of Large Language Modelscited by 4
- 2025CodeSSM: Towards State Space Models for Code Understandingcited by 3
- 2025Practical Code RAG at Scale: Task-Aware Retrieval Design Choices under Compute Budgetscited by 3
12 most cited of 23 All 23 (JSON)
- 2026FeatLens: Feature-Guided Dynamic Code Graph Construction and Retrieval for Repository-Level Code Generation22 Sep 2026
- 2026Adaptive Critical Token-Aware Retrieval for Repository-Level Code Generation1 Sep 2026
- 2026ReproAgent: Contract-Guided Paper-to-Code Reproduction25 Aug 2026
- 2026Dependency-Guided Code Generation: Structured Matrix Decomposition and Consistency-Guided Refinement18 Jul 2026
- 2026ReFEree: Reference-Free and Fine-Grained Method for Evaluating Factual Consistency in Real-World Code Summarization12 Apr 2026
- 2026Beyond Code Snippets: Benchmarking LLMs on Repository-Level Question Answering27 Mar 2026
- 2026Automated Customization of LLMs for Enterprise Code Repositories Using Semantic Scopes5 Feb 2026
- 2026AlignCoder: Aligning Retrieval with Target Intent for Repository-Level Code Completion27 Jan 2026
- 2026Bridging the Knowledge Void: Inference-time Acquisition of Unfamiliar Programming Languages for Coding Tasks16 Jan 2026
- 2026In Line with Context: Repository-Level Code Generation via Context Inlining1 Jan 2026
- 2025LSPRAG: LSP-Guided RAG for Language-Agnostic Real-Time Unit Test Generation25 Oct 2025
- 2025Practical Code RAG at Scale: Task-Aware Retrieval Design Choices under Compute Budgets23 Oct 2025
12 newest of 23 All 23 (JSON)