Hyperbolic Feature Augmentation via Distribution Estimation and Infinite Sampling on Manifolds

Zhi Gao, Yuwei Wu, Yunde Jia, Mehrtash Harandi

Overview

Hyperbolic spaces are highly effective for modeling hierarchical data, but they suffer from severe overfitting when training data is scarce. To address this, researchers have introduced Hyperbolic Feature Augmentation (HFA). This novel approach uses a meta-learned Neural Ordinary Differential Equation (ODE) to estimate class distributions and introduces a mathematical upper bound to train models using "infinite" augmented samples—all without the computational overhead of explicit data generation.

The Challenge of Hyperbolic Data Scarcity

Many real-world datasets, ranging from animal taxonomies to complex language structures, are inherently hierarchical. While standard Euclidean deep learning struggles to capture these structures efficiently, hyperbolic geometry (characterized by constant negative curvature) models them naturally because its volume grows exponentially with its radius.

However, hyperbolic models are notoriously data-hungry. In scarce-data regimes like few-shot learning (learning from fewer than five examples) or continual learning (where old data is mostly discarded to learn new tasks), these models quickly overfit. Traditional data augmentation techniques do not translate easily to hyperbolic manifolds for two main reasons:

  1. Geometric Complexity: Augmentation directions must respect the curved manifold, requiring computationally expensive operations like parallel transport and exponential maps.
  2. Estimation Bias: With only one or two samples, accurately estimating the true distribution of a class in a complex, curved space is nearly impossible.

The HFA Framework

To perform feature augmentation directly on the hyperbolic manifold, the authors propose a three-part solution:

  1. Wrapped Normal Distribution: Class features are modeled using a wrapped normal distribution. This involves taking a standard Gaussian distribution in a flat "tangent space" and projecting it onto the hyperbolic Poincaré ball.
  2. Meta-Neural-ODE Distribution Estimation: To overcome estimation bias from limited samples, the model avoids simply calculating the mean and variance of the few available data points. Instead, it employs a Neural ODE module. Meta-trained on "base classes" to learn the dynamics of typical class distribution behaviors, this module can "evolve" a highly accurate distribution estimate for new, unseen classes.
  3. Infinite Sampling via Loss Bound: Explicitly generating millions of augmented features is computationally prohibitive. To solve this, the authors mathematically derive an upper bound for the augmentation loss ($\mathcal{L}_\infty$). By minimizing this bound, the model effectively trains on an infinite number of samples from the estimated distribution simultaneously. This bypasses the need for explicit sampling and complex hyperbolic operations during the training loop.
Conceptual diagram of the HFA framework, illustrating the flow from input data through the Neural ODE to the classifier with infinite augmentation.

Key Insights

  • Hyperbolic vs. Euclidean Augmentation: Augmenting in Euclidean space can distort underlying hierarchical relationships. By keeping the augmentation process strictly on the manifold, HFA preserves the "semantic distance" and structural hierarchy of the features.
  • Learning the "Flow" of Data: Utilizing a Neural ODE allows the model to treat distribution estimation as a continuous optimization process. This approach is significantly more robust than static estimation when constrained to only one or two data points.
  • The Power of the Limit: The derivation of the $\mathcal{L}_\infty$ bound is a major technical breakthrough. It transforms a computationally expensive sampling problem into a tractable optimization problem, utilizing standard Euclidean-like operations as an upper bound to make hyperbolic training vastly more efficient.

Performance and Results

The authors evaluated HFA across several standard benchmarks known for hierarchical structures, including few-shot learning datasets (mini-ImageNet, tiered-ImageNet, CUB, and CIFAR-FS) and continual learning setups (CIFAR-100).

HFA consistently outperformed both Euclidean-based augmentation techniques and existing state-of-the-art hyperbolic methods:

  • Few-shot Accuracy: On mini-ImageNet (1-shot), HFA achieved 66.87% accuracy with a ResNet12 backbone, marking a significant improvement over the Euclidean-based VFSL (61.23%) and previous hyperbolic leaders. With a ResNet18 backbone, performance reached 68.26%.
  • Robustness to Scarcity: Ablation studies confirmed that the combination of "Neural ODE + Infinite Augmentation" yields the best performance, proving that both accurate distribution estimation and infinite sampling are critical to the model's success.
  • Continual Learning: In CIFAR-100 experiments, HFA maintained higher accuracy over long sequences of tasks compared to popular replay-based methods. This suggests that the augmented features are highly discriminative and actively help prevent "catastrophic forgetting."
Accuracy comparisons on mini-ImageNet, CUB, and CIFAR-FS demonstrating HFA's state-of-the-art performance.

Limitations and Future Work

The primary limitation of the current HFA model is its assumption of a uniform hierarchical structure. The model relies on a single curvature value ($c$) for the entire space. In reality, different segments of a dataset might exhibit varying "levels" of hierarchy (e.g., some categories may be more strictly tree-like than others).

Future work could explore the use of product manifolds—combining multiple hyperbolic and Euclidean spaces with different curvatures—to better capture the heterogeneous local structures inherent in complex, real-world data.

Summary updated

BibTeX
@inproceedings{gao2022hyperbolic,
  author = {Zhi Gao and Yuwei Wu and Yunde Jia and Mehrtash Harandi},
  title = {{Hyperbolic Feature Augmentation via Distribution Estimation and Infinite Sampling on Manifolds}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
}
Figure