arXiv:2610.29811cs.CVOct 2026

Manuscript Offprint

arXiv:2610.29811

Compositionality with Primitives: A Unified View from Euclidean to Hyperbolic Vision-Language Models

Puru Vaish, Meelad Dashti, Christoph Brune, Pascal Mettes, Tatiana Tommasi, Nicola Strisciuglio

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Compositional zero-shot learning (CZSL) aims to recognize novel combinations of previously observed objects and attributes. Prior work showed that large-scale vision–language models encode decomposable semantic structures, that can be recomposed to enable generalization. The Geodesically Decomposable Embeddings (GDE) framework formalizes this by identifying directions in the tangent space at the Fréchet mean of the embedding distribution, which encode primitive visual concepts. Unseen attribute–object compositions can be synthesized through vector addition of these primitives. We revisit the assumption that compositional generalization requires explicit attribute-object pair re-composition. By means of new compositional scoring functions and extensive evaluations, we show that directly using the decomposed primitives suffices for recognizing unseen compositions. In that, we gain insights on how the geometry of the embedding manifold (Euclidean, spherical, or hyperbolic) and dataset structure affect compositional reasoning. Across models (CLIP, DINOv2, MERU, HyCoCLIP), we show that compositional structure consistently emerges as primitive representations, enabling inference on CZSL benchmarks (MIT-States, VAW-CZSL, UT-Zappos50K, Clothing16K) and group robustness on Waterbirds and CelebA. 1^{1}

1. Introduction

Recognizing a sliced banana after seeing only sliced bread and whole bananas requires disentangling the attributes sliced and whole from the objects bread and banana, and reasoning over them independently. This ability reflects the broader principle of compositionality, a fundamental cognitive skill of humans clearly arising in language [14], whereby complex concepts are constructed from simpler, reusable ones [24]. At its core, it underpins the ability to generalize robustly to novel compositions without requiring direct supervision [14].

In Machine Vision, this paradigm is formalized as compositional zero-shot learning (CZSL) [20, 21]: given training images depicting a closed set of attribute-object pairs, the aim is to enable a model to recognize novel compositions of known concepts without having seen them during training. Open-world CZSL [18] extended this setting to the full Cartesian product of attributes and objects, significantly increasing task difficulty, and accounting for the long-tailed distribution of real-world generalization. Existing solutions typically attempt to learn compositional representations using conditional formulations of attribute-object representations [9, 35, 36], or learning compositional soft-prompt [17, 22], visual proxies [41] or invariant representations [42].

Recent work on Geodesically Decomposable Embeddings (GDE) [2] provides a different perspective: vision embeddings of pre-trained vision-language models already exhibit compositional semantic structures. These can be disentangled to perform compositional zero-shot classification. By projecting representations into the tangent space at the Fréchet mean of the embedding distribution of a dataset and performing a factorization step, attribute and object representations emerge as vector directions that embed basic visual concepts, called primitives. These can be recombined by vector arithmetics in the tangent space, thus synthesizing the representation of unseen object-attribute pairs and enabling their recognition. However, the focus in [2] was limited to CLIP spherical embeddings [28]. It remains unclear whether this view of compositionality extends to other space geometries, i.e. spaces with flat (Euclidean) or negative (hyperbolic) curvature, and whether explicit composition of primitives into pairs is necessary to achieve open-world compositional generalization. This question gains particular relevance for hyperbolic models [5, 23], where embeddings lie on the Lorentz space and representations encode compositional hierarchy in a tree-like fashion.

1^{1}Code: github.com/nis-research/Compositionality-with-Primitives

(a)

(b)

Figure

(c)

Figure 1. Geodesics initiating from the origin across Euclidean, spherical, and hyperbolic manifolds. The plots illustrate the structural differences imposed by space curvature: (a) Euclidean space is flat; (b) spherical space has positive curvature with origin estimated on the Fréchet mean of the dataset embeddings; (c) Hyperbolic space has negative curvature with a well-defined origin, resulting in tree-like hierarchical representation space. Data clusters are differentiated by color and marker type ( {red,blue}×{square,circle}\{red, blue\} \times \{square, circle\}).

In this work, we place primitives at the center of the analysis and revisit compositional reasoning in VLMs. By means of novel compositional scoring functions, we demonstrate that primitives can be used directly to perform compositional inference without the need of explicitly constructing (unseen) pair representations. We demonstrate improved open-world compositional generalization, across Euclidean, spherical, and hyperbolic representation spaces, which hold different geometric and data distribution properties (see Figure 1). To perform this extensive investigation, we build upon the GDE framework and leverage its formulation beyond the original spherical setting of CLIP [28], to a broad family of models across geometries. We investigate Euclidean DINOv2 [1, 19] and hyperbolic VLMs (MERU [5], HyCoCLIP [23]), by utilizing corresponding manifold mapping functions between these geometries and the tangent space.

We also develop a formulation of primitives directly on the embedding manifold as the Fréchet means of samples sharing an attribute or object, and call them intrinsic primitives. We thus study manifold-native primitives as well as tangent-space GDE primitives, investigating how latent space geometry influences compositional abilities of models.

Across experiments, we find that compositional structure is a general emergent property of pre-trained models, showing through both GDE and intrinsic primitive representations across several CZSL benchmarks (MIT-States, VAW-CZSL, Clothing16K, UT-Zappos50K), with stronger evidence for datasets that contain samples with higher semantic variance. We further show that primitive-based inference is beneficial for improving recognition under group bias in the data through experiments on benchmark datasets for group robustness (Waterbirds, CelebA) using solely the object primitives, decoupled from the attribute primitives. The observed substantial and consistent increase of worst group accuracy indicates that biases and spurious correlations induced by attributes can be removed with primitive-based reasoning. The contributions of this work are therefore summarized as: (i) Primitives as the basis for open-world compositional learning and generalization. We show that pretrained models consistently organize representation into primitives, either as tangent-space directions or intrinsic points on manifolds, which encode basic visual concepts of attributes and objects. We develop new compositional scoring functions and demonstrate with extensive experiments that primitives support direct CZSL inference and open-world generalization, making explicit attribute-object pair construction unnecessary.

(ii) Understanding of compositional power of pretrained models in relation to manifold geometry and dataset intrinsic variance. We find that, while compositional structure is geometry-agnostic, its task-wise optimal representation depends on the underlying geometry: tangent-space primitives are sufficient in Euclidean and spherical spaces, whereas hyperbolic representations benefit from intrinsic primitives aligned with their space geometry. We further shed light on the role that CZSL datasets and their intrinsic variance have in factorizing compositional primitives in pretrained models.

References (40)