Exploring Dataset-Scale Indicators of Data Quality

Benjamin Feuer, Chinmay HegdearXiv 2023

Abstract: Modern computer vision foundation models are trained on massive amounts of data, incurring large economic and environmental costs. Recent research has suggested that improving data quality can significantly reduce the need for data quantity. But what constitutes data quality in computer vision? We posit that the quality of a given dataset can be decomposed into distinct sample-level and dataset-level constituents, and that the former have been more extensively studied than the latter. We ablate the effects of two important dataset-level constituents: label set design, and class balance. By monitoring these constituents using key indicators we provide, researchers and practitioners can better anticipate model performance, measured in terms of its accuracy and robustness to distribution shifts.

Introduction

The "scaling law" era of deep learning suggests that increasing data quantity is the primary path to better performance. However, training these foundation models is astronomically expensive and environmentally taxing. This research argues that how a dataset is scaled is as critical as the total sample count. While most quality metrics focus on individual images (e.g., resolution), this work explores holistic dataset properties—specifically label set design and class balance—to identify indicators that predict model performance and robustness before training begins.

Scaling Strategies: Horizontal vs. Vertical

To understand dataset scaling, we define two primary dimensions:

  1. Vertical Scaling (V-scaling): Increasing the number of samples for the target (in-distribution) classes.
  2. Horizontal Scaling (H-scaling): Increasing the total number of classes in the dataset while keeping the number of samples per class constant.

Using a modified ResNet-50 architecture and the ImageNet-100 (IN100) subset as a target, we found that H-scaling—adding "distractor" classes not present in the test set—often improves model robustness more effectively than V-scaling. These out-of-distribution classes likely act as "batch negatives," forcing the model to learn more discriminative and robust features.

H-scaling vs. V-scaling performance on IN100 accuracy and robustness.

The Anatomy of Class Imbalance

A significant finding of this study challenges common wisdom regarding class imbalance. While it is often assumed that "mega-classes" (left-skewedness) degrade performance, our results suggest that models actually benefit from more samples, even if they increase imbalance.

The true detriment to performance is long-tailedness: the presence of classes with very few samples (e.g., fewer than 100 or 500). We found that the percentage of classes falling below these thresholds serves as a near-perfect rank-order predictor of model performance.

Impact of dataset skew and long-tail distribution on model performance.

Key Insights and Results

  • Dataset Blending: Diversity in data origin is a quality indicator. Adding classes from sources like OpenImages to an ImageNet-based set yielded better results than simply adding more ImageNet classes.
  • Rebalancing Efficiency: Experiments with OpenImages-100 (OI100) showed that rebalancing just the smallest classes (the bottom 9%) accounted for the majority of accuracy gains. Conversely, truncating the largest classes to achieve balance actually reduced performance.
  • Synthetic Limits: While H-scaling works with natural images, scaling with synthetic images (e.g., FractalDB) provided some benefit but significantly underperformed compared to natural data.

Conclusion and Future Work

This study provides a preliminary framework for quantifying dataset-level quality. By focusing on the "tail" of the distribution and prioritizing horizontal diversity over simple vertical volume, researchers can build more robust models more efficiently. Future work will expand these studies to Vision Transformer (ViT) architectures and develop indicators for visual and semantic diversity in multi-modal models.

Summary updated

BibTeX
@misc{feuer2023exploring,
  author = {Benjamin Feuer and Chinmay Hegde},
  title = {{Exploring Dataset-Scale Indicators of Data Quality}},
  year = {2023},
  eprint = {2311.04016},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2311.04016},
}
Figure