arXiv:2610.41785cs.CLOct 2026

Manuscript Offprint

arXiv:2610.41785

Peeling the Matryoshka: Extracting Ontological Structure from Retrieval Embeddings

Eunchan Kim, Inwhee Joe

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

Abstract

Taxonomy construction is essential for knowledge-intensive NLP yet remains costly: clustering-based methods (i) need careful per-corpus tuning and yield unstable hierarchies, while LLM-based pipelines (ii) depend on expensive task-specific training that does not transfer across domains. We report an empirical finding that bears on both: in Matryoshka Representation Learning (MRL) embeddings, where each leading prefix is itself a usable, coarser vector, prefix length aligns with the coarse-to-fine granularity of gold taxonomies; shuffled- and reverse-dimension controls isolate the alignment to the learned early prefix dimensions. The pattern holds across three architecturally distinct MRL models (full statistics in §3). To test whether this regularity is usable, we introduce PEEL (Peeling Embeddings to Extract Latent ontologies): a minimal probe over these frozen embeddings, trained once with an order-embedding objective that represents hierarchy as vector containment; a minimum spanning arborescence then decodes taxonomic DAGs. Using only a concept vocabulary (no documents), PEEL recovers taxonomic DAGs with high structural fidelity on two OLLM benchmarks, transferring to a new domain with no target-edge supervision. The end-to-end OLLM pipeline—which jointly discovers concepts and induces structure from document corpora—is reported as a cross-task reference (§5.3). Pre-trained retrieval embeddings encode a decodable granularity gradient; a minimal probe renders it as explicit parent-child (is-a) structure.

1 Introduction

Domain taxonomies, hierarchical structures of concepts linked by taxonomic (is-a) relations, are a fundamental form of ontological structure and the backbone of structured knowledge systems, from biomedical terminologies such as MeSH (Lipscomb, 2000) to web-scale category hierarchies like Wikipedia (Ponzetto and Strube, 2007) and academic classification schemes. Throughout, ontological structure refers to this taxonomic (is-a) backbone, following OLLM's usage (Lo et al., 2024). Yet constructing them remains one of NLP's most labor-intensive tasks.

Automated taxonomy construction has been approached from two directions. Embedding-based methods range from flat clustering of term vectors to recursive or geometry-based schemes (e.g., hyperbolic and box embeddings); the former lose hierarchy, the latter require dedicated, hierarchy-supervised embedding spaces. LLM-based methods instead generate hierarchy explicitly, yet demand extensive fine-tuning or prompt engineering per domain. Meanwhile, structural probing has shown that pre-trained representations encode rich linguistic structure recoverable via simple learned projections (Hewitt and Manning, 2019), but has focused on syntax, not taxonomic hierarchy. An alternative remains unexplored: do embeddings trained purely for retrieval already encode hierarchical signal exploitable for taxonomy construction?

We find that they do: specifically, embeddings trained with Matryoshka Representation Learning (MRL; Kusupati et al., 2022), whose nested prefix structure makes truncation a principled resolution control. Every prefix of the full vector is itself a useful representation, concentrating coarse semantic information in early dimensions. We observe that this coarse-to-fine organization aligns with gold taxonomic structure: across three open-source MRL models spanning distinct encoder families and scales (nomic, 137 M, BERT; jina-v3, 572 M, XLM-R; Qwen3-Embedding, 600 M, decoder), MRL prefix truncation consistently outperforms both a shuffled-dimension control (ordering destroyed, content preserved) and a last-kk reverse control (tail dimensions), the advantage concentrated in the learned early prefix dimensions. A supporting ANOVA finds the label separation ef-fect large at the deepest taxonomic level, consistent across all model-by-dataset sequences (Table 1; full statistics in §3), indicating the structure is not specific to a single encoder family.

We present PEEL (Peeling Embeddings to Extract Latent ontologies), a lightweight pipeline that exploits this signal. Pre-trained embeddings mix taxonomic structure with retrieval-specific features; PEEL trains a 98K-parameter probe with an order-embedding loss (Vendrov et al., 2016) to project frozen retrieval embeddings into a space where coordinate-wise dominance reflects parent-child relations. A Chu-Liu/Edmonds minimum spanning arborescence (Chu and Liu, 1965; Edmonds, 1967) then extracts a threshold-free taxonomy tree, expanded into a DAG by greedily adding lowest-violation edges up to a budget.

On the OLLM benchmarks (Lo et al., 2024), PEEL—using only the concept vocabulary, no documents—performs taxonomy structure induction over a given concept set, recovering taxonomic DAGs with high structural fidelity (Graph F1 .885/.931 on Wikipedia and arXiv; cross-task comparison with the document-fed OLLM pipeline in §5.3).

Our contributions are:

  1. Discovery. An empirical finding that pre-trained MRL embeddings encode taxonomic structure in their learned early prefix dimensions, isolated by shuffled- and reverse-dimension controls and replicated across three architecturally distinct open-source MRL models (§3).

  2. Demonstration. PEEL, a minimal probe decoding taxonomy DAGs via minimum spanning arborescence without task-specific embedding training (§4).

  3. Evaluation. On two OLLM benchmarks, PEEL recovers taxonomic DAGs from a concept vocabulary alone with high structural fidelity on the primary structure-sensitive metrics (Graph F1 and Cont.F1); we report the document-fed OLLM pipeline—which jointly discovers concepts and induces structure from documents—as a cross-task reference (§5).

References (12)