TL;DR
Unicorn introduces a novel image compression paradigm that conceptualizes a collection of images as unique index-image pairs, learning their distribution within a single neural network decoder. Once this unified decoder is shared, any image in the set can be reconstructed using just a single index number and random noise, yielding massive bitrate savings that actually improve as the dataset scales.
What Problem Does This Paper Address?
Existing lossy image compression frameworks generally fall into two camps: Explicit Image Compression (EIC) and Implicit Image Compression (IIC).
EIC includes traditional standards (like JPEG, HEVC, VVC) and end-to-end neural networks (like ELIC). These methods represent each image as an explicit bitstream. However, EIC is hitting a wall: squeezing out further bitrate reductions requires a massive, impractical increase in model complexity.
IIC, on the other hand, utilizes Implicit Neural Representations (INRs) to overfit a separate, dedicated neural network to every single image, mapping coordinates to pixel values. While this avoids long bitstreams, it completely ignores similarities between different images (inter-image redundancy), requires storing thousands of individual models, and often suffers from blurry, over-smoothed results.
Unicorn steps in to bridge this gap by creating a unified approach that eliminates inter-image redundancy while maintaining high-fidelity perceptual quality.
Methods
The core idea behind Unicorn (Unified Neural Image Compression with One Number Reconstruction) is to treat image compression as an image distribution sampling task.
- Bijective Mapping: Given a set of $M$ images, the authors assign each image a unique, random index from $1$ to $M$.
- Unified Decoder: They train a single, lightweight conditional neural network to learn the mapping from these indexes to their respective images.
- The Prototype (Laduree): As a proof of concept, the authors developed Laduree, a prototype based on Latent Diffusion Models (LDMs) and Diffusion Transformers (DiTs). Laduree takes a target index and random noise to progressively denoise and reconstruct the specific image via a shared VAE decoder.
To make this architecture highly efficient and compact, the authors explored several tailored design choices:
- Index Conditioning via CAG: Instead of heavy standard conditioning mechanisms, they propose Cross-Attention with Gating (CAG), which inserts dimension-wise scaling parameters into residual connections, drastically reducing parameter overhead.
- Index Embedding via GRF: They utilize Gaussian Random Frequency embedding (GRF), which scales linearly with hidden sizes rather than quadratically, keeping the model lightweight.
- Latent Normalization: They scale the VAE latent space to a tighter normal distribution $N(0, 1/9)$, ensuring the data concentrates within a $[-1, 1]$ interval to stabilize diffusion training.
- Model Quantization: Learnable parameters are quantized post-training from 32-bit to 14-bit floating-point representations without needing complex entropy coding.
Datasets
The authors evaluated their approach using subsets of the ImageNet training dataset, downsampled to $256 \times 256$ resolution:
- CAT-4000: A dataset containing 4,000 images from various cat categories (highly similar semantics).
- HYBRID-4000: A dataset containing 4,000 images sampled equally across 5 distinct cat categories (more diverse semantics).
To evaluate how the framework scales, both datasets were split into smaller subsets containing 1,000, 1,500, 2,000, and 3,000 images.
Key Insights and Ideas
- Amortized Model Size: In traditional compression, total file size scales linearly with the number of images. In Unicorn, because the unified decoder is shared across the entire dataset, the per-image model overhead drops significantly as the dataset grows. The compression ratio actually escalates with scale.
- Extreme Online Transmission Savings: If the unified decoder is shared offline with a receiver beforehand, the online cost to transmit an image drops to just $\log_2 M$ bits (the index number). For 4,000 images, this is less than 12 bits per image—a 99.97% bitrate reduction compared to traditional neural codecs.
- Semantic Efficiency: The diffusion model inherently learns the underlying distribution of the image features. As a result, Unicorn becomes exceptionally efficient when compressing datasets with high semantic similarity (like a database of cat photos).
Key Results
- Bitrate Reduction: On the CAT-4000 dataset, Laduree achieved a 21.73% bitrate saving over ELIC and a 17.87% saving over HiFiC at a high perceptual quality threshold (LPIPS = 0.10).
- Visual Realism: Qualitative evaluations showed that Unicorn produces sharper, more visually pleasing textures and details at lower bitrates compared to both EIC standards and blurry IIC methods.
Limitations and Future Work
- The Fidelity-Perception Trade-off: Because Unicorn relies on a generative diffusion process, it prioritizes realistic textures over exact pixel-matching. As a result, its PSNR (Peak Signal-to-Noise Ratio) is lower than traditional codecs like VVC or HEVC. It is not ideal for applications requiring mathematically lossless pixel fidelity.
- Decoder Overhead for Small Sets: If you are only compressing a handful of images, the size of the unified decoder outweighs the bitrate savings of the index numbers. This paradigm is strictly optimized for large-scale image repositories.
- Training Computation: Overfitting a diffusion model to act as a bijective index-to-image mapper for massive datasets requires significant training time and compute resources.
Summary updated