Transformers as Bayesian In-Context Experimenters: Smoothness-Adaptive Efficient ATE Estimation
Jiachun Li, David Simchi-Levi
Abstract
Adaptive experiments for average treatment effects (ATE) require randomized allocations balancing valid inference with statistical efficiency. The oracle design is a covariate-dependent Neyman rule governed by unknown arm-conditional outcome variances. We investigate whether this sequential variance-estimation and allocation process can be amortized via in-context learning. We introduce Bayesian in-context experimenters: transformer policies trained to imitate a Bayesian posterior Neyman teacher. The teacher updates nonparametric beliefs over potential outcomes using experimental history to assign posterior Neyman treatment probabilities. This design converges to the oracle rule, supporting efficient ATE inference. Transformers constructively implement this mapping through attention-based sufficient statistics and projected gradient descent, imitating Bayesian updating for Gaussian-series priors. To address unknown outcome smoothness, we combine smoothness-indexed experimenters using a mixture-of-experts transformer. The gate acts as a hierarchical posterior over smoothness classes, concentrating on near-oracle experts. By bounding the complexity of the transformer class, we prove this amortized policy can be learned via empirical risk minimization using supervised pretraining. Experiments confirm accurate teacher imitation, adaptive allocation, and improved ATE precision over baselines.
Create a lesson
Related papers
Ghost in the Kernel: In-Context Learning with Efficient Transformers via Domain Generalization
Shared title terminology · Peilin Liu, Ding-Xuan Zhou
Turnout: Adaptive Attention Switching for Efficient Reasoning
Shared title terminology · Anna Kuzina, Mart van Baalen, Paul N. Whatmough et al.
Auditing and Adapting kNNGuard for Long-Context Prompts
Shared title terminology · Niccolò Ronchetti
DTS: Delta-Based Tile Scoring for Efficient Long-Context Sparse Attention
Shared title terminology · Emre Uğur, Jiawen Qi, Qinyu Chen
Parameter-Efficient Adaptation of Self-supervised Vision Backbones Survives Distribution Shift in Radar Micro-Doppler HAR
Shared title terminology · Keryan Chelouche, Petr Dobias, Nistor Grozavu et al.
Loss Smoothing for Stable Adaptation Under Distribution Shift
Shared title terminology · Darshan Patil, Ekaterina Lobacheva, Razvan Pascanu et al.