Code Generation as a Dual Task of Code Summarization
Not on the map. Why?
Abstract (arXiv)
Code summarization (CS) and code generation (CG) are two crucial tasks in the field of automatic software development. Various neural network-based approaches are proposed to solve these two tasks separately. However, there exists a specific intuitive correlation between CS and CG, which have not been exploited in previous work. In this paper, we apply the relations between two tasks to improve the performance of both tasks. In other words, exploiting the duality between the two tasks, we propose a dual training framework to train the two tasks simultaneously. In this framework, we consider the dualities on probability and attention weights, and design corresponding regularization terms to constrain the duality. We evaluate our approach on two datasets collected from GitHub, and experimental results show that our dual framework can improve the performance of CS and CG tasks over baselines.
Key facts. Cited by 62 papers in the map (data through 7 Oct 2026). First posted on arXiv 14 Oct 2019.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2020: 1; 2021: 21; 2022: 14; 2023: 13; 2024: 10; 2025: 2; 2026: 1.
62 papers.
Sort:
By area:
- 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 732
- 2021Retrieval Augmented Code Generation and Summarizationcited by 148
- 2021KaggleDBQA: Realistic Evaluation of Text-to-SQL Parserscited by 105
- 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
- 2022Out of the BLEU: how should we assess quality of the Code Generation models?cited by 65
- 2021On the Evaluation of Neural Code Summarizationcited by 47
- 2022Compilable Neural Code Generation with Compiler Feedbackcited by 46
- 2021Multilingual training for Software Engineeringcited by 43
- 2021Neural-Symbolic Solver for Math Word Problems with Auxiliary Taskscited by 38
- 2023Learning Deep Semantics for Test Completioncited by 31
38 more
- 2021CodeQA: A Question Answering Dataset for Source Code Comprehensioncited by 30
- 2021Code Structure Guided Transformer for Source Code Summarizationcited by 29
- 2021On Multi-Modal Learning of Editing Source Codecited by 25
- 2024Automatically Generating UI Code from Screenshot: A Divide-and-Conquer-Based Approachcited by 24
- 2021CoDesc: A Large Code-Description Parallel Datasetcited by 23
- 2024Unsupervised Evaluation of Code LLMs with Round-Trip Correctnesscited by 23
- 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkitcited by 22
- 2021Improving Code Summarization with Block-wise Abstract Syntax Tree Splittingcited by 19
- 2023Exploring the Robustness of Large Language Models for Solving Programming Problemscited by 16
- 2024Prompt-based Code Completion via Multi-Retrieval Augmented Generationcited by 16
- 2022An Extractive-and-Abstractive Framework for Source Code Summarizationcited by 15
- 2023Benchmarking and Explaining Large Language Model-based Code Generation: A Causality-Centric Approachcited by 15
- 2022Source Code Summarization with Structural Relative Position Guided Transformercited by 14
- 2021AST-Transformer: Encoding Abstract Syntax Trees Efficiently for Code Summarizationcited by 11
- 2021API2Com: On the Improvement of Automatically Generated Code Comments Using API Documentationscited by 10
- 2021Improving Tree-Structured Decoder Training for Code Generation via Mutual Learningcited by 10
- 2021Exploring Dynamic Selection of Branch Expansion Orders for Code Generationcited by 10
- 2022HierarchyNet: Learning to Summarize Source Code with Heterogeneous Representationscited by 9
- 2024RACONTEUR: A Knowledgeable, Insightful, and Portable LLM-Powered Shell Command Explainercited by 9
- 2026LLMs Corrupt Your Documents When You Delegatecited by 9
- 2023Automating Code-Related Tasks Through Transformers: The Impact of Pre-trainingcited by 8
- 2022CodePAD: Sequence-based Code Generation with Pushdown Automatoncited by 7
- 2023Tram: A Token-level Retrieval-augmented Mechanism for Source Code Summarizationcited by 6
- 2024Mutation-based Consistency Testing for Evaluating the Code Understanding Capability of LLMscited by 6
- 2024ESALE: Enhancing Code-Summary Alignment Learning for Source Code Summarizationcited by 6
- 2021IOT: Instance-wise Layer Reordering for Transformer Structurescited by 5
- 2021Exploiting Method Names to Improve Code Summarization: A Deliberation Multi-Task Learning Approachcited by 5
- 2021Embedding API Dependency Graph for Neural Code Generationcited by 5
- 2021Improving Stack Overflow question title generation with copying enhanced CodeBERT model and bi-modal informationcited by 5
- 2022GypSum: Learning Hybrid Representations for Code Summarizationcited by 5
- 2023Advancing Precise Outline-Conditioned Text Generation with Task Duality and Explicit Outline Controlcited by 5
- 2023LUNA: A Model-Based Universal Analysis Framework for Large Language Modelscited by 4
- 2025ObscuraCoder: Powering Efficient Code LM Pre-Training Via Obfuscation Groundingcited by 4
- 2021GN-Transformer: Fusing Sequence and Graph Representation for Improved Code Summarizationcited by 3
- 2022A Survey on Artificial Intelligence for Source Code: A Dialogue Systems Perspectivecited by 3
- 2022A Survey on Natural Language Processing for Programmingcited by 3
- 2023Revisiting File Context for Source Code Summarizationcited by 3
- 2024CSA-Trans: Code Structure Aware Transformer for ASTcited by 3
50 most cited of 62 All 62 (JSON)
- 2026LLMs Corrupt Your Documents When You Delegate17 Apr 2026
- 2025Variational Prefix Tuning for Diverse and Accurate Code Summarization Using Pre-trained Language Models14 May 2025
- 2025ObscuraCoder: Powering Efficient Code LM Pre-Training Via Obfuscation Grounding27 Mar 2025
- 2024Transducer Tuning: Efficient Model Adaptation for Software Tasks Using Code Property Graphs18 Dec 2024
- 2024RACONTEUR: A Knowledgeable, Insightful, and Portable LLM-Powered Shell Command Explainer3 Sep 2024
- 2024The Role of Transformer Models in Advancing Blockchain Technology: A Systematic Survey2 Sep 2024
- 2024DeepCodeProbe: Towards Understanding What Models Trained on Code Learn11 Jul 2024
- 2024ESALE: Enhancing Code-Summary Alignment Learning for Source Code Summarization1 Jul 2024
- 2024Automatically Generating UI Code from Screenshot: A Divide-and-Conquer-Based Approach24 Jun 2024
- 2024Prompt-based Code Completion via Multi-Retrieval Augmented Generation13 May 2024
- 2024CSA-Trans: Code Structure Aware Transformer for AST7 Apr 2024
- 2024Unsupervised Evaluation of Code LLMs with Round-Trip Correctness13 Feb 2024
38 more
- 2024Mutation-based Consistency Testing for Evaluating the Code Understanding Capability of LLMs11 Jan 2024
- 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkit30 Dec 2023
- 2023LUNA: A Model-Based Universal Analysis Framework for Large Language Models22 Oct 2023
- 2023Benchmarking and Explaining Large Language Model-based Code Generation: A Causality-Centric Approach10 Oct 2023
- 2023Revisiting File Context for Source Code Summarization5 Sep 2023
- 2023Towards Automatically Addressing Self-Admitted Technical Debt: How Far Are We?17 Aug 2023
- 2023Exploring the Robustness of Large Language Models for Solving Programming Problems26 Jun 2023
- 2023Advancing Precise Outline-Conditioned Text Generation with Task Duality and Explicit Outline Control23 May 2023
- 2023Tram: A Token-level Retrieval-augmented Mechanism for Source Code Summarization18 May 2023
- 2023Is ChatGPT the Ultimate Programming Assistant -- How far is it?24 Apr 2023
- 2023Automatic Semantic Augmentation of Language Model Prompts (for Code Summarization)13 Apr 2023
- 2023APIContext2Com: Code Comment Generation by Incorporating Pre-Defined API Documentation3 Mar 2023
- 2023Learning Deep Semantics for Test Completion20 Feb 2023
- 2023Automating Code-Related Tasks Through Transformers: The Impact of Pre-training8 Feb 2023
- 2022A Survey on Natural Language Processing for Programming12 Dec 2022
- 2022CodePAD: Sequence-based Code Generation with Pushdown Automaton2 Nov 2022
- 2022Antecedent Predictions Are More Important Than You Think: An Effective Method for Tree-Based Code Generation22 Aug 2022
- 2022Out of the BLEU: how should we assess quality of the Code Generation models?5 Aug 2022
- 2022Evaluating the Impact of Source Code Parsers on ML4SE Models17 Jun 2022
- 2022An Extractive-and-Abstractive Framework for Source Code Summarization15 Jun 2022
- 2022HierarchyNet: Learning to Summarize Source Code with Heterogeneous Representations31 May 2022
- 2022GypSum: Learning Hybrid Representations for Code Summarization26 Apr 2022
- 2022DISK: Domain-constrained Instance Sketch for Math Word Problem Generation10 Apr 2022
- 2022LAMNER: Code Comment Generation Using Character Language Model and Named Entity Recognition5 Apr 2022
- 2022Compilable Neural Code Generation with Compiler Feedback10 Mar 2022
- 2022Source Code Summarization with Structural Relative Position Guided Transformer14 Feb 2022
- 2022A Survey on Artificial Intelligence for Source Code: A Dialogue Systems Perspective10 Feb 2022
- 2022Meta Learning for Code Summarization20 Jan 2022
- 2021Multilingual training for Software Engineering3 Dec 2021
- 2021AST-Transformer: Encoding Abstract Syntax Trees Efficiently for Code Summarization2 Dec 2021
- 2021Graph Conditioned Sparse-Attention for Improved Source Code Understanding1 Dec 2021
- 2021GN-Transformer: Fusing Sequence and Graph Representation for Improved Code Summarization17 Nov 2021
- 2021Improving Stack Overflow question title generation with copying enhanced CodeBERT model and bi-modal information27 Sep 2021
- 2021CodeQA: A Question Answering Dataset for Source Code Comprehension17 Sep 2021
- 2021Retrieval Augmented Code Generation and Summarization26 Aug 2021
- 2021On Multi-Modal Learning of Editing Source Code15 Aug 2021
- 2021On the Evaluation of Neural Code Summarization15 Jul 2021
- 2021Neural-Symbolic Solver for Math Word Problems with Auxiliary Tasks3 Jul 2021
50 newest of 62 All 62 (JSON)
- 2021Retrieval Augmented Code Generation and Summarizationcited by 148
- 2020Retrieval-Augmented Generation for Code Summarization via Hybrid GNNcited by 89
- 2024Prompt-based Code Completion via Multi-Retrieval Augmented Generationcited by 16
- 2023Tram: A Token-level Retrieval-augmented Mechanism for Source Code Summarizationcited by 6
- 2024Prompt-based Code Completion via Multi-Retrieval Augmented Generation13 May 2024
- 2023Tram: A Token-level Retrieval-augmented Mechanism for Source Code Summarization18 May 2023
- 2021Retrieval Augmented Code Generation and Summarization26 Aug 2021
- 2020Retrieval-Augmented Generation for Code Summarization via Hybrid GNN9 Jun 2020
- 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 732
- 2021KaggleDBQA: Realistic Evaluation of Text-to-SQL Parserscited by 105
- 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
- 2022Out of the BLEU: how should we assess quality of the Code Generation models?cited by 65
- 2021On the Evaluation of Neural Code Summarizationcited by 47
- 2022Compilable Neural Code Generation with Compiler Feedbackcited by 46
- 2021Multilingual training for Software Engineeringcited by 43
- 2021Neural-Symbolic Solver for Math Word Problems with Auxiliary Taskscited by 38
- 2023Learning Deep Semantics for Test Completioncited by 31
- 2021CodeQA: A Question Answering Dataset for Source Code Comprehensioncited by 30
- 2021Code Structure Guided Transformer for Source Code Summarizationcited by 29
12 most cited of 58 All 58 (JSON)
- 2026LLMs Corrupt Your Documents When You Delegate17 Apr 2026
- 2025Variational Prefix Tuning for Diverse and Accurate Code Summarization Using Pre-trained Language Models14 May 2025
- 2025ObscuraCoder: Powering Efficient Code LM Pre-Training Via Obfuscation Grounding27 Mar 2025
- 2024Transducer Tuning: Efficient Model Adaptation for Software Tasks Using Code Property Graphs18 Dec 2024
- 2024RACONTEUR: A Knowledgeable, Insightful, and Portable LLM-Powered Shell Command Explainer3 Sep 2024
- 2024The Role of Transformer Models in Advancing Blockchain Technology: A Systematic Survey2 Sep 2024
- 2024DeepCodeProbe: Towards Understanding What Models Trained on Code Learn11 Jul 2024
- 2024ESALE: Enhancing Code-Summary Alignment Learning for Source Code Summarization1 Jul 2024
- 2024Automatically Generating UI Code from Screenshot: A Divide-and-Conquer-Based Approach24 Jun 2024
- 2024CSA-Trans: Code Structure Aware Transformer for AST7 Apr 2024
- 2024Unsupervised Evaluation of Code LLMs with Round-Trip Correctness13 Feb 2024
- 2024Mutation-based Consistency Testing for Evaluating the Code Understanding Capability of LLMs11 Jan 2024
12 newest of 58 All 58 (JSON)