mlsanityData to 13 Oct 2026

AlignCoder: Aligning Retrieval with Target Intent for Repository-Level Code Completion

arXiv 2601.19697 ↗First posted 27 Jan 2026cs.SE cs.AIcited by 7

Not on the map. Why?

Abstract (arXiv)

Repository-level code completion remains a challenging task for existing code large language models (code LLMs) due to their limited understanding of repository-specific context and domain knowledge. While retrieval-augmented generation (RAG) approaches have shown promise by retrieving relevant code snippets as cross-file context, they suffer from two fundamental problems: misalignment between the query and the target code in the retrieval process, and the inability of existing retrieval methods to effectively utilize the inference information. To address these challenges, we propose AlignCoder, a repository-level code completion framework that introduces a query enhancement mechanism and a reinforcement learning based retriever training method. Our approach generates multiple candidate completions to construct an enhanced query that bridges the semantic gap between the initial query and the target code. Additionally, we employ reinforcement learning to train an AlignRetriever that learns to leverage inference information in the enhanced query for more accurate retrieval. We evaluate AlignCoder on two widely-used benchmarks (CrossCodeEval and RepoEval) across five backbone code LLMs, demonstrating an 18.1% improvement in EM score compared to baselines on the CrossCodeEval benchmark. The results show that our framework achieves superior performance and exhibits high generalizability across various code LLMs and programming languages.

Key facts. Cited by 7 papers in the map (data through 13 Oct 2026). Builds on 105 of its 135 references that are in the map. First posted on arXiv 27 Jan 2026.

Builds on

105 of 135 references.

References · 105

  1. 2021Evaluating Large Language Models Trained on Codecited by 8,205
  2. 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,831
  3. 2020Dense Passage Retrieval for Open-Domain Question Answeringcited by 3,797
  4. 2021Program Synthesis with Large Language Modelscited by 3,573
  5. 2023Code Llama: Open Foundation Models for Codecited by 2,130
  6. 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,386
  7. 2024Qwen2.5-Coder Technical Reportcited by 1,179
  8. 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,173
  9. 2023Large Language Models Can Be Easily Distracted by Irrelevant Contextcited by 829
  10. 2023StarCoder: may the source be with you!cited by 797
  11. 2024StarCoder 2 and The Stack v2: The Next Generationcited by 499
  12. 2025Search-o1: Agentic Search-Enhanced Large Reasoning Modelscited by 426
38 more
  1. 2024PyramidKV: Dynamic KV Cache Compression based on Pyramidal Information Funnelingcited by 422
  2. 2023Making Retrieval-Augmented Language Models Robust to Irrelevant Contextcited by 367
  3. 2023RepoCoder: Repository-Level Code Completion Through Iterative Retrieval and Generationcited by 362
  4. 2022UniXcoder: Unified Cross-Modal Pre-training for Code Representationcited by 360
  5. 2023CodeT5+: Open Code Large Language Models for Code Understanding and Generationcited by 333
  6. 2024CodeAgent: Enhancing Code Generation with Tool-Integrated Agent Systems for Real-World Repo-level Coding Challengescited by 280
  7. 2023Prompt Cache: Modular Attention Reuse for Low-Latency Inferencecited by 258
  8. 2023Magicoder: Empowering Code Generation with OSS-Instructcited by 251
  9. 2024Ada-KV: Optimizing KV Cache Eviction by Adaptive Budget Allocation for Efficient LLM Inferencecited by 232
  10. 2023CrossCodeEval: A Diverse and Multilingual Benchmark for Cross-File Code Completioncited by 182
  11. 2022DocPrompting: Generating Code by Retrieving the Docscited by 152
  12. 2021Retrieval Augmented Code Generation and Summarizationcited by 148
  13. 2023Query2doc: Query Expansion with Large Language Modelscited by 148
  14. 2024Design2Code: Benchmarking Multimodal Code Generation for Automated Front-End Engineeringcited by 147
  15. 2023CodePlan: Repository-level Coding using LLMs and Planningcited by 139
  16. 2022Large Language Models Meet NL2Code: A Surveycited by 137
  17. 2024MAGIS: LLM-Based Multi-Agent Framework for GitHub Issue Resolutioncited by 132
  18. 2022ReACC: A Retrieval-Augmented Code Completion Frameworkcited by 118
  19. 2023LongCoder: A Long-Range Pre-trained Language Model for Code Completioncited by 111
  20. 2025CodeElo: Benchmarking Competition-level Code Generation of LLMs with Human-comparable Elo Ratingscited by 111
  21. 2025S*: Test Time Scaling for Code Generationcited by 96
  22. 2024LLM Hallucinations in Practical Code Generation: Phenomena, Mechanism, and Mitigationcited by 93
  23. 2025SWE-Fixer: Training Open-Source LLMs for Effective and Efficient GitHub Issue Resolutioncited by 88
  24. 2024AnalogCoder: Analog Circuit Design via Training-Free Code Generationcited by 83
  25. 2024CodeAttack: Revealing Safety Generalization Challenges of Large Language Models via Code Completioncited by 75
  26. 2024WKVQuant: Quantizing Weight and Key/Value Cache for Large Language Models Gains Morecited by 69
  27. 2023Towards an Understanding of Large Language Models in Software Engineering Taskscited by 68
  28. 2023A Survey of Large Language Models for Code: Evolution, Benchmarking, and Future Trendscited by 66
  29. 2025SWE-Exp: Experience-Driven Software Issue Resolutioncited by 65
  30. 2022CoCoMIC: Code Completion By Jointly Modeling In-file and Cross-file Contextcited by 64
  31. 2023Unifying the Perspectives of NLP and Software Engineering: A Survey on Language Models for Codecited by 62
  32. 2024Agents in Software Engineering: Survey, Landscape, and Visioncited by 60
  33. 2024Alibaba LingmaAgent: Improving Automated Issue Resolution via Comprehensive Repository Explorationcited by 58
  34. 2023CodeTransOcean: A Comprehensive Multilingual Benchmark for Code Translationcited by 56
  35. 2024Repoformer: Selective Retrieval for Repository-Level Code Completioncited by 55
  36. 2020Big Code != Big Vocabulary: Open-Vocabulary Models for Source Codecited by 54
  37. 2025SWE-Debate: Competitive Multi-Agent Debate for Software Issue Resolutioncited by 53
  38. 2021On the Evaluation of Neural Code Summarizationcited by 48

50 most cited of 105 All 105 (JSON)

Built on by

Cited by year (2026 to 13 Oct)

Citing papers per year: 2026: 7.

7 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2024Retrieval-augmented code completion for local projects using large language models
  2. 2025SaraCoder: Orchestrating Semantic and Structural Cues for Resource-Optimized Repository-Level Code Completion
  3. 2025Impact-driven Context Filtering For Cross-file Code Completion
  4. 2025CodeRAG: Finding Relevant and Necessary Knowledge for Retrieval-Augmented Repository-Level Code Completion
  5. 2025ReCode: Improving LLM-based Code Repair with Fine-Grained Retrieval-Augmented Generation
  6. 2024Prompt-based Code Completion via Multi-Retrieval Augmented Generation
  7. 2025FastCoder: Accelerating Repository-level Code Generation via Efficient Retrieval and Verification
  8. 2026Do Not Treat Code as Natural Language: Implications for Repository-Level Code Generation and Beyond