Geometrical Homogeneous Clustering for Image Data Reduction

Shril Mody, Janvi Thakkar, Devvrat Joshi, Siddharth Soni, Rohan Patil, Nipun BatraarXiv 2022 · DOI

Abstract

Training deep learning models on massive image datasets is computationally expensive and storage-intensive. This paper introduces GHCIDR (Geometrical Homogeneous Clustering for Image Data Reduction) and its algorithmic variants to address these challenges. Unlike traditional methods that rely on synthetic centroids, GHCIDR selects a representative subset of actual training images by leveraging the geometric structure of data clusters. Experimental results on MNIST, Fashion-MNIST, and CIFAR10 demonstrate that GHCIDR can reduce dataset size by up to 87% while maintaining near-original accuracy, providing a human-readable and mathematically robust alternative to standard data reduction techniques.

Introduction: The Problem of Dataset Scale

The proliferation of high-resolution image data has made training deep learning models increasingly resource-heavy. While dataset reduction is a known solution, existing techniques often fall short in two areas:

  1. Interpretability: Baseline methods like Reduced Homogeneous Clustering (RHC) often represent data clusters using "centroids"—mathematical averages of all points in a cluster. These averages result in blurry, non-existent images that humans cannot verify or inspect.
  2. Geometric Sensitivity: Standard sampling often ignores the density and boundaries of data clusters. Treating small and large clusters identically, or failing to capture boundary points, leads to a loss of critical information necessary for a model to learn decision margins.
A human-readable sample image (MNIST '9') selected by the proposed method, which contrasts with the blurry mathematical centroids used in baseline methods.

Methodology: Geometric Sampling Strategies

The authors propose four variations of clustering-based reduction, building upon the concept of homogeneous clusters—partitions where every point shares the same label.

RHCKON and KONCW

The RHCKON (RHC + K-Farthest + One Nearest) approach replaces the synthetic centroid with the image closest to the cluster center and the $K$ images furthest from it. This ensures the selection of both "prototypical" and "boundary" examples. KONCW (Cluster Weightage) further refines this by assigning sampling weights based on cluster size, ensuring that dense regions are more heavily represented than sparse ones.

Comparison of the RHCKON and KONCW sampling strategies, highlighting how weightage is applied to larger clusters to ensure representative sampling.

CWKC and GHCIDR

To prevent sampling bias where all boundary points might cluster in one area, CWKC (K-Centre) uses a greedy approach to spread selected images across the cluster's boundary. The flagship method, GHCIDR, treats clusters as multi-layered "annular regions" (onion-like rings). By selecting images from each ring, GHCIDR captures the entire volume and internal variance of the cluster, from its core to its outermost edges.

Experimental Results

The methods were evaluated on MNIST, Fashion-MNIST, and CIFAR10 using Fully Connected and VGG1 architectures.

  • MNIST: GHCIDR achieved 99.35% accuracy (nearly identical to the full dataset) while reducing the data by 87.27%.
  • Fashion-MNIST: Maintained 91.66% accuracy with a 76.80% reduction in data.
  • CIFAR10: On a more complex dataset, it achieved 81.10% accuracy with a 32.34% reduction.

In almost every test case, GHCIDR provided better accuracy than random sampling for the same amount of data reduction, proving that the "boundary" points are crucial for defining class margins.

Conclusion and Future Work

GHCIDR provides a powerful framework for reducing image datasets into human-interpretable subsets without sacrificing model performance. By prioritizing the geometric "volume" of clusters over simple averages, it captures the essential variance of the data distribution. Future research will explore the use of perceptual distance metrics like SSIM and the application of these geometric principles to larger datasets such as ImageNet.

Summary updated

Abstract

In this paper, we present novel variations of an earlier approach called homogeneous clustering algorithm for reducing dataset size. The intuition behind the approaches proposed in this paper is to partition the dataset into homogeneous clusters and select some images which contribute significantly to the accuracy. Selected images are the proper subset of the training data and thus are human-readable. We propose four variations upon the baseline algorithm-RHC. The intuition behind the first approach, RHCKON, is that the boundary points contribute significantly towards the representation of clusters. It involves selecting k farthest and one nearest neighbour of the centroid of the clusters. In the following two approaches (KONCW and CWKC), we introduce the concept of cluster weights. They are based on the fact that larger clusters contribute more than smaller sized clusters. The final variation is GHCIDR which selects points based on the geometrical aspect of data distribution. We performed the experiments on two deep learning models- Fully Connected Networks (FCN) and VGG1. We experimented with the four variants on three datasets- MNIST, CIFAR10, and Fashion-MNIST. We found that GHCIDR gave the best accuracy of 99.35%, 81.10%, and 91.66% and a training data reduction of 87.27%, 32.34%, and 76.80% on MNIST, CIFAR10, and Fashion-MNIST respectively.
BibTeX
@misc{mody2022geometrical,
  author = {Shril Mody and Janvi Thakkar and Devvrat Joshi and Siddharth Soni and Rohan Patil and Nipun Batra},
  title = {{Geometrical Homogeneous Clustering for Image Data Reduction}},
  year = {2022},
  eprint = {2208.13079},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2208.13079},
}
Figure