FMT: Lossless Image Compression in a Fixed Number of Parallel Steps

Ammar AliarXiv 2026

TL;DR

FMT (Fixed-step Multiscale Tree) is a novel lossless image compression format that breaks the sequential bottleneck of learned codecs by co-designing a coarse-to-fine decoding order with a parallel entropy coder. By decoding images in a fixed number of parallel steps regardless of resolution, FMT achieves state-of-the-art compression ratios while running 9× to 61× faster than previous neural methods on GPUs.

What Problem Does This Paper Address?

In the world of image compression, there is a painful trade-off between size and speed. Classical codecs like PNG or JPEG XL are incredibly fast but don't compress as well as modern "learned" codecs that use neural networks. However, these learned codecs are notoriously slow—often taking seconds to decode a single photo that a classical codec would open in milliseconds.

The authors argue that this slowness isn't just about heavy computation; it's about waiting. Most learned codecs are autoregressive, meaning they decode pixels one by one (or in small groups). The neural network must wait for previous pixels to be decoded before it can predict the next one, and the entropy decoder (the part that turns bits into values) is inherently serial. This creates a long sequential chain that leaves powerful GPUs mostly idle.

Methods

The core innovation is FMT (Fixed-step Multiscale Tree), which replaces the standard raster-scan decoding order with a hierarchical tree structure.

  1. Coarse-to-Fine Tree: Instead of decoding row-by-row, FMT starts with a very sparse "root" grid (e.g., one pixel every 64 pixels). It then fills in the gaps over several levels. At each level, new pixels are predicted from their already-decoded neighbors. Because these new pixels only depend on pixels from previous levels, all pixels within a single step can be predicted in parallel.
  2. Parallel rANS Lanes: To solve the serial bottleneck of entropy decoding, FMT uses interleaved "lanes" of rANS (Range Asymmetric Numeral Systems). Crucially, these lanes carry their state from one step to the next. This avoids the overhead of restarting the entropy coder at every level, which would otherwise hurt compression efficiency.
  3. Three Coding Modes:
    • Fast: Uses a reversible wavelet transform and no entropy coder for maximum speed.
  4. Dense: Uses hand-designed rules and shared histograms, beating classical codecs like HTJ2K on both size and speed without using a neural network.
  5. Neural: Uses small MLPs to predict pixel probabilities, achieving the highest compression.
Figure 1. Two ways to decode a 768×512 photo, and what the second buys. (a) A sequential decoder, such as the arithmetic decoder of a pixel-by-pixel model or of DLPR [4], reads its 1,179,648 values one after another. (b) FMT stores the photo as a coarse-to-fine tree: a root of one pixel in 64 along each axis, then levels that add the pixels halfway between the decoded ones, as corrections to predictions from them. A step’s pixels are independent, so a GPU predicts them at once and decodes them in parallel lanes: 72 steps (3 channels × 6 levels × 4 steps), a few thousand values per lane. (c) FMT on one RTX 4090 against classical codecs (JPEG XL on a 32-thread CPU) and learned codecs at their published times: every codec in the shaded area is larger and slower than an FMT mode (all codecs: Fig. 4).

Datasets

The authors evaluated FMT on three standard benchmarks:

  • Kodak: 24 images (768×512), a classic benchmark for image compression.
  • CLIC.p: A subset of the CLIC 2020 professional dataset (high-resolution).
  • DIV2K: A validation set of 100 high-quality 2K resolution images.
  • Training: Networks were trained on crops from DIV2K, CLIC, and Flickr2K.

Key Insights and Ideas

  • Fixed Sequential Depth: Because the tree structure is defined by its root spacing, an image of any size can be decoded in a fixed number of sequential steps (e.g., 72 steps for the neural mode). As images get larger, the steps get wider (more parallel work), but the sequential chain doesn't get longer.
  • Co-design is Mandatory: You cannot simply take a parallel model and slap it onto a serial entropy coder. FMT's success comes from designing the pixel order and the entropy coder to work together on the GPU.
  • Context on All Sides: In a standard raster scan, a pixel only "sees" neighbors above and to the left. In FMT's tree, most pixels have decoded neighbors on all four sides, providing better context for prediction and allowing for smaller neural networks.

Key Results

FMT effectively redefines the Pareto frontier for lossless compression:

  • Speedup: The neural FMT mode decodes Kodak images 9× to 61× faster than existing learned codecs (like FNLIC or ArIB-BPS) when compared at the same or better compression levels on the same hardware (NVIDIA A100).
  • Beating Classical Codecs: Without any neural network, the "Dense" mode is both smaller and faster than NVIDIA’s high-performance HTJ2K implementation.
  • Throughput: In "Fast" mode, FMT can decode between 8.8 and 11.8 gigapixels per second on an RTX 4090, outperforming every other codec tested.

Limitations and Future Work

  • Per-Photo Tuning: To reach peak compression, the neural modes require a "tuning" step (gradient descent on the specific image) which takes several seconds. While decoding is fast, this makes the encoding process slow for high-compression modes.
  • Memory Overhead: For extremely large images (e.g., 33 megapixels), the index tables used to manage the tree structure can consume significant GPU memory (up to 9.6 GB).
  • Bit Depth: The current implementation is optimized for 8-bit images. Extending this to 10-16 bit medical or cinematic data would require retraining and wider frequency tables.
  • Video: The authors suggest that the tree structure could naturally extend into the time dimension for high-speed lossless video compression.

Summary updated

Abstract

Learned lossless codecs make smaller files than common classical codecs, yet the images we archive and train on still use classical codecs. A main reason is time: a learned codec takes seconds to decode a photo that a classical codec opens in milliseconds, and their faster variants give up most of their gain in size. We argue that much of this time is spent waiting, not computing: the network waits for the values it conditions on, and the arithmetic decoder reads them one at a time. We introduce FMT (Fixed-step Multiscale Tree), a lossless image format whose decoding order and entropy coder are designed together so that neither wait grows with the image. FMT stores an image as a coarse-to-fine tree whose steps hold independent values: a GPU predicts each step at once and decodes it in parallel rANS lanes that carry their states from step to step, so an image of any size decodes in a fixed number of sequential steps. On this tree we build a family of bit-exact codecs, from a rule with no network to large networks, and no codec we ran on the same GPU beats any of them on both size and speed. Without a network, FMT beats NVIDIA's HTJ2K on size and speed; with a large one, it decodes Kodak photos 9 to 61X faster than learned codecs we ran on the same A100, at the same size or smaller.
BibTeX
@misc{ali2026fmt,
  author = {Ammar Ali},
  title = {{FMT: Lossless Image Compression in a Fixed Number of Parallel Steps}},
  year = {2026},
  eprint = {2611.23108},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.23108},
}
Figure