Skip to content
DraconiticResearch
Search Sources API
186,546 studies31 sourcesUpdated just now
PreprintCC BY 4.0arXiv

Adaptive Mean Estimation by In-Context Learning: A Gradient-Flow Analysis

Abstract

Prior Fitted Networks (PFNs) such as TabPFN now rival established statistical procedures across prediction and estimation tasks. A natural explanation is that PFNs have the property of statistical adaptivity, that is, they perform nearly as well as a method tailored to the true data-generating model for a heterogeneous set of models, while not being told which model the data comes from. We study how such adaptivity is learned in a controlled location-estimation problem. Each task is an unlabeled sample whose family is hidden: Gaussian data call for averaging, with error of order n−1, whereas uniform data are best estimated from their extremes, at the faster rate n−2. We also provide the example of a symmetric Gaussian mixture, for which a rate of σ2n/n can be attained. On scalar inputs, softmax attention computes the derivative of the empirical cumulant-generating function. A single primitive therefore both supplies features that distinguish the families and forms estimators interpolating between the sample mean and the mid-range. We combine attention experts through either a softmax mixture of experts or a gated linear unit (GLU), and analyze stagewise gradient flow. With Ω̃(n1+ε) pretraining tasks, the learned estimator is asymptotically efficient on Gaussian tasks, within a factor nε of the minimax rate on uniform tasks, and order-optimal on mixtures in a shrinking-variance regime. These guarantees extend to new locations and longer contexts. A risk decomposition separates expert error, routing error and normalization error, which clarifies the architectural contrast. Softmax gating enforces normalization and exact translation equivariance, whereas the GLU must learn it: its dynamics separate into fast bias removal followed by slow expert selection. End-to-end experiments recover the predicted specialization.

Related

  1. Non-Adaptive 1-Bit Mean Estimation: Minimax Rates and the Sample-Interval Tradeoff
    Ivan Lau, Jonathan Scarlett
    arXivPreprintarXiv licenceFull textStatisticsarXiv
  2. Learning controls in mean field games: the fictitious play and related gradient descent
    Charles Meynard
    HALPreprintCC BY 4.0Full textOptimisation & controlProbabilityHALarXiv
  3. In-context learning from self-generated trajectories for adaptive model reduction
    Amirpasha Hedayat, Laura Balzano, Karthik Duraisamy
    arXivPreprintCC BY 4.0Full textNumerical analysis & scientific computingarXiv
  4. Transformers as Adaptive Kernel Learners across Tasks for In-Context Learning
    Zhaiming Shen, Alexander Cloninger, Rongjie Lai +1
    arXivPreprintarXiv licenceFull textNumerical analysis & scientific computingStatisticsarXiv
  5. Gradient estimates for the Lagrangian mean curvature equation with Lipschitz critical phase
    Ruosi Chen, Xingchen Zhou, Ruixuan Zhu
    arXivPreprintarXiv licenceFull textAnalysis & PDEsarXiv
BibTeX
@misc{eppert2026adaptive,
  title = {{Adaptive Mean Estimation by In-Context Learning: A Gradient-Flow Analysis}},
  author = {Martin Eppert and Krishna Balasubramanian and Subhro Ghosh and Jason Klusowski and Yan Shuo Tan},
  howpublished = {arXiv},
  year = {2026},
  month = oct,
  doi = {10.48550/arxiv.2610.07804},
  eprint = {2610.07804},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.07804},
  note = {CC BY 4.0},
}
RIS
TY  - UNPB
TI  - Adaptive Mean Estimation by In-Context Learning: A Gradient-Flow Analysis
AU  - Martin Eppert
AU  - Krishna Balasubramanian
AU  - Subhro Ghosh
AU  - Jason Klusowski
AU  - Yan Shuo Tan
PY  - 2026
DA  - 2026/10/06
PB  - arXiv
DO  - 10.48550/arxiv.2610.07804
UR  - https://arxiv.org/abs/2610.07804
AB  - Prior Fitted Networks (PFNs) such as TabPFN now rival established statistical procedures across prediction and estimation tasks. A natural explanation is that PFNs have the property of statistical adaptivity, that is, they perform nearly as well as a method tailored to the true data-generating model for a heterogeneous set of models, while not being told which model the data comes from. We study how such adaptivity is learned in a controlled location-estimation problem. Each task is an unlabeled sample whose family is hidden: Gaussian data call for averaging, with error of order n^−1, whereas uniform data are best estimated from their extremes, at the faster rate n^−2. We also provide the example of a symmetric Gaussian mixture, for which a rate of σ^2_n/n can be attained. On scalar inputs, softmax attention computes the derivative of the empirical cumulant-generating function. A single primitive therefore both supplies features that distinguish the families and forms estimators interpolating between the sample mean and the mid-range. We combine attention experts through either a softmax mixture of experts or a gated linear unit (GLU), and analyze stagewise gradient flow. With Ω̃(n^1+ε) pretraining tasks, the learned estimator is asymptotically efficient on Gaussian tasks, within a factor n^ε of the minimax rate on uniform tasks, and order-optimal on mixtures in a shrinking-variance regime. These guarantees extend to new locations and longer contexts. A risk decomposition separates expert error, routing error and normalization error, which clarifies the architectural contrast. Softmax gating enforces normalization and exact translation equivariance, whereas the GLU must learn it: its dynamics separate into fast bias removal followed by slow expert selection. End-to-end experiments recover the predicted specialization.
ER  -