Online Learned Continual Compression with Stacked Quantization Module

Lucas Caccia, Eugene Belilovsky, Massimo Caccia, Joelle PineauarXiv 2019

TL;DR

This paper introduces "Online Continual Compression" (OCC), a new problem setting where models must learn to compress and store data from a non-i.i.d. stream on-the-fly, without seeing samples more than once. They propose Adaptive Quantization Modules (AQM), a novel architecture that uses discrete autoencoders to effectively handle "representation drift" and adapt compression levels, achieving state-of-the-art results on continual learning benchmarks.

What Problem Does This Paper Address?

The paper tackles the challenge of efficiently storing and utilizing data from a continuous, non-i.i.d. stream, a common scenario in real-world applications like autonomous driving or robotics. Traditional compression methods struggle with this because they often require extensive pre-training or are too slow to adapt to changing data distributions. A key hurdle is "representation drift": as the compression model evolves over time, it needs to be able to decode data that was compressed by earlier versions of itself, which is difficult to achieve with standard autoencoders. Furthermore, these models are susceptible to "catastrophic forgetting," where they lose information about previously seen data. The goal is to develop a compression system that can adapt to new data, maintain high compression ratios, and ensure that stored data remains accessible and usable for downstream tasks, all within limited memory constraints.

Methods

The core of the proposed solution is the Adaptive Quantization Modules (AQM) architecture. AQM builds upon the Vector Quantized Variational Autoencoder (VQ-VAE) framework, which uses discrete latent representations. The paper highlights that VQ-VAEs are particularly well-suited to mitigate representation drift because their discrete codebooks provide a more stable representation compared to continuous latent spaces.

Key components of AQM include:

  • Discrete Autoencoders (VQ-VAE): These are used for compression, leveraging vector quantization to create discrete codes that represent the data.
  • Adaptive Quantization Modules (AQM): This is a multi-level architecture where each module acts as a VQ-VAE. These modules are trained independently, reducing interference and allowing for faster convergence.
  • Codebook Stabilization: To further combat representation drift, the paper proposes fixing the codebook of a module once it achieves a satisfactory compression level, while allowing the encoder and decoder to continue adapting.
  • Adaptive Multi-level Storage: AQM employs a scheme where samples can be stored at different compression levels, allowing for flexibility based on memory constraints and the compressor's current ability.
  • Self-Replay and Stream Sampling: To address catastrophic forgetting and manage memory, AQM incorporates a replay mechanism that uses stored data for training and a novel sampling strategy to decide which new samples to store and which to discard.

Datasets

The paper evaluates AQM on several datasets and scenarios:

  • CIFAR-10: Used for standard supervised continual learning benchmarks, specifically in a "shared-head" classification setting.
  • Imagenet: Used for evaluating offline compression performance on larger images.
  • LiDAR Data: The Kitti dataset is used to demonstrate AQM's effectiveness in compressing 3D sensor data.
  • Atari RL Environments: Used to test AQM's ability to compress states encountered by reinforcement learning agents.

The paper does not introduce new benchmarks but rather applies its method to existing ones to demonstrate its utility in diverse domains.

Key Insights and Ideas

  • Representation Drift is a Key Challenge: The paper clearly articulates and demonstrates "representation drift" as a major obstacle in online continual compression, where evolving encoder states struggle to decode older compressed data.
  • Discrete Representations are Crucial: The use of VQ-VAE's discrete latent representations and codebooks is shown to be a powerful tool for stabilizing compressed representations and mitigating drift.
  • Decoupled Multi-Level Architecture: Training AQM modules independently (decoupled greedy learning) significantly improves convergence speed and reduces interference, making it more suitable for online settings.
  • Codebook Freezing as a Drift Control Mechanism: Freezing codebooks, while allowing encoder/decoder adaptation, effectively controls drift without severely impacting the model's ability to learn new data.
  • Adaptive Compression for Efficient Storage: The multi-level storage and adaptive compression scheme allow AQM to dynamically balance compression quality and memory usage, a critical feature for constrained environments.

Key Results

  • Continual Classification: AQM significantly outperforms standard Experience Replay (ER) on CIFAR-10 by 16.0% (M=20) and 13.9% (M=50) in accuracy, while also showing superior forgetting performance.
  • Imagenet: AQM demonstrates a substantial improvement in offline training accuracy on Imagenet data compared to a standard Reservoir Sampling approach, highlighting the value of compressed memories.
  • LiDAR Compression: AQM achieves a 32x compression rate on LiDAR data with a reconstruction cost (SNNRMSE) of 18.8 cm, sufficient for SLAM localization. Fine-tuning AQM on new LiDAR distributions further reduces bandwidth requirements.
  • Atari RL: AQM effectively preserves critical information in Atari game states, achieving classification accuracies comparable to using original, uncompressed states, while compressing them by 16x.

Limitations and Future Work

  • Limitations:
    • The paper acknowledges that while codebook freezing controls drift, it can negligibly hinder the model's ability to adapt.
  • In cases of severe drift (high reconstruction threshold), the model can diverge if it's rehearsing on poor-quality samples.
  • The current AQM does not explicitly handle temporal correlations in video or reinforcement learning tasks.
  • Future Work:
    • The authors suggest exploring methods for dealing with temporal correlations in video and RL tasks.
  • They also propose investigating improved prioritization of samples for storage.
  • Further research into more sophisticated buffer management and adaptive sampling strategies is implied.

Summary updated

BibTeX
@misc{caccia2019online,
  author = {Lucas Caccia and Eugene Belilovsky and Massimo Caccia and Joelle Pineau},
  title = {{Online Learned Continual Compression with Stacked Quantization Module}},
  year = {2019},
  eprint = {1911.08019},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1911.08019},
}
Figure