arXiv:2611.07644cs.CVNov 2026

Manuscript Offprint

arXiv:2611.07644

Neural Image Compression with Internal-External Prior Fusion and Alignment

Tiancheng Si, Wenlong Xu, Dahua Gao

Tiancheng Si

School of Artificial Intelligence

Xidian University

Xi'an 710126, China

tiancheng@stu.xidian.edu.cn

Wenlong Xu

School of Artificial Intelligence

Xidian University

Xi'an 710126, China

xuwl@stu.xidian.edu.cn

Dahua Gao

School of Artificial Intelligence

Xidian University

Xi'an 710126, China

dhgao@xidian.edu.cn

Abstract—Existing context models for learned image compression rely primarily on internal priors from the current image, overlooking common patterns and typical textures shared across natural images. To address this limitation, we propose an Internal-External Prior Fusion-Alignment (IE-PFA) context model built upon quadtree spatial-channel joint modeling, where a learnable dictionary shared by the encoder and decoder serves as an external prior. Specifically, an RWKV-based Spatial-Channel Prior Fusion (RSCPF) module efficiently fuses internal and external priors along spatial and channel dimensions with linear complexity, while a training-only Self-Distilled Prior Alignment (SDPA) mechanism aligns them without inference overhead. Moreover, our model supports variable-rate coding over 64 quality levels within a single network and is accelerated by custom CUDA operators. Experiments on seven benchmarks demonstrate state-of-the-art rate-distortion performance, achieving an average BD-Rate saving of 21.65% over VTM-22.0-Intra, with only 29.9M parameters and the fastest coding speed among advanced neural codecs (61 ms encoding and 52 ms decoding). Code is available at https://github.com/stcnjtech/DCVC-X-Intra.

Index Terms—Image Compression, Prior Alignment, Prior Fusion, Self-Distillation

I. INTRODUCTION

Neural image compression (NIC), driven by end-to-end rate-distortion optimization, has advanced rapidly and achieved performance competitive with or even superior to traditional codecs such as VVC [1]–[5]. In NIC, the entropy model estimates the probability distribution of quantized latents and plays a crucial role in determining the bitrate of the compressed bitstream. To improve entropy estimation, existing methods have developed various context models, including hyperprior-based models [2], spatial [3], [4] or channel-wise [5] autoregressive models, and joint spatial-channel context models [6]. These approaches have sought a better balance between compression performance and coding efficiency.

However, existing context models primarily rely on internal priors from the current image, such as decoded latents and hyperprior features, while overlooking the common patterns and typical textures shared across natural images [7]. Such dataset-level external priors contain rich global statistics and can complement distribution estimation when single-image information is insufficient [8], especially at low bitrates [9]–[11] or in complex texture regions [7]. Exploiting these priors, however, raises two challenges: (i) internal and external priors differ substantially in representation, requiring efficient deep fusion without heavy computational overhead; and (ii) the distribution shift between them may even degrade entropy estimation if not properly constrained.

Figure

RWKV-based Spatial-Channel Prior Fusion (RSCPF) Self-Distilled Prior Alignment (SDPA)

Fig. 1. Overall architecture of our proposed model. The core is the Internal-External Prior Fusion-Alignment (IE-PFA) context model, which estimates the latent distribution by jointly exploiting internal priors and external priors provided by a learnable dictionary capturing common patterns of natural images.

To this end, we propose the Internal-External Prior Fusion-Alignment (IE-PFA) context model, which adopts a learnable dictionary shared between the encoder and decoder to provide external priors without transmitting any additional bits. Within a quadtree spatial-channel modeling framework, we design the RWKV-based Spatial-Channel Prior Fusion (RSCPF) module to efficiently fuse internal and external priors along both spatial and channel dimensions with linear complexity. To mitigate the distribution shift between the two priors, we further introduce a training-only Self-Distilled Prior Alignment (SDPA) mechanism, which uses mini-batch similarity structures as soft supervision to align the external prior with the internal one at zero inference cost. In addition, we use a three-stage progressive training strategy to further promote effective fusion and alignment of the two priors, and introduce a shared rate-adjustment module bank to enable smooth variable-rate adjustment within a single model. Our main contributions are:

We propose IE-PFA, which introduces external priors via a shared learnable dictionary and jointly estimates entropy parameters with internal priors, exploiting cross-image statistics without extra bits.

  • We design the linear-complexity RSCPF fusion module and the training-only SDPA alignment mechanism, complemented by a three-stage progressive training strategy.

• Experiments show that our method, with only 29.9M parameters, achieves an average BD-Rate saving of 21.65% over VTM-22.0-Intra on seven benchmarks, outperforming advanced NIC methods while offering the fastest coding speed and smooth single-model variable-rate adaptation.

Corresponding author: Dahua Gao.

(a) Internal-External Prior Fusion-Alignment (IE-PFA) Context Model

Figure

(b) RWKV-based Spatial-Channel Prior Fusion (RSCPF)

(c) Self-Distilled Prior Alignment (SDPA)

Fig. 2. (a) The proposed IE-PFA context model with four branches based on quadtree spatial-channel joint modeling. Each branch eie_i mainly consists of (b) the RWKV-based Spatial-Channel Prior Fusion (RSCPF) module and (c) the Self-Distilled Prior Alignment (SDPA) mechanism.

References (32)