paper-with-me

홈 › Papers

Transformers Learn Latent Mixture Models In-Context via Mirror Descent

2026-04-12 · Francesco D'Angelo, Nicolas Flammarion arxiv

Sequence modelling requires determining which past tokens are causally relevant from the context and their importance: a process inherent to the attention layers in transformers, yet whose underlying learned mechanisms remain poorly understood. In this work, we formalize the task of estimating token importance as an in-context learning problem by introducing a framework based on Mixture of Transition Distributions, where a latent variable determines the influence of past tokens on the next. The distribution over this latent variable is parameterized by unobserved mixture weights that transformers must learn in-context. We demonstrate that transformers can implement Mirror Descent to learn these weights from the context. Specifically, we give an explicit construction of a three-layer transformer that exactly implements one step of Mirror Descent and prove that the resulting estimator is a first-order approximation of the Bayes-optimal predictor. Corroborating our construction and its learnability via gradient descent, we empirically show that transformers trained from scratch learn solutions consistent with our theory: their predictive distributions, attention patterns, and learned transition matrix closely match the construction, while deeper models achieve performance comparable to multi-step Mirror Descent.

📄 PDF Abstract BibTeX arXiv:2604.10848

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

EVA01: Unified Native 3D Understanding and Generation via Mixture-of-Transformers

2026-05-16 · Zongyuan Yang, Mingjing Yi, Wanli Ma, Chenzhuo Fan 외 arxiv

This paper addresses the challenge of integrating 3D meshes as a native modality within Multimodal Large Language Models (MLLMs). Diffusion-based large reconstruction models decouple semantic understanding from geometric…

3D Generation

Towards 3D Acceleration for low-power Mixture-of-Experts and Multi-Head Attention Spiking Transformers

2024-12-07 · Boxun Xu, Junyoung Hwang, Pruek Vanna-iampikul, Yuxuan Yin 외

Spiking Neural Networks(SNNs) provide a brain-inspired and event-driven mechanism that is believed to be critical to unlock energy-efficient deep learning. The mixture-of-experts approach mirrors the parallel distributed…

Mixture-of-Experts

Provable In-context Learning for Mixture of Linear Regressions using Transformers

2024-10-18 · Yanhao Jin, Krishnakumar Balasubramanian, Lifeng Lai

We theoretically investigate the in-context learning capabilities of transformers in the context of learning mixtures of linear regression models. For the case of two mixtures, we demonstrate the existence of transformer…

In-Context Learning

Mirror Descent with Relative Smoothness in Measure Spaces, with application to Sinkhorn and EM

2022-06-17 · Pierre-Cyril Aubin-Frankowski, Anna Korba, Flavien Léger

Many problems in machine learning can be formulated as optimizing a convex functional over a vector space of measures. This paper studies the convergence of the mirror descent algorithm in this infinite-dimensional setti…

On the Training Convergence of Transformers for In-Context Classification of Gaussian Mixtures

2024-10-15 · Wei Shen, Ruida Zhou, Jing Yang, Cong Shen

Although transformers have demonstrated impressive capabilities for in-context learning (ICL) in practice, theoretical understanding of the underlying mechanism that allows transformers to perform ICL is still in its inf…

In-Context Learning