IDF
A flow-based generative model that maps integers to integers, built for lossless image compression.
Diffusion and generative · 1,927 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Parameters
- 58.5M
- Operations
- 1,927
- Framework
- PyTorch
- Recurrent
- No
- Published
- NeurIPS 2019
- Cited by
- 48 (as of 26 October 2026)
- Authors
- Emiel Hoogeboom, Jorn W. T. Peters, Rianne van den Berg, Max Welling
- License
- MIT
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m17471
- Graph hash
- 6a889a9138de9d07d6a0882383ec4d19a0e9d256f6199e082ebfddda64be343d
- Skeleton hash
- 7d8792dc2f0a7c9fe89e673dbd3c28d3a3aac0f5c9d4b494caad258ac870f739
- Architecture hash
- 6904dc4dd6fe8022f32f593b6b6494c9cc69537434454bc001a0ca570a627d31
- Diagram SHA-256
- 0496a96b4e476b7a50ae2f8fcdacb31887b85ee6870131f4008befb8a9cb31b4
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
Integer Discrete Flow (IDF) is a flow-based generative model for ordinal discrete data such as images, built as an invertible map from integers to integers. The motivation is lossless compression: conventional flows assume continuous data, which may lead to reconstruction errors when the values are quantized for compression.
The building block is the integer discrete coupling layer, whose output is a copy of the first part of the input and a conditional transformation of the second part. That transformation is a translation predicted by a neural network and rounded to the nearest integer, with no multiplication. Rounding has a zero gradient almost everywhere, so training uses the Straight Through Estimator, which ignores the rounding operation during back-propagation. The input is split 75% to 25% so that rounding is applied to fewer dimensions. Each level of the architecture consists of a squeeze operation, a number of integer flow layers and a factor-out layer, and the networks inside the coupling and factor-out layers are DenseNets.
The paper reports that IDF-based compression achieved the best lossless compression rates among the methods it compared on CIFAR10, ImageNet32 and ImageNet64. The authors also state that, to the best of their knowledge, it was the first lossless compression method to use invertible neural networks.
Key idea. The paper introduces Integer Discrete Flow, a flow-based generative model for ordinal discrete data built as a bijective integer map, and applies it to lossless compression.
- integer discrete flows
- integer discrete flow
- idf
- lossless compression
- discrete flow
- flow-based generative model
- integer discrete coupling
- invertible neural network compression
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{hoogeboom2019integerdiscreteflowslossless,
title={Integer Discrete Flows and Lossless Compression},
author={Emiel Hoogeboom and Jorn W. T. Peters and Rianne van den Berg and Max Welling},
year={2019},
eprint={1905.07376},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/1905.07376},
}