atlas

Research map / Architectures and efficiency / Attention and transformers

Attention Meets Post-hoc Interpretability: A Mathematical Perspective

ICML 2024 · Architectures and efficiency › Attention and transformers · approach: Theory of self-attention dynamics · 4 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Mathematically analyzes a single-layer multi-head attention classifier to derive closed-form gradient and LIME explanations and compares them with attention-based explanations.

Problem

Whether attention weights can serve as faithful explanations of transformer predictions, and how they relate to post-hoc explanations (gradient-based and LIME), which has been debated mainly through empirical experiments without theoretical grounding.

Approach

Derives explicit expressions for gradient-based explanations (Gradient, Gradient x Input) of a single-layer multi-head attention classifier and asymptotic limit coefficients for LIME, showing how each depends on attention, value vectors, and the output linear layer, and contrasting these with raw attention-based explanations.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
add skip connections (ablation)Single-layer attention classifier · IMDbperformanceNo clear effect

Surprising findings

Limitations

Experimental setup

Datasets: IMDb

Benchmarks: IMDb

Metrics: norm-2 error between LIME weights and theoretical approximat accuracy Pearson correlation

Baselines: attention-based explanations (alpha-avg, alpha-max) Gradient Gradient x Input LIME

Builds on: LIME Transformer Attention is not explanation debate (Jain & Wallace)

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