What does a deep neural network confidently perceive? The effective dimension of high certainty class manifolds and their low confidence boundaries

Stanislav Fort, Ekin Dogus Cubuk, Surya Ganguli, Samuel S. SchoenholzarXiv 2022 · DOI

Introduction

Deep neural networks (DNNs) act as high-dimensional map-makers, partitioning the input space into regions associated with specific classes. While we understand their performance on discrete test sets, the global geometry of their "islands of certainty"—the regions where a model predicts a class with high confidence—remains largely mysterious. Understanding this geometry is crucial for explaining generalization, robustness, and the effects of different training regimes. However, the "curse of dimensionality" makes direct exploration of these regions intractable; randomly sampling a 3,072-dimensional space (like CIFAR-10) to find high-confidence points is statistically impossible.

The Subspace Tomography Method (TSM)

To overcome these challenges, researchers developed the Subspace Tomography Method (TSM). Instead of searching the entire input space, TSM probes the geometry by taking random $d$-dimensional "slices" (affine subspaces) of the input space and optimizing within them.

The process involves:

  1. Optimization within Slices: Using gradient descent (Adam) to find the point in a $d$-dimensional slice that maximizes the network's confidence for a specific target class.
  2. Identifying the Critical Dimension ($d^*$): By sweeping through different dimensions ($d$), the method identifies a threshold where the network begins to reliably reach a target confidence (e.g., 50%).
  3. Geometric Interpretation: Grounded in Gordon’s escape through a mesh theorem, the critical dimension $d^*$ serves as a proxy for the manifold's codimension. The effective dimension of the class manifold is thus approximately $D - d^*$, where $D$ is the total input dimension.
Conceptual overview of TSM and the resulting empirical curves for target probability and loss used to determine the critical dimension d*.

Insights into the Geometry of Certainty

The application of TSM across various models and datasets revealed several fundamental properties of neural network perception:

  • Vast Manifolds of Certainty: For CIFAR-10 models, class manifolds often have an effective dimension exceeding 3,000. Given that the intrinsic dimension of the data is estimated at ~100, this suggests that networks "fill in" massive volumes of the input space with high-confidence predictions far beyond the support of the training data.
  • Performance Correlates with Dimensionality: A consistent trend emerged: better-performing models (those with more training data, wider architectures, or longer training times) possess higher-dimensional manifolds of certainty.
  • The Ensemble Exception: Ensembling is unique in that it improves performance while decreasing the manifold dimension. This suggests that ensembles work by intersecting the overconfident regions of individual models, "sharpening" the decision boundaries and removing idiosyncratic errors.
  • Robustness via Geometric Volume: Models more resilient to noise (e.g., CIFAR-10-C) show higher-dimensional manifolds. This suggests that higher dimensionality provides a "geometric buffer" against input distortions.

Key Results

The TSM findings were validated across multiple architectures, including SimpleCNNs, ResNets, and Vision Transformers (ViT), indicating that these geometric properties are intrinsic to deep learning.

Consistency of TSM across all ten classes of CIFAR-10, showing the characteristic sigmoidal transition in confidence as the cutting plane dimension increases.

Further experiments with label randomization showed that while models can still reach 100% training accuracy on random labels, their class manifolds are significantly lower-dimensional. This provides a clear geometric distinction between "memorization" and "learning." Additionally, a linear correlation was found between the codimension $d^*$ and the error rate under Gaussian noise, reinforcing the link between manifold geometry and empirical robustness.

Discussion and Future Work

While TSM provides a powerful tool for measuring the "size" of confidence regions, the causal link between performance and dimensionality remains an open question. The method is also computationally intensive for very large models. Future research may focus on using these geometric metrics as diagnostic tools during training to predict generalization or to design architectures that naturally favor high-dimensional, robust manifolds.

Summary updated

Abstract

Deep neural network classifiers partition input space into high confidence regions for each class. The geometry of these class manifolds (CMs) is widely studied and intimately related to model performance; for example, the margin depends on CM boundaries. We exploit the notions of Gaussian width and Gordon's escape theorem to tractably estimate the effective dimension of CMs and their boundaries through tomographic intersections with random affine subspaces of varying dimension. We show several connections between the dimension of CMs, generalization, and robustness. In particular we investigate how CM dimension depends on 1) the dataset, 2) architecture (including ResNet, WideResNet \& Vision Transformer), 3) initialization, 4) stage of training, 5) class, 6) network width, 7) ensemble size, 8) label randomization, 9) training set size, and 10) robustness to data corruption. Together a picture emerges that higher performing and more robust models have higher dimensional CMs. Moreover, we offer a new perspective on ensembling via intersections of CMs. Our code is at https://github.com/stanislavfort/slice-dice-optimize/
BibTeX
@misc{fort2022what,
  author = {Stanislav Fort and Ekin Dogus Cubuk and Surya Ganguli and Samuel S. Schoenholz},
  title = {{What does a deep neural network confidently perceive? The effective dimension of high certainty class manifolds and their low confidence boundaries}},
  year = {2022},
  eprint = {2210.05546},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2210.05546},
}
Figure