mlsanityData to 7 Oct 2026

Attention Flows: Analyzing and Comparing Attention Mechanisms in Language Models

arXiv 2009.07053 ↗First posted 3 Sep 2020cs.HC cs.CLcited by 49

Not on the map. Why?

Abstract (arXiv)

Advances in language modeling have led to the development of deep attention-based models that are performant across a wide variety of natural language processing (NLP) problems. These language models are typified by a pre-training process on large unlabeled text corpora and subsequently fine-tuned for specific tasks. Although considerable work has been devoted to understanding the attention mechanisms of pre-trained models, it is less understood how a model's attention mechanisms change when trained for a target NLP task. In this paper, we propose a visual analytics approach to understanding fine-tuning in attention-based language models. Our visualization, Attention Flows, is designed to support users in querying, tracing, and comparing attention within layers, across layers, and amongst attention heads in Transformer-based language models. To help users gain insight on how a classification decision is made, our design is centered on depicting classification-based attention at the deepest layer and how attention from prior layers flows throughout words in the input. Attention Flows supports the analysis of a single model, as well as the visual comparison between pre-trained and fine-tuned models via their similarities and differences. We use Attention Flows to study attention mechanisms in various sentence understanding tasks and highlight how attention evolves to address the nuances of solving these tasks.

Key facts. Cited by 49 papers in the map (data through 7 Oct 2026). First posted on arXiv 3 Sep 2020.

Builds on

No reference list yet.

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2021: 3; 2022: 8; 2023: 15; 2024: 9; 2025: 8; 2026: 6.

49 papers.

Sort:

By area:

  1. 2023Explainability for Large Language Models: A Surveycited by 331
  2. 2022Interactive and Visual Prompt Engineering for Ad-hoc Task Adaptation with Large Language Modelscited by 70
  3. 2023AttentionViz: A Global View of Transformer Attentioncited by 50
  4. 2023Towards a Mechanistic Interpretation of Multi-Step Reasoning Capabilities of Language Modelscited by 50
  5. 2023Privacy in Large Language Models: Attacks, Defenses and Future Directionscited by 48
  6. 2024Large Language Models for Education: A Surveycited by 32
  7. 2023Foundation Models Meet Visualizations: Challenges and Opportunitiescited by 31
  8. 2023Quantifying Uncertainty in Natural Language Explanations of Large Language Modelscited by 31
  9. 2023How Does Attention Work in Vision Transformers? A Visual Analytics Attemptcited by 29
  10. 2021Dodrio: Exploring Transformer Models with Interactive Visualizationcited by 28
  11. 2023Visual Analytics For Machine Learning: A Data Perspective Surveycited by 25
  12. 2021VisQA: X-raying Vision and Language Reasoning in Transformerscited by 19
37 more
  1. 2022A Unified Understanding of Deep NLP Models for Text Classificationcited by 18
  2. 2021How Transferable are Reasoning Patterns in VQA?cited by 16
  3. 2022Visual Comparison of Language Model Adaptationcited by 14
  4. 2023Why do universal adversarial attacks work on large language models?: Geometry might be the answercited by 13
  5. 2022A context-aware knowledge transferring strategy for CTC-based ASRcited by 12
  6. 2023The Role of Interactive Visualization in Explaining (Large) NLP Models: from Data to Inferencecited by 9
  7. 2024Transformer Explainer: Learning LLM Transformers with Interactive Visual Explanation and Experimentationcited by 9
  8. 2023A Unified Interactive Model Evaluation for Classification, Object Detection, and Instance Segmentation in Computer Visioncited by 8
  9. 2025All You Need is One: Capsule Prompt Tuning with a Single Vectorcited by 8
  10. 2024KnowledgeVIS: Interpreting Language Models by Comparing Fill-in-the-Blank Promptscited by 7
  11. 2022A Visual Analytics System for Improving Attention-based Traffic Forecasting Modelscited by 6
  12. 2022ShortcutLens: A Visual Analytics Approach for Exploring Shortcuts in Natural Language Understanding Datasetcited by 6
  13. 2024iScore: Visual Analytics for Interpreting How Language Models Automatically Score Summariescited by 6
  14. 2023Can Large Language Models Change User Preference Adversarially?cited by 5
  15. 2022Visualizing and Explaining Language Modelscited by 4
  16. 2023Visual Analytics for Efficient Image Exploration and User-Guided Image Captioningcited by 4
  17. 2025Unlearning Comparator: A Visual Analytics System for Comparative Evaluation of Machine Unlearning Methodscited by 4
  18. 2022Visual Analysis of Neural Architecture Spaces for Summarizing Design Principlescited by 3
  19. 2024EL-VIT: Probing Vision Transformer with Interactive Visualizationcited by 3
  20. 2025Model Science: getting serious about verification, explanation and control of AI systemscited by 3
  21. 2026Do Transformers Need Three Projections? Systematic Study of QKV Variantscited by 3
  22. 2026RAGExplorer: A Visual Analytics System for the Comparative Diagnosis of RAG Systemscited by 2
  23. 2023Towards Better Modeling with Missing Data: A Contrastive Learning-based Visual Analytics Perspectivecited by 1
  24. 2023AMPLIFY:Attention-based Mixup for Performance Improvement and Label Smoothing in Transformercited by 1
  25. 2024POEM: Interactive Prompt Optimization for Enhancing Multimodal Reasoning of Large Language Modelscited by 1
  26. 2024JailbreakHunter: A Visual Analytics Approach for Jailbreak Prompts Discovery from Large-Scale Human-LLM Conversational Datasetscited by 1
  27. 2024RuleExplorer: A Scalable Matrix Visualization for Understanding Tree Ensemble Classifierscited by 1
  28. 2025NeuroBreak: Unveil Internal Jailbreak Mechanisms in Large Language Modelscited by 1
  29. 2025VisMoDAl: Visual Analytics for Evaluating and Improving Corruption Robustness of Vision-Language Modelscited by 1
  30. 2025ConceptViz: A Visual Analytics Approach for Exploring Concepts in Large Language Modelscited by 1
  31. 2025Order-Level Attention Similarity Across Language Models: A Latent Commonalitycited by 1
  32. 2024Aeroengine performance prediction using a physical-embedded data-driven methodcited by 0
  33. 2025Visual Attention Exploration in Vision-Based Mamba Modelscited by 0
  34. 2026Visualising Information Flow in Word Embeddings with Diffusion Tensor Imagingcited by 0
  35. 2026Responsible AI for General-Purpose Systems: Overview, Challenges, and A Path Forwardcited by 0
  36. 2026Exposing the Unsaid: Visualizing Hidden LLM Bias through Stochastic Path Aggregationcited by 0
  37. 2026Grounding Time-Series Foundation Models in Digital Twin Topology for Predictive Maintenancecited by 0