Dataset Reduction Algorithm Based on Deep Features Clustering

Jian Tang, Hua ChengAdvances 2023 · OpenAlex

As deep learning models grow in complexity—with giants like GPT-3 requiring massive computational budgets—the "Big Data" era has hit a bottleneck. Training on millions of images isn't just slow; it’s expensive and often redundant. This paper, "Dataset Reduction Algorithm Based on Deep Features Clustering," proposes a way to trim the fat from massive image datasets without losing the "brainpower" of the resulting models.

TL;DR

The researchers developed a dataset reduction method that uses ResNet-extracted features and K-means clustering to identify and keep only the most representative images in a dataset. Their approach significantly reduces training overhead and, in several cases, actually improves model accuracy by filtering out redundant and noisy data.

What Problem Does This Paper Address?

In the world of machine learning, more data is usually better—until it isn't. Massive datasets often contain "noise" (outliers or mislabeled data) and "redundancy" (thousands of nearly identical images). Processing these adds "temporal and spatial consumption"—basically, they waste time and GPU memory.

The challenge is Dataset Reduction (specifically "prototype selection"): how do we pick a small subset of the original data that still represents the whole? Traditional methods often struggle with high-dimensional image data because they look at raw pixels rather than the underlying meaning of the image.

Methods

The authors propose a multi-step pipeline that moves away from raw pixel analysis and into the "latent space" of deep learning:

  1. Deep Feature Extraction: Instead of comparing images directly, they pass the dataset through a ResNet-20 model. They strip off the final classification layer to get "feature vectors"—mathematical summaries of what the network "sees" in the image.
  2. Per-Class Clustering: They take all images from a single class (e.g., all "cats") and use K-means clustering on their feature vectors. This groups similar-looking cats together in the feature space.
  3. Representative Selection: Within each cluster, the algorithm identifies the sample closest to the center (the centroid). The logic is that this "center" image is the most representative of that specific sub-group.
  4. Pruning: They retain these central samples and discard the redundant ones. This ensures the remaining dataset is "scattered" evenly across the feature space, preserving both the core characteristics and the boundaries of each class.

Datasets

The algorithm was tested on three industry-standard benchmarks:

  • CIFAR-10: 50,000 small (32x32) images across 10 classes.
  • CIFAR-100: 50,000 images across 100 classes (more complex than CIFAR-10).
  • ILSVRC2012 (ImageNet subset): A massive, high-resolution dataset with ~1.3 million images and 1,000 classes, widely considered the "gold standard" for image recognition.

Key Insights and Ideas

  • Internal Samples Matter: Many older reduction algorithms focus only on "boundary samples" (images that sit right between two classes). This paper argues that "internal" samples—the ones that clearly represent the heart of a category—are vital for the network to learn stable features.
  • The "Noise Filter" Effect: One of the most interesting findings is that a reduced dataset can sometimes outperform the full one. By removing redundant or confusing images, the model is less likely to overfit on "junk" data, leading to better generalization.
  • Semantic Clustering: By performing K-means on deep features rather than pixels, the algorithm groups images by meaning (e.g., "dogs in grass" vs. "dogs on a couch") rather than just color or brightness.

Key Results

The authors compared their "DeepFeature" method against random selection and several classic algorithms (like CNN, ENN, and NearMiss).

  • Accuracy Boost: On CIFAR-10, using only 90% of the data via the DeepFeature method resulted in 91.02% accuracy, which actually beat the 90.96% accuracy of the full 100% dataset.
  • ImageNet Success: On the challenging ILSVRC2012 set, the method achieved 78.42% accuracy with 95% of the data, outperforming the full dataset's 77.80%.
  • Superiority over Classics: Traditional methods like CNN (Condensed Nearest Neighbor) reduced the dataset size drastically (down to 13%) but caused accuracy to plummet (from 90% down to 77%). The proposed method maintained high accuracy even while pruning.

Limitations and Future Work

Despite the promising results, the authors acknowledge a few hurdles:

  • Initial Cost: To extract the features, you first need a trained ResNet model. If you don't have a pre-trained model handy, the "startup cost" in computation time can be high.
  • The "K" Problem: Choosing the right number of clusters ($K$) is tricky. While they suggest using the "elbow method," this adds more computational steps.
  • Fluctuation: If the dataset is pruned too aggressively (reducing it too far below 90-95%), the accuracy begins to fluctuate significantly due to the random nature of K-means initialization.

Future Work: The team aims to explore faster ways to calculate the optimal number of clusters and test different neural architectures for the feature extraction phase.

Summary updated

Abstract

The dataset reduction algorithm is to obtain the simplified dataset through compressing original dataset based on a strategy and rule.It ensures to reduce the training set size as much as possible, without changing generalization ability of the simplified dataset.To study the algorithm with better reduction effect for deep learning image dataset, the paper introduces prototype selection, feature extraction and other concepts in dataset reduction; proposes the dataset reduction algorithm combined with deep feature extraction framework and clustering; and realizes effective reduction for deep learning image dataset.The experimental results indicate that the proposed reduction algorithm can effectively improve generalization of the image dataset with better effect than other similar reduction algorithms.Besides, the paper verifies validity of the algorithm.
BibTeX
@inproceedings{tang2023dataset,
  author = {Jian Tang and Hua Cheng},
  title = {{Dataset Reduction Algorithm Based on Deep Features Clustering}},
  booktitle = {Advances},
  year = {2023},
  doi = {10.2991/978-94-6463-058-9\_148},
}

Loading related content...

Figure