mlsanityData to 7 Oct 2026

R2C2-Coder: Enhancing and Benchmarking Real-world Repository-level Code Completion Abilities of Code Large Language Models

arXiv 2406.01359 ↗First posted 3 Jun 2024cs.CL cs.SEcited by 9

Not on the map. Why?

Abstract (arXiv)

Code completion models have made significant progress in recent years. Recently, repository-level code completion has drawn more attention in modern software development, and several baseline methods and benchmarks have been proposed. However, existing repository-level code completion methods often fall short of fully using the extensive context of a project repository, such as the intricacies of relevant files and class hierarchies. Besides, the existing benchmarks usually focus on limited code completion scenarios, which cannot reflect the repository-level code completion abilities well of existing methods. To address these limitations, we propose the R2C2-Coder to enhance and benchmark the real-world repository-level code completion abilities of code Large Language Models, where the R2C2-Coder includes a code prompt construction method R2C2-Enhance and a well-designed benchmark R2C2-Bench. Specifically, first, in R2C2-Enhance, we first construct the candidate retrieval pool and then assemble the completion prompt by retrieving from the retrieval pool for each completion cursor position. Second, based on R2C2 -Enhance, we can construct a more challenging and diverse R2C2-Bench with training, validation and test splits, where a context perturbation strategy is proposed to simulate the real-world repository-level code completion well. Extensive results on multiple benchmarks demonstrate the effectiveness of our R2C2-Coder.

Key facts. Cited by 9 papers in the map (data through 7 Oct 2026). Builds on 38 of its 49 references that are in the map. First posted on arXiv 3 Jun 2024.

Builds on

38 of 49 references.

References · 38

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  3. 2020Measuring Massive Multitask Language Understandingcited by 7,768
  4. 2021Program Synthesis with Large Language Modelscited by 3,509
  5. 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,332
  6. 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,154
  7. 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 890
  8. 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 876
  9. 2023StarCoder: may the source be with you!cited by 790
  10. 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 732
  11. 2023Extending Context Window of Large Language Models via Positional Interpolationcited by 721
  12. 2022GPT-NeoX-20B: An Open-Source Autoregressive Language Modelcited by 711
26 more
  1. 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 638
  2. 2023YaRN: Efficient Context Window Extension of Large Language Modelscited by 584
  3. 2022DS-1000: A Natural and Reliable Benchmark for Data Science Code Generationcited by 442
  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. 2022Efficient Training of Language Models to Fill in the Middlecited by 248
  7. 2024MT-Bench-101: A Fine-Grained Benchmark for Evaluating Large Language Models in Multi-Turn Dialoguescited by 247
  8. 2023CrossCodeEval: A Diverse and Multilingual Benchmark for Cross-File Code Completioncited by 181
  9. 2023RoleLLM: Benchmarking, Eliciting, and Enhancing Role-Playing Abilities of Large Language Modelscited by 173
  10. 2023SantaCoder: don't reach for the stars!cited by 169
  11. 2022Multi-lingual Evaluation of Code Generation Modelscited by 158
  12. 2023CodePlan: Repository-level Coding using LLMs and Planningcited by 139
  13. 2023CodeGen2: Lessons for Training LLMs on Programming and Natural Languagescited by 124
  14. 2022Repository-Level Prompt Generation for Large Language Models of Codecited by 106
  15. 2021CoSQA: 20,000+ Web Queries for Code Search and Question Answeringcited by 74
  16. 2024DebugBench: Evaluating Debugging Capability of Large Language Modelscited by 74
  17. 2024MAP-Neo: Highly Capable and Transparent Bilingual Large Language Model Seriescited by 67
  18. 2022CoCoMIC: Code Completion By Jointly Modeling In-file and Cross-file Contextcited by 64
  19. 2023OWL: A Large Language Model for IT Operationscited by 43
  20. 2023RepoFusion: Training Code Models to Understand Your Repositorycited by 40
  21. 2023CoderEval: A Benchmark of Pragmatic Code Generation with Generative Pre-trained Modelscited by 28
  22. 2024Chinese Tiny LLM: Pretraining a Chinese-Centric Large Language Modelcited by 25
  23. 2023On the Evaluation of Neural Code Translation: Taxonomy and Benchmarkcited by 23
  24. 2023Guiding Language Models of Code with Global Context using Monitorscited by 20
  25. 2022TSSB-3M: Mining single statement bugs at massive scalecited by 14
  26. 2023Better Context Makes Better Code Language Models: A Case Study on Function Call Argument Completioncited by 14

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 2; 2025: 5; 2026: 2.

9 papers.