mlsanityData to 7 Oct 2026

Learning code summarization from a small and local dataset

arXiv 2206.00804 ↗First posted 2 Jun 2022cs.SE cs.LGcited by 5

Not on the map. Why?

Abstract (arXiv)

Foundation models (e.g., CodeBERT, GraphCodeBERT, CodeT5) work well for many software engineering tasks. These models are pre-trained (using self-supervision) with billions of code tokens, and then fine-tuned with hundreds of thousands of labeled examples, typically drawn from many projects. However, software phenomena can be very project-specific. Vocabulary, and other phenomena vary substantially with each project. Thus, training on project-specific data, and testing on the same project, is a promising idea. This hypothesis has to be evaluated carefully, e.g., in a time-series setting, to prevent training-test leakage. We compare several models and training approaches, including same-project training, cross-project training, training a model especially designed to be sample efficient (and thus prima facie well-suited for learning in a limited-sample same-project setting) and a maximalist hybrid approach, fine-tuning first on many projects in many languages and then training on the same-project. We find that the maximalist hybrid setting provides consistent, substantial gains over the state-of-the-art, on many different projects in both Java and Python.

Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). Builds on 25 of its 38 references that are in the map. First posted on arXiv 2 Jun 2022.

Builds on

25 of 38 references.

References · 25

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2020Language Models are Few-Shot Learnerscited by 32,199
  4. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  5. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
  6. 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,874
  7. 2016Overcoming catastrophic forgetting in neural networkscited by 4,718
  8. 2021On the Opportunities and Risks of Foundation Modelscited by 3,961
  9. 2014Sequence to Sequence Learning with Neural Networkscited by 2,974
  10. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
  11. 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 890
  12. 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 732
13 more
  1. 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 638
  2. 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 600
  3. 2021Unified Pre-training for Program Understanding and Generationcited by 361
  4. 2020A Transformer-based Approach for Source Code Summarizationcited by 129
  5. 2018The Adverse Effects of Code Duplication in Machine Learning Models of Codecited by 123
  6. 2019A Neural Model for Generating Natural Language Summaries of Program Subroutinescited by 76
  7. 2021Studying the Usage of Text-To-Text Transfer Transformer to Support Code-Related Taskscited by 70
  8. 2021CoTexT: Multi-task Learning with Code-Text Transformercited by 61
  9. 2021On the Evaluation of Neural Code Summarizationcited by 47
  10. 2021Multilingual training for Software Engineeringcited by 43
  11. 2021ProphetNet-X: Large-Scale Pre-training Models for English, Chinese, Multi-lingual, Dialog, and Code Generationcited by 31
  12. 2022On the Transferability of Pre-trained Language Models for Low-Resource Programming Languagescited by 30
  13. 2020Code to Comment "Translation": Data, Metrics, Baselining & Evaluationcited by 28

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2023: 2; 2024: 2; 2025: 0; 2026: 1.

5 papers.