mlsanityData to 7 Oct 2026

Multi-layer Cross-attention is Provably Optimal for Multi-modal In-context Learning

arXiv 2602.04872 ↗First posted 4 Feb 2026stat.ML cs.AI cs.LGcited by 2

Not on the map. Why?

Abstract (arXiv)

Recent progress has rapidly advanced our understanding of the mechanisms underlying in-context learning in modern attention-based neural networks. However, existing results focus exclusively on unimodal data; in contrast, the theoretical underpinnings of in-context learning for multi-modal data remain poorly understood. We introduce a mathematically tractable framework for studying multi-modal learning and explore when transformer-like architectures can recover Bayes-optimal performance in-context. To model multi-modal problems, we assume the observed data arises from a latent factor model. Our first result comprises a negative take on expressibility: we prove that single-layer, linear self-attention fails to recover the Bayes-optimal predictor uniformly over the task distribution. To address this limitation, we introduce a novel, linearized cross-attention mechanism, which we study in the regime where both the number of cross-attention layers and the context length are large. We show that this cross-attention mechanism is provably Bayes optimal when optimized using gradient flow. Our results underscore the benefits of depth for in-context learning and establish the provable utility of cross-attention for multi-modal distributions.

Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Builds on 48 of its 53 references that are in the map. First posted on arXiv 4 Feb 2026.

Builds on

48 of 53 references.

References · 48

  1. 2017Attention Is All You Needcited by 59,932
  2. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
  3. 2020Language Models are Few-Shot Learnerscited by 32,199
  4. 2022Flamingo: a Visual Language Model for Few-Shot Learningcited by 4,337
  5. 2019ViLBERT: Pretraining Task-Agnostic Visiolinguistic Representations for Vision-and-Language Taskscited by 2,219
  6. 2019LXMERT: Learning Cross-Modality Encoder Representations from Transformerscited by 1,548
  7. 2021Perceiver: General Perception with Iterative Attentioncited by 1,089
  8. 2021An Explanation of In-context Learning as Implicit Bayesian Inferencecited by 915
  9. 2020On Layer Normalization in the Transformer Architecturecited by 906
  10. 2013Exact solutions to the nonlinear dynamics of learning in deep linear neural networkscited by 748
  11. 2022Transformers learn in-context by gradient descentcited by 714
  12. 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 700
36 more
  1. 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 671
  2. 2018On the Global Convergence of Gradient Descent for Over-parameterized Models using Optimal Transportcited by 422
  3. 2019Algorithm Unrolling: Interpretable, Efficient Deep Learning for Signal and Image Processingcited by 411
  4. 2023Trained Transformers Learn Linear Models In-Contextcited by 331
  5. 2023Transformers as Statisticians: Provable In-Context Learning with In-Context Algorithm Selectioncited by 291
  6. 2023Transformers learn to implement preconditioned gradient descent for in-context learningcited by 274
  7. 2023Multimodal Foundation Models: From Specialists to General-Purpose Assistantscited by 247
  8. 2024CharXiv: Charting Gaps in Realistic Chart Understanding in Multimodal LLMscited by 229
  9. 2023Transformers as Algorithms: Generalization and Stability in In-context Learningcited by 220
  10. 2023Handbook of Convergence Theorems for (Stochastic) Gradient Methodscited by 158
  11. 2018Contextual Stochastic Block Modelscited by 134
  12. 2023In-Context Convergence of Transformerscited by 112
  13. 2023How Many Pretraining Tasks Are Needed for In-Context Learning of Linear Regression?cited by 93
  14. 2018CentralNet: a Multilayer Approach for Multimodal Fusioncited by 86
  15. 2024Training Dynamics of Multi-Head Softmax Attention for In-Context Learning: Emergence, Convergence, and Optimalitycited by 71
  16. 2024Asymptotic theory of in-context learning by linear attentioncited by 54
  17. 2023On the Role of Attention in Prompt-tuningcited by 49
  18. 2025Training Dynamics of In-Context Learning in Linear Attentioncited by 44
  19. 2024A phase transition between positional and semantic learning in a solvable model of dot-product attentioncited by 30
  20. 2024In-Context Learning of a Linear Transformer Block: Benefits of the MLP Component and One-Step GD Initializationcited by 30
  21. 2021Cooperative learning for multiview analysiscited by 19
  22. 2025Continual Multimodal Contrastive Learningcited by 19
  23. 2024On the Training Convergence of Transformers for In-Context Classification of Gaussian Mixturescited by 15
  24. 2025Fundamental limits of learning in sequence multi-index models and deep attention networks: High-dimensional asymptotics and sharp thresholdscited by 12
  25. 2025Asymptotics of SGD in Sequence-Single Index Models and Single-Layer Attention Networkscited by 9
  26. 2024Fundamental limits of community detection from multi-view data: multi-layer, dynamic and partially labeled block modelscited by 7
  27. 2025Multi-modal contrastive learning adapts to intrinsic dimensions of shared latent variablescited by 7
  28. 2026Efficient and Minimax Optimal In-context Nonparametric Regression with Transformerscited by 7
  29. 2025High-Dimensional Analysis of Single-Layer Attention for Sparse-Token Classificationcited by 6
  30. 2025Pretrain-Test Task Alignment Governs Generalization in In-Context Learningcited by 6
  31. 2024Multimodal data integration and cross-modal querying via orchestrated approximate message passingcited by 5
  32. 2024A spectral method for multi-view subspace learning using the product of projectionscited by 5
  33. 2024Optimal thresholds and algorithms for a model of multi-modal learning in high dimensionscited by 4
  34. 2025Spectral Thresholds in Correlated Spiked Models and Fundamental Limits of Partial Least Squarescited by 4
  35. 2025Attention-based clusteringcited by 3
  36. 2024Contrastive Learning on Multimodal Analysis of Electronic Health Recordscited by 2

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 2.

2 papers.