Minimal 2D transformer visualizes every step of its computation

CatAstro_Piyush · x · 2026-11-24

@TMoldwin and Raneem built a minimal transformer model in which every component is restricted to two dimensions, allowing complete visualization of every single step of its computation — including the 2D prediction-entropy surface shown in the chart.

An interactive site is live for observing the toy model's internal activations and prediction distributions, making it a rare teaching resource for building intuition about transformer internals.

Original post →

More from Research

Research channel →