PerLIC: Learned Lossless Compression with Small Integer CPU Decoders
Daxin Li, Kai Wang, Yuanchao Bai, Yujia Chen, Wenbo Zhao, Junjun Jiang, Xianming Liu
原文摘要
Classical lossless codecs such as JPEG XL decode quickly and exactly on a CPU, which every device has. The best learned codecs reach lower bitrates but run floating-point networks on a GPU; a probability mismatch with the encoder can then break decoding, and a network small enough to decode in integers at classical speed has little capacity. We present PerLIC, a learned codec that decodes like a classical one: an eight-bit network with 11.5k to 144k parameters reads classical features and decodes entirely in integers on a CPU, while a GPU encoder fits and transmits a low-rank adapter for each image. A recurrent per-pixel state reuses the computation of earlier pixels; under exact decoding, in our runs its short unrolls pay off only from stored states, not from zeros, and a persistent state table supplies these cheaply during fitting. Decoder-side value sets recover the probability that a predicted distribution with few peaks spreads over the gaps between the values that a channel takes given the earlier channels, with only a per-image switch in the header. Our smallest model, PerLIC-S, has an 8.4% lower bitrate than JPEG XL on 250 images of seven test sets and decodes about as fast on eight AVX-512 CPU cores, with 11.3k multiply-adds per pixel and 2.15 s of encoding per image. Our largest model, PerLIC-L, matches the strongest other learned codec that we evaluated with 4x fewer multiply-adds. Every stream decodes bit-exactly, and tested subsets also do so on 5 CPU models, including Apple ARM, and on 5 GPU models.
cs.CV