Hierarchical Retrieval: The Geometry and a Pretrain-Finetune Recipe
Not on the map. Why?
Abstract (arXiv)
Dual encoder (DE) models, where a pair of matching query and document are embedded into similar vector representations, are widely used in information retrieval due to their simplicity and scalability. However, the Euclidean geometry of the embedding space limits the expressive power of DEs, which may compromise their quality. This paper investigates such limitations in the context of hierarchical retrieval (HR), where the document set has a hierarchical structure and the matching documents for a query are all of its ancestors. We first prove that DEs are feasible for HR as long as the embedding dimension is linear in the depth of the hierarchy and logarithmic in the number of documents. Then we study the problem of learning such embeddings in a standard retrieval setup where DEs are trained on samples of matching query and document pairs. Our experiments reveal a lost-in-the-long-distance phenomenon, where retrieval accuracy degrades for documents further away in the hierarchy. To address this, we introduce a pretrain-finetune recipe that significantly improves long-distance retrieval without sacrificing performance on closer documents. We experiment on a realistic hierarchy from WordNet for retrieving documents at various levels of abstraction, and show that pretrain-finetune boosts the recall on long-distance pairs from 19% to 76%. Finally, we demonstrate that our method improves retrieval of relevant products on a shopping queries dataset.
Key facts. Cited by 4 papers in the map (data through 14 Oct 2026). Builds on 23 of its 37 references that are in the map. First posted on arXiv 19 Sep 2025.
Builds on
23 of 37 references.
References · 23
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2017Billion-scale similarity search with GPUscited by 2,497
- 2017Poincar'e Embeddings for Learning Hierarchical Representationscited by 684
- 2013DeCAF: A Deep Convolutional Activation Feature for Generic Visual Recognitioncited by 424
- 2018Hyperbolic Entailment Cones for Learning Hierarchical Embeddingscited by 162
- 2018Poincar'e GloVe: Hyperbolic Word Embeddingscited by 156
- 2020Pre-training Tasks for Embedding-based Large-scale Retrievalcited by 153
- 2022Dense Text Retrieval based on Pretrained Language Models: A Surveycited by 136
- 2017A Deep Relevance Matching Model for Ad-hoc Retrievalcited by 126
- 2015Order-Embeddings of Images and Languagecited by 113
- 2014Word Representations via Gaussian Embeddingcited by 96
11 more
- 2018Embedding Text in Hyperbolic Spacescited by 76
- 2022Shopping Queries Dataset: A Large-Scale ESCI Benchmark for Improving Product Searchcited by 65
- 2018Probabilistic Embedding of Knowledge Graphs with Box Lattice Measurescited by 64
- 2020Understanding graph embedding methods and their applicationscited by 51
- 2024Language Models as Hierarchy Encoderscited by 28
- 2016HyperLex: A Large-Scale Evaluation of Graded Lexical Entailmentcited by 26
- 2022TPU-KNN: K Nearest Neighbor Search at Peak FLOP/scited by 18
- 2018Hierarchical Density Order Embeddingscited by 13
- 2021Box Embeddings: An open-source library for representation learning using geometric structurescited by 9
- 2023Coarse-to-Fine Dual Encoders are Better Frame Identification Learnerscited by 9
- 2022HyperBox: A Supervised Approach for Hypernym Discovery using Box Embeddingscited by 2
Built on by
Citing papers per year: 2025: 2; 2026: 2.
4 papers.
- 2025Eigenfunction Extraction for Ordered Representation Learningcited by 0
- 2025Hierarchical Retrieval with Out-Of-Vocabulary Queries: A Case Study on SNOMED CTcited by 0
- 2026ℝ2k is Theoretically Large Enough for Embedding-based Top-k Retrievalcited by 0
- 2026Compact Geometric Representations of Hierarchiescited by 0
- 2026Compact Geometric Representations of Hierarchies16 Jun 2026
- 2026ℝ2k is Theoretically Large Enough for Embedding-based Top-k Retrieval28 Jan 2026
- 2025Hierarchical Retrieval with Out-Of-Vocabulary Queries: A Case Study on SNOMED CT17 Nov 2025
- 2025Eigenfunction Extraction for Ordered Representation Learning28 Oct 2025