Accelerate TarFlow Sampling with GS-Jacobi Iteration
Ben Liu, Zhen Qin

TL;DR
This paper introduces an optimization method using GS-Jacobi iteration to significantly accelerate TarFlow image generation models, maintaining quality while improving sampling speed by over 2.5 times.
Contribution
The paper proposes the Convergence Ranking Metric and Initial Guessing Metric to identify and optimize the sampling process in TarFlow, enabling faster image generation.
Findings
Speed-up of 4.53x to 5.32x in different models
Maintained image quality with no FID degradation
Effective identification of important model blocks
Abstract
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,…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsImage Enhancement Techniques · Cell Image Analysis Techniques · Generative Adversarial Networks and Image Synthesis
MethodsSoftmax · Attention Is All You Need
