Skip to content
AI Learning Ground Start learning

Research ·

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

Researchers introduced FMT, a learned lossless image format that decodes in a fixed number of parallel GPU steps, closing the speed gap with classical codecs while keeping learned-codec compression gains.

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

Learned lossless image codecs compress files smaller than classical codecs, but they decode photos in seconds where classical codecs take milliseconds, and their faster variants lose most of the size advantage. The paper argues much of the slowdown is waiting, not computation: the prediction network stalls on values it conditions on, and the arithmetic decoder reads values one at a time.

FMT (Fixed-step Multiscale Tree) is a lossless format designed so neither wait grows with image size. It stores an image as a coarse-to-fine tree whose steps contain independent values. A GPU predicts each step in one shot, and decoding runs in parallel rANS lanes whose states carry from step to step, so any image decodes in a fixed number of sequential steps. A family of bit-exact codecs is built on this tree, ranging from a no-network rule to large networks.

Reported results: without a network, FMT beats NVIDIA's HTJ2K on both size and speed; with a large network, it decodes Kodak photos 9 to 61 times faster than learned codecs on the same A100, at the same size or smaller. The authors claim no codec they ran on the same GPU beat any FMT variant on both size and speed. Code will be added later.

For developers working with AI-generated or learned-codec images, FMT suggests learned lossless compression can finally be practical for archives and training data, since parallel, fixed-step GPU decoding removes the seconds-per-photo bottleneck that kept these codecs out of real pipelines.

References

Read the full story at Hugging Face ↗Like, save or discuss on Buzz

#research