Universal Deep Image Compression via Content-Adaptive Optimization with Adapters

Koki Tsubota, Hiroaki Akutsu, Kiyoharu Aizawa

TL;DR

Deep image compression models usually fail when they encounter images outside their training domain (like comics or line drawings). This paper introduces a "universal" framework that adapts a pre-trained model to any specific image by optimizing its latent representation and training tiny, image-specific "adapters" inserted into the decoder. This approach significantly outperforms standard codecs like VVC on diverse artistic domains while remaining highly parameter-efficient.

What Problem Does This Paper Address?

Deep Image Compression (DIC) has recently surpassed traditional standards like JPEG and BPG by using neural networks to learn how to represent images efficiently. However, these models have a "domain gap" problem: a model trained on a million photos of nature will struggle to compress a comic book or a technical vector illustration. When faced with these "out-of-domain" images, the compression performance drops sharply, often falling behind traditional non-learned codecs like VVC.

The authors tackle the challenge of Universal Deep Image Compression—creating a single learned system that can efficiently compress images from arbitrary domains (natural, artistic, or synthetic) without needing to be fully retrained for every new style.

Methods

The researchers propose a content-adaptive optimization framework built on top of a state-of-the-art base model (WACNN). Their method involves two main stages performed during the encoding of a single image:

  1. Latent Refinement: Instead of just using the encoder's first guess, the system iteratively optimizes the "latent representation" (the compressed features) to find the best balance between file size (rate) and image quality (distortion).
  2. Adapter Training: This is the core novelty. The authors insert "adapters"—tiny modules consisting of simple matrix decompositions—into the decoder. While the rest of the massive pre-trained model remains frozen, the encoder trains these few adapter parameters specifically for the image at hand.

By sending both the compressed image data and the tiny bitstream for the adapter parameters, the decoder can "re-tune" itself to the specific textures and structures of that unique image (e.g., the sharp lines of a comic or the flat gradients of vector art).

Datasets

To test "universality," the authors constructed a benchmark dataset covering four distinct domains:

  • Natural Images: 24 images from the classic Kodak dataset.
  • Comics: 100 images sampled from the BAM (Behance Artistic Media) dataset.
  • Line Drawings: 100 images (labeled "pen ink") from the BAM dataset.
  • Vector Art: 100 images from the BAM dataset.

The base models were pre-trained only on natural images from OpenImages, making the artistic categories true "out-of-domain" tests.

Key Insights and Ideas

  • Extreme Parameter Efficiency: The adapters are incredibly small. For the WACNN model, the adapters added only 768 parameters—just 0.0012% of the total model size. This allows the "overhead" of sending the adapter settings to be negligible compared to the image data itself.
  • Decoder-Side Adaptation is Key: Previous methods mostly focused on refining the encoder's output. By allowing the decoder to adapt via these modules, the model can better reconstruct domain-specific textures (like brush strokes or hatching) that the original natural-image-only decoder didn't know how to draw.
  • Optimization Order Matters: The authors found that refining the latents before training the adapters yielded better results than the reverse, suggesting that the adapters work best when they are "correcting" a reasonably well-optimized feature set.

Key Results

  • Quantitative Superiority: The proposed method outperformed the baseline (non-adaptive) model by 1–2 dB in PSNR across all domains.
  • Beating the Standards: On the "Vector Art" domain, the model achieved a 2.87% BD-rate improvement over VVC (the current state-of-the-art conventional codec), whereas the non-adaptive deep model was 25.3% worse than VVC.
  • Qualitative Fidelity: Visual results show that the adapter-based method preserves fine details—like the thin wires in a landscape or the sharp boundaries of text in vector art—that JPEG, BPG, and even standard deep models often blur or distort with artifacts.

Limitations and Future Work

The primary drawback of this approach is Encoding Time. Because the encoder has to run an optimization loop (gradient descent) for every single image, encoding takes about 260 seconds per image on an NVIDIA Tesla V100, compared to just 0.16 seconds for a standard model.

The authors identify reducing this encoding overhead as the most critical direction for future work. Additionally, while the framework is "universal" in its ability to adapt, it still relies on a pre-trained base; exploring how different pre-training strategies affect adaptation speed and quality remains an open question.

Summary updated

BibTeX
@inproceedings{tsubota2023universal,
  author = {Koki Tsubota and Hiroaki Akutsu and Kiyoharu Aizawa},
  title = {{Universal Deep Image Compression via Content-Adaptive Optimization with Adapters}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2023},
  url = {https://openreview.net/forum?id=aLBwVeC3UA},
}
Figure