We gratefully acknowledge support from
the Simons Foundation and member institutions.
Full-text links:

Download:

Current browse context:

cs

Change to browse by:

References & Citations

DBLP - CS Bibliography

Bookmark

(what is this?)
CiteULike logo BibSonomy logo Mendeley logo del.icio.us logo Digg logo Reddit logo

Computer Science > Computation and Language

Title: AST-Transformer: Encoding Abstract Syntax Trees Efficiently for Code Summarization

Abstract: 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 leveraged to inform the encoder about the structural information. However, ASTs are usually much longer than the source code. Current approaches ignore the size limit and simply feed the whole linearized AST into the encoder. To address this problem, we propose AST-Transformer to efficiently encode tree-structured ASTs. Experiments show that AST-Transformer outperforms the state-of-arts by a substantial margin while being able to reduce $90\sim95\%$ of the computational complexity in the encoding process.
Subjects: Computation and Language (cs.CL); Software Engineering (cs.SE)
Cite as: arXiv:2112.01184 [cs.CL]
  (or arXiv:2112.01184v1 [cs.CL] for this version)

Submission history

From: Chuanyi Li [view email]
[v1] Thu, 2 Dec 2021 12:57:22 GMT (82kb)

Link back to: arXiv, form interface, contact.