upcarta
  • Sign In
  • Sign Up
  • Explore
  • Search

AttentionViz: A Global View of Transformer Attention

  • Paper
  • May 4, 2023
  • #UserExperience #ComputerScience
Martin Wattenberg
@wattenberg
(Author)
Catherine Yeh
@CatherineYeh
(Author)
Yida Chen
@YidaChen
(Author)
Aoyu Wu
@AoyuWu
(Author)
Fernanda Viégas
@viegasf
(Author)
arxiv.org
Read on arxiv.org
1 Recommender
1 Mention
Transformer models are revolutionizing machine learning, but their inner workings remain mysterious. In this work, we present a new visualization technique designed to help research... Show More

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, 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.

Show Less
Recommend
Post
Save
Complete
Collect
Mentions
See All
Neel Nanda (at ICLR) @NeelNanda5 · May 12, 2023
  • Post
  • From Twitter
I don't think I've mastered the skill of interpreting these visualisations, but they're SO PRETTY. Great work by Catherine Yeh!
  • upcarta ©2025
  • Home
  • About
  • Terms
  • Privacy
  • Cookies
  • @upcarta