Abstract
We propose a new simple approach for image compression: instead of storing the RGB values for each pixel of an image, we store the weights of a neural network overfitted to the image. Specifically, to encode an image, we fit it with an MLP which maps pixel locations to RGB values. We then quantize and store the weights of this MLP as a code for the image. To decode the image, we simply evaluate the MLP at every pixel location. We found that this simple approach outperforms JPEG at low bit-rates, even without entropy coding or learning a distribution over weights. While our framework is not yet competitive with state of the art compression methods, we show that it has various attractive properties which could make it a viable alternative to other neural data compression approaches.
Introduction
Traditional image compression standards like JPEG rely on hand-crafted mathematical transforms (e.g., Discrete Cosine Transform). In contrast, modern neural compression typically utilizes deep autoencoders that map images to a latent code, which is then compressed using complex entropy coding. While effective, these neural methods often require decoders with significant memory footprints, often tens of megabytes, making them difficult to deploy on resource-constrained edge devices.
COIN (COmpression with Implicit Neural representations) introduces a provocative new paradigm: data-compression-as-model-compression. Instead of storing a compressed representation of pixel data, we store the weights of a tiny neural network specifically overfitted to a single image. This approach shifts the complexity from the data representation to the model architecture itself.
Methods: Implicit Neural Representations
The core methodology of COIN treats an image not as a discrete grid of pixels, but as a continuous function $f(x, y) = (R, G, B)$.
Encoding via Overfitting
To encode an image, a small Multi-Layer Perceptron (MLP) is initialized and trained to map pixel coordinates $(x, y)$ to their corresponding RGB values. This is "overfitting" by design; the network is specialized for one specific image. To capture high-frequency details and sharp edges—areas where standard ReLU networks often fail—COIN utilizes SIRENs (Sinusoidal Representation Networks). SIRENs use sine waves as activation functions, allowing even tiny networks (e.g., 8,000 parameters) to represent large images (e.g., 393,000 pixels) with high fidelity.
Quantization and Storage
Once training is complete, the 32-bit weights $\theta$ are quantized to 16-bit precision. These quantized weights constitute the compressed "code" for the image. Remarkably, COIN achieves competitive results without the need for entropy coding (like Huffman or Arithmetic coding), which is typically a mandatory component of high-performance compression pipelines.
Decoding
Decoding is a straightforward process: the receiver evaluates the stored MLP at every pixel location to reconstruct the image. Because the representation is a continuous function, the image can be decoded at any arbitrary resolution, enabling "free" up-sampling or progressive previews.
Key Results
The authors evaluated COIN on the Kodak image dataset, comparing it against traditional codecs (JPEG, JPEG2000, BPG, VTM) and state-of-the-art autoencoder-based neural methods (BMS, MBT, CST).
Performance and Efficiency
At low bit-rates (bits-per-pixel or bpp), COIN consistently outperforms JPEG. For instance, at 0.15 bpp, COIN achieved a Peak Signal-to-Noise Ratio (PSNR) of approximately 27.35 dB, significantly higher than JPEG's 21.74 dB.
Perhaps the most striking advantage is the memory footprint. At 0.3 bpp, the COIN representation requires only 14KB. In comparison, the decoders for state-of-the-art neural baselines require between 10MB and 40MB of storage. This makes COIN uniquely suited for environments where storage space for the decoding software is at a premium.
Discussion and Future Work
While promising, COIN faces a significant challenge in encoding speed. Because each image requires a dedicated optimization process (roughly 15,000 iterations), compression is currently orders of magnitude slower than traditional methods.
However, the "data-compression-as-model-compression" framework opens new avenues for research. Future improvements could include:
- Meta-Learning: Using techniques like MAML to find optimal weight initializations, potentially reducing the number of training steps required for a new image.
- Advanced Model Compression: Leveraging pruning and more aggressive quantization to further reduce weight size.
- Dimensionality Expansion: Extending the coordinate-based mapping to video (adding a time dimension $t$) or 3D data.
COIN represents a fundamental shift toward functional data representation, suggesting that the future of compression may lie in optimizing architectures to represent functions rather than just bits.
Summary updated