In traditional lossy compression, we typically think of a codec as a fixed pipe: you train an encoder and a decoder together for a specific bitrate and a specific goal—usually minimizing Mean Squared Error (MSE). If you want an image that looks more "realistic" (even if less pixel-accurate) or one optimized for a self-driving car's vision system, you would traditionally need to train an entirely new model.
However, a growing body of research suggests this coupling is unnecessary. Instead, a single universal encoder—optimized simply to minimize distortion—can capture a representation rich enough to satisfy any requirement, whether it be mathematical fidelity, human perceptual beauty, or machine utility.
The Three-Way Tradeoff
To understand why this works, we must look at the Rate-Distortion-Perception (RDP) tradeoff. George Zhang, Jun Chen, and colleagues established in Universal Rate-Distortion-Perception Representations for Lossy Compression that compression isn't just a balance between size (Rate) and error (Distortion). There is a third axis: Perception, or how closely the reconstructed image matches the distribution of "real" images.
The tension arises because Distortion and Perception are often at odds. A decoder minimizing MSE will produce a blurry image because "blur" is the mathematical average of all possible sharp realizations. Conversely, a decoder aiming for high perceptual realism will "hallucinate" sharp textures (like blades of grass or pores on skin). These hallucinations look real but may not match the original pixels exactly, thereby increasing distortion.
The Universality of MSE
The core intuition of this research direction is that the encoder doesn't need to choose a side.
Zeyu Yan, Fei Wen, and their team proved in On Perceptual Lossy Compression that an encoder optimized strictly for MSE is theoretically optimal for all perceptual tasks. Why? Because an MSE-optimized encoder is essentially trying to preserve the maximum amount of information about the source's posterior distribution.
If the encoder provides a perfect summary of what the original image could have been, the decoder can then decide how to navigate the tradeoff:
- For Distortion: The decoder outputs the mean of that distribution (the "blurry" but accurate version).
- For Perception: The decoder samples from that distribution (a "sharp" and realistic version).
This decoupling means the "intelligence" of the compression system shifts to the receiver. As Sadaf Salehkalaibar and Jun Chen argue, the encoder can remain agnostic to the final perception metric, delegating the synthesis of realistic details entirely to the decoder.
The Perception Tax
While the encoder is universal, there is still a physical cost to realism. Zeyu Yan quantified this as a "perception tax": achieving perfect perceptual quality—where the reconstruction is statistically indistinguishable from a real image—exactly doubles the minimum achievable MSE distortion. This mathematical boundary explains why "perfect-looking" images often perform poorly on traditional metrics like PSNR.
Generative Decoders as Navigators
If the encoder provides a universal bitstream, how does the decoder navigate the RDP curve? Modern approaches use generative models as "steerable" decoders.
- Diffusion Models: Noam Elata and colleagues introduced PSC (Posterior Sampling-Based Compression), which uses pre-trained diffusion models to sample reconstructions. By adjusting the stochasticity or the "score-scale" during decoding, users can traverse the RDP curve at inference time without re-encoding the data (Training-Free Rate-Distortion-Perception Traversal With Diffusion).
- Probabilistic Decoding: Dong Liu proposed decoding a bitstream into a distribution rather than a single image (End-to-End Image Compression with Probabilistic Decoding). By scaling the variance of the samples drawn from this distribution, the receiver can prioritize either mathematical accuracy or visual realism.
- Interpolation: In Optimally Controllable Perceptual Lossy Compression, researchers showed that you can achieve any point on the optimal tradeoff curve simply by interpolating between the outputs of two decoders—one optimized for MSE and one for GAN-based realism—fed by the same universal encoder.
Beyond Human Vision: Beauty vs. Utility
This universality extends beyond human aesthetics. In Unified Coding for Both Human Perception and Generalized Machine Analytics, Kangsheng Yin and Shiqi Wang demonstrated that a single bitstream, supervised by CLIP embeddings, can be decoded into either a high-fidelity image for humans or a semantically rich feature map for machine vision.
This suggests a future where compression is no longer a task-specific bottleneck. Instead, as proposed by Lingxi Xie and Qi Tian, "learning-by-compression" becomes a foundation for all of computer vision. A model forced to compress data efficiently must learn a complete representation of visual information, making that representation a "universal backbone" for any downstream task.