Research map / Architectures and efficiency / Attention and transformers
A Transformer-based Approach for Source Code Summarization
Wasi Uddin Ahmad, Saikat Chakraborty, Baishakhi Ray, Kai-Wei Chang
University of California, Los Angeles · Columbia 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 relative position representations (ablation) | Transformer with copy attention · Java | BLEU: 44.26 -> 44.58 | Improved |
| add relative position representations (ablation) | Transformer with copy attention · Python | BLEU: 31.38 -> 32.52 | Improved |
| add copy attention (ablation) | Transformer with relative position · Java | BLEU: 44.14 -> 44.58 | Improved |
| add copy attention (ablation) | Transformer with relative position · Python | BLEU: 31.64 -> 32.52 | Improved |
| add absolute position encoding on source code tokens (ablation) | Base Model · Java | BLEU: 43.59 -> 43.41 | Hurt |
| remove absolute position encoding on the target summary (ablation) | Base Model · Java | BLEU: 43.41 -> 41.85 (both removed) | Hurt |
| use directional relative position (versus ignoring direction) (ablation) | Transformer encoder · Java | BLEU: 42.61 -> 44.22 (k=8) | Improved |
| clipping distance 16, 32 or 2^i (ablation) | Transformer encoder · Java | BLEU: 44.14 / 44.55 / 44.37 BLEU | No clear effect |
| increase the number of layers (6 -> 12) (ablation) | Base Model · Java | BLEU: 43.41 -> 45.56 | Improved |
| increase d_model (512 -> 768) (ablation) | Base Model · Java | BLEU: 43.41 -> 45.29 | Improved |
| split CamelCase and snake_case code tokens (ablation) | Base Model · Java and Python | BLEU: drop of 0.60 (Java) and 0.72 (Python) BLEU without splitting | Improved |
| add AST information via SBT traversal | Transformer · Java | summarization metrics | No clear effect |
Open problems in state space and recurrent sequence models
Do state space and recurrent models keep their efficiency and recall at large scale and long context?
- Experiments stop at small models, around 1.3B parameters or less. · 24 papers state it
- Theory covers simplified models, not the architectures used in practice. · 13 papers state it
- Kernels are naive or unoptimized, so speed gains are not realized. · 10 papers state it
Closest papers by meaning
- Pyramid Attention For Source Code Summarization (NeurIPS 2022 · similarity 0.91)
- Modeling Hierarchical Syntax Structure with Triplet Position for Source Code Summarization (ACL 2022 · similarity 0.90)
- Tram: A Token-level Retrieval-augmented Mechanism for Source Code Summarization (NAACL 2024 · similarity 0.89)
- Code Summarization with Structure-induced Transformer (ACL 2021 · similarity 0.89)
- BLOCSUM: Block Scope-based Source Code Summarization via Shared Block Representation (ACL 2023 · similarity 0.89)
- Novel Natural Language Summarization of Program Code via Leveraging Multiple Input Representations (EMNLP 2021 · similarity 0.88)
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.