# Nonparametric In-Context Learning under Growing Geometric Complexity: Minimax Optimality and Local Geometry-Adaptivity of Transformers

*Jaehee Seo, Jisu Kim*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/156041) · [Open on the map](../papers.html#p156041)

Category: [Interpretability & Model Adaptation](../pcat/15.md) › [Transformer In-Context Reasoning](../pgroup/370.md) · Type: theory · Keywords: in-context learning, geometric complexity, minimax optimality, transformer architecture, local polynomial estimation

## Summary
The paper develops a two-stage linear-attention transformer with a geometric preconditioner and all-chart reduced local-polynomial solvers that achieves minimax optimal in-context learning under growing geometric complexity.

## Explained to a 5-year-old
We study how computers can learn tasks just by reading instructions, even when the data is very complicated. The data can be like many different shapes that change as we get more examples. The researchers built a special kind of computer brain that can look at small parts of the data and learn from them. This brain works like a two-step process: first it prepares the data, then it solves small problems. Because of this, the brain can learn as well as the best possible method.

## Explained to a 5-year-old, longer
Imagine a computer that can solve a puzzle without being told how to do it, just by looking at examples. Sometimes the examples are simple, but sometimes they are very complex, like many different shapes that change as we see more. The researchers wanted to understand how well such a computer can learn when the data gets more complicated. They created a new way for the computer to break the problem into small pieces, looking at each piece separately. First, the computer prepares the data, making it easier to understand. Then, it solves tiny problems using a special method that works like a local guide. This two-step process helps the computer focus on the important parts of the data. By doing this, the computer can adapt its learning to the complexity of each part. The researchers proved that this approach is as good as the best possible method in theory. They also showed that the computer’s predictions stay reliable when it sees new data. This work helps us understand why transformers work well in real-world situations with messy data. Overall, the study gives a clearer picture of how computers can learn from complicated information.

## For a technical reader
The paper investigates how transformers perform in-context learning when the underlying data have increasingly complex geometric structures, modeled as a mixture of manifolds with varying local geometry. They derive a minimax lower bound that captures the difficulty of this heterogeneous setting and construct an oracle tangent local-polynomial estimator that matches this bound. The key contribution is a transformer architecture that uses a geometric preconditioner followed by reduced local-polynomial solvers to approximate the oracle estimator with negligible error. They also provide an in-context generalization guarantee for ε-near empirical risk minimizers within this class, establishing conditions under which the predictor adapts to local geometry. The results show that, under the proposed model, the transformer can achieve the aggregate minimax rate, offering both theoretical insight and a practical recipe for geometry-aware in-context learning.

## Problem
Adapting in-context learning to data whose geometric structure becomes increasingly complex and heterogeneous is challenging, and existing theory does not capture this difficulty.

## Method
The approach constructs an oracle tangent local-polynomial estimator that exploits local geometry, then approximates this estimator with a transformer architecture using a geometric preconditioner and reduced local-polynomial solvers, and provides a generalization analysis for near empirical risk minimizers.

## Contributions
Provides a minimax lower bound for heterogeneous mixture-of-manifolds models, constructs an oracle local-polynomial estimator, shows how a transformer can approximate it, and proves in-context generalization, establishing conditions for geometry-adaptive learning.

## Research questions this paper is counted under

- [How can models adapt to new subpopulations or environments when the data distribution shifts?](../q/854.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/156041)
