Efficient and Minimax Optimal In-context Nonparametric Regression with Transformers
Machine Learning
2026-05-20 v2 Machine Learning
Statistics Theory
Statistics Theory
Abstract
We study in-context learning for nonparametric regression with -H\"older smooth regression functions, for some . We prove that, with in-context examples and -dimensional regression covariates, a pretrained transformer with parameters and pretraining sequences can achieve the minimax optimal rate of convergence in mean squared error. Our result requires substantially fewer transformer parameters and pretraining sequences than previous results in the literature. This is achieved by showing that transformers are able to approximate local polynomial estimators efficiently by implementing a kernel-weighted polynomial basis and then running gradient descent.
Keywords
Cite
@article{arxiv.2601.15014,
title = {Efficient and Minimax Optimal In-context Nonparametric Regression with Transformers},
author = {Michelle Ching and Ioana Popescu and Nico Smith and Tianyi Ma and William G. Underwood and Richard J. Samworth},
journal= {arXiv preprint arXiv:2601.15014},
year = {2026}
}
Comments
30 pages, 7 figures