mlsanityData to 7 Oct 2026

REPOFUSE: Repository-Level Code Completion with Fused Dual Context

arXiv 2402.14323 ↗First posted 22 Feb 2024cs.SE cs.AIcited by 32

Not on the map. Why?

Abstract (arXiv)

The success of language models in code assistance has spurred the proposal of repository-level code completion as a means to enhance prediction accuracy, utilizing the context from the entire codebase. However, this amplified context can inadvertently increase inference latency, potentially undermining the developer experience and deterring tool adoption - a challenge we termed the Context-Latency Conundrum. This paper introduces REPOFUSE, a pioneering solution designed to enhance repository-level code completion without the latency trade-off. REPOFUSE uniquely fuses two types of context: the analogy context, rooted in code analogies, and the rationale context, which encompasses in-depth semantic relationships. We propose a novel rank truncated generation (RTG) technique that efficiently condenses these contexts into prompts with restricted size. This enables REPOFUSE to deliver precise code completions while maintaining inference efficiency. Through testing with the CrossCodeEval suite, REPOFUSE has demonstrated a significant leap over existing models, achieving a 40.90% to 59.75% increase in exact match (EM) accuracy for code completions and a 26.8% enhancement in inference speed. Beyond experimental validation, REPOFUSE has been integrated into the workflow of a large enterprise, where it actively supports various coding tasks.

Key facts. Cited by 32 papers in the map (data through 7 Oct 2026). Builds on 18 of its 26 references that are in the map. First posted on arXiv 22 Feb 2024.

Builds on

18 of 26 references.

References · 18

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  3. 2022InCoder: A Generative Model for Code Infilling and Synthesiscited by 492
  4. 2022UniXcoder: Unified Cross-Modal Pre-training for Code Representationcited by 355
  5. 2023CodeGeeX: A Pre-Trained Model for Code Generation with Multilingual Benchmarking on HumanEval-Xcited by 294
  6. 2022Efficient Training of Language Models to Fill in the Middlecited by 248
  7. 2022Grounded Copilot: How Programmers Interact with Code-Generating Modelscited by 216
  8. 2023CodePlan: Repository-level Coding using LLMs and Planningcited by 139
  9. 2023CodeGen2: Lessons for Training LLMs on Programming and Natural Languagescited by 124
  10. 2022ReACC: A Retrieval-Augmented Code Completion Frameworkcited by 117
  11. 2022Repository-Level Prompt Generation for Large Language Models of Codecited by 106
  12. 2022CoCoMIC: Code Completion By Jointly Modeling In-file and Cross-file Contextcited by 64
6 more
  1. 2020Big Code != Big Vocabulary: Open-Vocabulary Models for Source Codecited by 53
  2. 2022PanGu-Coder: Program Synthesis with Function-Level Language Modelingcited by 47
  3. 2023RepoFusion: Training Code Models to Understand Your Repositorycited by 40
  4. 2023GrACE: Generation using Associated Code Editscited by 16
  5. 2023Better Context Makes Better Code Language Models: A Case Study on Function Call Argument Completioncited by 14
  6. 2023Practitioners' Expectations on Code Completioncited by 8

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 7; 2025: 18; 2026: 7.

32 papers.

Sort:

By area:

  1. 2024Retrieval-Augmented Generation for AI-Generated Content: A Surveycited by 352
  2. 2024RepoGraph: Enhancing AI Software Engineering with Repository-level Code Graphcited by 88
  3. 2025Code Graph Model (CGM): A Graph-Integrated Large Language Model for Repository-Level Software Engineering Taskscited by 27
  4. 2025What to Retrieve for Effective Retrieval-Augmented Code Generation? An Empirical Study and Beyondcited by 22
  5. 2025Retrieval-Augmented Code Generation: A Survey with Focus on Repository-Level Approachescited by 20
  6. 2025Improving Code Localization with Repository Memorycited by 19
  7. 2026In Line with Context: Repository-Level Code Generation via Context Inliningcited by 18
  8. 2025GraphCodeAgent: Dual Graph-Guided LLM Agent for Retrieval-Augmented Repo-Level Code Generationcited by 17
  9. 2025LLM/Agent-as-Data-Analyst: A Surveycited by 15
  10. 2024Hierarchical Context Pruning: Optimizing Real-World Code Completion with Repository-Level Pretrained Code LLMscited by 13
  11. 2025CodeRAG: Finding Relevant and Necessary Knowledge for Retrieval-Augmented Repository-Level Code Completioncited by 12
  12. 2024Preference-Guided Refactored Tuning for Retrieval Augmented Code Generationcited by 10
20 more
  1. 2025Towards an Understanding of Context Utilization in Code Intelligencecited by 10
  2. 2025RANGER -- Repository-Level Agent for Graph-Enhanced Retrievalcited by 7
  3. 2026AlignCoder: Aligning Retrieval with Target Intent for Repository-Level Code Completioncited by 7
  4. 2025Knowledge Augmented Complex Problem Solving with Large Language Models: A Surveycited by 6
  5. 2025A Deep Dive into Retrieval-Augmented Generation for Code Completion: Experience on WeChatcited by 5
  6. 2025Enhancing Project-Specific Code Completion by Inferring Internal API Informationcited by 5
  7. 2025SPENCER: Self-Adaptive Model Distillation for Efficient Code Retrievalcited by 5
  8. 2025Impact-driven Context Filtering For Cross-file Code Completioncited by 5
  9. 2026RepoReasoner: Evaluating Repository-Level Code Reasoning Ability of Long-Context Language Modelscited by 5
  10. 2024Repository Structure-Aware Training Makes SLMs Better Issue Resolvercited by 4
  11. 2024Repository-Level Graph Representation Learning for Enhanced Security Patch Detectioncited by 3
  12. 2025SpecAgent: A Speculative Retrieval and Forecasting Agent for Code Completioncited by 3
  13. 2026DRAINCODE: Stealthy Energy Consumption Attacks on Retrieval-Augmented Code Generation via Context Poisoningcited by 3
  14. 2025FastCoder: Accelerating Repository-level Code Generation via Efficient Retrieval and Verificationcited by 2
  15. 2025NES: An Instruction-Free, Low-Latency Next Edit Suggestion Framework Powered by Learned Historical Editing Trajectoriescited by 2
  16. 2025TENET: One Step Toward Test-Driven Development for Repository-Level Code Generationcited by 2
  17. 2026MHRC-Bench: A Multilingual Hardware Repository-Level Code Completion benchmarkcited by 1
  18. 2024A Lightweight Framework for Adaptive Retrieval In Code Completion With Critique Modelcited by 0
  19. 2026Multi-CoLoR: Context-Aware Localization and Reasoning across Multi-Language Codebasescited by 0
  20. 2026Comprendia: AI-Augmented Code Comprehensioncited by 0