Attention Flows: Analyzing and Comparing Attention Mechanisms in Language Models
Joseph F. DeRose, Jiayao Wang, Matthew Berger
摘要
Fig. 1: Our approach supports the comparison of attention mechanisms in language models. We compare the BERT model (turquoise) and its fine-tuned counterpart (purple) tasked with determining question-answer pair validity (a). By selecting the word "what", in contrast to BERT the fine-tuned model attends to the answer "jacksonvillians or jaxons" (c), with full sentence context shown in (b).
Abstract-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.
问问这篇 Paper
智能体会读完全文。
Lune 把这篇 Paper 索引到了每一个公式,引用它的顶会 Paper 也一样。你提问,回答直接引用原文。
引用它的顶会 Paper19
- Interactive and Visual Prompt Engineering for Ad-hoc Task Adaptation with Large Language ModelsHendrik Strobelt, Albert Webson, Victor Sanh, Benjamin Hoover 等IEEE VIS 2022 · 被引用 191 次
- AttentionViz: A Global View of Transformer AttentionCatherine Yeh, Yida Chen, Aoyu Wu, Cynthia Chen 等IEEE VIS 2023 · 被引用 78 次
- VisQA: X-raying Vision and Language Reasoning in TransformersTheo Jaunet, Corentin Kervadec, Romain Vuillemot, Grigory Antipov 等IEEE VIS 2021 · 被引用 30 次
- A Unified Interactive Model Evaluation for Classification, Object Detection, and Instance Segmentation in Computer VisionChangjian Chen, Yukai Guo, Fengyuan Tian, Shilong Liu 等IEEE VIS 2023 · 被引用 28 次
- A Visual Analytics System for Improving Attention-based Traffic Forecasting ModelsSeungmin Jin, Hyunwook Lee, Cheonbok Park, Hyeshin Chu 等IEEE VIS 2022 · 被引用 17 次
它引用的顶会 Paper3
- Questioning the AI: Informing Design Practices for Explainable AI User ExperiencesQ. Vera Liao, Daniel M. Gruen, Sarah MillerCHI 2020 · 被引用 758 次
- On Identifiability in TransformersGino Brunner, Yang Liu, Damian Pascual, Oliver Richter 等ICLR 2020 · 被引用 210 次
- SenseBERT: Driving Some Sense into BERTYoav Levine, Barak Lenz, Or Dagan, Ori Ram 等ACL 2020 · 被引用 27 次
相关 Paper
- Evolving Attention with Residual ConvolutionsYujing Wang, Yaming Yang, Jiangang Bai, Mingliang Zhang 等ICML 2021 · 被引用 43 次
- VL-InterpreT: An Interactive Visualization Tool for Interpreting Vision-Language TransformersEstelle Aflalo, Meng Du, Shao-Yen Tseng, Yongfei Liu 等CVPR 2022 · 被引用 34 次
- The Heads Hypothesis: A Unifying Statistical Approach Towards Understanding Multi-Headed Attention in BERTMadhura Pande, Aakriti Budhraja, Preksha Nema, Pratyush Kumar 等AAAI 2021 · 被引用 21 次
- Explaining Contextualization in Language Models using Visual AnalyticsRita Sevastjanova, Aikaterini-Lida Kalouli, Christin Beck, Hanna Schäfer 等ACL 2021
- What's in the Image? A Deep-Dive into the Vision of Vision Language ModelsOmri Kaduri, Shai Bagon, Tali DekelCVPR 2025
