mlsanityData to 14 Oct 2026

FastCoder: Accelerating Repository-level Code Generation via Efficient Retrieval and Verification

arXiv 2502.17139 ↗First posted 24 Feb 2025cs.AI cs.SEcited by 2

On the map: Efficient LLM inference and serving → Speculative decoding

Abstract (arXiv)

Code generation is a latency-sensitive task that demands high timeliness. However, with the growing interest and inherent difficulty in repository-level code generation, most existing code generation studies focus on improving the correctness of generated code while overlooking the inference efficiency, which is substantially affected by the overhead during LLM generation. Although there has been work on accelerating LLM inference, these approaches are not tailored to the specific characteristics of code generation; instead, they treat code the same as natural language sequences and ignore its unique syntax and semantic characteristics, which are also crucial for improving efficiency. Consequently, these approaches exhibit limited effectiveness in code generation tasks, particularly for repository-level scenarios with considerable complexity and difficulty. To alleviate this issue, following draft-verification paradigm, we propose FastCoder, a simple yet highly efficient inference acceleration approach specifically designed for code generation, without compromising the quality of the output. FastCoder constructs a multi-source datastore, providing access to both general and project-specific knowledge, facilitating the retrieval of high-quality draft sequences. Moreover, FastCoder reduces the retrieval cost by controlling retrieval timing, and enhances efficiency through parallel retrieval and a context- and LLM preference-aware cache. Experimental results show that FastCoder can reach up to 2.53x and 2.54x speedup compared to autoregressive decoding in repository-level and standalone code generation tasks, respectively, outperforming state-of-the-art inference acceleration approaches by up to 88%. FastCoder can also be integrated with existing correctness-focused code generation approaches to accelerate the LLM generation process, and reach a speedup exceeding 2.6x.

Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Placed in Speculative decoding, one of 12 directions in Efficient LLM inference and serving. Builds on 25 of its 36 references that are in the map. First posted on arXiv 24 Feb 2025.

Builds on

25 of 36 references.

Closest ancestors · 9

Same direction, newest first

  1. 2024Ouroboros: Generating Longer Drafts Phrase by Phrase for Faster Speculative Decoding21 Feb
  2. 2024Break the Sequential Dependency of LLM Inference Using Lookahead Decoding3 Feb
  3. 2024EAGLE: Speculative Sampling Requires Rethinking Feature Uncertainty26 Jan
  4. 2024Medusa: Simple LLM Inference Acceleration Framework with Multiple Decoding Heads19 Jan
  5. 2023REST: Retrieval-Based Speculative Decoding14 Nov
  6. 2023Accelerating LLM Inference with Staged Speculative Decoding8 Aug
  7. 2023SpecInfer: Accelerating Generative Large Language Model Serving with Tree-based Speculative Inference and Verification16 May
  8. 2023Accelerating Large Language Model Decoding with Speculative Sampling2 Feb
  9. 2022Fast Inference from Transformers via Speculative Decoding30 Nov

Other references · 16

  1. 2023GPT-4 Technical Reportcited by 18,396
  2. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  3. 2021Program Synthesis with Large Language Modelscited by 3,637
  4. 2023Code Llama: Open Foundation Models for Codecited by 2,139
  5. 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,181
  6. 2023StarCoder: may the source be with you!cited by 799
  7. 2023RepoCoder: Repository-Level Code Completion Through Iterative Retrieval and Generationcited by 367
  8. 2022The Stack: 3 TB of permissively licensed source codecited by 359
  9. 2018Blockwise Parallel Decoding for Deep Autoregressive Modelscited by 323
  10. 2023CrossCodeEval: A Diverse and Multilingual Benchmark for Cross-File Code Completioncited by 183
  11. 2024DevEval: A Manually-Annotated Code Generation Benchmark Aligned with Real-World Code Repositoriescited by 72
  12. 2023Inference with Reference: Lossless Acceleration of Large Language Modelscited by 65
4 more
  1. 2024RLCoder: Reinforcement Learning for Repository-Level Code Completioncited by 44
  2. 2024Dataflow-Guided Retrieval Augmentation for Repository-Level Code Completioncited by 40
  3. 2024REPOFUSE: Repository-Level Code Completion with Fused Dual Contextcited by 32
  4. 2024Deep Learning-based Software Engineering: Progress, Challenges, and Opportunitiescited by 9

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 1; 2026: 1.

2 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026MRCoder: An Efficient Context Selecting Approach for Repository-Level Code Generation ↗
  2. 2026Adaptive Critical Token-Aware Retrieval for Repository-Level Code Generation
  3. 2024Repoformer: Selective Retrieval for Repository-Level Code Completion
  4. 2026Do Not Treat Code as Natural Language: Implications for Repository-Level Code Generation and Beyond
  5. 2026FastCode: Fast and Cost-Efficient Code Understanding and Reasoning
  6. 2026TICoder: A Repository-Level Code Generation Framework with Test-Driven Planning and Implementation-Aware Reuse ↗
  7. 2026Are you Synthesizing or Recalling? Evaluating LLMs on Algorithmic Code Retrieval
  8. 2024EVOR: Evolving Retrieval for Code Generation