[论文解读] Entroformer: A Transformer-based Entropy Model for Learned Image Compression
Entroformer 引入基于 transformer 的熵模型,采用 diamond 相对位置编码和 top-k 自注意力,以提升学习型图像压缩,在更快解码的平行双向上下文两遍框架下实现最优的速率-失真性能。
One critical component in lossy deep image compression is the entropy model, which predicts the probability distribution of the quantized latent representation in the encoding and decoding modules. Previous works build entropy models upon convolutional neural networks which are inefficient in capturing global dependencies. In this work, we propose a novel transformer-based entropy model, termed Entroformer, to capture long-range dependencies in probability distribution estimation effectively and efficiently. Different from vision transformers in image classification, the Entroformer is highly optimized for image compression, including a top-k self-attention and a diamond relative position encoding. Meanwhile, we further expand this architecture with a parallel bidirectional context model to speed up the decoding process. The experiments show that the Entroformer achieves state-of-the-art performance on image compression while being time-efficient.
研究动机与目标
- 提高熵模型的预测准确性,以在不增加失真的情况下提升压缩效率。
- 捕捉超越基于 CNN 的模型在潜在表示中的长距离空间依赖。
- 通过并行双向上下文和两遍解码来提升解码速度。
- 为基于 transformer 的图像压缩熵建模提供稳定的训练框架。
提出的方法
- 使用基于 transformer 的熵模型(Entroformer)来预测给定超先验和上下文的潜在量的高斯参数。
- 引入钻石形相对位置编码(diamond RPE)以将二维空间先验偏置到注意力上。
- 应用 top-k 自注意力机制以提炼信息依赖并稳定训练。
- 扩展到带双向上下文的并行两遍解码框架,以在保持性能的同时加速解码。
- 将超先验、上下文模型和线性融合结合起来,预测高斯熵模型的(μ, σ)。
实验结果
研究问题
- RQ1基于 transformer 的熵模型是否能在学习型图像压缩中优于基于 CNN 的熵模型?
- RQ2钻石形 RPE 与 top-k 注意力在潜在码的概率分布估计中提供了哪些好处?
- RQ3带双向上下文的并行两遍解码是否在加速解码的同时保持或提高 RD 性能?
主要发现
- Entroformer 结合超先验与上下文建模,在 Kodak 的低比特率下以 PSNR 衡量,超越最先进的基于 CNN 的方法 5.2% 并以 BPG 超越 20.5%。
- 带钻石边界的二维相对位置编码配合 top-k 自注意力能提高压缩效率(在消融实验中相对于 CNN 基线节省多达 5.8% bpp)。
- 带双向上下文和两遍解码在 GPU 上实现更快的解码,且与串行/单向变体相比几乎无性能损失。
- 并行 Entroformer 维持强 RD 性能,与串行实现相比仅约 1% 下降,同时提供加速。
- 消融显示相对和钻石 RPE 编码相对于绝对或无位置编码显著提升性能。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。