Research
PHyCLIP: $\ell_1$-Product of Hyperbolic Factors Unifies Hierarchy and Compositionality in Vision-Language Representation Learning
Overview Research area: Vision–language representation learning (multimodal embeddings, contrastive image–text pretraining) combined with non-Euclidean representation geometry. Technical level: Advanc
- arXiv
- 2510.08919
- Published
- 2025-10-10
- Authors
- Daiki Yoshikawa, Takashi Matsubara
AI summary
Overview
- Research area: Vision–language representation learning (multimodal embeddings, contrastive image–text pretraining) combined with non-Euclidean representation geometry.
- Technical level: Advanced. The core intuition (splitting an embedding into specialized "slots") is accessible, but the justification draws on hyperbolic geometry, metric-tree embedding theory, Boolean lattices, and ℓ_p-product metric spaces.
- Scope: The paper introduces PHyCLIP, a CLIP-style model that replaces a single embedding space with a Cartesian product of hyperbolic spaces under an ℓ₁-product metric, so that taxonomic hierarchy and cross-concept composition can be represented simultaneously rather than traded off against each other.
What This Paper Is About
Vision–language models like CLIP compress an image or a caption into one point in a single embedding space, which makes it hard to express two different kinds of meaning at once: hierarchy within a concept family (a dog is a mammal is an animal) and compositionality across families (a "dog in a car" involves both the animal family and the transportation family). Hyperbolic space is excellent for the first but has no natural operation for the second, while order-embedding-style approaches handle composition but are inefficient for deep taxonomies. PHyCLIP resolves this by representing each concept family in its own hyperbolic factor and combining factors with an ℓ₁ (sum-of-distances) metric, which mirrors how Boolean algebra works.
Key Contributions
-
A factorized embedding space. PHyCLIP embeds images and texts as tuples of points across k hyperbolic factors, (ℍ^d)^k, with distance defined as the sum of per-factor hyperbolic distances — an ℓ₁-product metric rather than the more common Riemannian (ℓ₂) product used in mixed-curvature models.
-
Theory linking the two semantic structures to two geometries. The authors prove that a Boolean lattice over n atomic concepts embeds isometrically into an ℓ₁-product space (after per-factor scaling) but admits no isometric embedding into a single hyperbolic space ℍ^d for d ≥ 2, n ≥ 2. Combined with the classical result that metric trees embed into hyperbolic space with low distortion, this formally explains why the proposed hybrid is the right structure and single-space alternatives are not.
-
A concrete training objective. Intra-family hierarchy and image–text entailment are enforced with hyperbolic entailment cones inside each factor, while cross-family composition emerges from the additive ℓ₁ metric; the two objectives are combined with a weighting hyperparameter γ.
-
Empirical and interpretability evidence. Across zero-shot classification, image–text retrieval, hierarchical classification, and compositional hard-negative benchmarks, PHyCLIP beats CLIP, MERU, and HyCoCLIP, and visualizations show family-specific taxonomies spontaneously occupying individual factors.
Main Findings
-
Zero-shot classification improves on general and fine-grained benchmarks. PHyCLIP reaches 44.31% on ImageNet (vs. 43.80% for HyCoCLIP), 89.33% on CIFAR-10, 59.05% on CIFAR-100, and 57.26% on Food-101 (a 4.6-point jump over HyCoCLIP). It is not best on every dataset — FGVC-Aircraft is slightly worse (3.24% vs. 3.57%) — but it is the strongest model overall.
-
Retrieval benefits from the additive metric. PHyCLIP leads on COCO text→image (R@5 58.03 vs. 57.11) and image→text (R@5 70.94 vs. 69.51), and on Flickr text→image (R@5 83.39). The authors argue the sum-of-distances metric sharply penalizes a candidate when a mentioned object is missing or an unmentioned one is present, which separates hard negatives better than a single hyperbolic space.
-
Hierarchical classification is more accurate and less severe in its errors. PHyCLIP achieves the best Tree Induced Error (3.294), LCA error (2.083), Jaccard similarity (0.8059), hierarchical precision (0.8684), and hierarchical recall (0.8672), meaning misclassifications land near the correct class in the WordNet graph.
-
Compositional understanding improves, with caveats. PHyCLIP tops VL-CheckList–Object (71.20 / 70.30 / 70.37 across center / mid / margin) and gets the best SugarCrepe average (78.32 vs. 77.99 for the runner-up, with other models clustered in a narrow band). Gains are strongest on attribute replacement and swapping; relation-sensitive subsets show a modest drop, which the authors attribute to the Boolean-like, relation-agnostic nature of the design.
-
Factorization matters, and the choice of metric matters more. Ablations at fixed total dimension show k = 1 (equivalent to HyCoCLIP) performs worst on most measures, with gains peaking around k = 64–128. Swapping ℓ₁ for ℓ₂ or ℓ∞ degrades results — ℓ∞ collapses entirely (ImageNet 6.55%) — and a mixed Euclidean/hyperbolic/spherical curvature model underperforms across the board.
-
Factors specialize and compose interpretably. A "dog" prompt peaks in factor i = 39 while sitting near the origin in factor i = 9; "car" does the opposite. HoroPCA projections show mammal terms forming a hierarchy (chihuahua, corgi, and puppy farther from the origin than dog) in factor 39 and collapsing near the origin in factor 9. A conjunctive prompt like "a dog and a car" simultaneously activates both factors, and taking the max of the two single-concept embeddings retrieves images similar to the conjunctive prompt — a direct analogue of Boolean disjunction.
-
Overhead is negligible. PHyCLIP adds only k = 64 curvature parameters to an 86M-parameter ViT backbone, and the extra cosh/sinh/arcosh evaluations parallelize across factors and are dominated by encoder runtime.
Methodology in Plain English
The researchers took a standard CLIP-style contrastive setup and changed the shape of the embedding space. Instead of producing one 512-dimensional vector, the encoder output is sliced into 64 segments of 8 dimensions each. Every segment is lifted into its own hyperbolic space, so each of the 64 "factors" can act as a dedicated slot for one concept family — animals, vehicles, food, and so on.
Distance between an image and a caption is then computed by adding up the distances in all 64 factors rather than taking a single global distance. This additive rule is the key design choice: it makes composition behave like Boolean logic. If a caption mentions a dog and a car, an image must be close in both the animal factor and the vehicle factor; getting only one right incurs a full penalty from the other. A single hyperbolic space cannot do this, because it would have to encode object presence as a hierarchy, which blurs mismatches.
Hierarchy is handled inside each factor using hyperbolic entailment cones. Each point defines a cone of more-specific points inside it, so an image of a dog sits inside the cone of the text "dog," and "dog" sits inside "mammal." Training combines two losses: an InfoNCE contrastive loss computed on the averaged ℓ₁-product distance (applied over image–text, text–image, image-box–text-box, and text-box–image-box pairs, averaging the four), and an entailment loss that penalizes pairs violating the expected partial order. All models were trained from scratch on the GRIT dataset (14.0M image–text pairs with 26.6M boxes, fewer than the documented 20.5M/35.9M due to broken public links), using hyperparameters from the official HyCoCLIP release for fair comparison.
Why This Matters
-
For research: The paper supplies a formal bridge between two previously separate literatures — hyperbolic embeddings for taxonomies and order/box embeddings for compositional structure — showing that the two can coexist in one space if the product metric is ℓ₁ rather than ℓ₂. This reframes the usual "one geometry must fit all semantics" assumption and gives a concrete theoretical reason why single-space hyperbolic models (MERU, HyCoCLIP) plateau.
-
Real-world applications:
- Fine-grained visual catalogs: product search for food, pets, plants, or vehicle models, where both "which species/model" and "which attributes/objects co-occur" matter.
- Image captioning and retrieval in e-commerce: matching a query like "a red ceramic mug on a wooden desk" requires binding objects across unrelated concept families.
- Content moderation and safety filtering: detecting whether a prohibited object is and is not present in a scene benefits from explicit per-family activation signals rather than a single opaque embedding score.
- Scientific and remote-sensing taxonomies: domain-specific classification (satellite imagery, texture datasets) where hierarchical correctness matters more than flat top-1 accuracy.
-
Industry relevance: The method is a drop-in modification to an existing CLIP-style training pipeline — no new architecture, no prohibitive compute, and only 64 additional learnable parameters. The factor activations also provide a cheap interpretability handle: you can inspect which concept families a given embedding engages, which is useful for debugging retrieval systems and for auditing model behavior.
Future Directions
-
Handling relations explicitly. PHyCLIP's relation-sensitive SugarCrepe subsets show a modest drop, since the Boolean-like metric treats co-occurrence rather than spatial or causal relationships. Extending the design to capture inter-object relations without sacrificing the factorization is the most obvious open problem.
-
Learning the factor assignment. Nothing forces factor i = 39 to become the mammal factor; the specialization emerges from data. Whether concept families can be assigned or discovered in a more principled, data-driven way — and how this behaves when families overlap or are unbalanced — remains unresolved.
-
Choosing k and d systematically. Performance peaks at k = 64–128 but degrades on Food-101 at k = 128, suggesting a tension between fine factorization and intra-family quality. A principled criterion for setting these values, or adapting them during training, is needed.
-
Scaling and validating beyond GRIT. All results come from a single training set at base-ViT scale, and the reduced GRIT subset leaves open whether the gains hold at larger scales, with more capable backbones, and on concept families absent from pretraining.
Target Audience
Researchers and graduate students working on multimodal representation learning, retrieval, or embedding geometry, particularly those already familiar with CLIP, hyperbolic embeddings, and entailment cones. The theoretical sections on Boolean lattices and ℓ_p-product metrics will interest readers from information retrieval and knowledge representation who care about embedding order relations. Practitioners building vision–language search or classification systems will find the ablations and interpretability visualizations most directly actionable, while the full theoretical framing assumes a solid background in metric geometry.
Authors’ abstract
Vision-language models have achieved remarkable success in multi-modal representation learning from large-scale pairs of visual scenes and linguistic descriptions. However, they still struggle to simultaneously express two distinct types of semantic structures: the hierarchy within a concept family (e.g., dog $\preceq$ mammal $\preceq$ animal) and the compositionality across different concept families (e.g., "a dog in a car" $\preceq$ dog, car). Recent works have addressed this challenge by employing hyperbolic space, which efficiently captures tree-like hierarchy, yet its suitability for representing compositionality remains unclear. To resolve this dilemma, we propose PHyCLIP, which employs an $\ell_1$-Product metric on a Cartesian product of Hyperbolic factors. With our design, intra-family hierarchies emerge within individual hyperbolic factors, and cross-family composition is captured by the $\ell_1$-product metric, analogous to a Boolean algebra. Experiments on zero-shot classification, retrieval, hierarchical classification, and compositional understanding tasks demonstrate that PHyCLIP outperforms existing single-space approaches and offers more interpretable structures in the embedding space.