Thinking like Transformers
Transformer models are foundational to AI systems. There are now countless explanations of “how transformers work?” in the sense of the architecture diagram at the heart of transformers. However this diagram does not provide any intuition into the computational model of this framework. As researchers become interested in how Transformers work, gaining intuition into their mechanisms becomes increasingly useful. Thinking like Transformers proposes a computational framework for Transformer-like calculations. The framework uses discrete computation to simulate Transformer computations. The resulting language RASP is a programming language where every program compiles down to a specific Transformer. In this blog post, I reimplemented a variant of RASP in Python (RASPy). The language is roughly compatible with the original version, but with some syntactic changes that I thought were fun. With this language, the author of the work Gail Weiss, provided a challenging set of puzzles to walk thr
Thinking like Transformer Thinking Like Transformers Paper by Gail Weiss, Yoav Goldberg, Eran Yahav Blog by Sasha Rush and Gail Weiss Library and Interactive Notebook: srush/raspy Transformer models are foundational to AI systems. There are now countless explanations of “how transformers work?” in the sense of the architecture diagram at the heart of transformers. svg However this diagram does not provide any intuition into the computational model of this framework. As researchers become interested in how Transformers work, gaining intuition into their mechanisms becomes increasingly useful. T
saved by
- Winnie Xu
- James Rogers
- brunella k
- Aryan Naik
- Anosha Rahim
- Benedict Neo
- Jacob G-W
- Eowyn Dean
- Sarah
- Davis Brown
related reading
- A Mathematical Framework for Transformer Circuitstransformer-circuits.pub
- The Illustrated Transformer – Jay Alammar – Visualizing machine learning one concept at a time.jalammar.github.io
- Transformers from Scratche2eml.school
- Transformer Explainer: LLM Transformer Model Visually Explainedpoloclub.github.io
- Thinking Like Transformersarxiv.org
- The Annotated Transformernlp.seas.harvard.edu
- Transformers from scratch | peterbloem.nlpeterbloem.nl
- transformer_attention.pdfarxiv.org
- Transformer Circuits Threadtransformer-circuits.pub
- Everything About Transformerskrupadave.com
- Inside the Transformer: The Life of a Token - Aleksa Gordićaleksagordic.com
- Transformers Laid Outgoyalpramod.github.io