Diffusion Transformers are Provably Optimal In-context Generators
Guoji Fu, Tomoya Wakayama, Ryotaro Kawata, Atsushi Nitanda, Wee Sun Lee, Taiji Suzuki
Key points
From the paper's conclusion- 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.
Abstract
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ölder 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.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Transformer-based In-Context Score Operator Learning for Diffusion ModelsarXiv · 2026
- How Do DiTs Denoise? An Aggregator-Predictor View of Attention and MLPsarXiv · 2026
- Equal Path Cost, Unequal Output Effects: Understanding Perturbation Propagation in Diffusion ModelsarXiv · 2026
- Diffusion Meta-Prompting and Steering for Generalizable Foundation Model AdaptationarXiv · 2026
- Opening the Black Box of Classifier-Free Guidance via Information BottleneckarXiv · 2026
- Understanding Mode Collapse in Diffusion Models under Classifier-Free GuidancearXiv · 2026