Transformer Explainer: Learning LLM Transformers with Interactive Visual Explanation and Experimentation

Aeree Cho, Grace C. Kim, Alexander Karpekov, Seongmin Lee, Alec Helbling, Benjamin Hoover, Zijie J. Wang, Minsuk Kahng and Duen Horng Chau

Abstract

The Transformer architecture underpins modern large language models powering state-of-the-art text generation and AI applications. However, its complexity makes it difficult for non-experts to learn. Existing resources often lack interactivity, rely on static descriptions of simplified architectures, or fail to reflect models’ behavior with real data. To address this gap, we introduce Transformer Explainer, an interactive visualization tool for non-experts to learn Transformers. The tool integrates an overview illustrating the Transformer’s data flow with on-demand explanations that gradually reveal mathematical details. Smooth transitions across abstraction levels highlight the interplay between high-level structures and low-level operations. Running a live GPT-2 instance directly in the browser, Transformer Explainer empowers learners to experiment with custom input and hyperparameters without setup, observing next-token predictions in real time. A 90-participant user study showed that our tool offered significant advantages in improving user understanding and engagement. Transformer Explainer has attracted over 490,000 users.

Venue
CHI 2026
Volume
Proceedings of the 2026 CHI Conference on Human Factors in Computing Systems
DOI
10.1145/3772318.3791725
PDF
https://dl.acm.org/doi/pdf/10.1145/3772318.3791725
Anthology ID
2026.chi.1416

Cite

@inproceedings{cho-etal-2026-transformer,
    title = {{Transformer Explainer: Learning LLM Transformers with Interactive Visual Explanation and Experimentation}},
    author = {Aeree Cho and Grace C. Kim and Alexander Karpekov and Seongmin Lee and Alec Helbling and Benjamin Hoover and Zijie J. Wang and Minsuk Kahng and Duen Horng Chau},
    booktitle = {Proceedings of the 2026 CHI Conference on Human Factors in Computing Systems},
    isbn = {9798400722783},
    year = {2026},
    publisher = {Association for Computing Machinery},
    address = {New York, NY, USA},
    doi = {10.1145/3772318.3791725},
    url = {https://doi.org/10.1145/3772318.3791725},
    abstract = {The Transformer architecture underpins modern large language models powering state-of-the-art text generation and AI applications. However, its complexity makes it difficult for non-experts to learn. Existing resources often lack interactivity, rely on static descriptions of simplified architectures, or fail to reflect models’ behavior with real data. To address this gap, we introduce Transformer Explainer, an interactive visualization tool for non-experts to learn Transformers. The tool integrates an overview illustrating the Transformer’s data flow with on-demand explanations that gradually reveal mathematical details. Smooth transitions across abstraction levels highlight the interplay between high-level structures and low-level operations. Running a live GPT-2 instance directly in the browser, Transformer Explainer empowers learners to experiment with custom input and hyperparameters without setup, observing next-token predictions in real time. A 90-participant user study showed that our tool offered significant advantages in improving user understanding and engagement. Transformer Explainer has attracted over 490,000 users.}
}