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

Dataset Color Quantization: A Training-Oriented Framework for Dataset-Level Compression

Yu Chenyue, Lingao Xiao, Jinhong Deng, Ivor Tsang, Yang He

Introduction

Deep learning models are notoriously data-hungry, requiring massive datasets that pose significant storage and transmission challenges—especially in resource-constrained environments like edge servers or drones. While existing compression methods typically reduce dataset size by deleting entire images (dataset pruning) or synthesizing a tiny set of highly informative images (dataset distillation), they largely ignore the massive color redundancy within each individual image.

To address this, researchers have introduced Dataset Color Quantization (DCQ), a unified framework that compresses visual datasets by reducing color palettes across clusters of similar images. By preserving critical semantic and structural details, DCQ produces a highly compressed dataset that still trains models effectively, significantly outperforming traditional dataset pruning at extreme compression rates.

The Problem: Ignoring Per-Sample Redundancy

A standard 256x256 RGB image contains over 65,000 pixels, yet it often features only a few thousand distinct colors. Much of the storage space is wasted on subtle, semantically irrelevant color variations, such as slight gradients in a blue sky.

While Color Quantization (CQ)—the process of reducing the number of colors in an image—is a well-established concept, existing methods fail when applied to dataset-level training:

  1. Image-Property-based CQ (e.g., K-Means): These methods optimize for human vision. Unfortunately, this often blurs semantic boundaries and wastes valuable color bits on complex but irrelevant backgrounds.
  2. Model-Perception-based CQ: These methods optimize for inference on pre-trained models. They tend to introduce harsh texture artifacts and edge discontinuities that actively disrupt the learning process when trying to train a new model from scratch.
Original uncompressed images.
Images compressed using standard K-Means quantization.

The Solution: Dataset Color Quantization (DCQ)

The authors propose DCQ as a framework designed specifically to compress datasets for training rather than just viewing or inference. The framework is built on three main pillars:

1. Chromaticity-Aware Clustering (CAC)

Instead of giving every single image its own unique color palette—which fragments the color space and confuses the model—DCQ groups images with similar color distributions into clusters. It extracts shallow-layer features from a pre-trained model to assess similarity and then generates a shared color palette for the entire cluster. This stabilizes the color space and makes it easier for the network to learn consistent semantic boundaries.

2. Attention-Guided Palette Allocation

Not all pixels are equally important for model training. DCQ uses Grad-CAM++ (an attention heatmap) to identify semantically critical regions, such as the primary foreground object. It prioritizes allocating the limited available color bits to these high-impact areas rather than wasting them on the background.

3. Texture-Preserved Palette Optimization

To prevent the harsh, jagged edges that ruin model training, DCQ employs a differentiable quantization process. It incorporates a Sobel operator (an edge detection filter) to minimize texture loss, ensuring that local structural details remain intact even when the color space is drastically reduced.

Key Insights

  • Shared Palettes Outperform Individual Palettes: While a custom color palette might seem optimal for a specific image, it hurts dataset-level training. Shared palettes across clusters provide the consistency a neural network needs to learn effectively.
  • Shallow Features are Best for Color: When clustering images for color similarity, shallow neural network layers work better than deep layers. Deep layers capture abstract semantics (e.g., "this is a dog"), while shallow layers capture visual fidelity and local color patterns—exactly what is needed for color quantization.
  • Orthogonal to Pruning: Because DCQ compresses the images themselves rather than reducing the number of images, it can be stacked directly on top of dataset pruning for extreme, multiplicative compression.
  • Training vs. Inference Quantization: Optimizing an image so a pre-trained model can classify it (inference) is fundamentally different from optimizing an image so a new model can learn from it (training). Training strictly requires preserved textures and edges.

Performance and Results

The authors evaluated DCQ across a wide range of standard computer vision benchmarks, including CIFAR-10, CIFAR-100, Tiny-ImageNet, ImageNet-1K, MS COCO, and Stanford Cars. The results demonstrate remarkable robustness under aggressive compression:

  • Extreme Compression (CIFAR-10): At a 96% compression ratio (using just 1-bit / 2 colors per image), DCQ achieved 79.90% accuracy, crushing the popular CCS dataset pruning baseline (73.02%).
  • CIFAR-100: At the same 96% compression, DCQ hit 38.44% accuracy, compared to CCS at 28.24%.
  • Tiny-ImageNet: Using 2-bit quantization (4 colors), DCQ achieved 50.51% accuracy, an impressive 18% absolute improvement over previous state-of-the-art color quantization methods like ColorCNN.
  • Combining Methods: By combining DCQ with dataset pruning, the authors achieved a staggering 99.2% compression ratio on CIFAR-10 while still maintaining a highly usable 70.73% accuracy.

Limitations and Future Work

While DCQ offers a scalable and robust solution for dataset-level storage reduction, the authors acknowledge a few limitations and promising directions for future research. Currently, DCQ uses fixed-size palettes for clusters; future work could investigate adaptive, per-image quantization strategies to balance compression and accuracy more flexibly. Additionally, the models trained in this paper (like ResNet) were originally designed for full-color RGB inputs. Developing novel neural network architectures specifically optimized to natively process color-quantized data could push performance even higher.

Summary updated

BibTeX
@inproceedings{chenyue2026dataset,
  author = {YU CHENYUE and Lingao Xiao and Jinhong Deng and Ivor Tsang and Yang He},
  title = {{Dataset Color Quantization: A Training-Oriented Framework for Dataset-Level Compression}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=9syxIziMpv},
}
Figure