mlsanityData to 14 Oct 2026

Transformer Neural Autoregressive Flows

arXiv 2401.01855 ↗First posted 3 Jan 2024cs.LGcited by 7

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

  1. 2017Attention Is All You Needcited by 60,361
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  3. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
  4. 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,944
  5. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
  6. 2015Variational Inference with Normalizing Flowscited by 2,170
  7. 2016Density estimation using Real NVPcited by 2,042
  8. 2018Glow: Generative Flow with Invertible 1x1 Convolutionscited by 1,545
  9. 2019Normalizing Flows for Probabilistic Modeling and Inferencecited by 1,323
  10. 2017Masked Autoregressive Flow for Density Estimationcited by 684
  11. 2016Improving Variational Inference with Inverse Autoregressive Flowcited by 640
  12. 2019Neural Spline Flowscited by 596
12 more
  1. 2018FFJORD: Free-form Continuous Dynamics for Scalable Reversible Generative Modelscited by 594
  2. 2015MADE: Masked Autoencoder for Distribution Estimationcited by 307
  3. 2018Neural Autoregressive Flowscited by 208
  4. 2018Neural Importance Samplingcited by 155
  5. 2019Unconstrained Monotonic Neural Networkscited by 92
  6. 2019Block Neural Autoregressive Flowcited by 62
  7. 2019Sum-of-Squares Polynomial Flowcited by 62
  8. 2020Invertible Generative Modeling using Linear Rational Splinescited by 40
  9. 2022Normalizing flow neural networks by JKO schemecited by 39
  10. 2018Transformation Autoregressive Networkscited by 27
  11. 2020TraDE: Transformers for Density Estimationcited by 18
  12. 2019Normalizing Flows: An Introduction and Review of Current Methodscited by 16

Built on by

Cited by year

Citing papers per year: 2024: 1; 2025: 6.

7 papers.