Towards Bridging Sample Complexity and Model Capacity

Shibin Mei, Chenglong Zhao, Shengchao Yuan, Bingbing NiAAAI 2022

Abstract: In this paper, we give a new definition for sample complexity, and further develop a theoretical analysis to bridge the gap between sample complexity and model capacity. In contrast to previous works which study on some toy samples, we conduct our analysis on more general data space, and build a qualitative relationship from sample complexity to model capacity required to achieve comparable performance. Besides, we introduce a simple indicator to evaluate the sample complexity based on continuous mapping. Moreover, we further analysis the relationship between sample complexity and data distribution, which paves the way to understand the present representation learning. Extensive experiments on several datasets well demonstrate the effectiveness of our evaluation method.

The Challenge of Sample Complexity

In deep learning, two fundamental questions persist: "How much data is required?" and "How large should a model be?" While empirical rules of thumb exist, the theoretical link between sample complexity (the inherent difficulty of a dataset) and model capacity (the learning potential of a network) has remained elusive. Previous attempts to quantify dataset complexity often relied on "toy" datasets or restrictive statistical assumptions that fail to generalize to high-dimensional image data. This research seeks to provide a quantitative evaluation of real-world dataset complexity and establish a formal relationship with the model capacity needed for high performance.

Quantifying Complexity: The Dominating Data Framework

The authors introduce the concept of Dominating Data to measure complexity. Imagine a dataset as a collection of clusters; by identifying a representative "anchor" point from each cluster, one forms a "dominating set." The core hypothesis is that if a model can successfully fit these anchors, it can generalize to the remaining data points.

Visualization of data clusters and dominating points acting as the 'skeleton' of the distribution.

Key technical components include:

  • Defining Sample Complexity ($S$): Complexity is defined as the number of these dominating points. These are identified using graph theory, where data points are nodes connected if they fall within a distance threshold ($\epsilon$). The resulting number of clusters represents the sample complexity.
  • Theoretical Bounds: The paper provides mathematical proof (Theorem 1) setting an upper bound on the model capacity required to "cover" these dominating points.
  • Distribution Metrics: The measure is refined by analyzing Inter-class Overlap (using Jensen-Shannon divergence) and Intra-class Dispersity. Higher overlap and dispersity are shown to necessitate greater model capacity.

Experimental Setup

The framework was validated using standard computer vision benchmarks: MNIST (low complexity), CIFAR-10 (moderate complexity), and SVHN (high complexity/noise). To manipulate complexity, the researchers employed various data augmentations (Crop, Flip, Rotation, Cutout) and adversarial examples generated via PGD attacks.

Key Results: Bridging Complexity and Capacity

Experiments with Decision Trees, Random Forests, and Multi-Layer Perceptrons (MLPs) demonstrate that the capacity required to reach target accuracy scales with the number of clusters (dominating data).

Test accuracy versus model capacity (estimators and hidden layer size) across different augmentations, showing how increased cluster counts (complexity) require larger models.
  • The "Skeleton" Hypothesis: Models do not need to memorize every point but must fit the "dominating" points. As a dataset becomes more scattered, a model requires more "atomic functions" to classify it correctly.
  • Augmentation and Complexity: While beneficial for generalization, data augmentation increases sample complexity. By introducing new patterns, it forces the model to account for more dominating points, explaining why augmented datasets often require larger models or longer training cycles.
  • Adversarial Impact: Adversarial attacks drastically increase sample complexity. Perturbed images act as isolated outliers (tiny clusters) that the model cannot easily integrate into existing clusters, highlighting why adversarial robustness demands massive model capacity.

Conclusion and Future Work

This work provides a robust theoretical bridge between data nature and network architecture. While the current method relies on an empirical distance threshold ($\epsilon$), future research could focus on automated thresholding or dynamic evaluation. Such advancements could enable "curriculum learning," where models prioritize training on the most complex dominating points to improve efficiency and performance.

Summary updated

BibTeX
@inproceedings{mei2022towards,
  author = {Shibin Mei and Chenglong Zhao and Shengchao Yuan and Bingbing Ni},
  title = {{Towards Bridging Sample Complexity and Model Capacity}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2022},
  url = {https://openreview.net/forum?id=piw-v_rZOnC},
}
Figure