TRANSFORMER EXPLAINER: Interactive Learning of Text-Generative Models

Transformers have revolutionized machine learning, yet their inner workings remain opaque to many. We present TRANSFORMER EXPLAINER, an interactive visualization tool designed for non-experts to learn about Transformers through the GPT-2 model. Our tool helps users understand complex Transformer concepts by integrating a model overview and smooth transitions across abstraction levels of math operations and model structures. It runs a live GPT-2 model locally in the user’s browser, empowering users to experiment with their own input and observe in real-time how the internal components and parameters of the Transformer work together to predict the next tokens. 125,000 users have used our open-source tool at https://poloclub.github.io/ transformer-explainer/.

Authors

Institutions

Publication Details

Journal
Proceedings of the AAAI Conference on Artificial Intelligence
Published
2025-04-11
DOI
https://doi.org/10.1609/aaai.v39i28.35347
Citations
6
Primary Topic
Natural Language Processing Techniques
Type
article
Field-Weighted Citation Impact
5.32
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

TRANSFORMER EXPLAINER: Interactive Learning of Text-Generative Models

Duen Horng Chau, Alec Helbling, Benjamin Hoover, Grace Kim et al.
6 citations
Proceedings of the AAAI Conference on Artificial Intelligence
Natural Language Processing Techniques
5.32
article

TRANSFORMER EXPLAINER: Interactive Learning of Text-Generative Models

Duen Horng Chau, Alec Helbling, Benjamin Hoover, Grace Kim, Zijie J. Wang, Seongmin Lee, Aeree Cho, Alexander Karpekov
article en
6 citations

Abstract

Transformers have revolutionized machine learning, yet their inner workings remain opaque to many. We present TRANSFORMER EXPLAINER, an interactive visualization tool designed for non-experts to learn about Transformers through the GPT-2 model. Our tool helps users understand complex Transformer concepts by integrating a model overview and smooth transitions across abstraction levels of math operations and model structures. It runs a live GPT-2 model locally in the user’s browser, empowering users to experiment with their own input and observe in real-time how the internal components and parameters of the Transformer work together to predict the next tokens. 125,000 users have used our open-source tool at https://poloclub.github.io/ transformer-explainer/.

Proceedings of the AAAI Conference on Artificial IntelligenceVol. 39(28)
Georgia Institute of Technology (US), OpenAI (United States) (US)
Openalex Percentile: Top 3%
Natural Language Processing Techniques
5.32
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.