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

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

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

TL;DR

Dataset Color Quantization (DCQ) is a novel, training-oriented framework that drastically reduces the storage footprint of image datasets by eliminating color-space redundancy. Unlike traditional compression methods that discard entire images or degrade textures, DCQ uses cluster-shared palettes and network attention to preserve the essential semantic and structural details required to train high-performance deep learning models from scratch.

What Problem Does This Paper Address?

As deep learning datasets grow exponentially, storing and transmitting them becomes a massive bottleneck, particularly for resource-constrained edge servers, drones, and industrial platforms. Current dataset compression techniques typically rely on dataset pruning (discarding samples) or dataset distillation (synthesizing smaller datasets). However, these methods completely ignore the massive pixel-level color redundancy present within individual images.

While color quantization (CQ) algorithms exist to reduce the number of distinct colors in an image, they fall short in machine learning training scenarios. Traditional image-property methods (like K-Means) allocate bits uniformly, wasting storage on irrelevant backgrounds. Conversely, deep-learning-based CQ methods optimize purely for inference on already-trained networks; they introduce harsh texture and edge discontinuities that cause downstream models trained from scratch to fail. This paper bridges the gap by introducing a color quantization framework designed explicitly for dataset-level model training.

Methods

DCQ introduces a unified framework that optimizes color reduction across an entire dataset through three core components:

  1. Chromaticity-Aware Clustering (CAC): Instead of quantizing images in isolation—which fragments the color space and hurts model generalization—DCQ groups images with similar color distributions. It extracts features from the shallow layers of a pre-trained model to cluster images and learns a shared color palette for each cluster, ensuring cross-image color consistency.
  2. Attention-Guided Palette Allocation: To ensure important foreground objects retain high color fidelity, DCQ leverages Grad-CAM++ to generate attention maps from task-specific models. It prioritizes color bit allocation for the top 50% most discriminative pixels while minimizing background color overhead.
  3. Texture-Preserved Palette Optimization: To prevent the abrupt edge distortions common in quantized images, the framework refines the cluster palettes using a differentiable optimization process. By employing a Straight-Through Estimator (STE) and a Sobel-operator-based edge loss, DCQ minimizes texture degradation and maintains structural continuity.
Figure 3: The pipeline of our dataset color quantization framework. First, we apply K-means clus- tering to group images based on their features extracted from a pre-trained model. Next, within each cluster, we perform K-means on the color palettes of individual images to generate a shared color palette for all images in the same cluster. The generated palettes and their corresponding indices are stored for later use. During training, we retrieve the stored indices and palettes to reconstruct quantized images, which are then used to train a neural network.

Datasets

The authors validated their approach across several widely used image classification benchmarks:

  • CIFAR-10 and CIFAR-100
  • Tiny-ImageNet
  • ImageNet-1K (large-scale evaluation)

Additionally, they demonstrated the versatility of DCQ on downstream tasks using the MS COCO dataset for image segmentation and object detection, as well as generative tasks. No new benchmarks were introduced.

Key Insights and Ideas

  • The Inference vs. Training Quantization Gap: A key "aha moment" is that images optimized to look good to a pre-trained model (inference-oriented) make terrible training data. Models learning from scratch require structural and textural continuity across images, which traditional quantization destroys.
  • Shallow Layers for Color Profiling: The authors identified a clear trade-off in neural network hierarchies: deep layers capture abstract semantics, while shallow layers preserve visual and chromatic fidelity. Clustering based on shallow features allows DCQ to group images by dominant color profiles while successfully transcending rigid class boundaries.
  • Shared Palettes Stabilize Boundaries: By forcing similar images to share a color palette, the model perceives stable semantic boundaries during training, preventing it from getting confused by minor color misalignments across different samples.

Key Results

  • Superior Training Accuracy: Under aggressive 2-bit quantization (reducing images to just 4 colors), DCQ achieved 89.15% accuracy on CIFAR-10, vastly outperforming the previous state-of-the-art method, ColorCNN, which collapsed to 59.15%.
  • Outperforming Dataset Pruning: At a 96% compression ratio (1-bit quantization), DCQ achieved 79.9% accuracy on CIFAR-10 and 38.44% on CIFAR-100, significantly outperforming top dataset pruning methods like CCS.
  • Hybrid Compression: Because DCQ operates in the color space, it is entirely orthogonal to sample-pruning methods. When combined with a dataset pruning method (retaining only 10% of samples) and 2-bit quantization, it reached an extreme 99.2% total compression ratio while still maintaining 70.73% accuracy on CIFAR-10.
Qualitative comparison of different CQ methods on Tiny-ImageNet.

Limitations and Future Work

While highly effective, the authors note a few limitations that pave the way for future research:

  • Uniform Bit Allocation: The current framework applies a fixed bit-width across all image clusters. Developing adaptive, per-image or per-cluster quantization strategies could offer a more flexible balance between compression and accuracy.
  • Quantization-Blind Architectures: Standard neural network architectures are inherently designed to process full-color inputs. The authors suggest that designing novel network architectures specifically optimized to ingest color-quantized data could unlock even greater performance and computational efficiency.

Summary updated

BibTeX
@inproceedings{yu2026dataset,
  author = {Chenyue Yu and Lingao Xiao and Jinhong Deng and Ivor W. 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