Modality Alignment across Trees on Heterogeneous Hyperbolic Manifolds

Wu Wei, Xiaomeng Fan, Yuwei Wu, Zhi Gao, Pengxiang Li, Yunde Jia, Mehrtash Harandi

TL;DR

Researchers have developed "Alignment across Trees," a novel framework that moves beyond squashing images into single feature vectors. By extracting hierarchical visual features and aligning them with textual taxonomies in hyperbolic spaces with different curvatures, the method significantly improves how vision-language models (VLMs) understand complex, nested relationships in data.

The Problem: Flat Matching in a Hierarchical World

Most modern Vision-Language Models (like CLIP) treat image-text alignment as a flat matching game: one image vector is compared to one text vector. However, the real world is hierarchical. In biology, a "Giant Panda" isn't just a label; it belongs to the genus Ailuropoda, the family Ursidae, and the class Mammalia.

While recent methods have started using hierarchical text features, they still represent the image as a single, "asymmetric" point. This creates a bottleneck: a single visual feature often fails to capture the multi-level semantic information present in a taxonomy. Furthermore, text and images have different "intrinsic geometries"—textual descriptions are relatively "pure," while images contain complex backgrounds and noise. Forcing them into the same geometric space (manifold) leads to suboptimal alignment.

Comparison of asymmetric Euclidean alignment versus symmetric hyperbolic alignment.

Methods: Building and Aligning Trees

The authors propose a three-pronged approach to create a symmetric, tree-based alignment:

  1. Semantic-Aware Visual Trees: Instead of using only the final layer of a Vision Transformer (ViT), the model taps into intermediate layers. It uses a text-guided cross-attention mechanism where textual features at different levels (e.g., "Mammal" vs. "Panda") act as queries to extract corresponding coarse-to-fine visual features from the image.
  2. Heterogeneous Hyperbolic Manifolds: Hyperbolic space is mathematically ideal for trees because its volume grows exponentially with the radius, just like the number of nodes in a tree. Crucially, the authors allow the text and image manifolds to have distinct curvatures ($c_1$ and $c_2$), acknowledging their different geometric properties.
  3. Manifold Alignment via a "Bridge": To align these two different hyperbolic spaces, the authors learn an intermediate manifold ($c_3$). They formulate a distance measure based on the KL divergence between distributions on these manifolds and prove that an optimal "bridge" manifold exists and is unique. They also use "hyperbolic entailment cones" to ensure that fine-grained features (Species) are geometrically nested within coarse-grained ones (Family).
The proposed framework aligning textual and visual trees via an intermediate hyperbolic manifold.

Datasets and Evaluation

The model was evaluated on the Taxonomic Open-Set (TOS) Classification task using four datasets:

  • Cifar100, SUN, and ImageNet: These standard datasets were extended with hierarchical labels (e.g., using WordNet).
  • Rare Species: A naturally hierarchical dataset spanning seven taxonomic levels (Kingdom to Species), providing a rigorous test for biological classification.

Key Insights and Results

  • Symmetry is Superior: The "aha moment" here is that alignment works best when the data structures match. By building a visual tree to match the textual tree, the model avoids the information loss inherent in "squashing" an image.
  • Curvature Matters: Not all hierarchies are shaped the same. By treating curvatures as learnable parameters, the model discovers that textual and visual modalities require different geometric "stretches" to represent their respective hierarchies accurately.
  • Layer-Wise Specialization: The model confirms that early Transformer layers capture coarse information (like fur texture for "Mammal"), while later layers focus on discriminative details (like specific facial patterns for "Panda").

The proposed method consistently outperformed strong baselines like MaPLe and PromptSRC across all settings. Notably, on the Hierarchical Consistent Accuracy (HCA) metric—which requires every level of the taxonomy to be predicted correctly—the method saw massive gains, improving by up to 28.83% in 16-shot settings. GradCAM visualizations also confirmed the model successfully shifts its attention to different parts of an image depending on whether it is looking for a coarse "Class" or a fine-grained "Genus".

Limitations and Future Work

The authors acknowledge that while hyperbolic manifolds are great for trees, a single-curvature manifold might still be too restrictive for extremely complex data. They suggest that "mixed-curvature" spaces (combining spherical, Euclidean, and hyperbolic geometries) might be the next frontier. Additionally, the current model doesn't explicitly account for domain shifts (e.g., moving from clean lab photos to messy real-world images), which remains a challenge for open-world deployment.

Summary updated

BibTeX
@inproceedings{wei2026modality,
  author = {Wu Wei and Xiaomeng Fan and Yuwei Wu and Zhi Gao and Pengxiang Li and Yunde Jia and Mehrtash Harandi},
  title = {{Modality Alignment across Trees on Heterogeneous Hyperbolic Manifolds}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=F1uJKsaf0M},
}
Figure