Lune

IEEE VIS2023Top-tier venue

TransforLearn: Interactive Visual Tutorial for the Transformer Model

Lin Gao, Zekai Shao, Ziqin Luo, Haibo Hu, Cagatay Turkay, Siming Chen

Abstract

The widespread adoption of Transformers in deep learning, serving as the core framework for numerous large-scale language models, has sparked significant interest in understanding their underlying mechanisms. However, beginners face difficulties in comprehending and learning Transformers due to its complex structure and abstract data representation. We present TransforLearn, the first interactive visual tutorial designed for deep learning beginners and non-experts to comprehensively learn about Transformers. TransforLearn supports interactions for architecture-driven exploration and task-driven exploration, providing insight into different levels of model details and their working processes. It accommodates interactive views of each layer's operation and mathematical formula, helping users to understand the data flow of long text sequences. By altering the current decoder-based recursive prediction results and combining the downstream task abstractions, users can deeply explore model processes. Our user study revealed that the interactions of TransforLearn are positively received. We observe that TransforLearn facilitates users' accomplishment of study tasks and a grasp of key concepts in Transformer effectively.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

5 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Crowdsourced Think-Aloud Studies cites CNN Explainer: Learning Convolutional Neural Networks with Interactive Visualization
  • Fine-Tuned Large Language Model for Visualization System: A Study on Self-Regulated Learning in Education cites Training language models to follow instructions with human feedback
  • An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale cites Language Models are Few-Shot Learners
  • Smartboard: Visual Exploration of Team Tactics with LLM Agent cites Fine-Tuned Large Language Model for Visualization System: A Study on Self-Regulated Learning in Education
  • Transformer Explainer: Learning LLM Transformers with Interactive Visual Explanation and Experimentation cites Language Models are Few-Shot Learners
  • Transformer Explainer: Learning LLM Transformers with Interactive Visual Explanation and Experimentation cites CNN Explainer: Learning Convolutional Neural Networks with Interactive Visualization
  • Training language models to follow instructions with human feedback cites Language Models are Few-Shot Learners
  • ConceptViz: A Visual Analytics Approach for Exploring Concepts in Large Language Models cites CNN Explainer: Learning Convolutional Neural Networks with Interactive Visualization
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers5

  1. Fine-Tuned Large Language Model for Visualization System: A Study on Self-Regulated Learning in EducationLin Gao, Jing Lu, Zekai Shao, Ziyue Lin et al.IEEE VIS 2024 · 27 citations
  2. Smartboard: Visual Exploration of Team Tactics with LLM AgentZiao Liu, Xiao Xie, Moqi He, Wenshuo Zhao et al.IEEE VIS 2024 · 12 citations
  3. Crowdsourced Think-Aloud StudiesZach Cutler, Lane Harrison, Carolina Nobre, Alexander LexCHI 2025 · 4 citations
  4. ConceptViz: A Visual Analytics Approach for Exploring Concepts in Large Language ModelsHaoxuan Li, Zhen Wen, Qiqi Jiang, Chenxiao Li et al.IEEE VIS 2025 · 3 citations
  5. Transformer Explainer: Learning LLM Transformers with Interactive Visual Explanation and ExperimentationAeree Cho, Grace C. Kim, Alexander Karpekov, Seongmin Lee et al.CHI 2026 · 2 citations

Builds on11

  1. Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
  2. Training language models to follow instructions with human feedbackLong Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida et al.NeurIPS 2022 · 24,707 citations
  3. An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn et al.ICLR 2021 · 21,477 citations
  4. What is AI Literacy? Competencies and Design ConsiderationsDuri Long, Brian MagerkoCHI 2020 · 2,947 citations
  5. CNN Explainer: Learning Convolutional Neural Networks with Interactive VisualizationZijie J. Wang, Robert Turko, Omar Shaikh, Haekyu Park et al.IEEE VIS 2020 · 341 citations

Related papers

  1. Transformers from an Optimization PerspectiveYongyi Yang, Zengfeng Huang, David P. WipfNeurIPS 2022 · 44 citations
  2. AttentionViz: A Global View of Transformer AttentionCatherine Yeh, Yida Chen, Aoyu Wu, Cynthia Chen et al.IEEE VIS 2023 · 78 citations
  3. INTENT: Interactive Tensor Transformation SynthesisZhanhui Zhou, Man To Tang, Qiping Pan, Shangyin Tan et al.UIST 2022 · 8 citations
  4. Tuformer: Data-driven Design of Transformers for Improved Generalization or EfficiencyXiaoyu Liu, Jiahao Su, Furong HuangICLR 2022 · 8 citations
  5. Teaching Temporal Logics to Neural NetworksChristopher Hahn, Frederik Schmitt, Jens U. Kreber, Markus Norman Rabe et al.ICLR 2021 · 78 citations
Dusk over the sea between two cliffs drawn in fine vertical lines