The Union of Manifolds Hypothesis and its Implications for Deep Generative Modelling

Bradley C. A. Brown, Anthony L. Caterini, Brendan Leigh Ross, Jesse C. Cresswell, Gabriel Loaiza-Ganem · OpenReview

Abstract

Deep learning has had tremendous success at learning low-dimensional representations of high-dimensional data. This success would be impossible if there was no hidden low-dimensional structure in data of interest; this existence is posited by the manifold hypothesis, which states that the data lies on an unknown manifold of low intrinsic dimension. In this paper, we argue that this hypothesis does not properly capture the low-dimensional structure typically present in data. Assuming the data lies on a single manifold implies intrinsic dimension is identical across the entire data space, and does not allow for subregions of this space to have a different number of factors of variation. To address this deficiency, we put forth the union of manifolds hypothesis, which accommodates the existence of non-constant intrinsic dimensions. We empirically verify this hypothesis on commonly-used image datasets, finding that indeed, intrinsic dimension should be allowed to vary. We also show that classes with higher intrinsic dimensions are harder to classify, and how this insight can be used to improve classification accuracy. We then turn our attention to the impact of this hypothesis in the context of deep generative models (DGMs). Most current DGMs struggle to model datasets with several connected components and/or varying intrinsic dimensions. To tackle these shortcomings, we propose clustered DGMs, where we first cluster the data and then train a DGM on each cluster. We show that clustered DGMs can model multiple connected components with different intrinsic dimensions, and empirically outperform their non-clustered counterparts without increasing computational requirements.

Introduction: Beyond the Single Manifold

For years, deep learning has relied on the manifold hypothesis: the idea that high-dimensional data (like a $1024 \times 1024$ pixel image) actually lies on a single, low-dimensional "surface" or manifold. This explains why we can represent complex data with relatively few variables. However, this view is often too simplistic. A single manifold implies that every part of the dataset has the same "intrinsic dimension" (ID)—essentially the same number of degrees of freedom. Intuitively, this feels wrong: it should take more factors of variation to describe a complex image of a "dog" than a simple image of the number "1".

Furthermore, standard deep generative models (DGMs), such as VAEs or GANs, use continuous functions to map a single connected latent space to the data space. If the real data is actually "disconnected" (e.g., the cluster of "cat" images is far away from "car" images with no valid images in between), these models are mathematically forced to put probability mass in the empty "no-man's land" between clusters, leading to lower quality samples.

The "No-Man's Land" Problem

Because standard models must be continuous, they "bridge" the gaps between disconnected data clusters. This results in the model generating blurry or nonsensical images in the regions between real data manifolds. To address this, we propose Disconnected DGMs (D-DGMs). Instead of one large model, we partition the data (by class or cluster) and train separate, smaller models for each component. By ensuring the total computational budget (FLOPs and memory) remains the same as a single large model, we demonstrate that this approach better captures the underlying disjoint structure.

Comparison of generative models on synthetic data. Standard VAEs bridge disconnected manifolds, creating 'no-man's land' artifacts, while D-VAEs better preserve the disjoint structure.

Verifying the Union of Manifolds Hypothesis

We verify the Union of Manifolds Hypothesis by estimating the intrinsic dimension (ID) of individual classes across major datasets using the Levina & Bickel estimator. Our findings confirm that the ID varies significantly between classes, particularly in complex datasets like ImageNet. This variability supports the idea that a single-manifold model is an oversimplification of real-world data.

Intrinsic dimension (ID) range across classes for various datasets. The significant variation in ID supports the Union of Manifolds hypothesis over a single-manifold assumption.

Key Results and Implications

Our research yields several key insights for both generative and supervised learning:

  • Generative Performance: Disconnected Wasserstein Autoencoders (D-WAEs) consistently outperform standard WAEs. For example, on CIFAR-10, the D-WAE achieved an FID score of 133.3 compared to the baseline's 146.7.
  • Complexity vs. Accuracy: We found a significant negative correlation between a class's intrinsic dimension and its classification accuracy. Essentially, classes with more factors of variation are harder to learn.
  • Classification Boost: By re-weighting the cross-entropy loss function to give more weight to classes with higher IDs, we improved ResNet-18 accuracy on CIFAR-100 from 61.38% to 61.77%. While the gain is marginal, it is statistically significant and requires almost zero extra computational cost.

Conclusion

This work demonstrates that image datasets are better described as a union of disjoint manifolds with varying intrinsic dimensions. While our current approach uses classes as proxies for these manifolds, future work could explore more sophisticated unsupervised clustering techniques to handle class overlaps and intra-component variation. Despite these challenges, accounting for the disconnected and multi-dimensional nature of data provides a clear path toward more robust and accurate deep learning models.

Summary updated

BibTeX
@inproceedings{brown2023union,
  author = {Bradley C. A. Brown and Anthony L. Caterini and Brendan Leigh Ross and Jesse C. Cresswell and Gabriel Loaiza-Ganem},
  title = {{The Union of Manifolds Hypothesis and its Implications for Deep Generative Modelling}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=Rvee9CAX4fi},
}
Figure