Transformers as Adaptive Kernel Learners across Tasks for In-Context Learning
Transformers have emerged as a dominant architecture in modern machine learning, with in-context learning (ICL) enabling models to adapt to new tasks by conditioning on prompts, without any parameter updates.
ProofPaper ↗
Key points
- To understand the attention mechanism in transformer blocks, a growing line of theoretical work interprets ICL through the lens of classical statistical estimators.
- In this work, we demonstrate that transformers can act as adaptive anisotropic kernel learners.
- Specifically, we study ICL for low-rank linear and multi-index nonlinear regressions, and conduct numerical simulations to show that the learned attention scores closely resemble the oracle kernels for these function classes.
- Our theory gives an explicit and constructive implementation of the oracle kernel estimators for these function classes using a wide and shallow transformer architecture, illustrating how the prediction is carried out by the interaction between the query token and the context tokens.
Sources (1)
- [1]Transformers as Adaptive Kernel Learners across Tasks for In-Context LearningarXiv (AI, ML, NLP, CV, robotics, multi-agent) · Oct 17, 04:01 AM
Transformers have emerged as a dominant architecture in modern machine learning, with in-context learning (ICL) enabling models to adapt to new tasks by conditioning on prompts, without any parameter updates.
To understand the attention mechanism in transformer blocks, a growing line of theoretical work interprets ICL through the lens of classical statistical estimators.
Extractive summary: sentences quoted from the sources.
Before this
- Oct 17, 2026deepseek-ai/DeepSeek-V4.1-Flash-1017
- Oct 16, 2026nvidia/NVIDIA-Nemotron-Labs-Dory1.0-4B-MXFP8
- Oct 16, 2026Out of Support, Not Out of Reach: In-Context Learning with Unsupported Instructions and Composed Tasks
- Oct 16, 2026Agentic In-Context Learning: What Algorithms Can Transformers Learn in Closed-Loop Interaction?
- Oct 16, 2026Welcome Beam: a 501B open model you can own, customize, and scale
- Oct 15, 2026In-Context Learning Before Specialisation: Theory of Learning in a Solvable Topic Model