Efficient Autoregressive Inference for Transformer Probabilistic Models
Not on the map. Why?
Abstract (arXiv)
Set-based transformer models for amortized probabilistic inference and meta-learning, such as neural processes, prior-fitted networks, and tabular foundation models, excel at single-pass marginal prediction. However, many applications require joint distributions over multiple predictions. Purely autoregressive architectures generate these efficiently but sacrifice flexible set-conditioning. Obtaining joint distributions from set-based models requires re-encoding the entire context at each autoregressive step, which scales poorly. We introduce a causal autoregressive buffer that combines the strengths of both paradigms. The model encodes the context once and caches it; a lightweight causal buffer captures dependencies among generated targets, with each new prediction attending to both the cached context and all previously predicted targets added to the buffer. This enables efficient batched autoregressive sampling and joint predictive density evaluation. Training integrates set-based and autoregressive modes through masked attention at minimal overhead. Across synthetic functions, EEG time series, a Bayesian model comparison task, and tabular regression, our method closely matches the performance of full context re-encoding while delivering up to 20× faster joint sampling and density evaluation, and up to 7× lower memory usage.
Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Builds on 61 of its 78 references that are in the map. First posted on arXiv 10 Oct 2025.
Builds on
61 of 78 references.
References · 61
- 2017Attention Is All You Needcited by 59,932
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2020Denoising Diffusion Probabilistic Modelscited by 20,851
- 2020Score-Based Generative Modeling through Stochastic Differential Equationscited by 8,964
- 2015Deep Unsupervised Learning using Nonequilibrium Thermodynamicscited by 7,005
- 2022Flow Matching for Generative Modelingcited by 5,426
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
- 2019Parameter-Efficient Transfer Learning for NLPcited by 4,195
- 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,551
- 2022Fast Inference from Transformers via Speculative Decodingcited by 1,615
- 2016Variational Inference: A Review for Statisticianscited by 1,466
- 2021Perceiver: General Perception with Iterative Attentioncited by 1,089
38 more
- 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,085
- 2023Accelerating Large Language Model Decoding with Speculative Samplingcited by 975
- 2023Discrete Diffusion Modeling by Estimating the Ratios of the Data Distributioncited by 712
- 2017Masked Autoregressive Flow for Density Estimationcited by 680
- 2024Autoregressive Image Generation without Vector Quantizationcited by 644
- 2022TabPFN: A Transformer That Solves Small Tabular Classification Problems in a Secondcited by 643
- 2016Improving Variational Inference with Inverse Autoregressive Flowcited by 636
- 2024Simplified and Generalized Masked Diffusion for Discrete Datacited by 606
- 2018Conditional Neural Processescited by 421
- 2025Fast-dLLM: Training-free Acceleration of Diffusion LLM by Enabling KV Cache and Parallel Decodingcited by 404
- 2025Block Diffusion: Interpolating Between Autoregressive and Diffusion Language Modelscited by 385
- 2021Transformers Can Do Bayesian Inferencecited by 338
- 2018Neural Processescited by 307
- 2015MADE: Masked Autoencoder for Distribution Estimationcited by 306
- 2025TabICL: A Tabular Foundation Model for In-Context Learning on Large Datacited by 267
- 2021Autoregressive Diffusion Modelscited by 208
- 2018Neural Autoregressive Flowscited by 207
- 2022Transformer Language Models without Positional Encodings Still Learn Positional Informationcited by 148
- 2024HART: Efficient Visual Generation with Hybrid Autoregressive Transformercited by 128
- 2022Transformer Neural Processes: Uncertainty-Aware Meta Learning Via Sequence Modelingcited by 126
- 2025The Diffusion Dualitycited by 124
- 2018Janossy Pooling: Learning Deep Permutation-Invariant Functions for Variable-Size Inputscited by 96
- 2016Neural Autoregressive Distribution Estimationcited by 94
- 2020Meta-Learning Stationary Stochastic Process Prediction with Convolutional Neural Processescited by 74
- 2024All-in-one simulation-based inferencecited by 71
- 2023PFNs4BO: In-Context Learning for Bayesian Optimizationcited by 70
- 2013A Deep and Tractable Density Estimatorcited by 67
- 2019Block Neural Autoregressive Flowcited by 62
- 2022Neural Diffusion Processescited by 50
- 2021The Gaussian Neural Processcited by 34
- 2023Autoregressive Conditional Neural Processescited by 32
- 2025Can Transformers Learn Full Bayesian Inference in Context?cited by 30
- 2022Latent Bottlenecked Attentive Neural Processescited by 26
- 2022Practical Conditional Neural Processes Via Tractable Dependent Predictionscited by 25
- 2020Variational Bayesian Monte Carlo with Noisy Likelihoodscited by 23
- 2024Amortized Probabilistic Conditioning for Optimization, Simulation and Inferencecited by 22
- 2018Variational Bayesian Monte Carlocited by 20
- 2023Sensitivity-Aware Amortized Bayesian Inferencecited by 20
50 most cited of 61 All 61 (JSON)
Built on by
Citing papers per year: 2025: 1; 2026: 3.
4 papers.
- 2025In-Context Multi-Objective Optimizationcited by 5
- 2026Incremental Transformer Neural Processescited by 2
- 2026Gaussian Mixture Copula Processes for Irregular Time Seriescited by 0
- 2026Revisiting Neural Processes via Fourier Transform and Volterra Seriescited by 0
- 2026Revisiting Neural Processes via Fourier Transform and Volterra Series31 May 2026
- 2026Gaussian Mixture Copula Processes for Irregular Time Series22 May 2026
- 2026Incremental Transformer Neural Processes21 Feb 2026
- 2025In-Context Multi-Objective Optimization11 Dec 2025