Nonparametric In-Context Learning under Growing Geometric Complexity: Minimax Optimality and Local Geometry-Adaptivity of Transformers
Abstract
Transformers have become a central architecture for in-context learning (ICL), particularly through their state-of-the-art performance in large language models. This success motivates understanding how transformers exploit intrinsic geometry of real-world data. However, existing nonparametric ICL theory has largely focused on simplified settings, such as Euclidean domains or single manifold models, failing to fully explain its phenomenal empirical success in complex tasks. To address this gap, we study the prediction problem under unknown heterogeneous geometry, modeled by sample size-dependent mixtures of manifolds with heterogeneous dimensions, smoothness, and sampling masses. Under the growing geometric complexity model, we establish a minimax lower bound capturing the aggregate difficulty of the components and construct an oracle tangent local polynomial estimator with a matching upper bound. This estimator is connected to a structure-informed, two-stage softmax transformer with a geometric preconditioner and local polynomial solvers. The transformer achieves negligible approximation error relative to the minimax rate with logarithmic depth and polynomial size. Finally, we derive an in-context generalization bound for near empirical risk minimizers (ERM) over this class. Together, these results identify conditions under which the resulting predictor exploits local geometry and attains minimax rate.
Create a lesson
Related papers
Simultaneous Near-Optimal Region Identification in Continuous Simulation Optimization: Minimax Complexity and Adaptive Sampling
Shared title terminology · Yilin Zheng, Haowei Wang, Wenjia Wang et al.
Bandits with Multiple Optimal Arms: Minimax Regret and Non-Adaptivity
Shared title terminology · Kaixuan Ji, Qiwei Di, Qingyue Zhao et al.
Transformers as Cross-Task Learners: Shared Structure Drives Sample Efficiency in In-Context Learning
Shared title terminology · Zhongjie Shi, Rongjie Lai, Alexander Cloninger et al.
Optimal Deep Nonparametric Regression with Uniformly Bounded Lipschitz Constants
Shared title terminology · Jiaxin Shi, Ziyuan Chen, Jian Huang et al.
Geometric Stability and Sample Complexity for Compositional Function Priors
Shared title terminology · Christopher L. Hammond
MediPFN: Amortized In-Context Nuisance Learning and Inference for Causal Mediation Analysis
Shared title terminology · Shi Bo, Jiaming Hu