Transformers as Unsupervised Learning Algorithms: A study on Gaussian Mixtures
Not on the map. Why?
Abstract (arXiv)
The transformer architecture has demonstrated remarkable capabilities in modern artificial intelligence, among which the capability of implicitly learning an internal model during inference time is widely believed to play a key role in the under standing of pre-trained large language models. However, most recent works have been focusing on studying supervised learning topics such as in-context learning, leaving the field of unsupervised learning largely unexplored. This paper investigates the capabilities of transformers in solving Gaussian Mixture Models (GMMs), a fundamental unsupervised learning problem through the lens of statistical estimation. We propose a transformer-based learning framework called TGMM that simultaneously learns to solve multiple GMM tasks using a shared transformer backbone. The learned models are empirically demonstrated to effectively mitigate the limitations of classical methods such as Expectation-Maximization (EM) or spectral algorithms, at the same time exhibit reasonable robustness to distribution shifts. Theoretically, we prove that transformers can approximate both the EM algorithm and a core component of spectral methods (cubic tensor power iterations). These results bridge the gap between practical success and theoretical understanding, positioning transformers as versatile tools for unsupervised learning.
Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Builds on 35 of its 53 references that are in the map. First posted on arXiv 17 May 2025.
Builds on
35 of 53 references.
References · 35
- 2017Attention Is All You Needcited by 60,361
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,718
- 2017Decoupled Weight Decay Regularizationcited by 1,831
- 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Dualitycited by 1,336
- 2021Transformers in Vision: A Surveycited by 1,013
- 2020Meta-Learning in Neural Networks: A Surveycited by 950
- 2021An Explanation of In-context Learning as Implicit Bayesian Inferencecited by 938
- 2022Transformers learn in-context by gradient descentcited by 732
- 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 715
- 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 684
23 more
- 2020A Survey on Visual Transformercited by 654
- 2023Transformers as Statisticians: Provable In-Context Learning with In-Context Algorithm Selectioncited by 298
- 2023Transformers as Algorithms: Generalization and Stability in In-context Learningcited by 222
- 2014Statistical guarantees for the EM algorithm: From population to sample-based analysiscited by 133
- 2024Can Mamba Learn How to Learn? A Comparative Study on In-Context Learning Taskscited by 105
- 2023Transformers as Decision Makers: Provable In-Context Reinforcement Learning via Supervised Pretrainingcited by 83
- 2023A Study on ReLU and Softmax in Transformercited by 53
- 2023A Survey on Transformers in Reinforcement Learningcited by 50
- 2019Optimality of Spectral Clustering in the Gaussian Mixture Modelcited by 42
- 2024Transformers are Minimax Optimal Nonparametric In-Context Learnerscited by 37
- 2016Local Maxima in the Likelihood of Gaussian Mixture Models: Structural Results and Algorithmic Consequencescited by 34
- 2024How Well Can Transformers Emulate In-context Newton's Method?cited by 25
- 2020TraDE: Transformers for Density Estimationcited by 18
- 2024U-Nets as Belief Propagation: Efficient Classification, Denoising, and Diffusion in Generative Hierarchical Modelscited by 17
- 2023Transformers can optimally learn regression mixture modelscited by 15
- 2021Deep Conditional Gaussian Mixture Model for Constrained Clusteringcited by 14
- 2021Improved Convergence Guarantees for Learning Gaussian Mixture Models by EM and Gradient EMcited by 11
- 2025Solving Empirical Bayes via Transformerscited by 11
- 2020Statistical Learning Guarantees for Compressive Clustering and Compressive Mixture Modelingcited by 8
- 2024Density estimation with LLMs: a geometric investigation of in-context learning trajectoriescited by 6
- 2025Learning Spectral Methods by Transformerscited by 6
- 2025Transformers versus the EM Algorithm in Multi-class Clusteringcited by 5
- 2024In-Context Learning of Energy Functionscited by 2
Built on by
Citing papers per year: 2026: 3.
3 papers.
- 2026Unlabeled Data Can Provably Enhance In-Context Learning of Transformerscited by 2
- 2026Are In-Context Images Worth 10 Dimensions?cited by 0
- 2026Neural expectation-maximization and meta-modelscited by 0
- 2026Neural expectation-maximization and meta-models8 Oct 2026
- 2026Are In-Context Images Worth 10 Dimensions?29 Sep 2026
- 2026Unlabeled Data Can Provably Enhance In-Context Learning of Transformers15 Jan 2026