Code Summarization with Structure-induced Transformer
Code summarization (CS) is becoming a promising area in recent language understanding, which aims to generate sensible human language automatically for programming language in the format of source code, serving in the most convenience of programmer developing. It is well known that programming languages are highly structured. Thus previous works attempt to apply structure-based traversal (SBT) or non-sequential models like Tree-LSTM and graph neural network (GNN) to learn structural program semantics. However, it is surprising that incorporating SBT into advanced encoder like Transformer instead of LSTM has been shown no performance gain, which lets GNN become the only rest means modeling such necessary structural clue in source code. To release such inconvenience, we propose structure-induced Transformer, which encodes sequential code inputs with multi-view structural clues in terms of a newly-proposed structure-induced self-attention mechanism. Extensive experiments show that our proposed structure-induced Transformer helps achieve new state-of-the-art results on benchmarks.
Code (1)
Tasks
Code SummarizationGraph Neural NetworkNatural Language UnderstandingSource Code SummarizationMethods 이 논문이 사용한 방법론
Similar Papers 제목 키워드 기반
FullTransNet: Full Transformer with Local-Global Attention for Video Summarization
Video summarization mainly aims to produce a compact, short, informative, and representative synopsis of raw videos, which is of great importance for browsing, analyzing, and understanding video content. Dominant video s…
DecoderSupervised Video SummarizationVideo SummarizationStepwise Extractive Summarization and Planning with Structured Transformers
We propose encoder-centric stepwise models for extractive summarization using structured transformers -- HiBERT and Extended Transformers. We enable stepwise summarization by injecting the previously generated summary in…
Extractive SummarizationSentenceTable-to-Text GenerationText GenerationSparsity and Sentence Structure in Encoder-Decoder Attention of Summarization Systems
Transformer models have achieved state-of-the-art results in a wide range of NLP tasks including summarization. Training and inference using large transformer models can be computationally expensive. Previous work has fo…
Abstractive Text SummarizationDecoderDocument SummarizationSentenceAST-Transformer: Encoding Abstract Syntax Trees Efficiently for Code Summarization
Code summarization aims to generate brief natural language descriptions for source code. As source code is highly structured and follows strict programming language grammars, its Abstract Syntax Tree (AST) is often lever…
Code SummarizationDETQUS: Decomposition-Enhanced Transformers for QUery-focused Summarization
Query-focused tabular summarization is an emerging task in table-to-text generation that synthesizes a summary response from tabular data based on user queries. Traditional transformer-based approaches face challenges du…
DecoderLanguage ModelingLanguage ModellingLarge Language Model+3