Research map / Architectures and efficiency / Attention and transformers
Enhancing Self-Attention with Knowledge-Assisted Attention Maps
Jiangang Bai, Yujing Wang, Hong Sun, Ruonan Wu, Tianmeng Yang, Pengfei Tang, Defu Cao, Mingliang Zhang, Yunhai Tong, Yaming Yang, Jing Bai, Ruofei Zhang and 2 more
Peking University · Microsoft
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.
On benchmark leaderboards
- GLUE CoLA leaderboard score 53.7 · rank 13 of 15 papers
- GLUE leaderboard average score 84.6 · rank 8 of 17 papers
- CosmosQA leaderboard accuracy 81.9 · rank 12 of 18 papers
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| add knowledge-assisted attention maps (KAM) to the model | BERT-Base · GLUE test | average score: 77.5 -> 78.7 | Improved |
| add KAM | BERT-Large · GLUE test | average score: 80.5 -> 81.4 | Improved |
| add KAM | RoBERTa-Large · GLUE test | average score: 83.9 -> 84.6 | Improved |
| add KAM | BERT-Base · RTE (GLUE test) | score: 67.9 -> 67.9 | No clear effect |
| add KAM | BERT-Large · CosmosQA | accuracy: 68.5 -> 69.3 | Improved |
| add KAM | BERT-Base · Query-ad relevance (internal) | AUC: 73.54 -> 75.95 | Improved |
| add KAM | BERT-Large · LAMA T-REx | accuracy: 31.1 -> 32.2 | Improved |
| add entity attention map (ablation) | KAM-BERT-Base · GLUE test | average score: 77.7 -> 78.7 | Improved |
| add PMI term-correlation attention map (ablation) | KAM-BERT-Base · GLUE test | average score: 78.0 -> 78.7 | Improved |
| add phrase segmentation attention map (ablation) | KAM-BERT-Base · GLUE test | average score: 78.1 -> 78.7 | Improved |
| integrate attention maps with convolution instead of average aggregation (ablation) | KAM-BERT-Base · GLUE test | average score: 78.0 -> 78.7 | Improved |
| set balance weight alpha to 0.2 instead of 0.0 or larger values (ablation) | KAM-BERT-Base · CoLA | score: alpha 0.0: 51.2; 0.2: 53.7; 0.4: 53.5 | Improved |
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
- Integrating Task Specific Information into Pretrained Language Models for Low Resource Fine Tuning (EMNLP 2020 · similarity 0.89)
- Attending to Entities for Better Text Understanding (AAAI 2020 · similarity 0.89)
- Convolutions and Self-Attention: Re-interpreting Relative Positions in Pre-trained Language Models (ACL 2021 · similarity 0.88)
- SparseBERT: Rethinking the Importance Analysis in Self-attention (ICML 2021 · similarity 0.88)
- Selective Attention: Enhancing Transformer through Principled Context Control (NeurIPS 2024 · similarity 0.88)
- Unveiling and Harnessing Hidden Attention Sinks: Enhancing Large Language Models without Training through Attention Calibration (ICML 2024 · similarity 0.87)
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.