Neural expectation-maximization and meta-models
Zhuolin Fu
Key points
From the paper's conclusion- We further establish an EM correspondence at the level of depth: each layer updates latent representations in an E-step-like forward pass, while the transition $\theta^{(l)} \to \theta^{(l+1)}$ across layers acts as an implicit M-step.
Abstract
We interpret Transformer networks as learned approximations to a hybrid probabilistic-inference procedure that combines max-product Loopy Belief Propagation (LBP) with Expectation--Maximization (EM). In this view, a Transformer performs inference in partially observed Markov Random Fields (MRFs) whose structure and parameters are not given a priori but are inferred from data. We show that self-attention implements a differentiable approximation to max-product LBP on an input-conditioned, dynamically structured MRF, with attention weights encoding learned structural affinities. We further establish an EM correspondence at the level of depth: each layer updates latent representations in an E-step-like forward pass, while the transition $\theta^{(l)} \to \theta^{(l+1)}$ across layers acts as an implicit M-step. Building on this interpretation, we introduce \emph{meta-models}, a design paradigm in which inputs generate instance-specific parameters, unifying mechanisms such as self-attention, mixture-of-experts, and gated units within a single framework. Empirical results support the proposed perspective.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Towards interpreting any residual stream direction by scaling activation inversionarXiv · 2026
- A phase diagram for training and inference in language modelsarXiv · 2026
- The Transformer Paradigm: Dynamic Processing and a New Principle of InferencearXiv · 2026
- Understanding Mixture-of-Experts Language Models Beyond Expert BoundariesarXiv · 2026
- BriLLM-MetaPred: A Representation-Prediction Unity Language Model with Adaptive Self-MeasurementarXiv · 2026
- Meta-Amortized Cognitive ModelingarXiv · 2026