Research map / Architectures and efficiency / Attention and transformers
Code Summarization with Structure-induced Transformer
Hongqiu Wu, Hai Zhao, Min Zhang
Shanghai Jiao Tong University · Soochow University
Read the paperPlace an idea next to itCheck your own paper ↗
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| add structure-induced self-attention (SiT) | Transformer · Python | BLEU: 32.85 -> 34.11 | Improved |
| add structure-induced self-attention (SiT) | Transformer · Java | BLEU: 44.87 -> 45.76 | Improved |
| add SiT on top of CodeBERT | CodeBERT · Python | ROUGE-L: 49.35 -> 49.71 | Improved |
| use SiT (trained from scratch) instead of CodeBERT | CodeBERT · Python | ROUGE-L: 49.35 vs SiT 48.35 | Hurt |
| replace SAN layers with Si-SAN in all 6 encoder layers (ablation) | Transformer · Python-V2 | BLEU: 47.42 -> 49.80 | Improved |
| add structure-induced module (SAN followed by Si-SAN) at 50% (ablation) | Transformer · Python-V2 | BLEU: 49.64 -> 50.04 | Improved |
| replace structure attention with window attention (ablation) | Transformer · Python-V2 | BLEU: 49.80 -> 49.28 | Hurt |
| use random attention instead of full attention (ablation) | Transformer · Python-V2 | BLEU: 47.42 -> 38.06 | Hurt |
| flatten AST with SBT as Transformer input (ablation) | Transformer · Java | BLEU: 44.87 -> 43.34 | Hurt |
| use Si-SAN with AST only instead of SBT (ablation) | Transformer · Java | BLEU: 44.87 -> 45.43 | Improved |
| add Si-SAN at 12 and 16 heads (ablation) | Transformer · Python-V2 | BLEU: 50.11 -> 50.53 (12 heads); 50.43 -> 50.97 (16 heads) | Improved |
| share encoder parameters across layers (ALBERT-style) with Si-SAN (ablation) | Transformer · Python-V2 | BLEU: 44.83 -> 49.31 | Improved |
Earlier methods this paper compares with
Named baselines from earlier accepted papers in this paper's results tables: better than 1 of 1 on most shared results.
- CodeBERT — CodeBERT: A Pre-Trained Model for Programming and Natural Languages (EMNLP 2020) · better on 4 of 4 shared results
Matched by method name in results tables read by AI. Authors' own tables tend to favour the newer method, and a comparison can be missed when a method is renamed.
Open problems in Transformer expressivity and learnability
Do theorems about transformer expressivity and learning still hold for deep, softmax, trained models?
- Experiments use small models and synthetic tasks only. · 16 papers state it
- Theory covers one layer, linear attention or fixed matrices, not full transformers. · 12 papers state it
- Theorems and constructions are not shown to match trained transformers. · 6 papers state it
Closest papers by meaning
- A Transformer-based Approach for Source Code Summarization (ACL 2020 · similarity 0.89)
- Learning Sequential and Structural Information for Source Code Summarization (ACL 2021 · similarity 0.88)
- Modeling Hierarchical Syntax Structure with Triplet Position for Source Code Summarization (ACL 2022 · similarity 0.85)
- Pyramid Attention For Source Code Summarization (NeurIPS 2022 · similarity 0.85)
- CAST: Enhancing Code Summarization with Hierarchical Splitting and Reconstruction of Abstract Syntax Trees (EMNLP 2021 · similarity 0.83)
- BLOCSUM: Block Scope-based Source Code Summarization via Shared Block Representation (ACL 2023 · similarity 0.83)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.