Manuscript Offprint

arXiv:2608.25199

Hyperbolic Latent Geometry for Tree-Structured Prototype Networks: A Local-vs-Global Trade-off

Peter Flo, Luca Grossmann

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

Abstract

We study a tree-structured regularizer over class-prototype layouts in a hierarchical-classification model and ask whether the choice of latent manifold for the prototypes (Euclidean RdR^{d} vs. the Poincaré ball BcdB_{c}^{d}) affects how well that regularizer can be satisfied without distorting the data likelihood. The two manifolds differ only in their volume growth: hyperbolic space grows exponentially with radius and embeds trees with provably lower distortion than RdR^{d} of matched dimension, so the structured regularizer should be cheaper to satisfy on BcdB_{c}^{d}. Across 150 seed-replicated regularized maximum-likelihood fits spanning embedding dimension, curvature, and regularizer strength on WikiArt (27 styles, 81,446 paintings, frozen CLIP ViT-B/16 features), we find a single robust effect: Poincaré prototypes preserve the topology of the nearest-neighbor graph in latent space substantially better than matched Euclidean prototypes (sibling recall@5 +8.7 pp, cousin recall +15.2 pp; paired-t p < 10 −4^{-4}, sign agreement 0.94), and the gap holds across three reference-tree definitions (hand-built lineage, CLIP-derived, and DINOv2-derived). On classification, Euclidean prototypes are tied with logistic regression on raw encoder features, indicating no detectable contribution from the latent geometry; only the hyperbolic fit improves on a k-NN encoder baseline for local retrieval. Global tree-fidelity comparisons are unstable across reference trees and we do not claim a winner. The results give an empirical separation, on a real hierarchical-classification problem, between two natural latent geometries for a class-structured regularizer.

1. Introduction

Many real-world classification problems carry an externally specified hierarchy over class labels: artistic-style movements branch into one another (Tan et al., 2019), biological taxa nest into clades, and ontologies of products, diseases, and documents are organised as trees. A natural way to fold that hierarchy into a probabilistic classification model is to add a tree-structured regularizer to the layout of class-conditional parameters. We study the simplest version of this: a prototype classifier whose class-conditional likelihood is a softmax over distance-to-prototype, with a regularizer on the matrix of pairwise prototype distances pulling it toward the tree-distance matrix. The fitted classifier is then a balance between a class-likelihood term (paintings of style k should be close to prototype pkp_k) and a tree-shape term (prototypes themselves should respect the hierarchy).

The choice of latent manifold for the prototypes is the question this paper investigates. Forcing a tree’s exponentially-growing leaf count into Euclidean RdR^{d}, whose ball volume grows only polynomially in radius, induces unavoidable distortion of pairwise distances; this distortion has been characterised analytically and shown to drop sharply on the Poincaré ball BcdB_{c}^{d}, whose own exponential volume growth matches a tree’s (Nickel & Kiela, 2017; Sala et al., 2018). In our model, the tree-structured regularizer is a function of pairwise prototype distances and should therefore be cheaper to satisfy on the hyperbolic manifold than on the Euclidean one without distorting the class-conditional likelihood. Whether that geometric advantage realises in practice on a real hierarchical-classification problem is what we test.

We instantiate the question on WikiArt-Refined (Tan et al., 2019), a 27-style 81,446-painting corpus where the class hierarchy (Renaissance branches into Baroque, Baroque into Rococo, Rococo into Romanticism, on into Impressionism and Cubism) is part of the domain and was hand-built from standard art-history references. Frozen CLIP ViT-B/16 features (Radford et al., 2021) feed an MLP head and a prototype classifier; the manifold of the classifier output is the only design choice that varies between Euclidean and hyperbolic runs. The same tree-structured regularizer (a normalised squared-error pull on the prototype distance matrix) applies in both geometries.

1^{1}Harvard University, Cambridge, MA, USA. Correspondence to: Peter Flo pgrindehollevik@g.harvard.edu.

Preprint. August 27, 2026.

We sweep regularized maximum-likelihood fits across 150 seed-replicated configurations spanning embedding dimension d∈{2,4,8,16,32,64}d \in \{2, 4, 8, 16, 32, 64\}, curvature c∈{0.1,0.3,1,3}c \in \{0.1, 0.3, 1, 3\}, regularizer strength λ∈{0,0.1,0.3,1,3}\lambda \in \{0, 0.1, 0.3, 1, 3\}, and three reference-tree variants (default lineage, chronological era grouping, flat null). Three empirical findings emerge.

Local hierarchy. Hyperbolic prototypes recover local tree structure substantially better than matched Euclidean ones. Sibling recall@5 at d=8 is 0.195 versus 0.149 on the default tree; aggregated over 18 paired seed configurations the mean gap is +8.7 pp on sibling recall and +15.2 pp on cousin recall, with sign agreement 0.94 and paired-t p<10−4p < 10^{-4}. This effect is preserved when sibling sets are redefined from data-driven empirical trees built either from CLIP or DINOv2 (Oquab et al., 2024) features, and across the regularizer-strength sweep.

Calibration. A logistic-regression baseline on raw CLIP features achieves 64.1% top-1, statistically tied with the Euclidean fit's 64.3%. A k-NN baseline on the same features achieves sibling recall@5 of 0.160, statistically tied with the Euclidean fit's 0.149 but 3.5 pp below the hyperbolic fit's 0.195. Read against these baselines, the hyperbolic fit is the only one of our trained models that improves the encoder on local hierarchy; the Euclidean fit matches the encoder on classification but adds no detectable structural value over it.

Global tree fidelity. Mean tree distortion against the default tree favours Euclidean significantly, but prototype-tree Spearman is not significantly different from zero across the full sweep (p = 0.68), and the small effect that does appear flips sign between empirical reference trees built from CLIP and from DINOv2 feature centroids. We therefore do not claim a geometry winner on global tree fidelity.

The clean claim our experiments support is narrower than “geometry matters globally”: hyperbolic latent structure adds local-retrieval value over the encoder while Euclidean latent structure does not, and that local advantage is robust to which of three reference trees defines “local.”

Related work. Hyperbolic prototype embeddings are an established tool for tree-shaped data (Nickel & Kiela, 2017; Sala et al., 2018; Ganea et al., 2018). Khrulkov et al. (2020) report a similar asymmetry on few-shot benchmarks (helps neighborhood structure, leaves top-1 unchanged); we confirm that pattern on a hand-built taxonomy with a tree-aware regularizer, and quantify it against linear and k-NN calibration baselines that previous reports of the same asymmetry do not include. Tree-distance-matrix penalties over learnable points are used implicitly in hyperbolic hierarchical clustering (Chami et al., 2020); here we use one as an explicit, tunable regularizer.

References (5)