HyperCool: Reducing Encoding Cost in Overfitted Codecs with Hypernetworks

Pep Borrell Tatché, Till Aczel, Théo Ladune, Roger WattenhoferML4Wireless @ AAAI 2025 · DOI

TL;DR

This paper introduces HyperCool, a novel hypernetwork-based approach that significantly speeds up the encoding process of overfitted image codecs without sacrificing compression quality. By generating image-specific decoder parameters on-the-fly, HyperCool achieves a 4.9% bitrate reduction compared to its faster but less efficient predecessor, N-O Cool-chic, and can even match HEVC-level compression with substantially reduced computational cost.

What Problem Does This Paper Address?

Traditional learned image compression methods often achieve excellent rate-distortion (RD) performance but come with high computational demands, especially during encoding. "Overfitted" codecs, like Cool-chic, tackle this by training a unique, lightweight model for each image. This results in competitive compression and fast decoding, but the per-image optimization process during encoding is extremely slow and computationally expensive. To address this, Non-Overfitted (N-O) Cool-chic was developed, which uses a universal decoder, drastically speeding up encoding but at the cost of a significant drop in compression efficiency. The core problem HyperCool aims to solve is bridging this gap: how to achieve the compression benefits of overfitted codecs while retaining the fast encoding speed of non-overfitted methods.

Methods

HyperCool builds upon the N-O Cool-chic framework. The key innovation is the introduction of a hypernetwork ($f_h$). This hypernetwork takes an input image and, in a single forward pass, generates weight modulations ($\Delta w$). These modulations are then added to the base decoder parameters ($w$) of a pre-trained N-O Cool-chic decoder, creating an image-adapted decoder ($w_e = w + \Delta w$). This process effectively tailors the decoder to the specific input image without requiring any per-image fine-tuning or iterative optimization. The hypernetwork itself consists of a ResNet-50 backbone for feature extraction, followed by separate Multi-Layer Perceptrons (MLPs) that generate modulations for different parts of the decoder (upsampling, synthesis, and autoregressive entropy model).

Crucially, the modulations are transmitted as part of the compressed bitstream. To ensure efficiency, a simple test is performed at the encoder to determine if applying these modulations actually improves compression. If not, they are discarded, guaranteeing that HyperCool never performs worse than the base N-O Cool-chic.

Datasets

  • Training: OpenImages dataset (500,000 samples).
  • Evaluation:
    • Kodak dataset (24 images, 768x512 resolution).
  • CLIC2020 professional validation dataset (41 images, varying resolutions from 512x384 to 2048x1370).

Key Insights and Ideas

  • Hypernetworks as "Smart Initializers": The paper demonstrates that HyperCool's output can serve as a highly effective initialization for the fully overfitted Cool-chic process. This significantly reduces the number of optimization steps needed to reach near-optimal compression, making the overfitted approach more practical.
  • Modulation vs. Full Parameter Transmission: The paper highlights that transmitting only the modulations ($\Delta w$) is more efficient than transmitting the entire set of adapted parameters ($w_e$). The standard deviation analysis shows that modulations are more compact and thus more compressible.
  • Complementary Modulation Modules: Ablation studies reveal that different parts of the hypernetwork (ARM, upsampling, synthesis) contribute uniquely. ARM modulations primarily reduce latent bitrate, while upsampling and synthesis modulations improve PSNR. Combining all modules yields the best overall RD performance.
  • Adaptive Usage: The mechanism to selectively use modulations based on their benefit is critical. This ensures that HyperCool's overhead is only incurred when it provides a tangible improvement, making it robust across different bitrates and image types.

Key Results

  • Compression Improvement: HyperCool achieves a 4.9% BD-rate reduction compared to the N-O Cool-chic baseline on the CLIC2020 dataset, narrowing the gap to fully overfitted methods.
  • Encoding Speed: The hypernetwork inference is a single forward pass, making encoding significantly faster than traditional overfitted methods. HyperCool's encoding complexity is orders of magnitude lower than fully overfitted Cool-chic (e.g., 500-3000x cheaper).
  • Initialization Advantage: Using HyperCool as an initialization for Cool-chic reduces the number of fine-tuning steps by 40% to reach HEVC-level compression.
  • Modulation Usage: Modulation usage varies with bitrate and dataset size. At higher bitrates, nearly all images benefit from modulations. On larger images (like in CLIC2020), modulations are more frequently used, contributing to better performance gains.

Limitations and Future Work

  • Low Bitrate Performance: The performance advantage of HyperCool is most pronounced at medium to high bitrates. At very low bitrates, the quantization process might favor excluding modulations to save rate, leading to performance similar to the base N-O Cool-chic.
  • Dependency on Base Model: HyperCool's effectiveness is tied to the quality of the pre-trained N-O Cool-chic base model, as it only generates modulations for that specific architecture.
  • Future Directions:
    • Exploring alternative hypernetwork architectures.
  • Investigating other meta-learning strategies (e.g., MAML) for even better adaptable bases.
  • Developing hybrid methods that combine meta-learning with hypernetwork modulations for enhanced parametrization.

Summary updated

BibTeX
@inproceedings{tatche2025hypercool,
  author = {Pep Borrell Tatché and Till Aczel and Théo Ladune and Roger Wattenhofer},
  title = {{HyperCool: Reducing Encoding Cost in Overfitted Codecs with Hypernetworks}},
  booktitle = {ML4Wireless @ AAAI},
  year = {2025},
  doi = {10.48550/arxiv.2509.18748},
}
Figure