Accelerate TarFlow Sampling with GS-Jacobi Iteration
Not on the map. Why?
Abstract (arXiv)
Image generation models have achieved widespread applications. As an instance, the TarFlow model combines the transformer architecture with Normalizing Flow models, achieving state-of-the-art results on multiple benchmarks. However, due to the causal form of attention requiring sequential computation, TarFlow's sampling process is extremely slow. In this paper, we demonstrate that through a series of optimization strategies, TarFlow sampling can be greatly accelerated by using the Gauss-Seidel-Jacobi (abbreviated as GS-Jacobi) iteration method. Specifically, we find that blocks in the TarFlow model have varying importance: a small number of blocks play a major role in image generation tasks, while other blocks contribute relatively little; some blocks are sensitive to initial values and prone to numerical overflow, while others are relatively robust. Based on these two characteristics, we propose the Convergence Ranking Metric (CRM) and the Initial Guessing Metric (IGM): CRM is used to identify whether a TarFlow block is "simple" (converges in few iterations) or "tough" (requires more iterations); IGM is used to evaluate whether the initial value of the iteration is good. Experiments on four TarFlow models demonstrate that GS-Jacobi sampling can significantly enhance sampling efficiency while maintaining the quality of generated images (measured by FID), achieving speed-ups of 4.53x in Img128cond, 5.32x in AFHQ, 2.96x in Img64uncond, and 2.51x in Img64cond without degrading FID scores or sample quality. Code and checkpoints are accessible on https://github.com/encoreus/GS-Jacobi_for_TarFlow
Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Builds on 28 of its 35 references that are in the map. First posted on arXiv 19 May 2025.
Builds on
28 of 35 references.
References · 28
- 2020Denoising Diffusion Probabilistic Modelscited by 20,851
- 2022Classifier-Free Diffusion Guidancecited by 5,717
- 2022Generative Adversarial Networkscited by 5,603
- 2023SDXL: Improving Latent Diffusion Models for High-Resolution Image Synthesiscited by 4,290
- 2016Density estimation using Real NVPcited by 2,029
- 2018Glow: Generative Flow with Invertible 1x1 Convolutionscited by 1,539
- 2019StarGAN v2: Diverse Image Synthesis for Multiple Domainscited by 1,095
- 2014NICE: Non-linear Independent Components Estimationcited by 1,052
- 2016Pixel Recurrent Neural Networkscited by 814
- 2017Masked Autoregressive Flow for Density Estimationcited by 680
- 2016Improving Variational Inference with Inverse Autoregressive Flowcited by 636
- 2018Invertible Residual Networkscited by 364
16 more
- 2015MADE: Masked Autoencoder for Distribution Estimationcited by 306
- 2019Flow++: Improving Flow-Based Generative Models with Variational Dequantization and Architecture Designcited by 258
- 2017Parallel WaveNet: Fast High-Fidelity Speech Synthesiscited by 214
- 2018Neural Autoregressive Flowscited by 207
- 2023Accelerating Transformer Inference for Translation via Parallel Decodingcited by 123
- 2024Normalizing Flows are Capable Generative Modelscited by 89
- 2019Block Neural Autoregressive Flowcited by 62
- 2018Conditional Density Estimation with Bayesian Normalising Flowscited by 54
- 2020Accelerating Feedforward Computation via Parallel Nonlinear Equation Solvingcited by 51
- 2020Latent Variable Modelling with Hyperbolic Normalizing Flowscited by 49
- 2021Densely connected normalizing flowscited by 49
- 2020Composing Normalizing Flows for Inverse Problemscited by 48
- 2019MintNet: Building Invertible Neural Networks with Masked Convolutionscited by 35
- 2020Learning Generative Models using Denoising Density Estimatorscited by 8
- 2024Transformer Neural Autoregressive Flowscited by 7
- 2017Parallel Complexity of Forward and Backward Propagationcited by 3
Built on by
Citing papers per year: 2025: 1; 2026: 1.
2 papers.