Distilled GPT for source code summarization
Open accessThe DOI matches its Crossref record; 59 of the 59 references it cites were found in a registry or an index.
Abstract
A code summary is a brief natural language description of source code. Summaries are usually only a single sentence long, and yet form the backbone of developer documentation. A short descriptions such as “changes all visible polygons to the color blue” can give a programmer a high-level idea of what code does without the effort of reading the code itself. Recently, products based on Large Language Models such as ChatGPT have demonstrated a strong ability to write these descriptions automatically. However, to use these tools, programmers must send their code to untrusted third parties for processing (e.g., via an API call). This loss of custody is not acceptable to many organizations. In this paper, we present an alternative: we train an open source model using sample output generated by GPT $$-$$ - 3.5 in a process related to knowledge distillation. Our model is small enough (350 m parameters) to be run on a single 16gb GPU, yet we show in our evaluation that it is large enough to mimic GPT $$-$$ - 3.5 on this task.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Figures






Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Claims other papers make about this one
Each is checked against this paper’s own text: does it say what the citing paper says it does?
In the citing paper
“It is broadly used on domain-specific tasks and has established its effectiveness [9, 85].”
From Exploring the Capabilities of LLMs for Code-Change-Related Tasks (2025) · cites this paper as [85]
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
Language Models are Few-Shot Learners
Brown, T. B., Mann, B., Ryder, N., Subbiah, M., Kaplan, J., Dhariwal, P., Neelakantan, A., Shyam, P., Sastry, G., Askell, A., et al. (2020) · arXiv · doi:10.48550/arxiv.2005.14165 · Cited by 23,372 · cited 1×
“5, is a decoder-only Transformer (Brown et al, 2020), both language model architectures we use are also decoder-only Transformers.”
BLEU: a method for automatic evaluation of machine translation
Papineni, K., Roukos, S., Ward, T., & Zhu, W.-J. (2001) · Proceedings of the 40th Annual Meeting on Association for Computational Linguistics - ACL '02 · doi:10.3115/1073083.1073135 · Cited by 21,344
On the Dangers of Stochastic Parrots: Can Language Models Be Too Big? 🦜
Bender, E. M., Gebru, T., McMillan-Major, A., & Shmitchell, S. (2021) · Proceedings of the 2021 ACM Conference on Fairness, Accountability, and Transparency · doi:10.1145/3442188.3445922 · Cited by 6,988 · cited 3×
“); Bender et al (2021) introduce the technique to fine-tune Large Language Models (LLM) for code summarization.”
Knowledge Distillation: A Survey
Gou, J., Yu, B., Maybank, S. J., & Tao, D. (2021) · International Journal of Computer Vision · doi:10.1007/s11263-021-01453-z · Cited by 3,931 · cited 1×
“A classic application is in image classification, where a powerful model capable of classifying many types may be used to teach a smaller model with some tradeoffs, such as lower accuracy or recognizing fewer categories (Gou et al, 2021; Wang and Yoon, 2021; Zagoruyko and Komodakis, 2016).”
Zagoruyko, S., & Komodakis, N. (2016) · arXiv · doi:10.48550/arxiv.1612.03928 · Cited by 2,027 · cited 1×
“A classic application is in image classification, where a powerful model capable of classifying many types may be used to teach a smaller model with some tradeoffs, such as lower accuracy or recognizing fewer categories (Gou et al, 2021; Wang and Yoon, 2021; Zagoruyko and Komodakis, 2016).”
Wang, Y., Wang, W., Joty, S., & Hoi, S. C. H. (2021) · Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing · doi:10.18653/v1/2021.emnlp-main.685 · Cited by 1,495 · cited 1×
“Although there are some papers that have already formulated the code summarization as a fine-tuning problem such as Wang et al (2021); Bender et al (2021) and studied knowledge distillation for smaller models from larger models Hsieh et al (2023); Yu et al (2023), we thoroughly explore the data and…”
Wang, Y., Wang, W., Joty, S., & Hoi, S. C. H. (2021) · arXiv · doi:10.48550/arxiv.2109.00859 · Cited by 1,495 · cited 1×
“Although there are some papers that have already formulated the code summarization as a fine-tuning problem such as Wang et al (2021); Bender et al (2021) and studied knowledge distillation for smaller models from larger models Hsieh et al (2023); Yu et al (2023), we thoroughly explore the data and…”
code2vec: Learning distributed representations of code
Alon, U., Zilberstein, M., Levy, O., & Yahav, E. (2019) · Proceedings of the ACM on Programming Languages · doi:10.1145/3290353 · Cited by 962
Zhai, X., Kolesnikov, A., Houlsby, N., & Beyer, L. (2022) · 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) · doi:10.1109/cvpr52688.2022.01179 · Cited by 891
Wang, L., & Yoon, K.-J. (2022) · IEEE Transactions on Pattern Analysis and Machine Intelligence · doi:10.1109/tpami.2021.3055564 · Cited by 752 · cited 4×
“Although there are some papers that have already formulated the code summarization as a fine-tuning problem such as Wang et al (2021); Bender et al (2021) and studied knowledge distillation for smaller models from larger models Hsieh et al (2023); Yu et al (2023), we thoroughly explore the data and model size for know…”
Influential
Research works printed but not linked: 13
- Allamanis M, Barr ET, Devanbu P, et al (2018a) A survey of machine learning for big code and naturalness. ACM Comput Surv 51(4). https://doi.org/10.1145/3212695 · DOI · Paper page
- Allamanis M, Brockschmidt M, Khademi M (2018b) Learning to represent programs with graphs. In: International Conference on Learning Representations, URL https: //openreview.net/forum?id=BJOFETxR-
- Alon U, Zilberstein M, Levy O, et al (2019b) code2vec: Learning distributed representations of code. Proceedings of the ACM on Programming Languages 3(POPL):1-29. https://doi.org/10.1145/3290353 · DOI · Paper page
- Banerjee S, Lavie A (2005) Meteor: An automatic metric for mt evaluation with improved correlation with human judgments. In: Proceedings of the acl work- shop on intrinsic and extrinsic evaluation measures for machine translation and/or summarization, pp 65-72, URL https://aclanthology.org/W05-0909
- Chang TA, Bergen BK (2023) Language model behavior: A comprehensive survey. arXiv preprint arXiv:230311504
- Chen Z, Jiang F, Chen J, et al (2023) Phoenix: Democratizing chatgpt across languages. arXiv preprint arXiv:230410453
- Derner E, Batistič K (2023) Beyond the safeguards: Exploring the security risks of chatgpt. arXiv preprint arXiv:230508005
- Gudibande A, Wallace E, Snell C, et al (2023) The false promise of imitating proprietary llms. arXiv preprint arXiv:230515717
- Ma W, Liu S, Wang W, et al (2023) The scope of chatgpt in software engineering: A thorough investigation. arXiv preprint arXiv:230512138
- Robillard MP, Marcus A, Treude C, et al (2017) On-demand developer documenta- tion. In: 2017 IEEE International conference on software maintenance and evolution (ICSME), IEEE, pp 479-483, https://doi.org/10.1109/ICSME.2017. · doi:10.1109/icsme.2017
- Schaeffer R, Miranda B, Koyejo S (2023) Are emergent abilities of large language models a mirage? arXiv preprint arXiv:230415004
- Sun W, Fang C, You Y, et al (2023) Automatic code summarization via chatgpt: How far are we? arXiv preprint arXiv:230512865
- Yu Y, Zhuang Y, Zhang J, et al (2023) Large language model as attributed training data generator: A tale of diversity and bias. arXiv preprint arXiv:230615895
Cited by
A survey on large language models for software engineering
Zhang, Q., Fang, C., Xie, Y., Zhang, Y., Yu, S., Sun, W., Yang, Y., & Chen, Z. (2026) · Science China Information Sciences · doi:10.1007/s11432-025-4670-0 · Cited by 124
Source Code Summarization in the Era of Large Language Models
Sun, W., Miao, Y., Li, Y., Zhang, H., Fang, C., Liu, Y., Deng, G., Liu, Y., & Chen, Z. (2025) · ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) · doi:10.1109/icse55347.2025.00034 · Cited by 215
Shi, J., Yang, Z., & Lo, D. (2025) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3708525 · Cited by 43
Exploring the Capabilities of LLMs for Code-Change-Related Tasks
Fan, L., Liu, J., Liu, Z., Lo, D., Xia, X., & Li, S. (2025) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3709358 · Cited by 41
“In Section 3.4, we investigate the impact of input formats on the effectiveness of LLM-ICLs, and find that LLM-ICLs with diffs as the input format outperforms those representing code changes as code snippets in most of the settings, especially on the JITCUP tasks.”
InfluentialBenchmarks and Metrics for Evaluations of Code Generation: A Critical Review
Paul, D. G., Zhu, H., & Bayley, I. (2024) · IEEE International Conference on Artificial Intelligence Testing (AITest) · doi:10.1109/aitest62860.2024.00019 · Cited by 73
“The typical examples of such tasks include document generation , code summarisation [10], and comment generation [11], etc.”
Background
Metadata
- Authors
- Su, C.-Y., & McMillan, C.
- Affiliations
- University of Notre Dame (US)
- Corresponding author
- Su, Chia-Yi
- Venue
- Automated Software Engineering
- Published
- 2024-03-01
- Volume
- 31
- Issue
- 1
- ISSN
- 0928-8910 (ISSN-L)
- 1573-7535
- OpenAlex
- W4392365769
- Cited by
- 49
- References
- 58
- Citations by year
- 2026: 15 · 2025: 21 · 2024: 13
- FWCI
- 12.94
- Type
- journal article
- Language
- en
- Open access
- green
- arxiv.org
- Licence
- cc-by-nc-nd
- www.springernature.com/gp/researchers/text-and-data-mining (tdm)
- www.springernature.com/gp/researchers/text-and-data-mining (vor)
- Locations
- Automated Software Engineering (publishedVersion)
- arXiv (Cornell University) (submittedVersion, cc-by-nc-nd)
- arXiv (Cornell University)
- Funders
- National Science Foundation (CCF-2100035)
- Topics
- Physical Sciences › Computer Science › Information Systems › Software Engineering Research
- Physical Sciences › Computer Science › Artificial Intelligence › Topic Modeling
- Physical Sciences › Computer Science › Artificial Intelligence › Natural Language Processing Techniques
- Keywords
- code summarization, knowledge distillation, large language models, GPT-3.5, open-source language models, developer documentation, model compression
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
How to cite
Cite CoChat for the checks on this page, and the paper for its own findings.
- This page
- CoChat. (2026). Citation check: Distilled GPT for source code summarization. https://app.cochat.ai/papers/10.1007/s10515-024-00421-4
- The paper
- Su, C.-Y., & McMillan, C. (2024). Distilled GPT for source code summarization. Automated Software Engineering. https://doi.org/10.1007/s10515-024-00421-4
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.