AI Paper Atlas

Research map / Architectures and efficiency / Attention and transformers

Towards Context-Aware Code Comment Generation

Xiaohan Yu, Quzhe Huang, Zheng Wang, Yansong Feng, Dongyan Zhao

EMNLP 2020Architectures and efficiency › Attention and transformersapproach: Language model pretraining and induction25 citations (OpenAlex)

Peking University · University of Leeds

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

12measured effects
10improved
1no 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 changedWhereMeasuredEffect
add local encoder (ablation)full model · Java method commentsBLEU: 15.15 -> 23.78Improved
add global encoder (C-Graph + GAT) (ablation)full model · Java method commentsBLEU: 19.30 -> 23.78Improved
add graph attention in decoder (ablation)full model · Java method commentsBLEU: 20.47 -> 23.78Improved
add local attention and pointer (ablation)full model · Java method commentsBLEU: 20.09 -> 23.78Improved
add pointer mechanism (ablation)full model · Java method commentsBLEU: 23.46 -> 23.78Improved
use C-Graph instead of attention over class functions or flattened classGraphAttn / GraphFlatten · Java method commentsBLEU: 19.38 / 20.24 -> 23.78Improved
restrict C-Graph to function-call neighbors vs random same-class functions (ablation)Call vs Random · Java method commentsBLEU: 19.13 -> 21.06Improved
use functions from other classes as C-Graph neighbors (ablation)Seq2Seq-level baseline · Java method commentsBLEU: 18.74 -> 18.86No clear effect
use full C-Graph model instead of Code2Seq (AST-based)Code2Seq · Java method commentsBLEU: 22.07 -> 23.78Improved
use full C-Graph model instead of Code2Seq on BLEU-4Code2Seq · Java method commentsBLEU-4: 15.77 -> 14.98Hurt
add C-Graph to Seq2SeqSeq2Seq · Java method commentsPc (comment words found only in neighbor functions): 19.1% -> 25.1%Improved
add C-Graph to Seq2SeqSeq2Seq · Java method commentsPo (words in both target and neighbors): 51.6% -> 53.1%Improved

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