|国家预印本平台
首页|AttentionViz: A Global View of Transformer Attention

AttentionViz: A Global View of Transformer Attention

AttentionViz: A Global View of Transformer Attention

来源:Arxiv_logoArxiv
英文摘要

Transformer models are revolutionizing machine learning, but their inner workings remain mysterious. In this work, we present a new visualization technique designed to help researchers understand the self-attention mechanism in transformers that allows these models to learn rich, contextual relationships between elements of a sequence. The main idea behind our method is to visualize a joint embedding of the query and key vectors used by transformer models to compute attention. Unlike previous attention visualization techniques, our approach enables the analysis of global patterns across multiple input sequences. We create an interactive visualization tool, AttentionViz (demo: http://attentionviz.com), based on these joint query-key embeddings, and use it to study attention mechanisms in both language and vision transformers. We demonstrate the utility of our approach in improving model understanding and offering new insights about query-key interactions through several application scenarios and expert feedback.

Martin Wattenberg、Aoyu Wu、Cynthia Chen、Yida Chen、Fernanda Vi¨|gas、Catherine Yeh

计算技术、计算机技术

Martin Wattenberg,Aoyu Wu,Cynthia Chen,Yida Chen,Fernanda Vi¨|gas,Catherine Yeh.AttentionViz: A Global View of Transformer Attention[EB/OL].(2023-05-04)[2025-05-19].https://arxiv.org/abs/2305.03210.点此复制

评论