ICML2026

Efficient and Minimax Optimal In-context Nonparametric Regression with Transformers

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

被引用 6 次

摘要

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 Θ(logn)\Theta(\log n) parameters and Ω(n2α/(2α+d)log3n)\Omega(n^{2\alpha/(2\alpha+d)}\log^3 n) pretraining sequences can achieve the minimax optimal rate of convergence O(n2α/(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.