FMT:固定并行步数下的无损图像压缩

·

研究论文 · 2026/11/18

学习型无损编解码器能生成比经典编解码器更小的文件,但解码时间却长达数秒,而经典编解码器仅需毫秒。本文指出,大部分时间花在等待而非计算上:网络等待条件值,算术解码器逐个读取。为此,作者提出FMT(固定步数多尺度树),一种无损图像格式,其解码顺序和熵编码器协同设计,使得等待时间不随图像大小增长。FMT将图像存储为粗到细的树,每一步包含独立值:GPU一次性预测每一步,并在并行rANS通道中解码,这些通道逐步携带状态,因此任意大小的图像都能在固定数量的顺序步骤中解码。基于此树,作者构建了一系列位精确编解码器,从无网络规则到大型网络,并在同一GPU上测试,没有编解码器能在大小和速度上同时超越它们。无网络时,FMT在大小和速度上超越NVIDIA的HTJ2K;使用大型网络时,在A100上解码Kodak照片比学习型编解码器快9至61倍,且大小相同或更小。

该研究揭示了学习型无损编解码器速度慢的根源在于等待,并提出FMT格式通过固定步数并行解码大幅提升速度,同时保持甚至超越经典编解码器的压缩率,有望推动学习型编解码器在实际归档和训练中的广泛应用。

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.

阅读原文

参与讨论