Automatic Source Code Summarization with Extended Tree-LSTM
Not on the map. Why?
Abstract (arXiv)
Neural machine translation models are used to automatically generate a document from given source code since this can be regarded as a machine translation task. Source code summarization is one of the components for automatic document generation, which generates a summary in natural language from given source code. This suggests that techniques used in neural machine translation, such as Long Short-Term Memory (LSTM), can be used for source code summarization. However, there is a considerable difference between source code and natural language: Source code is essentially em structured, having loops and conditional branching, etc. Therefore, there is some obstacle to apply known machine translation models to source code. Abstract syntax trees (ASTs) capture these structural properties and play an important role in recent machine learning studies on source code. Tree-LSTM is proposed as a generalization of LSTMs for tree-structured data. However, there is a critical issue when applying it to ASTs: It cannot handle a tree that contains nodes having an arbitrary number of children and their order simultaneously, which ASTs generally have such nodes. To address this issue, we propose an extension of Tree-LSTM, which we call Multi-way Tree-LSTM and apply it for source code summarization. As a result of computational experiments, our proposal achieved better results when compared with several state-of-the-art techniques.
Key facts. Cited by 28 papers in the map (data through 7 Oct 2026). First posted on arXiv 19 Jun 2019.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 8; 2022: 9; 2023: 5; 2024: 4; 2025: 2.
28 papers.
Sort:
By area:
- 2021Retrieval Augmented Code Generation and Summarizationcited by 148
- 2023Is ChatGPT the Ultimate Programming Assistant -- How far is it?cited by 72
- 2023Automatic Code Summarization via ChatGPT: How Far Are We?cited by 34
- 2021CodeQA: A Question Answering Dataset for Source Code Comprehensioncited by 30
- 2021Code Structure Guided Transformer for Source Code Summarizationcited by 29
- 2021A Survey on Machine Learning Techniques for Source Code Analysiscited by 23
- 2022Deep Learning Meets Software Engineering: A Survey on Pre-Trained Models of Source Codecited by 20
- 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
- 2021API2Com: On the Improvement of Automatically Generated Code Comments Using API Documentationscited by 10
- 2022Learning Program Semantics with Code Representations: An Empirical Studycited by 6
16 more
- 2023Tram: A Token-level Retrieval-augmented Mechanism for Source Code Summarizationcited by 6
- 2024ESALE: Enhancing Code-Summary Alignment Learning for Source Code Summarizationcited by 6
- 2022GypSum: Learning Hybrid Representations for Code Summarizationcited by 5
- 2023Abstract Syntax Tree for Programming Language Understanding and Representation: How Far Are We?cited by 5
- 2021PSIMiner: A Tool for Mining Rich Abstract Syntax Trees from Codecited by 4
- 2021Database Workload Characterization with Query Plan Encoderscited by 4
- 2022A Survey of Deep Learning Models for Structural Code Understandingcited by 4
- 2021Comparative Code Structure Analysis using Deep Learning for Performance Predictioncited by 3
- 2022A Survey on Natural Language Processing for Programmingcited by 3
- 2024Large Language Models for Code Summarizationcited by 3
- 2023APIContext2Com: Code Comment Generation by Incorporating Pre-Defined API Documentationcited by 2
- 2022Evaluating the Impact of Source Code Parsers on ML4SE Modelscited by 1
- 2024DeepCodeProbe: Towards Understanding What Models Trained on Code Learncited by 1
- 2024Tadashi: Enabling AI-Based Automated Code Generation With Guaranteed Correctnesscited by 1
- 2025Bringing Structure to Naturalness: On the Naturalness of ASTscited by 1
- 2025Enhancing Neural Code Representation with Additional Contextcited by 0
- 2025Enhancing Neural Code Representation with Additional Context14 Oct 2025
- 2025Bringing Structure to Naturalness: On the Naturalness of ASTs11 Apr 2025
- 2024Tadashi: Enabling AI-Based Automated Code Generation With Guaranteed Correctness4 Oct 2024
- 2024DeepCodeProbe: Towards Understanding What Models Trained on Code Learn11 Jul 2024
- 2024ESALE: Enhancing Code-Summary Alignment Learning for Source Code Summarization1 Jul 2024
- 2024Large Language Models for Code Summarization29 May 2024
- 2023Abstract Syntax Tree for Programming Language Understanding and Representation: How Far Are We?1 Dec 2023
- 2023Automatic Code Summarization via ChatGPT: How Far Are We?22 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
- 2023APIContext2Com: Code Comment Generation by Incorporating Pre-Defined API Documentation3 Mar 2023
- 2022A Survey on Natural Language Processing for Programming12 Dec 2022
16 more
- 2022Evaluating the Impact of Source Code Parsers on ML4SE Models17 Jun 2022
- 2022An Extractive-and-Abstractive Framework for Source Code Summarization15 Jun 2022
- 2022Deep Learning Meets Software Engineering: A Survey on Pre-Trained Models of Source Code24 May 2022
- 2022A Survey of Deep Learning Models for Structural Code Understanding3 May 2022
- 2022GypSum: Learning Hybrid Representations for Code Summarization26 Apr 2022
- 2022Learning Program Semantics with Code Representations: An Empirical Study22 Mar 2022
- 2022M2TS: Multi-Scale Multi-Modal Approach Based on Transformer for Source Code Summarization18 Mar 2022
- 2022Source Code Summarization with Structural Relative Position Guided Transformer14 Feb 2022
- 2021A Survey on Machine Learning Techniques for Source Code Analysis18 Oct 2021
- 2021CodeQA: A Question Answering Dataset for Source Code Comprehension17 Sep 2021
- 2021Retrieval Augmented Code Generation and Summarization26 Aug 2021
- 2021Database Workload Characterization with Query Plan Encoders26 May 2021
- 2021Code Structure Guided Transformer for Source Code Summarization19 Apr 2021
- 2021PSIMiner: A Tool for Mining Rich Abstract Syntax Trees from Code23 Mar 2021
- 2021API2Com: On the Improvement of Automatically Generated Code Comments Using API Documentations19 Mar 2021
- 2021Comparative Code Structure Analysis using Deep Learning for Performance Prediction12 Feb 2021
- 2023Is ChatGPT the Ultimate Programming Assistant -- How far is it?cited by 72
- 2023Automatic Code Summarization via ChatGPT: How Far Are We?cited by 34
- 2021CodeQA: A Question Answering Dataset for Source Code Comprehensioncited by 30
- 2021Code Structure Guided Transformer for Source Code Summarizationcited by 29
- 2021A Survey on Machine Learning Techniques for Source Code Analysiscited by 23
- 2022Deep Learning Meets Software Engineering: A Survey on Pre-Trained Models of Source Codecited by 20
- 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
- 2021API2Com: On the Improvement of Automatically Generated Code Comments Using API Documentationscited by 10
- 2022Learning Program Semantics with Code Representations: An Empirical Studycited by 6
- 2024ESALE: Enhancing Code-Summary Alignment Learning for Source Code Summarizationcited by 6
12 most cited of 26 All 26 (JSON)
- 2025Enhancing Neural Code Representation with Additional Context14 Oct 2025
- 2025Bringing Structure to Naturalness: On the Naturalness of ASTs11 Apr 2025
- 2024Tadashi: Enabling AI-Based Automated Code Generation With Guaranteed Correctness4 Oct 2024
- 2024DeepCodeProbe: Towards Understanding What Models Trained on Code Learn11 Jul 2024
- 2024ESALE: Enhancing Code-Summary Alignment Learning for Source Code Summarization1 Jul 2024
- 2024Large Language Models for Code Summarization29 May 2024
- 2023Abstract Syntax Tree for Programming Language Understanding and Representation: How Far Are We?1 Dec 2023
- 2023Automatic Code Summarization via ChatGPT: How Far Are We?22 May 2023
- 2023Is ChatGPT the Ultimate Programming Assistant -- How far is it?24 Apr 2023
- 2023APIContext2Com: Code Comment Generation by Incorporating Pre-Defined API Documentation3 Mar 2023
- 2022A Survey on Natural Language Processing for Programming12 Dec 2022
- 2022Evaluating the Impact of Source Code Parsers on ML4SE Models17 Jun 2022
12 newest of 26 All 26 (JSON)