Lune

ICML2026Top-tier venue

Efficient and Minimax Optimal In-context Nonparametric Regression with Transformers

Michelle Ching, Ioana Popescu, Nico Smith, Tianyi Ma, William Underwood, Richard Samworth

2026Year
6Citations

Abstract

We study in-context learning for nonparametric regression with α\alpha-Hölder smooth regression functions, for some α>0\alpha>0. We prove that, with nn in-context examples and dd-dimensional regression covariates, a pretrained transformer with Θ(log⁡n)\Theta(\log n) parameters and Ω(n2α/(2α+d)log⁡3n)\Omega(n^{2\alpha/(2\alpha+d)}\log^3 n) pretraining sequences can achieve the minimax optimal rate of convergence O(n−2α/(2α+d))O(n^{-2\alpha/(2\alpha+d)}) 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.

Ask about this paper

Your agent reads all of it.

Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.

Questions to start from

Your agent calls

Luneget_paper_fulltext

Ask in Lune

Free to start. No credit card required.

lune papers fulltext 1ea318ea-fac7-4070-bb6e-bfb1e3a8c87f

Builds on8

Related papers

Dusk over the sea between two cliffs drawn in fine vertical lines