COIN++: Neural Compression Across Modalities

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

Abstract

Neural compression algorithms are typically based on autoencoders that require specialized encoder and decoder architectures for different data modalities. In this paper, we propose COIN++, a neural compression framework that seamlessly handles a wide range of data modalities. Our approach is based on converting data to implicit neural representations, i.e. neural functions that map coordinates (such as pixel locations) to features (such as RGB values). Then, instead of storing the weights of the implicit neural representation directly, we store modulations applied to a meta-learned base network as a compressed code for the data. We further quantize and entropy code these modulations, leading to large compression gains while reducing encoding time by two orders of magnitude compared to baselines. We empirically demonstrate the feasibility of our method by compressing various data modalities, from images and audio to medical and climate data.

Introduction

Traditional data compression is a fragmented field, relying on specialized algorithms like JPEG for images, MP3 for audio, and H.264 for video. While neural compression has advanced significantly using autoencoders, these models often require bespoke architectures for each data type. COIN++ addresses this fragmentation by providing a unified framework for cross-modal compression.

COIN++ pipeline for cross-modal neural compression across diverse data types.

Building on the concept of Implicit Neural Representations (INRs), COIN++ treats data as a function mapping coordinates to features. While previous attempts like COIN were slow and failed to leverage shared structure across datasets, COIN++ introduces meta-learning and modulation-based storage to achieve high efficiency and speed.

Methodology

COIN++ shifts the compression focus from raw network weights to modulations of a meta-learned base network.

  1. Implicit Neural Representations (INR): Data is represented as a function $f(\text{coordinates}) = \text{features}$. For instance, an image maps $(x, y)$ to RGB values.
  2. Meta-Learning: Using Model-Agnostic Meta-Learning (MAML), the framework learns a "base network" (a SIREN MLP) that captures the general structure of a specific dataset, such as brain MRIs or natural images.
  3. Modulations: Instead of updating all weights for each data point, COIN++ learns a small set of shifts (modulations) applied to internal activations. This reduces the encoding process to just 3–10 gradient steps, taking less than a second.
  4. Quantization and Entropy Coding: The learned modulations are highly robust and can be quantized to 5 or 6 bits with minimal quality loss. These values are then further compressed using standard entropy coding.

Experiments and Results

The versatility of COIN++ was evaluated across diverse modalities, including images (CIFAR10, Kodak), audio (LibriSpeech), medical data (FastMRI), and climate data (ERA5).

ERA5 climate data represented on a spherical manifold for coordinate-based compression.

Key findings include:

  • Speed: COIN++ is approximately 300x faster at encoding than the original COIN.
  • Performance: On CIFAR10, it outperforms classical codecs like JPEG and JPEG2000.
  • Scientific Data: It achieved a 3000x compression rate on ERA5 climate data with a low error rate ($0.5^\circ C$ RMSE), demonstrating its utility for data where specialized codecs are unavailable.
  • Modality Agnostic: The framework remains competitive across audio and medical imaging with minimal architectural changes, simply by adjusting input/output dimensions.

Conclusion and Limitations

COIN++ represents a significant step toward a unified "Swiss Army Knife" for neural compression. However, it currently lags behind state-of-the-art specialized neural codecs on high-resolution images. Additionally, the meta-learning phase is computationally intensive, and the current patch-based approach for large images does not yet fully exploit global redundancies. Future work will focus on scaling the meta-learning process and improving global structure modeling.

Summary updated

BibTeX
@article{dupont2022coin,
  author = {Emilien Dupont and Hrushikesh Loya and Milad Alizadeh and Adam Golinski and Yee Whye Teh and Arnaud Doucet},
  title = {{COIN++: Neural Compression Across Modalities}},
  journal = {Accepted by TMLR},
  year = {2022},
  url = {https://openreview.net/forum?id=NXB0rEM2Tq},
}
Figure