Dataset Quantization with Active Learning Based Adaptive Sampling

Zhenghao Zhao, Yuzhang Shang, Junyi Wu, Yan Yan

Introduction

The rapid expansion of deep learning has been fueled by massive datasets, yet the computational cost of training on these scales is increasingly prohibitive. To address this, researchers have turned to dataset compression, primarily through coreset selection (identifying a representative subset) and dataset distillation (synthesizing a smaller, informative dataset). However, a significant limitation in current dataset quantization (DQ) methods is the reliance on a uniform sampling strategy, which assumes that every category requires an equal number of samples for optimal learning.

This paper introduces Dataset Quantization with Active Learning based Adaptive Sampling (DQAS), a framework that moves away from the "one-size-fits-all" approach. By leveraging active learning to identify which image classes are "sensitive" (requiring more data) versus "stable" (requiring less), DQAS achieves state-of-the-art accuracy, including lossless performance on CIFAR-10 using only 50% of the original data.

The Problem: The Uniform Sampling Fallacy

Most existing dataset compression techniques assign a fixed "Images Per Class" (IPC) count. This approach ignores the inherent complexity variance between categories. In any given dataset, some classes are "easy"—their features are tightly clustered and easily distinguishable—while others are "hard," characterized by dispersed features or numerous outliers.

Forcing a uniform distribution results in over-sampling easy classes and under-sampling hard ones. This inefficiency leaves potential performance on the table, as the model wastes capacity on redundant information while lacking the diversity needed to master complex categories.

Methodology

DQAS optimizes dataset quantization through two primary innovations designed to align the data budget with class-wise difficulty.

1. Active Learning-based Adaptive Sampling

Instead of a static allocation, DQAS employs an iterative process to distribute the data budget dynamically. The process involves:

  • Class-wise Initialization: The system begins by evaluating how class-wise accuracy evolves as samples are added, establishing a baseline for learning curves.
  • Expected Error Reduction: Using an active learning strategy, DQAS selects the most informative samples from a candidate pool. It specifically targets "sensitive" classes—those where additional data yields the most significant boost in accuracy—ensuring that the limited data budget is spent where it provides the highest marginal utility.

2. Patchified-image-aware Pipeline

Standard Dataset Quantization often involves dropping less-informative image patches to save storage and compute. However, this can lead to "feature drift," where the features used to select the data (from high-fidelity images) do not match the features of the final, pruned images seen by the model during training.

DQAS resolves this by running its selection algorithm (GraphCut) on the reconstructed images. By accounting for the effects of patch dropping and Masked Autoencoder (MAE) reconstruction during the selection phase, DQAS ensures feature consistency throughout the pipeline.

Experimental Results

The authors evaluated DQAS on three standard benchmarks: CIFAR-10, CIFAR-100, and Tiny ImageNet. The method was compared against 14 coreset selection methods and previous state-of-the-art DQ techniques.

Performance and Efficiency

  • Lossless Compression: On CIFAR-10, DQAS achieved performance parity with the full dataset using only 50% of the data.
  • Robustness at Low Ratios: The performance gap between DQAS and competing methods is most pronounced at extreme compression levels (e.g., 1% or 5% sampling ratios), demonstrating the importance of adaptive sampling when the data budget is most constrained.
  • Computational Speed: DQAS is significantly more efficient than dataset distillation methods like DREAM. For CIFAR-10 at a 0.6 sampling ratio, DQAS required only 32.5 GPU hours, compared to 46.7 hours for DREAM and over 900 hours for older distillation techniques.

Key Insights

Stable vs. Sensitive Classes

A core finding of the research is the distinct behavior of different classes. In CIFAR-10, for example, the "automobile" class is highly stable, reaching peak accuracy with relatively few samples. Conversely, the "bird" class is highly sensitive, requiring a much larger and more diverse set of samples to achieve comparable accuracy. DQAS suggests that for sensitive classes, the benefit comes from qualitative variety—capturing the diverse ways a category can appear—rather than just raw volume.

Closing the Loop

By performing selection on the final "patchified" versions of images, the authors ensure that the most representative samples are chosen based on the actual data the model will encounter. This alignment is crucial for maintaining the integrity of the compressed dataset.

Limitations and Future Work

While DQAS represents a significant step forward, it remains dependent on a pre-trained feature extractor (e.g., ResNet-18). The optimality of the selected subset may be partially tied to the architecture used during the quantization phase. Additionally, while faster than distillation, the iterative active learning loop does introduce some computational overhead compared to simple random sampling.

Future research may extend this adaptive sampling logic beyond quantization to other areas of dataset compression, potentially improving the efficiency and accuracy of dataset distillation and other synthetic data generation fields.

Summary updated

BibTeX
@inproceedings{zhao2024dataset,
  author = {Zhenghao Zhao and Yuzhang Shang and Junyi Wu and Yan Yan},
  title = {{Dataset Quantization with Active Learning Based Adaptive Sampling}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  doi = {10.1007/978-3-031-73027-6\_20},
}
Figure