Transformers versus the EM Algorithm in Multi-class Clustering
Not on the map. Why?
Abstract (arXiv)
LLMs demonstrate significant inference capacities in complicated machine learning tasks, using the Transformer model as its backbone. Motivated by the limited understanding of such models on the unsupervised learning problems, we study the learning guarantees of Transformers in performing multi-class clustering of the Gaussian Mixture Models. We develop a theory drawing strong connections between the Softmax Attention layers and the workflow of the EM algorithm on clustering the mixture of Gaussians. Our theory provides approximation bounds for the Expectation and Maximization steps by proving the universal approximation abilities of multivariate mappings by Softmax functions. In addition to the approximation guarantees, we also show that with a sufficient number of pre-training samples and an initialization, Transformers can achieve the minimax optimal rate for the problem considered. Our extensive simulations empirically verified our theory by revealing the strong learning capacities of Transformers even beyond the assumptions in the theory, shedding light on the powerful inference capacities of LLMs.
Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Builds on 24 of its 35 references that are in the map. First posted on arXiv 9 Feb 2025.
Builds on
24 of 35 references.
References · 24
- 2017Attention Is All You Needcited by 59,932
- 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 671
- 2019Are Transformers universal approximators of sequence-to-sequence functions?cited by 404
- 2023Trained Transformers Learn Linear Models In-Contextcited by 331
- 2014Breaking the Curse of Dimensionality with Convex Neural Networkscited by 329
- 2023Transformers as Statisticians: Provable In-Context Learning with In-Context Algorithm Selectioncited by 291
- 2023Transformers learn to implement preconditioned gradient descent for in-context learningcited by 274
- 2022Transformers Learn Shortcuts to Automatacited by 260
- 2023Transformers as Algorithms: Generalization and Stability in In-context Learningcited by 220
- 2023In-Context Convergence of Transformerscited by 112
- 2021Self-Attention Networks Can Process Bounded Hierarchical Languagescited by 105
- 2022Vision Transformers provably learn spatial structurecited by 92
12 more
- 2020On the Computational Power of Transformers and its Implications in Sequence Modelingcited by 85
- 2023How Do Transformers Learn Topic Structure: Towards a Mechanistic Understandingcited by 85
- 2024Training Dynamics of Multi-Head Softmax Attention for In-Context Learning: Emergence, Convergence, and Optimalitycited by 71
- 2016Statistical and Computational Guarantees of Lloyd's Algorithm and its Variantscited by 52
- 2023Image Clustering with External Guidancecited by 36
- 2020Deep Transformation-Invariant Clusteringcited by 26
- 2024How Well Can Transformers Emulate In-context Newton's Method?cited by 23
- 2024LSEnet: Lorentz Structural Entropy Neural Network for Deep Graph Clusteringcited by 20
- 2023A Mechanism for Sample-Efficient In-Context Learning for Sparse Retrieval Taskscited by 17
- 2024One-Layer Transformer Provably Learns One-Nearest Neighbor In Contextcited by 14
- 2024How Transformers Utilize Multi-Head Attention in In-Context Learning? A Case Study on Sparse Linear Regressioncited by 13
- 2025Learning Spectral Methods by Transformerscited by 3
Built on by
Citing papers per year: 2025: 2; 2026: 1.
3 papers.
- 2026Unlabeled Data Can Provably Enhance In-Context Learning of Transformers15 Jan 2026
- 2025Attention-based clustering19 May 2025
- 2025Transformers as Unsupervised Learning Algorithms: A study on Gaussian Mixtures17 May 2025