C3: High-performance and low-complexity neural compression from a single image or video

Hyunjik Kim, Matthias Bauer, Lucas Theis, Jonathan Richard Schwarz, Emilien Dupont

TL;DR

C3 (Cooler-ChiC) is a neural compression method that achieves state-of-the-art performance by overfitting a tiny, specialized model to each individual image or video rather than using one massive general-purpose model. This approach allows C3 to match the quality of the latest traditional codecs (like H.266/VTM) while requiring orders of magnitude less computational power for decoding—often less than 0.1% of the complexity of competing neural codecs.

What Problem Does This Paper Address?

Most neural compression research focuses on training large autoencoders that can generalize to any "natural" image. While these models achieve impressive rate-distortion (RD) performance, their decoding complexity is a major bottleneck. They often require millions of operations per pixel, making them impractical for mobile devices or real-time streaming without specialized hardware.

Previous attempts to solve this by "overfitting" small models to single images (like the COIN method) suffered from poor compression quality. A more recent baseline, COOL-CHIC, showed promise by learning both a tiny decoder and an entropy model per image, but it still lagged behind the best classical codecs and hadn't been successfully extended to video. C3 bridges this gap, proving that per-instance optimization can be both high-performance and extremely lightweight.

Methods

C3 builds upon the COOL-CHIC architecture, which represents an image as a hierarchy of latent grids at multiple resolutions. These grids are processed by a tiny synthesis network (a small MLP or convolutional net) to reconstruct the image.

The authors introduce several key innovations to push this architecture to its limits:

  • Advanced Optimization: Instead of simple noise addition to simulate quantization during training, C3 uses soft-rounding with an annealed temperature. This allows the model to gradually transition from continuous values to discrete steps. They also replace uniform noise with Kumaraswamy noise, which better approximates quantization errors early in training.
  • Architectural Refinements: They replaced ReLU activations with GELU, implemented a conditional entropy model (where higher-resolution latent grids can "peek" at lower-resolution ones), and added an adaptive setting that sweeps through different network sizes to find the best trade-off for a specific image.
  • Video Extension (2D to 3D): C3 extends the latent grids into the time dimension. To handle motion without the massive overhead of traditional motion compensation (like optical flow), C3 uses a learned custom mask. This allows the entropy model to efficiently look at a specific, relevant "window" in the previous frame to predict the current one.
The C3 decoding pipeline: Latents are autoregressively decoded, upsampled, and passed through a tiny synthesis network.

Datasets

The authors evaluated C3 on standard industry benchmarks:

  • Images: The Kodak dataset (24 images) and the CLIC2020 professional validation set (41 high-resolution images).
  • Video: The UVG (Ultra Video Group) benchmark, consisting of 7 high-definition (1080p) sequences totaling 3900 frames.

Key Insights and Ideas

  • Complexity vs. Generalization: The core "aha" moment is that a model doesn't need to be smart enough to understand all images if it only has to reconstruct one. By shifting the "intelligence" from the model architecture to the optimization process, you can use a decoder that is essentially a few small matrix multiplications.
  • Optimization is the Bottleneck, Not the Architecture: The paper shows that significant RD gains come not from bigger networks, but from better ways to handle quantization during the gradient descent process.
  • Motion without Flow: In video, instead of explicitly calculating how pixels move (flow), C3 simply learns which parts of the previous latent frame are most predictive of the current one using a sparse, learned mask.
Figure 3. Approximating the round(z) function during Stage 1 of optimization. COOL-CHIC adds uniform noise u, whereas C3 uses soft-rounding sT with varying temperatures T and Kumaraswamy noise of different strengths, ukum. We plot the mean and 95% interval.

Key Results

C3 achieves a breakthrough in the trade-off between quality and speed:

  • Image Performance: On CLIC2020, C3 matches the RD performance of VTM (the H.266 reference) while using less than 3k MACs/pixel. For comparison, state-of-the-art neural codecs like MLIC+ require over 500k MACs/pixel.
  • Video Performance: On the UVG benchmark, C3 matches the Video Compression Transformer (VCT) while requiring only 4.4k MACs/pixel—less than 0.1% of VCT's decoding complexity.
  • Efficiency: As shown in Figure 1, C3 occupies a unique spot in the design space, offering "Better" RD performance than previous low-complexity neural codecs while staying orders of magnitude faster than high-performance ones.
Figure 1. Rate-distortion performance (BD-rate) vs. decoding complexity on the Kodak image benchmark. Our method, C3, achieves a better trade-off than existing neural codecs.

Limitations and Future Work

The primary drawback of C3 is encoding time. Because the model must be optimized from scratch for every new image or video, encoding is very slow (taking minutes per image/video patch on a high-end GPU). This makes it unsuitable for real-time recording but potentially excellent for "encode once, stream millions of times" scenarios like YouTube or Netflix.

Future work aims to accelerate this encoding process through meta-learning (finding better initializations) and further optimizing the autoregressive entropy model, which is currently sequential and difficult to parallelize on modern hardware.

Summary updated

BibTeX
@misc{kim2023c,
  author = {Hyunjik Kim and Matthias Bauer and Lucas Theis and Jonathan Richard Schwarz and Emilien Dupont},
  title = {{C3: High-performance and low-complexity neural compression from a single image or video}},
  year = {2023},
  eprint = {2312.02753},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2312.02753},
}
Figure