AAAI 2025technical4 citations

TRANSFORMER EXPLAINER: Interactive Learning of Text-Generative Models

Aeree Cho, Grace C. Kim, Alexander Karpekov, Alec Helbling, Zijie J. Wang, Seongmin Lee, Benjamin Hoover, Duen Horng (Polo) Chau

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

BibTeX
@article{Cho_Kim_Karpekov_Helbling_Wang_Lee_Hoover_Chau_2025, title={TRANSFORMER EXPLAINER: Interactive Learning of Text-Generative Models}, volume={39}, url={https://ojs.aaai.org/index.php/AAAI/article/view/35347}, DOI={10.1609/aaai.v39i28.35347}, abstractNote={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/.}, number={28}, journal={Proceedings of the AAAI Conference on Artificial Intelligence}, author={Cho, Aeree and Kim, Grace C. and Karpekov, Alexander and Helbling, Alec and Wang, Zijie J. and Lee, Seongmin and Hoover, Benjamin and Chau, Duen Horng (Polo)}, year={2025}, month={Apr.}, pages={29625-29627} }
TRANSFORMER EXPLAINER: Interactive Learning of Text-Generative Models · AAAI 2025