scimeatlas

Research map / Architectures and efficiency / Attention and transformers

Code Summarization with Structure-induced Transformer

Hongqiu Wu, Hai Zhao, Min Zhang

ACL 2021Architectures and efficiency › Attention and transformersapproach: Transformer expressivity and learnabilityopen problems in this approach106 citations (OpenAlex)

Shanghai Jiao Tong University · Soochow University

Read the paperPlace an idea next to itCheck your own paper ↗

13measured effects
8improved
1no clear effect
4hurt

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 changedWhereMeasuredEffect
add structure-induced self-attention (SiT)Transformer · PythonBLEU: 32.85 -> 34.11Improved
add structure-induced self-attention (SiT)Transformer · JavaBLEU: 44.87 -> 45.76Improved
add SiT on top of CodeBERTCodeBERT · PythonROUGE-L: 49.35 -> 49.71Improved
use SiT (trained from scratch) instead of CodeBERTCodeBERT · PythonROUGE-L: 49.35 vs SiT 48.35Hurt
replace SAN layers with Si-SAN in all 6 encoder layers (ablation)Transformer · Python-V2BLEU: 47.42 -> 49.80Improved
add structure-induced module (SAN followed by Si-SAN) at 50% (ablation)Transformer · Python-V2BLEU: 49.64 -> 50.04Improved
replace structure attention with window attention (ablation)Transformer · Python-V2BLEU: 49.80 -> 49.28Hurt
use random attention instead of full attention (ablation)Transformer · Python-V2BLEU: 47.42 -> 38.06Hurt
flatten AST with SBT as Transformer input (ablation)Transformer · JavaBLEU: 44.87 -> 43.34Hurt
use Si-SAN with AST only instead of SBT (ablation)Transformer · JavaBLEU: 44.87 -> 45.43Improved
add Si-SAN at 12 and 16 heads (ablation)Transformer · Python-V2BLEU: 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-V2BLEU: 44.83 -> 49.31Improved

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.

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?

All 3 open problems and what was already tried →

Closest papers by meaning

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.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy