Hyper3-CLIP: Hierarchy-Conditioned Hyperbolic Vision-Language Training

Matin Mahmood, Antonio Rueda-Toicen, Mohamed ElBassat, Seifeldin Elkerdany, Weixing Wang, Gerard de MeloarXiv 2026

TL;DR

Hyper3-CLIP bridges a critical gap in vision-language models by combining hyperbolic geometry—which naturally encodes hierarchical relationships like part-whole structures—with query-conditioned visual pooling. By constructing lightweight textual hierarchies during training, it achieves state-of-the-art zero-shot retrieval and multi-label classification performance without adding any computational overhead at inference time.

What Problem Does This Paper Address?

Standard vision-language models (VLMs) like CLIP embed images and text into a flat Euclidean space using global pooling. While excellent at instance-level matching (e.g., pairing an entire image with its caption), this approach struggles to capture the nested, hierarchical relationships inherent in both visual scenes and language. An image contains objects, which contain parts; a caption contains sentences, which contain phrases and localized descriptions.

To model these structures, researchers have previously turned to two distinct strategies:

  1. Hyperbolic VLMs: These use hyperbolic spaces (where geometric distance expands exponentially) and entailment cones to represent hierarchical specificity (e.g., "dog" is a parent cone to "golden retriever"). However, they typically rely on static image and region features.
  2. Query-Conditioned VLMs: These use text queries to dynamically pool relevant visual patches from an image, improving fine-grained alignment but lacking a structured, hierarchical geometry.

Hyper3-CLIP unites these two parallel tracks into a single framework, creating a hierarchy-conditioned hyperbolic VLM.

Methods

Fig. 1: Hyper3-CLIP overview. The method assumes an image along with a whole- image caption and localized image boxes with corresponding text boxes. We define caption, sentence, text-box, and phrase query nodes. Each text query attends over full-image ViT patch tokens to form a query-conditioned visual node for the hierarchy losses, while the stored image boxes and text boxes remain available for grounded local alignment.

Hyper3-CLIP builds upon the grounded hyperbolic training setup of UNCHA and HyCoCLIP, but introduces a novel parent-linked hyperbolic combination during training:

  • Hierarchical Query Construction: For each image-caption pair, the model automatically extracts a lightweight text hierarchy consisting of the full caption (root), sentence fragments, localized text boxes, and extracted phrases. Each query is assigned a parent link and a reliability weight.
  • Query-Conditioned Visual Pooling: During training, each text query uses a cross-attention mechanism to attend to full-image ViT patch tokens. This extracts a query-specific visual embedding ($v_q$), which is then projected into hyperbolic space alongside its corresponding text representation.
  • Hierarchy-Aware Entailment Losses: The model enforces three query-level hyperbolic entailment relations:
  • Query Image-to-Text ($I^q \ T^q$): Aligns the query-conditioned visual node with its text query.
  • Visual Whole-to-Part ($I \ I^q$): Treats the full image as more semantically specific than the isolated query-conditioned visual concept.
  • Text Parent-to-Child ($T^{\pi(q)} \ T^q$): Treats parent queries as more specific than child queries due to their additional contextual information.

Crucially, query-conditioned pooling is active only during training. At inference time, the pooling module is dropped, meaning Hyper3-CLIP operates as a standard dual encoder with zero added computational cost.

Datasets

  • Training: Trained on the GRIT dataset, utilizing localized image-text boxes and captions.
  • Evaluation:
    • COCO and Flickr30K for zero-shot image-text retrieval.
  • ImageNet for evaluating hyperbolic hierarchy metrics.
  • VOC and COCO for zero-shot multi-label classification.
  • A standard 16-dataset CLIP evaluation suite (including CIFAR, SUN397, STL-10, etc.) for zero-shot classification.

Key Insights and Ideas

  • The Power of Textual Hierarchy: Ablation studies revealed that the text parent-to-child entailment term ($T^{\pi(q)} \ T^q$) is the strongest driver of hierarchy performance, recovering 73% of the full hierarchy accuracy gain on its own.
  • Semantic Specificity vs. Computational Origin: In hyperbolic space, the ordering of entailment cones is defined by semantic specificity rather than how the feature was computed. Because query-conditioned pooling filters out unrelated image content, the full image ($I$) actually acts as a more specific "whole" containing context, making it the child of the broader query-specific visual node ($I^q$).
  • Prompt Sensitivity in Fine-Grained Models: The authors discovered that Hyper3-CLIP is highly sensitive to prompt structures during zero-shot classification. Because the model is trained on rich, compositional multi-word queries, it performs poorly on terse, single-word class templates but excels when given natural descriptive prompts (like "a photo of a {}").

Key Results

Zero-Shot Retrieval

Hyper3-CLIP consistently outperforms previous Euclidean and hyperbolic baselines across all evaluated retrieval metrics on COCO and Flickr30K. For instance, on COCO Text Retrieval, it boosts R@5 from UNCHA's 72.7 to 75.7.

Table 2: Zero-shot image-text retrieval and ImageNet hierarchy evaluation for the ViT- B/16 setting. Published baseline values are from UNCHA Table 2 [7]; Hyper3-CLIP is evaluated with the same retrieval and hierarchy metrics. Paired retrieval columns report R@5/R@10. T and I denote text retrieval and image retrieval. Higher is better except TIE and LCA. Bold marks the best value in each column, with ties bolded.

Multi-Label Classification

By learning better localized and query-conditioned representations, Hyper3-CLIP achieves substantial gains in multi-label classification, outperforming UNCHA by 2.69 mAP on VOC and 3.35 mAP on COCO.

Table 4: Zero-shot multi-label classification on VOC and COCO under a single eval- uator. Values are mAP; Avg. is the mean of VOC and COCO. Higher is better, and bold marks the best value in each column.

Limitations and Future Work

While Hyper3-CLIP shows clear superiority in standard retrieval and multi-label classification tasks, it remains competitive but does not significantly improve upon UNCHA on specific ImageNet hierarchy metrics (like TIE or LCA). Furthermore, its sensitivity to short, terse prompts indicates that it relies heavily on compositional language structure.

The authors suggest that future work could explore maintaining query-conditioned visual nodes during inference for specialized tasks, developing richer query hierarchies, and expanding evaluations to broader compositional benchmarks.

Summary updated

BibTeX
@misc{mahmood2026hyper,
  author = {Matin Mahmood and Antonio Rueda-Toicen and Mohamed ElBassat and Seifeldin Elkerdany and Weixing Wang and Gerard de Melo},
  title = {{Hyper3-CLIP: Hierarchy-Conditioned Hyperbolic Vision-Language Training}},
  year = {2026},
  eprint = {2608.29313},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2608.29313},
}
Figure