arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2212.07372cs.CVeess.IV
收藏

基于乘积量化掩码图像建模的图像压缩

Image Compression with Product Quantized Masked Image Modeling

Meta AI, FAIR Team, Paris(Meta AI,FAIR团队,巴黎);ENS, PSL University(巴黎高等师范学院,巴黎文理研究大学);INRIA, Paris(法国国家信息与自动化研究所,巴黎)

Alaaeldin El-Nouby, Matthew J. Muckley, Karen Ullrich, Ivan Laptev, Jakob Verbeek, Hervé Jégou

AI总结:

本研究结合乘积量化与掩码图像建模,改进VQ-VAE框架用于图像压缩,性能媲美超先验方法,在感知指标上优于HiFiC,还可实现压缩与生成混合模式及200字节极端压缩。

摘要:

近期的神经压缩方法均基于主流的超先验框架,该框架依赖标量量化,具备极强的压缩性能。这与图像生成和表征学习领域的最新进展形成对比——后者更常使用矢量量化。在本研究中,我们通过重新探究用于图像压缩的矢量量化,尝试拉近这两类研究方向的距离。我们以VQ-VAE框架为基础,引入了多项改进。首先,我们用乘积量化器替换了原有的普通矢量量化器。这种介于矢量量化和标量量化之间的折中方案可提供更广泛的率失真点集合:它能隐式定义高质量量化器,若采用常规方法构建这类量化器则需要大到难以处理的码本。其次,受掩码图像建模(Masked Image Modeling, MIM)在自监督学习和生成式图像模型领域取得的成功启发,我们提出了一种新型条件熵模型,该模型通过对量化潜码的相互依赖关系建模来优化熵编码。最终得到的PQ-MIM模型效果出人意料:其压缩性能与近期的超先验方法相当。当采用感知损失(如对抗损失)优化时,它在FID和KID指标上的表现也优于HiFiC。最后,由于PQ-MIM与图像生成框架兼容,我们通过定性实验证明,它无需额外训练或微调即可在压缩与生成的混合模式下运行。据此,我们探索了极端压缩场景:将一张图像压缩至200字节,即比一条推文的体积还小。

英文摘要:

Recent neural compression methods have been based on the popular hyperprior framework. It relies on Scalar Quantization and offers a very strong compression performance. This contrasts from recent advances in image generation and representation learning, where Vector Quantization is more commonly employed. In this work, we attempt to bring these lines of research closer by revisiting vector quantization for image compression. We build upon the VQ-VAE framework and introduce several modifications. First, we replace the vanilla vector quantizer by a product quantizer. This intermediate solution between vector and scalar quantization allows for a much wider set of rate-distortion points: It implicitly defines high-quality quantizers that would otherwise require intractably large codebooks. Second, inspired by the success of Masked Image Modeling (MIM) in the context of self-supervised learning and generative image models, we propose a novel conditional entropy model which improves entropy coding by modelling the co-dependencies of the quantized latent codes. The resulting PQ-MIM model is surprisingly effective: its compression performance on par with recent hyperprior methods. It also outperforms HiFiC in terms of FID and KID metrics when optimized with perceptual losses (e.g. adversarial). Finally, since PQ-MIM is compatible with image generation frameworks, we show qualitatively that it can operate under a hybrid mode between compression and generation, with no further training or finetuning. As a result, we explore the extreme compression regime where an image is compressed into 200 bytes, i.e., less than a tweet.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑