mlsanityData to 14 Oct 2026

RETROcode: Leveraging a Code Database for Improved Natural Language to Code Generation

arXiv 2504.05759 ↗First posted 8 Apr 2025cs.CLcited by 0

Not on the map. Why?

Abstract (arXiv)

As text and code resources have expanded, large-scale pre-trained models have shown promising capabilities in code generation tasks, typically employing supervised fine-tuning with problem statement-program pairs. However, increasing model size and data volume for performance gains also raises computational demands and risks of overfitting. Addressing these challenges, we present RETROcode, a novel adaptation of the RETRO architecture citeRETRO for sequence-to-sequence models, utilizing a large code database as an auxiliary scaling method. This approach, diverging from simply enlarging model and dataset sizes, allows RETROcode to leverage a vast code database for prediction, enhancing the model's efficiency by integrating extensive memory. Our findings indicate that RETROcode not only outperforms similar-sized traditional architectures on test sets but also approaches the effectiveness of the much larger Codex model, despite being trained from scratch on a substantially smaller dataset.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 23 of its 27 references that are in the map. First posted on arXiv 8 Apr 2025.

Builds on

23 of 27 references.

References · 23

  1. 2017Attention Is All You Needcited by 60,361
  2. 2015Deep Residual Learning for Image Recognitioncited by 52,096
  3. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  4. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
  5. 2017Billion-scale similarity search with GPUscited by 2,497
  6. 2019Root Mean Square Layer Normalizationcited by 1,480
  7. 2022Competition-Level Code Generation with AlphaCodecited by 1,462
  8. 2021Improving language models by retrieving from trillions of tokenscited by 1,293
  9. 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 906
  10. 2015Pointer Networkscited by 895
  11. 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 744
  12. 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 654
11 more
  1. 2022The Stack: 3 TB of permissively licensed source codecited by 359
  2. 2021Retrieval Augmented Code Generation and Summarizationcited by 149
  3. 2018TRANX: A Transition-based Neural Abstract Syntax Parser for Semantic Parsing and Code Generationcited by 88
  4. 2020Augmenting Transformers with KNN-Based Composite Memory for Dialoguecited by 53
  5. 2019Multi-Modal Attention Network Learning for Semantic Source Code Retrievalcited by 41
  6. 2020Incorporating External Knowledge through Pre-training for Natural Language to Code Generationcited by 36
  7. 2020Deep Graph Matching and Searching for Semantic Code Retrievalcited by 20
  8. 2022Codex Hacks HackerRank: Memorization Issues and a Framework for Code Synthesis Evaluationcited by 14
  9. 2020CRaDLe: Deep Code Retrieval Based on Semantic Dependency Learningcited by 12
  10. 2022The impact of lexical and grammatical processing on generating code from natural languagecited by 6
  11. 2022GAP-Gen: Guided Automatic Python Code Generationcited by 2

Built on by

Not cited yet.