A Transformer-based Approach for Source Code Summarization
Not on the map. Why?
Abstract (arXiv)
Generating a readable summary that describes the functionality of a program is known as source code summarization. In this task, learning code representation by modeling the pairwise relationship between code tokens to capture their long-range dependencies is crucial. To learn code representation for summarization, we explore the Transformer model that uses a self-attention mechanism and has shown to be effective in capturing long-range dependencies. In this work, we show that despite the approach is simple, it outperforms the state-of-the-art techniques by a significant margin. We perform extensive analysis and ablation studies that reveal several important findings, e.g., the absolute encoding of source code tokens' position hinders, while relative encoding significantly improves the summarization performance. We have made our code publicly available to facilitate future research.
Key facts. Cited by 129 papers in the map (data through 7 Oct 2026). First posted on arXiv 1 May 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2020: 1; 2021: 30; 2022: 27; 2023: 29; 2024: 18; 2025: 15; 2026: 9.
129 papers.
Sort:
By area:
- 2021Unified Pre-training for Program Understanding and Generationcited by 361
- 2023OctoPack: Instruction Tuning Code Large Language Modelscited by 178
- 2021Retrieval Augmented Code Generation and Summarizationcited by 148
- 2022ReACC: A Retrieval-Augmented Code Completion Frameworkcited by 117
- 2020Retrieval-Augmented Generation for Code Summarization via Hybrid GNNcited by 89
- 2023Automatic Semantic Augmentation of Language Model Prompts (for Code Summarization)cited by 72
- 2023Is ChatGPT the Ultimate Programming Assistant -- How far is it?cited by 72
- 2024Code-Aware Prompting: A study of Coverage Guided Test Generation in Regression Setting using LLMcited by 63
- 2021AVATAR: A Parallel Corpus for Java-Python Program Translationcited by 59
- 2022NatGen: Generative pre-training by "Naturalizing" source codecited by 53
- 2021On the Evaluation of Neural Code Summarizationcited by 47
- 2021Multilingual training for Software Engineeringcited by 43
38 more
- 2022MCoNaLa: A Benchmark for Code Generation from Multiple Natural Languagescited by 41
- 2021CoProtector: Protect Open-Source Code against Unauthorized Training Usage with Data Poisoningcited by 39
- 2025LongCodeZip: Compress Long Context for Code Language Modelscited by 38
- 2021What do pre-trained code models know about code?cited by 36
- 2024Can Large Language Models Write Parallel Code?cited by 36
- 2024Automatic Programming: Large Language Models and Beyondcited by 35
- 2023Automatic Code Summarization via ChatGPT: How Far Are We?cited by 34
- 2023Natural Language Generation and Understanding of Big Code for AI-Assisted Programming: A Reviewcited by 32
- 2023Learning Deep Semantics for Test Completioncited by 31
- 2021CodeQA: A Question Answering Dataset for Source Code Comprehensioncited by 30
- 2023Distilled GPT for Source Code Summarizationcited by 30
- 2024Tag-LLM: Repurposing General-Purpose LLMs for Specialized Domainscited by 30
- 2024Source Code Summarization in the Era of Large Language Modelscited by 30
- 2021Code Structure Guided Transformer for Source Code Summarizationcited by 29
- 2021On Multi-Modal Learning of Editing Source Codecited by 25
- 2021Symbolic Behaviour in Artificial Intelligencecited by 24
- 2021Project-Level Encoding for Neural Source Code Summarization of Subroutinescited by 24
- 2021Counterfactual Explanations for Models of Codecited by 24
- 2021CoDesc: A Large Code-Description Parallel Datasetcited by 23
- 2021A Survey on Machine Learning Techniques for Source Code Analysiscited by 23
- 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkitcited by 22
- 2021VELVET: a noVel Ensemble Learning approach to automatically locate VulnErable sTatementscited by 20
- 2024Performance-Aligned LLMs for Generating Fast Codecited by 20
- 2021Improving Code Summarization with Block-wise Abstract Syntax Tree Splittingcited by 19
- 2024UniCoder: Scaling Code Large Language Model via Universal Codecited by 18
- 2022Assemble Foundation Models for Automatic Code Summarizationcited by 17
- 2023GrACE: Generation using Associated Code Editscited by 16
- 2022An Extractive-and-Abstractive Framework for Source Code Summarizationcited by 15
- 2022Source Code Summarization with Structural Relative Position Guided Transformercited by 14
- 2022M2TS: Multi-Scale Multi-Modal Approach Based on Transformer for Source Code Summarizationcited by 14
- 2022An Exploratory Study on Code Attention in BERTcited by 12
- 2021Impact of Evaluation Methodologies on Code Summarizationcited by 11
- 2021AST-Transformer: Encoding Abstract Syntax Trees Efficiently for Code Summarizationcited by 11
- 2023HPC-Coder: Modeling Parallel Programs using Large Language Modelscited by 11
- 2024Studying LLM Performance on Closed- and Open-source Datacited by 11
- 2021API2Com: On the Improvement of Automatically Generated Code Comments Using API Documentationscited by 10
- 2025Towards an Understanding of Context Utilization in Code Intelligencecited by 10
- 2021Leveraging Unsupervised Learning to Summarize APIs Discussed in Stack Overflowcited by 9
50 most cited of 129 All 129 (JSON)
- 2026Beyond FLOPs: Energy-Aware Knowledge Distillation for Sustainable LLMs on Code-Related Task18 Aug 2026
- 2026Transformer-Assisted LLM-Based Source Code Summarisation: to Enable More Secure Software Development23 Jul 2026
- 2026Agent4cs: A Multi-agent System for Code Summarization in Large Hierarchical Codebases1 Jul 2026
- 2026XSearch: Explainable Code Search via Concept-to-Code Alignment15 May 2026
- 2026ReFEree: Reference-Free and Fine-Grained Method for Evaluating Factual Consistency in Real-World Code Summarization12 Apr 2026
- 2026EyeLayer: Integrating Human Attention Patterns into LLM-Based Code Summarization25 Feb 2026
- 2026Precision in Practice: Knowledge Guided Code Summarizing Grounded in Industrial Expectations3 Feb 2026
- 2026On the Impact of Code Comments for Automated Bug-Fixing: An Empirical Study30 Jan 2026
- 2026Human-Aligned Enhancement of Programming Answers with LLMs Guided by User Feedback24 Jan 2026
- 2025Neuron-Guided Interpretation of Code LLMs: Where, Why, and How?23 Dec 2025
- 2025SmartDoc: A Context-Aware Agentic Method Comment Generation Plugin1 Nov 2025
- 2025REx86: A Local Large Language Model for Assisting in x86 Assembly Reverse Engineering23 Oct 2025
38 more
- 2025LongCodeZip: Compress Long Context for Code Language Models1 Oct 2025
- 2025A Pilot Study on LLM-Based Agentic Translation from Android to iOS: Pitfalls and Insights21 Jul 2025
- 2025Seamlessly Integrating Tree-Based Positional Embeddings into Transformer Models for Source Code Representation5 Jul 2025
- 2025Issue Retrieval and Verification Enhanced Supplementary Code Comment Generation17 Jun 2025
- 2025Simple and Effective Baselines for Code Summarisation Evaluation26 May 2025
- 2025Variational Prefix Tuning for Diverse and Accurate Code Summarization Using Pre-trained Language Models14 May 2025
- 2025AI-Mediated Code Comment Improvement13 May 2025
- 2025Large Language Models are Qualified Benchmark Builders: Rebuilding Pre-Training Datasets for Advancing Code Intelligence Tasks28 Apr 2025
- 2025ML For Hardware Design Interpretability: Challenges and Opportunities11 Apr 2025
- 2025Towards an Understanding of Context Utilization in Code Intelligence11 Apr 2025
- 2025SURGE: On the Potential of Large Language Models as General-Purpose Surrogate Code Executors16 Feb 2025
- 2025Hierarchical Repository-Level Code Summarization for Business Applications Using Local LLMs14 Jan 2025
- 2024Selective Shot Learning for Code Explanation17 Dec 2024
- 2024Multi-Programming Language Sandbox for LLMs30 Oct 2024
- 2024The Role of Transformer Models in Advancing Blockchain Technology: A Systematic Survey2 Sep 2024
- 2024Natural Language Outlines for Code: Literate Programming in the LLM Era9 Aug 2024
- 2024DeepCodeProbe: Towards Understanding What Models Trained on Code Learn11 Jul 2024
- 2024Source Code Summarization in the Era of Large Language Models9 Jul 2024
- 2024ESALE: Enhancing Code-Summary Alignment Learning for Source Code Summarization1 Jul 2024
- 2024UniCoder: Scaling Code Large Language Model via Universal Code24 Jun 2024
- 2024Automatic Programming: Large Language Models and Beyond3 May 2024
- 2024Performance-Aligned LLMs for Generating Fast Code29 Apr 2024
- 2024CSA-Trans: Code Structure Aware Transformer for AST7 Apr 2024
- 2024MESIA: Understanding and Leveraging Supplementary Nature of Method-level Comments for Automatic Comment Generation26 Mar 2024
- 2024Studying LLM Performance on Closed- and Open-source Data23 Feb 2024
- 2024EyeTrans: Merging Human and Machine Attention for Neural Code Summarization21 Feb 2024
- 2024Tag-LLM: Repurposing General-Purpose LLMs for Specialized Domains6 Feb 2024
- 2024UniTSyn: A Large-Scale Dataset Capable of Enhancing the Prowess of Large Language Models for Program Testing4 Feb 2024
- 2024Code-Aware Prompting: A study of Coverage Guided Test Generation in Regression Setting using LLM31 Jan 2024
- 2024Can Large Language Models Write Parallel Code?23 Jan 2024
- 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkit30 Dec 2023
- 2023A Prompt Learning Framework for Source Code Summarization26 Dec 2023
- 2023Abstract Syntax Tree for Programming Language Understanding and Representation: How Far Are We?1 Dec 2023
- 2023Sparse Attention-Based Neural Networks for Code Classification11 Nov 2023
- 2023TransformCode: A Contrastive Learning Framework for Code Embedding via Subtree Transformation10 Nov 2023
- 2023Configuration Validation with Large Language Models15 Oct 2023
- 2023Revisiting File Context for Source Code Summarization5 Sep 2023
- 2023Distilled GPT for Source Code Summarization28 Aug 2023
50 newest of 129 All 129 (JSON)
- 2021Retrieval Augmented Code Generation and Summarizationcited by 148
- 2022ReACC: A Retrieval-Augmented Code Completion Frameworkcited by 117
- 2020Retrieval-Augmented Generation for Code Summarization via Hybrid GNNcited by 89
- 2022BashExplainer: Retrieval-Augmented Bash Code Comment Generation based on Fine-tuned CodeBERTcited by 9
- 2023Tram: A Token-level Retrieval-augmented Mechanism for Source Code Summarizationcited by 6
- 2025Issue Retrieval and Verification Enhanced Supplementary Code Comment Generationcited by 0
- 2025Issue Retrieval and Verification Enhanced Supplementary Code Comment Generation17 Jun 2025
- 2023Tram: A Token-level Retrieval-augmented Mechanism for Source Code Summarization18 May 2023
- 2022BashExplainer: Retrieval-Augmented Bash Code Comment Generation based on Fine-tuned CodeBERT27 Jun 2022
- 2022ReACC: A Retrieval-Augmented Code Completion Framework15 Mar 2022
- 2021Retrieval Augmented Code Generation and Summarization26 Aug 2021
- 2020Retrieval-Augmented Generation for Code Summarization via Hybrid GNN9 Jun 2020
- 2021Unified Pre-training for Program Understanding and Generationcited by 361
- 2023OctoPack: Instruction Tuning Code Large Language Modelscited by 178
- 2023Automatic Semantic Augmentation of Language Model Prompts (for Code Summarization)cited by 72
- 2023Is ChatGPT the Ultimate Programming Assistant -- How far is it?cited by 72
- 2024Code-Aware Prompting: A study of Coverage Guided Test Generation in Regression Setting using LLMcited by 63
- 2021AVATAR: A Parallel Corpus for Java-Python Program Translationcited by 59
- 2022NatGen: Generative pre-training by "Naturalizing" source codecited by 53
- 2021On the Evaluation of Neural Code Summarizationcited by 47
- 2021Multilingual training for Software Engineeringcited by 43
- 2022MCoNaLa: A Benchmark for Code Generation from Multiple Natural Languagescited by 41
- 2025LongCodeZip: Compress Long Context for Code Language Modelscited by 38
- 2021What do pre-trained code models know about code?cited by 36
12 most cited of 119 All 119 (JSON)
- 2026Beyond FLOPs: Energy-Aware Knowledge Distillation for Sustainable LLMs on Code-Related Task18 Aug 2026
- 2026Transformer-Assisted LLM-Based Source Code Summarisation: to Enable More Secure Software Development23 Jul 2026
- 2026XSearch: Explainable Code Search via Concept-to-Code Alignment15 May 2026
- 2026ReFEree: Reference-Free and Fine-Grained Method for Evaluating Factual Consistency in Real-World Code Summarization12 Apr 2026
- 2026EyeLayer: Integrating Human Attention Patterns into LLM-Based Code Summarization25 Feb 2026
- 2026Precision in Practice: Knowledge Guided Code Summarizing Grounded in Industrial Expectations3 Feb 2026
- 2026On the Impact of Code Comments for Automated Bug-Fixing: An Empirical Study30 Jan 2026
- 2026Human-Aligned Enhancement of Programming Answers with LLMs Guided by User Feedback24 Jan 2026
- 2025Neuron-Guided Interpretation of Code LLMs: Where, Why, and How?23 Dec 2025
- 2025REx86: A Local Large Language Model for Assisting in x86 Assembly Reverse Engineering23 Oct 2025
- 2025LongCodeZip: Compress Long Context for Code Language Models1 Oct 2025
- 2025Seamlessly Integrating Tree-Based Positional Embeddings into Transformer Models for Source Code Representation5 Jul 2025
12 newest of 119 All 119 (JSON)