NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Generative Model with Dynamic Linear Flow

Huadong Liao, Jiawei He, Kunxian Shu · DOI

Abstract

Flow-based generative models are a family of exact log-likelihood models with tractable sampling and latent-variable inference, hence conceptually attractive for modeling complex distributions. However, flow-based models are limited by density estimation performance issues as compared to state-of-the-art autoregressive models. Autoregressive models, which also belong to the family of likelihood-based methods, however suffer from limited parallelizability. In this paper, we propose Dynamic Linear Flow (DLF), a new family of invertible transformations with partially autoregressive structure. Our method benefits from the efficient computation of flow-based methods and high density estimation performance of autoregressive methods. We demonstrate that the proposed DLF yields state-of-the-art performance on ImageNet 32x32 and 64x64 out of all flow-based methods, and is competitive with the best autoregressive model. Additionally, our model converges 10 times faster than Glow.

Introduction

In deep generative modeling, a fundamental trade-off exists between Autoregressive (AR) models and Flow-based models. AR models, such as PixelCNN, excel at density estimation by predicting pixels sequentially, but their inherent serial nature makes them computationally expensive and difficult to parallelize. Conversely, flow-based models like Glow or RealNVP utilize invertible transformations to map data to a latent space, offering high parallelizability and fast sampling, yet they often struggle to match the expressive power of AR models.

Dynamic Linear Flow (DLF) addresses this gap by introducing a "partially autoregressive" structure. This approach aims to combine the high performance of autoregressive modeling with the computational efficiency of flow-based methods.

Methodology: Dynamic Linear Transformation

The core innovation of DLF is the Dynamic Linear Transformation (DLT). While standard flow models often rely on coupling layers—where one half of the data remains static to transform the other—DLT generalizes this concept.

Architecture of the Dynamic Linear Flow (DLF) and the Dynamic Linear Transformation (DLT) module.

In DLT, the input is split into $K$ partitions. Each partition $k$ undergoes a linear transformation $y = wx + \mu$, where the weights $w$ and biases $\mu$ are dynamically predicted by a neural network based on all preceding partitions ($1$ to $k-1$). This creates a tunable continuum:

  • $K=1$: Equivalent to a standard non-autoregressive flow.
  • $K=D$ (total dimensions): Equivalent to a fully autoregressive model.

The authors found that a small value, specifically $K=2$, provides the optimal balance, offering significant expressive power without the computational bottleneck of full autoregression. The overall architecture follows a multi-scale design, incorporating squeezing operations and $1 \times 1$ invertible convolutions to facilitate global interactions.

Experimental Setup

The model was evaluated across several benchmarks:

  • MNIST: Used for initial validation and conditional generation tasks.
  • CIFAR-10: A standard dataset for small-scale image modeling.
  • ImageNet ($32 \times 32$ and $64 \times 64$): Downsampled versions used to test high-dimensional density estimation.
  • CelebA-HQ ($256 \times 256$): High-resolution images used to demonstrate synthesis quality.

Key Results and Insights

Performance and Efficiency

DLF achieved state-of-the-art (SOTA) density estimation among flow-based models on ImageNet $32 \times 32$ (3.85 bpd) and $64 \times 64$ (3.57 bpd). It performs competitively with the most advanced fully autoregressive models while maintaining high sampling speeds—generating a $256 \times 256$ image in approximately 315ms on a single GPU.

The Impact of Partitioning ($K$)

A key finding is that increasing $K$ beyond 2 does not necessarily improve performance. As shown in the training curves, $K=2$ converges faster and reaches a lower negative log-likelihood (NLL) than more autoregressive configurations ($K=4, 6$).

Training convergence (NLL vs. Epochs) for different partition sizes K.

Rapid Convergence

DLF demonstrates remarkable training efficiency, converging up to 10 times faster than Glow. While Glow often requires thousands of epochs, DLF achieves superior results in fewer than 50 epochs, suggesting that the dynamic linear structure is highly amenable to optimization.

Discussion and Limitations

While powerful, DLF is prone to overfitting on smaller datasets like CIFAR-10 due to the high expressivity of the DLT. The authors addressed this through transfer learning, pre-training on ImageNet before fine-tuning.

Additionally, although sampling is fast, the reverse pass still contains a recursive dependency between partitions. Future work may explore "inverse dynamic linear transformations" to potentially eliminate this recursion during synthesis, further accelerating the model.

The code for this project is available at https://github.com/naturomics/DLF.

Summary updated

BibTeX
@inproceedings{liao2019generative,
  author = {Huadong Liao and Jiawei He and Kunxian Shu},
  title = {{Generative Model with Dynamic Linear Flow}},
  booktitle = {IEEE Access},
  year = {2019},
  doi = {10.1109/access.2019.2947567},
}
Figure