A mathematical perspective on Transformers
2023/12/17 by Borjan Geshkovski, Cyril Letrouit, Geshkovski, Borjan +5 · 5 voices · 55 citations
Computer Science · #Topic Modeling #cs.LG #math.AP #math.DS
paper · pdf · doi:10.48550/arxiv.2312.10794
openalex publication_date 2023/12/17 · openalex created_date 2025/10/10 · openalex updated_date 2026/07/30
Abstract
Transformers play a central role in the inner workings of large language models. We develop a mathematical framework for analyzing Transformers based on their interpretation as interacting particle systems, which reveals that clusters emerge in long time. Our study explores the underlying theory and offers new perspectives for mathematicians as well as computer scientists.
Cited by
Discussions
- A Mathematical Perspective on Transformers [hn, 82 points, 6 comments]
- Just got done reading arxiv.org/abs/2312.10794 Part One (aka Sections 2,3) provide maybe the nicest and most intuitive descriptions of transformers that I've seen. Simple, easy, direct; no fiddle-fadd [bsky, 1 points, 1 comments]
- very cool paper on math and transformers arxiv.org/abs/2312.10794 [bsky, 0 points, 0 comments]
- This is a nice trick & observation I hadn't seen before: look at depth into the network as "time," and the way a transformer moves (normalized) vectors around can look like an interacting particle sys [bsky, 0 points, 0 comments]
- Have you seen this : arxiv.org/abs/2312.10794 Still one of my favorites on it [bsky, 0 points, 0 comments]
Related