Hyperbolic Contrastive Learning for Visual Representations beyond Objects
Abstract
Standard self-supervised learning (SSL) methods often struggle with scene-centric datasets because they treat images as flat points in Euclidean space, ignoring the inherent hierarchy where scenes are composed of multiple objects. We introduce Hyperbolic Contrastive Learning (HCL), a dual-branch framework designed to model this "object-centric scene hierarchy." By leveraging the exponential volume of hyperbolic space, HCL learns representations where the vector direction captures semantic category and the magnitude reflects compositional complexity. Our approach significantly improves performance on downstream tasks like object detection and segmentation on datasets such as COCO and OpenImages.
Introduction
Current SSL paradigms like MoCo or SimCLR are optimized for object-centric datasets (e.g., ImageNet), where an image typically contains a single dominant object. In contrast, scene-centric datasets like COCO feature complex interactions between numerous objects. The authors argue that Euclidean space is geometrically limited for representing these hierarchies. In the real world, a scene is a composition of objects; hyperbolic space, specifically the Poincaré ball model, is mathematically better suited for embedding such tree-like structures due to its exponential growth in volume relative to radius.
Methods
The proposed HCL framework utilizes two concurrent branches to learn complementary features:
- Euclidean Branch (Object-Object): Employs standard InfoNCE loss on a hypersphere to focus on "what" an object is, ensuring consistent representations across different views of the same object.
- Hyperbolic Branch (Scene-Object): Maps representations into a Poincaré ball. It uses positive pairs consisting of a scene and an object crop from within it. The loss function encourages "general" objects to reside near the center of the ball (small norm) and "specific" scenes to move toward the boundary (large norm).
Key Insights and Results
A pivotal discovery of this work is the "Power of the Norm." While standard SSL typically discards magnitude through L2-normalization, HCL demonstrates that the hyperbolic norm is a rich signal for hierarchy. As shown in the visual evidence below, smaller norms consistently align with clean, single-object images, while larger norms correspond to complex, multi-object scenes.
Empirical results validate the effectiveness of HCL. When integrated with baselines like Dense-CL, HCL improved COCO object detection (AP) from 39.6 to 42.5. Additionally, HCL proved highly efficient; pre-training on OpenImages for 75 epochs outperformed a 200-epoch ImageNet baseline. The model also excels in zero-shot tasks, such as identifying out-of-context objects by measuring abnormally large hyperbolic distances between an object and its surrounding scene.
Conclusion
Hyperbolic Contrastive Learning successfully bridges the gap between object-centric and scene-centric representation learning. By explicitly modeling the compositional hierarchy of the visual world, HCL produces more versatile features for complex downstream applications. Future research may explore more granular hierarchies, such as part-whole relationships, to further refine these visual embeddings.
Summary updated