NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Neural Multi-scale Image Compression

Ken Nakanishi, Shin-ichi Maeda, Takeru Miyato, Daisuke Okanohara

TL;DR

This paper introduces a neural image compression framework that leverages multi-scale features to achieve state-of-the-art rate-distortion performance while maintaining high execution speeds. By combining a multi-scale lossy autoencoder with a parallelized version of a PixelCNN-based lossless coder, the authors achieve compression quality comparable to the best existing models but with significantly faster encoding (70ms) and decoding (200ms) for standard-sized images.

What Problem Does This Paper Address?

Lossy image compression is a balancing act between three pillars: file size (bitrate), image quality (distortion), and computational speed. While traditional standards like JPEG are fast, they produce noticeable artifacts at low bitrates. Recent deep learning approaches using Convolutional Neural Networks (CNNs) have surpassed traditional methods in quality, but they often hit a wall regarding speed.

The primary bottleneck in neural compression is the entropy coder—the part that losslessly packs quantized features into bits. Most high-performing models use sequential autoregressive models (like PixelRNN or standard PixelCNN) for this task. Because these models predict each pixel based on previous ones in a raster-scan order, they are notoriously difficult to parallelize, leading to prohibitively slow decoding times on modern hardware.

Methods

The authors propose a two-part architecture to solve the speed-quality trade-off:

  1. Multi-scale Lossy Autoencoder: Traditional autoencoders typically compress an image into a single "bottleneck" representation at the deepest layer. This model instead extracts and quantizes features at multiple resolutions (scales). As shown in the architecture diagram, global information is captured in deeper, low-resolution layers, while fine details like edges are preserved in shallower, high-resolution layers. Overall architecture showing the analyzer, quantizer, and synthesizer pipeline.
Overall architecture showing the analyzer, quantizer, and synthesizer pipeline.
  1. Parallel Multi-scale Lossless Coder: To fix the entropy coding bottleneck, the authors adapted the parallel PixelCNN concept. Instead of predicting pixels one by one, the model assumes conditional independence between distant pixels. It divides the feature map into subsets that can be processed in parallel on a GPU, drastically reducing computation time without significantly sacrificing compression efficiency.
  2. Soft Quantization for Training: Quantization (rounding values to integers) is non-differentiable, which breaks standard gradient-based training. The authors used a "soft" quantization function—a smooth approximation involving a sine wave—during backpropagation to allow the model to learn effectively while using hard rounding during actual inference.

Datasets

The model was trained and evaluated on several standard benchmarks:

  • Training: A subset of approximately 95,000 high-resolution images from the Yahoo Flickr Creative Commons 100M dataset.
  • Evaluation: The classic Kodak dataset (24 images) and the RAISE-1k dataset (1,000 raw images). These are standard for comparing compression algorithms as they represent a variety of natural scenes.

Key Insights and Ideas

  • Multi-scale is Natural: Natural images have hierarchical structures. By quantizing at different depths, the model mimics how we perceive images—capturing the "big picture" and "fine details" separately. Visualization of quantized features at different resolution layers.

  • Parallelism is the Path to Practicality: The shift from sequential to parallel entropy coding is what makes this model viable for real-world applications. It proves that you don't need strict autoregression to get good compression rates.

  • Deterministic Training Works: While many researchers use stochastic (random) noise to simulate quantization during training, this paper shows that deterministic quantization with a clever "soft" gradient approximation is sufficient and often faster to train.
Visualization of quantized features at different resolution layers.

Key Results

The proposed model achieved impressive results across the board:

  • Rate-Distortion: On the Kodak dataset, the model outperformed JPEG, WebP, and BPG, showing comparable performance to the then-SOTA neural model by Rippel & Bourdev. Rate-distortion curves showing the proposed model outperforming traditional codecs.

  • Speed: It can encode a $768 \times 512$ image in just 70 ms and decode it in 200 ms on a single GPU. For context, many sequential neural decoders take seconds or even minutes for the same task.

  • Ablation Success: The authors confirmed that the multi-scale approach consistently yields better rate-distortion curves than single-scale variants, even if the gains at very high bitrates are modest.
Figure 1. Rate-distortion trade off curves with different methods on Kodak dataset. The horizontal axis represents bits-per-pixel (bpp) and the vertical axis represents multi-scale structural similar- ity (MS-SSIM). Our model achieves better or comparable bpp with respect to the state-of-the-art results (Rippel & Bourdev, 2017).

Limitations and Future Work

Despite the gains, the authors noted a few areas for improvement:

  • Two-Step Optimization: The autoencoder and the lossless coder were optimized separately. The authors suggest that joint optimization (training both together) could further improve the rate-distortion trade-off by allowing the autoencoder to "learn" how to produce features that are easier for the entropy coder to pack.
  • Decoding Speed vs. Traditional Codecs: While 200ms is fast for a neural model, it is still roughly twice as slow as highly optimized traditional formats like JPEG.
  • I/O Bottlenecks: The current implementation includes the time to transfer data between CPU and GPU, which wasn't fully optimized. Direct GPU-based image loading could further shave off milliseconds.

Summary updated

BibTeX
@inproceedings{nakanishi2018neural,
  author = {Ken Nakanishi and Shin-ichi Maeda and Takeru Miyato and Daisuke Okanohara},
  title = {{Neural Multi-scale Image Compression}},
  booktitle = {ACCV},
  year = {2018},
  doi = {10.1007/978-3-030-20876-9\_45},
}
Figure