The Union of Manifolds Hypothesis

Bradley Ca Brown, Anthony L. Caterini, Brendan Leigh Ross, Jesse C Cresswell, Gabriel Loaiza-GanemNeurReps @ NeurIPS 2022

TL;DR

This paper challenges the traditional "manifold hypothesis" by proposing the "union of manifolds hypothesis," suggesting that high-dimensional data is better represented as a collection of distinct manifolds, each with its own intrinsic dimensionality. They empirically validate this by showing that different classes within image datasets exhibit varying intrinsic dimensions, and this variation is linked to classification difficulty, leading to a simple yet effective method for improving classifier performance.

What Problem Does This Paper Address?

The "manifold hypothesis" is a foundational idea in machine learning, positing that complex, high-dimensional data actually resides on a simpler, lower-dimensional manifold embedded within that high-dimensional space. This has been a powerful guiding principle, especially with the success of deep learning. However, this hypothesis assumes a single, constant intrinsic dimensionality across the entire dataset. The authors argue this is too simplistic. They observe that different subsets of data, like different classes in an image dataset (e.g., digits '8' vs. '1' in MNIST), might require different numbers of "factors of variation" to describe them. The problem is that the standard manifold hypothesis doesn't account for this variation in intrinsic dimensionality across different parts of the data.

Methods

The core of the paper's methodology involves:

  • Estimating Intrinsic Dimension: They use a well-established estimator based on the distances to nearest neighbors (specifically, the Levina and Bickel (2004) estimator with the MacKay and Ghahramani (2005) extension). This method estimates the intrinsic dimension of a dataset by looking at how quickly distances to neighbors change.
  • Class-Conditional Intrinsic Dimension Estimation: Instead of estimating the intrinsic dimension of the entire dataset at once, they apply the estimator to data points belonging to each class separately. This allows them to investigate if different classes have different intrinsic dimensions.
  • Relating Intrinsic Dimension to Classification: They train classifiers on image datasets and then correlate the estimated intrinsic dimension of each class with the classifier's accuracy on that class.
  • Loss Re-weighting for Improved Classification: Based on the observed relationship between intrinsic dimension and classification difficulty, they propose a simple modification to the cross-entropy loss function. They weight the loss for each class inversely proportional to its estimated intrinsic dimension, effectively giving more attention to harder-to-classify classes.

Datasets

The authors evaluate their hypothesis and methods on several standard image datasets:

  • MNIST
  • FMNIST (Fashion-MNIST)
  • SVHN (Street View House Numbers)
  • CIFAR-10
  • CIFAR-100
  • ImageNet

No new benchmarks were introduced; the focus was on analyzing existing datasets through the lens of their proposed hypothesis.

Key Insights and Ideas

  • The "Union of Manifolds" is More Realistic: The most significant insight is that data is likely not on one single manifold, but a collection (a union) of distinct manifolds, each potentially having a different intrinsic dimensionality. This is a more nuanced and potentially more accurate model of real-world data.
  • Class Labels as Manifold Proxies: The paper proposes that class labels in supervised learning datasets can serve as a reasonable proxy for identifying these distinct manifolds. The intuition is that images within a class can be smoothly transformed into each other without leaving their "manifold," while transforming between classes is more complex.
  • Intrinsic Dimension Dictates Classification Difficulty: A surprising and important finding is the inverse relationship between a class's intrinsic dimension and how easy it is to classify. Higher intrinsic dimension implies more complex variations within that class, making it harder for a classifier to learn.
  • Simple Loss Re-weighting Yields "Free" Gains: The insight that higher intrinsic dimension means harder classification directly leads to a practical improvement. By simply re-weighting the loss function to focus more on classes with higher intrinsic dimensions, they achieve a statistically significant, albeit small, improvement in classification accuracy without complex architectural changes or data augmentation.

Key Results

  • Empirical Verification of Union of Manifolds: Figures 1 and the appendix figures (3-8) clearly show that intrinsic dimension estimates vary significantly across different classes within datasets like MNIST, FMNIST, SVHN, CIFAR-10, CIFAR-100, and ImageNet. This variation is consistent across different choices of the nearest neighbor parameter k.
  • Inverse Correlation: For CIFAR-100, they found a significant negative correlation between a class's estimated intrinsic dimension and a classifier's test accuracy on that class. For example, with ResNet-18, the correlation was -0.274 ± 0.007.
  • Classification Improvement: By re-weighting the cross-entropy loss proportional to intrinsic dimension, they achieved a marginal but statistically significant improvement in ResNet-18 accuracy on CIFAR-100, increasing it from 61.38% to 61.77%. This is presented as an "essentially 'free' improvement."

Limitations and Future Work

  • Limitations:
    • Proxy for Manifolds: The paper acknowledges that using class labels as a proxy for manifold identification is an assumption. While intuitive, it's not a definitive proof of manifold structure.
  • Estimator Sensitivity: While they show consistency across k values for most datasets, they note that ImageNet is a partial exception, potentially due to fewer data points per class affecting the estimator's reliability.
  • Marginal Improvement: The classification improvement from loss re-weighting is small (0.39%). While statistically significant and "free," it might not be a game-changer on its own.
  • Future Work:
    • Broader Exploration: The authors hope their work encourages the community to further explore the implications of the union of manifolds hypothesis for understanding data and discovering empirical improvements.
  • Unsupervised Settings: The current work focuses on supervised classification. Future work could explore how this hypothesis applies to unsupervised learning tasks like clustering and generative modeling.
  • More Sophisticated Manifold Identification: Developing more robust methods for identifying and characterizing these distinct manifolds, beyond relying solely on class labels, would be a valuable direction.

Summary updated

BibTeX
@inproceedings{brown2022union,
  author = {Bradley CA Brown and Anthony L. Caterini and Brendan Leigh Ross and Jesse C Cresswell and Gabriel Loaiza-Ganem},
  title = {{The Union of Manifolds Hypothesis}},
  booktitle = {NeurReps @ NeurIPS},
  year = {2022},
  url = {https://openreview.net/forum?id=aJp8UXRKvVm},
}
Figure