Transformer Neural Autoregressive Flows
Not on the map. Why?
Abstract (arXiv)
Density estimation, a central problem in machine learning, can be performed using Normalizing Flows (NFs). NFs comprise a sequence of invertible transformations, that turn a complex target distribution into a simple one, by exploiting the change of variables theorem. Neural Autoregressive Flows (NAFs) and Block Neural Autoregressive Flows (B-NAFs) are arguably the most perfomant members of the NF family. However, they suffer scalability issues and training instability due to the constraints imposed on the network structure. In this paper, we propose a novel solution to these challenges by exploiting transformers to define a new class of neural flows called Transformer Neural Autoregressive Flows (T-NAFs). T-NAFs treat each dimension of a random variable as a separate input token, using attention masking to enforce an autoregressive constraint. We take an amortization-inspired approach where the transformer outputs the parameters of an invertible transformation. The experimental results demonstrate that T-NAFs consistently match or outperform NAFs and B-NAFs across multiple datasets from the UCI benchmark. Remarkably, T-NAFs achieve these results using an order of magnitude fewer parameters than previous approaches, without composing multiple flows.
Key facts. Cited by 7 papers in the map (data through 14 Oct 2026). Builds on 24 of its 29 references that are in the map. First posted on arXiv 3 Jan 2024.
Builds on
24 of 29 references.
References · 24
- 2017Attention Is All You Needcited by 60,361
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,944
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
- 2015Variational Inference with Normalizing Flowscited by 2,170
- 2016Density estimation using Real NVPcited by 2,042
- 2018Glow: Generative Flow with Invertible 1x1 Convolutionscited by 1,545
- 2019Normalizing Flows for Probabilistic Modeling and Inferencecited by 1,323
- 2017Masked Autoregressive Flow for Density Estimationcited by 684
- 2016Improving Variational Inference with Inverse Autoregressive Flowcited by 640
- 2019Neural Spline Flowscited by 596
12 more
- 2018FFJORD: Free-form Continuous Dynamics for Scalable Reversible Generative Modelscited by 594
- 2015MADE: Masked Autoencoder for Distribution Estimationcited by 307
- 2018Neural Autoregressive Flowscited by 208
- 2018Neural Importance Samplingcited by 155
- 2019Unconstrained Monotonic Neural Networkscited by 92
- 2019Block Neural Autoregressive Flowcited by 62
- 2019Sum-of-Squares Polynomial Flowcited by 62
- 2020Invertible Generative Modeling using Linear Rational Splinescited by 40
- 2022Normalizing flow neural networks by JKO schemecited by 39
- 2018Transformation Autoregressive Networkscited by 27
- 2020TraDE: Transformers for Density Estimationcited by 18
- 2019Normalizing Flows: An Introduction and Review of Current Methodscited by 16
Built on by
Citing papers per year: 2024: 1; 2025: 6.
7 papers.
- 2024Normalizing Flows are Capable Generative Modelscited by 91
- 2025FARMER: Flow AutoRegressive Transformer over Pixelscited by 18
- 2025Flexible Language Modeling in Continuous Space with Transformer-based Autoregressive Flowscited by 8
- 2025SimFlow: Simplified and End-to-End Training of Latent Normalizing Flowscited by 7
- 2025Efficient Autoregressive Inference for Transformer Probabilistic Modelscited by 4
- 2025Accelerate TarFlow Sampling with GS-Jacobi Iterationcited by 2
- 2025Causal Posterior Estimationcited by 1
- 2025SimFlow: Simplified and End-to-End Training of Latent Normalizing Flows3 Dec 2025
- 2025FARMER: Flow AutoRegressive Transformer over Pixels27 Oct 2025
- 2025Efficient Autoregressive Inference for Transformer Probabilistic Models10 Oct 2025
- 2025Flexible Language Modeling in Continuous Space with Transformer-based Autoregressive Flows1 Jul 2025
- 2025Causal Posterior Estimation27 May 2025
- 2025Accelerate TarFlow Sampling with GS-Jacobi Iteration19 May 2025
- 2024Normalizing Flows are Capable Generative Models9 Dec 2024