Abstract
Feature augmentation generates novel samples in the feature space, providing an effective way to enhance the generalization ability of learning algorithms with hyperbolic geometry. Most hyperbolic feature augmentation is confined to closed-environment, assuming the number of classes is fixed (i.e., seen classes) and generating features only for these classes. In this paper, we propose a hyperbolic dual feature augmentation method for open-environment, which augments features for both seen and unseen classes in the hyperbolic space. To obtain a more precise approximation of the real data distribution for efficient training, (1) we adopt a neural ordinary differential equation module, enhanced by meta-learning, estimating the feature distributions of both seen and unseen classes; (2) we then introduce a regularizer to preserve the latent hierarchical structures of data in the hyperbolic space; (3) we also derive an upper bound for the hyperbolic dual augmentation loss, allowing us to train a hyperbolic model using infinite augmentations for seen and unseen classes. Extensive experiments on five open-environment tasks: class-incremental learning, few-shot open-set recognition, few-shot learning, zero-shot learning, and general image classification, demonstrate that our method effectively enhances the performance of hyperbolic algorithms in open-environment.
Introduction
Standard machine learning models typically operate under a "closed-world" assumption, where the set of classes encountered during training remains static. However, real-world "open environments" are dynamic; tasks such as class-incremental learning and zero-shot learning require models to adapt to new categories or identify unseen ones.
Hyperbolic geometry, particularly the Poincaré ball model, is highly effective for representing hierarchical data due to its exponential volume growth. However, existing hyperbolic augmentation methods suffer from "over-dominance": by only augmenting seen classes, these categories expand to occupy the entire embedding space. This leaves no room for future unseen classes, leading to catastrophic forgetting or poor out-of-distribution detection. To address this, we propose Hyperbolic Dual Feature Augmentation (HDFA).
Methodology
HDFA introduces a dual-augmentation strategy that prepares the hyperbolic space for both seen and unseen categories while maintaining the inherent hierarchical structure of the data.
1. Distribution Estimation via Meta-Learned Neural ODEs
Instead of relying on simple statistics, HDFA utilizes Neural Ordinary Differential Equations (ODEs) to estimate the parameters (mean and covariance) of wrapped normal distributions in hyperbolic space. This approach allows the model to capture complex, continuous intra-class hierarchies more flexibly than discrete methods.
2. Dual Augmentation and Hierarchy Preservation
The "Dual" aspect of HDFA involves synthesizing "auxiliary unseen classes" by applying perturbation directions to the distributions of seen classes. This proactive synthesis creates a "squeeze effect," forcing the distributions of seen classes into tighter boundaries and leaving "buffer zones" for future, unknown categories.
To further align with real-world data hierarchies, we introduce a Hierarchy-Preserving Regularizer. In the Poincaré ball, the region near the origin represents higher uncertainty or generic features, while the boundary represents high confidence or specific features. The regularizer forces synthesized unseen classes toward the center and seen classes toward the boundary, mapping uncertainty directly to geometry.
3. Infinite Augmentation Trick
To mitigate the computational overhead of sampling in hyperbolic space, we derive a mathematical upper bound for the hyperbolic dual augmentation loss. This allows the model to be trained as if it had access to an infinite number of augmented samples without the need for explicit generation during training, bypassing the high cost of complex hyperbolic operations like parallel transport.
Experimental Results
HDFA was evaluated across five open-environment tasks using standard benchmarks including CIFAR-100, Tiny-ImageNet, and CUB.
- Class-Incremental Learning: On CIFAR-100, HDFA achieved a final accuracy of 56.62%, outperforming previous hyperbolic methods by over 1%.
- Zero-Shot Learning: On the CUB dataset, it reached 76.56% Top-1 accuracy, surpassing both generative and non-generative Euclidean competitors.
- Open-Set Recognition: HDFA significantly improved the AUROC, demonstrating superior capability in identifying novel categories.
Conclusion
HDFA effectively addresses the over-dominance issue in hyperbolic embeddings by augmenting both seen and unseen classes. By mapping uncertainty to geometric distance from the origin and utilizing an efficient infinite augmentation loss, HDFA enhances model robustness in open environments. Future work may explore product manifolds to better accommodate datasets with hybrid (e.g., hierarchical and non-hierarchical) geometries.
Summary updated