Research map / Architectures and efficiency / Attention and transformers
Summarizing Source Code using a Neural Attention Model
Srinivasan Iyer, Ioannis Konstas, Alvin Cheung, Luke Zettlemoyer
University of Washington
Read the paperPlace an idea next to itCheck your own paper ↗
11measured effects
7improved
3no clear effect
1hurt
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 |
|---|---|---|---|
| use CODE-NN instead of best baseline | summarization baselines · StackOverflow C# GEN | METEOR: 10.6 -> 12.3 | Improved |
| use CODE-NN instead of best baseline | summarization baselines · StackOverflow SQL GEN | METEOR: 8.3 -> 10.9 | Improved |
| use CODE-NN instead of SUM-NN | SUM-NN · StackOverflow C# GEN | naturalness: 4.61 vs 4.48 | No clear effect |
| use CODE-NN instead of other models | IR, MOSES, SUM-NN · StackOverflow C# GEN human eval | informativeness: 2.42 -> 2.83 | Improved |
| use CODE-NN instead of RET-IR | RET-IR · StackOverflow C# RET | MRR: 0.42 -> 0.58 | Improved |
| use CODE-NN instead of RET-IR | RET-IR · StackOverflow SQL RET | MRR: 0.28 -> 0.44 | Improved |
| use CODE-NN instead of Allamanis et al. | Allamanis et al. · Allamanis C# L to C | MRR: 0.182 -> 0.590 | Improved |
| use CODE-NN instead of Allamanis et al. | Allamanis et al. · Allamanis C# C to L | MRR: 0.434 -> 0.461 | Improved |
| use pre-trained embeddings for summary embedding matrix (ablation) | CODE-NN · GEN task | METEOR | No clear effect |
| add additional LSTM layers (ablation) | CODE-NN · GEN task | METEOR | No clear effect |
| use CODE-NN on SQL instead of C# | CODE-NN · StackOverflow GEN | METEOR: 12.3 -> 10.9 | Hurt |
Open problems in long-context KV and memory attention
How can long-context attention be made fast and small in memory without losing quality against full attention?
- Validated only on models up to about 13B parameters. · 8 papers state it
- Speedups are limited because the code is not fused or kernel-optimized. · 5 papers state it
- Compressed or sparse attention still trails full attention. · 4 papers state it
Closest papers by meaning
- A Convolutional Attention Network for Extreme Summarization of Source Code (ICML 2016 · similarity 0.88)
- Learning Sequential and Structural Information for Source Code Summarization (ACL 2021 · similarity 0.88)
- A Transformer-based Approach for Source Code Summarization (ACL 2020 · similarity 0.85)
- Pyramid Attention For Source Code Summarization (NeurIPS 2022 · similarity 0.85)
- Tram: A Token-level Retrieval-augmented Mechanism for Source Code Summarization (NAACL 2024 · similarity 0.83)
- Code Summarization with Structure-induced Transformer (ACL 2021 · similarity 0.82)
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.