Learning code summarization from a small and local dataset
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
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,874
- 2016Overcoming catastrophic forgetting in neural networkscited by 4,718
- 2021On the Opportunities and Risks of Foundation Modelscited by 3,961
- 2014Sequence to Sequence Learning with Neural Networkscited by 2,974
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
- 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 890
- 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 732
13 more
- 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 638
- 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 600
- 2021Unified Pre-training for Program Understanding and Generationcited by 361
- 2020A Transformer-based Approach for Source Code Summarizationcited by 129
- 2018The Adverse Effects of Code Duplication in Machine Learning Models of Codecited by 123
- 2019A Neural Model for Generating Natural Language Summaries of Program Subroutinescited by 76
- 2021Studying the Usage of Text-To-Text Transfer Transformer to Support Code-Related Taskscited by 70
- 2021CoTexT: Multi-task Learning with Code-Text Transformercited by 61
- 2021On the Evaluation of Neural Code Summarizationcited by 47
- 2021Multilingual training for Software Engineeringcited by 43
- 2021ProphetNet-X: Large-Scale Pre-training Models for English, Chinese, Multi-lingual, Dialog, and Code Generationcited by 31
- 2022On the Transferability of Pre-trained Language Models for Low-Resource Programming Languagescited by 30
- 2020Code to Comment "Translation": Data, Metrics, Baselining & Evaluationcited by 28
Built on by
Citing papers per year: 2023: 2; 2024: 2; 2025: 0; 2026: 1.
5 papers.
- 2024Can Large Language Models Write Parallel Code?cited by 36
- 2024Performance-Aligned LLMs for Generating Fast Codecited by 20
- 2023HPC-Coder: Modeling Parallel Programs using Large Language Modelscited by 11
- 2023Understanding Code Semantics: An Evaluation of Transformer Models in Summarizationcited by 0
- 2026ParEVO: Synthesizing Code for Irregular Data: High-Performance Parallelism through Agentic Evolutioncited by 0
- 2026ParEVO: Synthesizing Code for Irregular Data: High-Performance Parallelism through Agentic Evolution3 Mar 2026
- 2024Performance-Aligned LLMs for Generating Fast Code29 Apr 2024
- 2024Can Large Language Models Write Parallel Code?23 Jan 2024
- 2023Understanding Code Semantics: An Evaluation of Transformer Models in Summarization25 Oct 2023
- 2023HPC-Coder: Modeling Parallel Programs using Large Language Models29 Jun 2023