Introduction
Deep image compression (DIC) has recently surpassed traditional standards like JPEG and BPG. However, DIC still struggles at very low bit rates, where it often loses fine textures and structural details. One promising solution is "reference-based" compression, which uses an auxiliary image to help encode the current one. However, most existing methods require a specific, highly correlated auxiliary image. This paper introduces Conditional Latent Coding (CLC), a framework that dynamically retrieves and synthesizes a custom reference from a "universal dictionary" of external image features to boost efficiency for any arbitrary image.
Proposed Framework
The CLC framework moves beyond simple reference selection by implementing a dynamic synthesis approach in the latent domain.
The pipeline consists of three primary stages:
- Universal Feature Dictionary Construction: A dictionary is curated from 3,000 diverse web images. Using a pre-trained ResNet-50 with Spatial Pyramid Pooling (SPP), multi-scale features are extracted, reduced via PCA, and clustered using MiniBatch K-means to create representative "visual atoms."
- Conditional Latent Matching (CLM): For a new input image, the system queries the dictionary for the top $M$ most similar feature sets. A CLM module utilizes deformable convolutions to warp and align these retrieved features to the input image's geometry.
- Conditional Latent Synthesis (CLS): The CLS module predicts adaptive weights to blend input features with aligned dictionary features, creating a conditioning latent. This synthesized reference guides the entropy model to more accurately predict data probability distributions, reducing the required bit-rate.
Methodology Details
Synthesis over Selection
A key insight of this work is that a synthesized reference is significantly more powerful than a retrieved one. By blending multiple dictionary entries, the model creates a "hallucinated" reference tailor-made for the specific input. Furthermore, matching and aligning features in the latent space allows the model to ignore pixel-level noise and focus on high-level structural correlations.
Efficiency and Scalability
To maintain operational speed, the authors implemented a KV-cache mechanism and a "ball tree" search strategy. Theoretical analysis demonstrates that the error bound of feature retrieval scales logarithmically with dictionary size, allowing for increased diversity without linear explosions in error.
Experimental Results
The model was trained on the Flickr2W dataset and evaluated on the Kodak and CLIC datasets.
Quantitative Performance
As shown in the rate-distortion curves, the CLC method consistently outperforms state-of-the-art models like TCM and ELIC, as well as traditional codecs like VTM. It achieves a PSNR improvement of up to 1.2 dB. On the Kodak dataset, to reach a high quality (MS-SSIM of 0.95), CLC requires only 0.1 bits per pixel (bpp), representing a 1.5x to 3.8x increase in compression ratio compared to competing methods.
Qualitative Analysis
Qualitatively, the model excels at preserving sharp, repetitive textures—such as architectural details—that typically blur in standard low-bitrate compression.
Conclusion
CLC demonstrates that leveraging external visual patterns through a learnable synthesis process can significantly enhance deep image compression. While encoding complexity increases with dictionary size, the gains in reconstruction quality and bit-rate efficiency mark a substantial step forward for reference-based DIC. Future work may explore generative compression to further "re-imagine" details using dictionary-guided synthesis.
Summary updated