COIN: COmpression with Implicit Neural representations

Emilien Dupont, Adam Golinski, Milad Alizadeh, Yee Whye Teh, Arnaud Doucet

TL;DR

Instead of storing pixel arrays or compressing latent vectors via large autoencoders, COIN frames image compression as a model compression problem: it overfits a tiny multilayer perceptron (MLP) with sinusoidal activations to an image and stores the network’s quantized weights. Remarkably, this simple approach outperforms standard JPEG at low bit-rates without requiring any entropy coding, learned priors, or heavy decoder models at inference time.

What Problem Does This Paper Address?

Traditional learned image compression relies heavily on variational autoencoders (VAEs). In this paradigm, an encoder maps an image to a quantized latent code, which is entropy-coded and transmitted to a receiver that decodes it using a large neural network. While effective, this setup has noticeable drawbacks:

  1. Decoder footprint: The receiving device must store a massive decoder network (often 10 MB to 40 MB), which is impractical for resource-constrained edge devices.
  2. Fixed resolution: Decoded outputs are locked to discrete pixel grids, making adaptive or progressive resolution decoding challenging.

COIN tackles this by asking: Can we compress an image by simply fitting a tiny neural network directly to its coordinate grid and saving the model weights?

Methods

COIN represents an image as a continuous function $f_\theta: \mathbb{R}^2 \to \mathbb{R}^3$, where parameters $\theta$ map pixel coordinates $(x, y)$ directly to RGB values $(r, g, b)$.

  • Architecture: The network is parameterized as a SIREN (an MLP using periodic sine activation functions). Standard MLPs struggle with high-frequency details, but sine activations allow small networks to represent complex image features efficiently.
  • Encoding (Optimization): To encode an image, COIN minimizes the mean squared error (MSE) between the network’s predictions and the true pixel values over 50k iterations using the Adam optimizer.
  • Weight Quantization: After training at 32-bit precision, weights are quantized to 16-bit half-precision. The authors observed that 16-bit quantization incurs almost no increase in distortion, whereas 8-bit quantization degraded reconstruction quality significantly.
  • Decoding: The receiver merely needs the stored weight file. Reconstruction requires a single parallel forward pass over the target grid of coordinates $(x, y)$.

Unlike standard compression pipelines, COIN incorporates no entropy coding (e.g., arithmetic coding) and no learned distribution over weights. Rate is controlled entirely by MLP depth and width.

Datasets

The authors evaluated COIN on the standard Kodak dataset, which consists of 24 uncompressed natural images of size $768 \times 512$. No new benchmarks were introduced.

Key Insights and Ideas

  • Data compression equals model compression: COIN turns data compression on its head. Instead of compressing data with a fixed neural network, the data is the network, and image compression directly benefits from neural network compression techniques (pruning, quantization, architecture search).
  • Drastically smaller decoder footprint: While state-of-the-art VAE methods transmit small latent vectors, the receiver must already host a 10–40 MB decoder. At 0.3 bits per pixel (bpp), COIN's total payload—both code and model—is only 14 kB.
  • Progressive and partial decoding: Because $f_\theta$ is a continuous coordinate function, receivers can evaluate it at arbitrary spatial resolutions or decode specific image regions on demand without architectural changes.

Key Results

  • Outperforming JPEG at low bit-rates: At low bit-rates ($\le 0.3$ bpp), COIN consistently surpasses baseline JPEG in Peak Signal-to-Noise Ratio (PSNR). For instance:
  • On Kodak image 2 at 0.15 bpp: COIN achieves 28.69 dB vs. JPEG’s 24.67 dB.
  • On Kodak image 3 at 0.15 bpp: COIN achieves 29.02 dB vs. JPEG’s 23.63 dB.
  • Visual quality: Qualitative results show that COIN avoids the harsh block artifacts typical of low-bitrate JPEG, yielding smoother reconstructions.
  • Gap to SOTA: COIN remains below dedicated modern codecs (JPEG2000, BPG, VTM) and advanced neural autoencoders (BMS, MBT, CST), especially as bit-rate increases. However, matching JPEG without entropy coding highlights the promise of the framework.

Limitations and Future Work

  • Extremely slow encoding: Compressing an image requires training an MLP from scratch for thousands of gradient steps, which is computationally expensive for interactive or live encoding (though suitable for one-to-many distribution pipelines like streaming).
  • Underperforming at high bit-rates: As target fidelity rises, scaling network width/depth yields diminishing rate-distortion returns compared to transform-based codecs.
  • Future directions:
  • Amortization & Meta-learning: Leveraging meta-learning (e.g., learned initializations) or hypernetworks to accelerate encoding time.
  • Advanced model compression: Incorporating entropy coding on weights, weight pruning, and learned prior distributions over parameters.
  • Modality extensions: Applying the same coordinate-based compression principle to audio, video, and 3D scenes.

Summary updated

BibTeX
@inproceedings{dupont2021coin,
  author = {Emilien Dupont and Adam Golinski and Milad Alizadeh and Yee Whye Teh and Arnaud Doucet},
  title = {{COIN: COmpression with Implicit Neural representations}},
  booktitle = {Neural Compression @ ICLR},
  year = {2021},
  url = {https://openreview.net/forum?id=yekxhcsVi4},
}

Loading related content...

Figure