Hierarchical Retrieval: The Geometry and a Pretrain-Finetune Recipe

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: You, Chong, Jayaram, Rajesh, Suresh, Ananda Theertha, Nittka, Robin, Yu, Felix, Kumar, Sanjiv
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866915504590946304
author You, Chong
Jayaram, Rajesh
Suresh, Ananda Theertha
Nittka, Robin
Yu, Felix
Kumar, Sanjiv
author_facet You, Chong
Jayaram, Rajesh
Suresh, Ananda Theertha
Nittka, Robin
Yu, Felix
Kumar, Sanjiv
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2509_16411
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Hierarchical Retrieval: The Geometry and a Pretrain-Finetune Recipe
You, Chong
Jayaram, Rajesh
Suresh, Ananda Theertha
Nittka, Robin
Yu, Felix
Kumar, Sanjiv
Information Retrieval
Computation and Language
Machine Learning
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.
title Hierarchical Retrieval: The Geometry and a Pretrain-Finetune Recipe
topic Information Retrieval
Computation and Language
Machine Learning
url https://arxiv.org/abs/2509.16411