Diffusion Transformers are Provably Optimal In-context Generators
On the map: Diffusion models → Diffusion and flow policies for robotics also fits: Diffusion foundations and sampling
Abstract (arXiv)
Generative foundation models are attracting interest for their ability to produce desired outputs from demonstrations given at inference time, without updating parameters. However, since a few demonstrations cannot uniquely identify the intended task, the challenge is how to learn and sample from an output distribution that reflects this task uncertainty. In this work, we theoretically analyze how a Diffusion Transformer (DiT), pretrained across diverse tasks, learns and generates predictive distributions for a new query from demonstrations. We first show that the natural target to generate from finite demonstrations is not an output derived from estimating a single task, but rather a predictive distribution that captures the task uncertainty remaining after observing the demonstrations. We then prove that a DiT can learn this predictive distribution through score estimation, using attention to aggregate information from demonstrations and diffusion to generate samples. Owing to this property, with sufficient pretraining resources and diffusion sampling steps, the resulting DiT achieves the minimax optimal rate over a H"older class of test-time tasks. These results imply that DiT acts as a statistically grounded in-context generator capable of generating distributions adapted to new tasks while retaining the uncertainty inherent in finite demonstrations.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in Diffusion and flow policies for robotics, one of 14 directions in Diffusion models. First posted on arXiv 4 Oct 2026.
Builds on
No reference list yet.
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026Transformers as In-Context Samplers: From Closed-Form Diffusion to Estimation-Free Sampling
- 2025Rethinking Timesteps Samplers and Prediction Types
- 2025Reimagining Parameter Space Exploration with Diffusion Models
- 2025How Transformers Learn In-Context Recall Tasks? Optimality, Training Dynamics and Generalization
- 2025SD2AIL: Adversarial Imitation Learning from Synthetic Demonstrations via Diffusion Models
- 2024A Minimalist Prompt for Zero-Shot Policy Learning
- 2023Imitation Learning from Purified Demonstrations
- 2024An Overview of Diffusion Models: Applications, Guided Generation, Statistical Rates and Optimization