Research map / Architectures and efficiency / Attention and transformers
Generalized Attention Flow: Feature Attribution for Transformer Models via Maximum Flow
Behrooz Azarkhalili, Maxwell Libbrecht
University of California, Berkeley · Simon Fraser 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 |
|---|---|---|---|
| use attention x attention-gradient capacities (AGF) instead of raw attention (AF) (ablation) | Attention Flow · SST2, mask top-k% | AOPC: 0.371 -> 0.427 | Improved |
| use attention x attention-gradient capacities (AGF) instead of raw attention (AF) (ablation) | Attention Flow · IMDB, mask top-k% | AOPC: 0.313 -> 0.498 | Improved |
| use attention-gradient capacities (GF) instead of raw attention (AF) (ablation) | Attention Flow · IMDB, mask top-k% | AOPC: 0.313 -> 0.491 | Improved |
| use attention-gradient capacities (GF) instead of raw attention (AF) (ablation) | Attention Flow · Yelp, mask top-k% | AOPC: 0.398 -> 0.396 | No clear effect |
| add the gradient product (AGF vs GF) (ablation) | GF · Amazon, mask top-k% | AOPC: 0.421 -> 0.439 | Improved |
| AGF vs best baseline on Yelp | AGF · Yelp, mask top-k% | AOPC: 0.443 (PartialLRP) vs 0.429 | Hurt |
| AGF vs best baseline on Yelp | AGF · Yelp, mask top-k% | LOdds: -2.134 (AttCAT) vs -1.982 | Hurt |
| AGF vs best baseline on SST2 | AGF · SST2, mask top-k% | AOPC: 0.405 (AttCAT) -> 0.427 | Improved |
| AGF vs best baseline on IMDB | AGF · IMDB, mask top-k% | LOdds: -1.642 (AttCAT) -> -1.849 | Improved |
| AGF vs best baseline when masking bottom tokens | AGF · IMDB, mask bottom-k% | AOPC: 0.026 (IG) -> 0.014 | Improved |
| AGF vs best baseline when masking bottom tokens | AGF · Yelp, mask bottom-k% | AOPC: 0.103 (AttCAT) vs 0.121 | Hurt |
| log-barrier regularization of max flow | Attention Flow · Yelp, ASO significance test | AOPC: epsilon_min 0.813 | No clear effect |
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.
- AttCAT — AttCAT: Explaining Transformers via Attentive Class Activation Tokens (NeurIPS 2022) · better on 7 of 9 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 attention head and block redesign
Do attention redesigns still help at large scale, or only in small models and carefully set conditions?
- Theory rests on simplifying assumptions that real transformers break. · 13 papers state it
- Tested only on small models, not at LLM scale. · 12 papers state it
- Gains over the baseline attention are small or mixed. · 10 papers state it
Closest papers by meaning
- Transformers Learn Nonlinear Features In Context: Nonconvex Mean-field Dynamics on the Attention Landscape (ICML 2024 · similarity 0.84)
- In-context Convergence of Transformers (ICML 2024 · similarity 0.84)
- DePass: Unified Feature Attributing by Simple Decomposed Forward Pass (NeurIPS 2025 · similarity 0.84)
- Unraveling the Gradient Descent Dynamics of Transformers (NeurIPS 2024 · similarity 0.84)
- On the Role of Attention Masks and LayerNorm in Transformers (NeurIPS 2024 · similarity 0.83)
- Graph Convolutions Enrich the Self-Attention in Transformers! (NeurIPS 2024 · similarity 0.83)
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.