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

Download:

Current browse context:

cs.CL

Change to browse by:

cs

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: Code Summarization with Structure-induced Transformer

Abstract: 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.
Comments: Findings of ACL2021
Subjects: Computation and Language (cs.CL)
Cite as: arXiv:2012.14710 [cs.CL]
  (or arXiv:2012.14710v2 [cs.CL] for this version)

Submission history

From: Hongqiu Wu [view email]
[v1] Tue, 29 Dec 2020 11:37:43 GMT (8519kb,D)
[v2] Tue, 1 Jun 2021 02:54:32 GMT (1474kb,D)

Link back to: arXiv, form interface, contact.