[Paper Review] iFlow: Numerically Invertible Flows for Efficient Lossless Compression via a Uniform Coder
iFlow proposes a numerically invertible normalizing flow for efficient lossless compression by introducing Modular Scale Transform (MST) for discrete-space bijections and a Uniform Base Conversion System (UBCS) for fast entropy coding. It achieves state-of-the-art compression ratios with coding speeds 5× faster than the next-best method, LBB, while maintaining near-theoretical minimum codelengths.
It was estimated that the world produced $59 ZB$ ($5.9 imes 10^{13} GB$) of data in 2020, resulting in the enormous costs of both data storage and transmission. Fortunately, recent advances in deep generative models have spearheaded a new class of so-called "neural compression" algorithms, which significantly outperform traditional codecs in terms of compression ratio. Unfortunately, the application of neural compression garners little commercial interest due to its limited bandwidth; therefore, developing highly efficient frameworks is of critical practical importance. In this paper, we discuss lossless compression using normalizing flows which have demonstrated a great capacity for achieving high compression ratios. As such, we introduce iFlow, a new method for achieving efficient lossless compression. We first propose Modular Scale Transform (MST) and a novel family of numerically invertible flow transformations based on MST. Then we introduce the Uniform Base Conversion System (UBCS), a fast uniform-distribution codec incorporated into iFlow, enabling efficient compression. iFlow achieves state-of-the-art compression ratios and is $5 imes$ quicker than other high-performance schemes. Furthermore, the techniques presented in this paper can be used to accelerate coding time for a broad class of flow-based algorithms.
Motivation & Objective
- To address the practical bottleneck of slow coding speed in neural compression, especially in flow-based models.
- To enable high-fidelity density estimation with discrete-space bijections that preserve invertibility and avoid information loss from discretization.
- To develop a fast, dynamic entropy coder compatible with discrete flows for real-time compression.
- To bridge the gap between high compression ratios and practical deployment speed in neural compression.
- To enable efficient, scalable lossless compression across diverse image datasets, including high-resolution images.
Proposed method
- Introduces Modular Scale Transform (MST), a flexible family of discrete-space bijections derived from continuous flows, enabling numerically invertible transformations.
- Proposes Uniform Base Conversion Systems (UBCS), a dynamic entropy coder that operates in constant time per symbol using only two operations, enabling fast compression.
- Combines MST with UBCS to create a fully invertible, end-to-end compression pipeline with exact bijection between input data and latent variables.
- Employs a flow-based architecture composed of multiple MST layers, with latent variables transformed via learnable, volume-preserving bijections.
- Uses the negative log-likelihood as the training objective, minimizing reconstruction error while maintaining exact invertibility.
- Leverages the bits-back coding framework to encode numerical errors without loss, enabling use of continuous flows in discrete compression.
Experimental results
Research questions
- RQ1Can we design a flow-based compression model that maintains high compression ratios while achieving significantly faster coding speeds than existing neural codecs?
- RQ2How can we ensure exact invertibility between discrete input data and latent variables in normalizing flows without introducing representational constraints?
- RQ3Can a dynamic entropy coder be designed to operate efficiently with discrete flows, reducing coding time without sacrificing compression efficiency?
- RQ4To what extent can the proposed method generalize across diverse image datasets, including high-resolution and real-world benchmarks?
- RQ5How does the combination of MST and UBCS compare to existing approaches like LBB and iVPF in terms of both compression ratio and speed?
Key findings
- iFlow achieves state-of-the-art compression ratios across all tested datasets, including CIFAR-10, ImageNet32, and ImageNet64.
- The method is 5× faster in coding speed than LBB, the next-best high-performance scheme, while maintaining superior compression efficiency.
- iFlow's codelength is extremely close to the theoretical minimum, indicating near-optimal compression performance.
- The model generalizes well to high-resolution images, outperforming all baselines when compressing non-overlapping 32×32 and 64×64 patches.
- UBCS enables dynamic entropy coding with only two operations per symbol, significantly outperforming ANS and AC in speed while maintaining compression fidelity.
- The approach demonstrates strong generalization, achieving improved performance on ImageNet64 using a model pre-trained on ImageNet32.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.