What is attention rollout and how is it used for interpretability in Vision Transformers?
Updated May 15, 2026
Short answer
Attention rollout aggregates attention maps across layers to trace information flow in ViTs.
Deep explanation
In Vision Transformers, each layer produces attention matrices showing token interactions. However, raw attention is hard to interpret. Attention rollout multiplies attention matrices across layers to compute effective global influence of input patches on outputs. This helps visualize which image regions contribute most to final predictions, improving model explainability.
Unlock with a Pro subscription to view this section.
View pricingReal-world example
No real-world example available yet.
Unlock with a Pro subscription to view this section.
Upgrade to ProCommon mistakes
No common mistakes listed yet.
Unlock with a Pro subscription to view this section.
Upgrade to ProFollow-up questions
No follow-up questions available yet.
Unlock with a Pro subscription to view this section.
Upgrade to Pro