Skip to main content
QUICK REVIEW

[Paper Review] Integer Discrete Flows and Lossless Compression

Emiel Hoogeboom, Jorn W. T. Peters|arXiv (Cornell University)|May 17, 2019
Generative Adversarial Networks and Image SynthesisComputer Science39 references10 citations
TL;DR

This paper introduces Integer Discrete Flows (IDF), a normalizing flow model for ordinal discrete data that enables exact likelihood optimization and state-of-the-art lossless compression without dequantization errors. By designing a learnable, bijective integer transformation layer called integer discrete coupling, IDF achieves competitive generative modeling and superior compression rates on CIFAR10, ImageNet32, and ImageNet64, marking the first use of invertible neural networks in lossless compression.

ABSTRACT

Lossless compression methods shorten the expected representation size of data without loss of information, using a statistical model. Flow-based models are attractive in this setting because they admit exact likelihood optimization, which is equivalent to minimizing the expected number of bits per message. However, conventional flows assume continuous data, which may lead to reconstruction errors when quantized for compression. For that reason, we introduce a flow-based generative model for ordinal discrete data called Integer Discrete Flow (IDF): a bijective integer map that can learn rich transformations on high-dimensional data. As building blocks for IDFs, we introduce a flexible transformation layer called integer discrete coupling. Our experiments show that IDFs are competitive with other flow-based generative models. Furthermore, we demonstrate that IDF based compression achieves state-of-the-art lossless compression rates on CIFAR10, ImageNet32, and ImageNet64. To the best of our knowledge, this is the first lossless compression method that uses invertible neural networks.

Motivation & Objective

  • Address the limitation of continuous flow models in lossless compression due to dequantization errors when applied to discrete data such as images.
  • Develop a bijective, learnable transformation for discrete data that preserves exact invertibility and enables exact likelihood computation.
  • Enable high-dimensional, structured data compression using normalizing flows without reconstruction errors from quantization.
  • Demonstrate that IDF-based compression outperforms existing methods on standard image benchmarks and supports progressive decoding.
  • Establish a new paradigm for lossless compression using invertible neural networks, previously unexplored in this context.

Proposed method

  • Propose Integer Discrete Flow (IDF), a bijective integer map that transforms discrete data into a latent space with a tractable prior distribution.
  • Introduce the integer discrete coupling layer as a flexible, learnable transformation block that enables efficient invertible mappings on discrete data.
  • Use a learnable scale and shift network conditioned on a subset of the input to transform the remaining dimensions, ensuring bijectivity and tractable Jacobian determinant.
  • Apply the change of variables formula to compute exact log-likelihoods, enabling maximum likelihood training for compression.
  • Integrate IDF into a compression pipeline using entropy coding on the latent representation, with progressive decoding enabled by hierarchical prior structure.
  • Train the model end-to-end using negative log-likelihood minimization, with rounding applied only at inference for discrete output.

Experimental results

Research questions

  • RQ1Can invertible neural networks be effectively adapted to discrete, ordinal data such as images for lossless compression?
  • RQ2Does the proposed integer discrete coupling layer enable efficient, bijective transformations on discrete data while maintaining tractable likelihood computation?
  • RQ3Can IDF-based compression achieve state-of-the-art performance on standard image compression benchmarks like CIFAR10, ImageNet32, and ImageNet64?
  • RQ4Does the IDF framework support progressive decoding, preserving global image structure even at low bitstream fractions?
  • RQ5How does IDF compare in generative modeling performance to existing continuous flow-based models when adapted to discrete data?

Key findings

  • IDF achieves state-of-the-art lossless compression performance on CIFAR10, with a rate of 3.32 bits per dimension, outperforming prior methods including Flow++ and Glow.
  • On ImageNet32, IDF achieves 4.15 bits per dimension, demonstrating strong scalability and generalization to larger datasets.
  • On ImageNet64, IDF achieves 3.90 bits per dimension, showing competitive performance despite the increased complexity of the data.
  • IDF-based compression on the ER+BCa histology dataset achieves 2.42 bits per dimension, outperforming JPEG2000 (4.26 bpd) and JP2-WSI (3.04 bpd) in a patch-based setting.
  • Progressive decoding using IDF maintains global image structure even with only 15% of the bitstream, enabling early visualization with high fidelity.
  • IDF shows competitive generative modeling performance, with 3.32 bpd on CIFAR10 and 4.15 bpd on ImageNet32, approaching or matching continuous flow baselines despite architectural simplicity.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.