arXiv(opens in a new tab)cs.CLDec 2023Cited by 6 papers on PaperVantage

Manuscript Offprint

arXiv:2312.06648

Dense X Retrieval: What Retrieval Granularity Should We Use?

Tong Chen, Hongwei Wang, Sihao Chen, Wenhao Yu, Kaixin Ma, Xinran Zhao, Hongming Zhang, Dong Yu

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

Abstract

Dense retrieval has become a prominent method to obtain relevant context or world knowledge in open-domain NLP tasks. When we use a learned dense retriever on a retrieval corpus at inference time, an often-overlooked design choice is the retrieval unit in which the corpus is indexed, e.g. document, passage, or sentence. We discover that the retrieval unit choice significantly impacts the performance of both retrieval and downstream tasks. Distinct from the typical approach of using passages or sentences, we introduce a novel retrieval unit, proposition, for dense retrieval. Propositions are defined as atomic expressions within text, each encapsulating a distinct factoid and presented in a concise, self-contained natural language format. We conduct an empirical comparison of different retrieval granularity. Our experiments reveal that indexing a corpus by fine-grained units such as propositions significantly outperforms passage-level units in retrieval tasks. Moreover, constructing prompts with fine-grained retrieved units for retrieval-augmented language models improves the performance of downstream QA tasks given a specific computation budget.

1 Introduction

Dense retrievers are a popular class of techniques for accessing external information sources for open-domain NLP tasks (Karpukhin et al., 2020). Before we use a learned dense retriever to retrieve from a corpus, an imperative design decision we have to make is the retrieval unit – i.e. the granularity at which we segment and index the retrieval corpus for inference. In practice, the choice of retrieval units, e.g. documents, fixed-length passage chunks or sentences, etc, is usually pre-determined based

Question: What is the angle of the Tower of Pisa?
Passage RetrievalPrior to restoration work performed between 1990 and 2001, the tower leaned at an angle of 5.5 degrees, but the tower now leans at about 3.99 degrees. This means the top of the Leaning Tower of Pisa is displaced horizontally 3.9 meters (12 ft 10 in) from the center.
Sentence RetrievalPrior to restoration work performed between 1990 and 2001, the tower leaned at an angle of 5.5 degrees, but the tower now leans at about 3.99 degrees.
Proposition RetrievalThe Leaning Tower of Pisa now leans at about 3.99 degrees.

Figure

Figure 1: (Top) An example of three granularities of retrieval units of Wikipedia text when using dense retrieval. (Bottom) We observe that retrieving by propositions yields the best retrieval performance in both passage retrieval task and downstream open-domain QA task, e.g. with Contriever (Izacard et al., 2022) or GTR (Ni et al., 2022) as the backbone retriever. Highlight indicates the part that contains the answer to the question.

on how the dense retrieval model is instantiated or trained (Lewis et al., 2020; Lee et al., 2021a; Santhanam et al., 2022; Ni et al., 2022).

In this paper, we investigate an overlooked research question with dense retrieval inference – at what retrieval granularity should we segment and index the retrieval corpus? We aim to investigate this question in two aspects.

  • First, we examine how the granularity of the index affects passage retrieval performance.

  • Second, we investigate whether fine-grained units

  • Work was done during internship at Tencent AI Lab, Bellevue.

https://github.com/chentong0/factoid-wiki

Figure

Figure 2: We discover that segmenting and indexing a retrieval corpus on the proposition level can be a simple yet effective strategy to increase dense retrievers' generalization performance at inference time (A, B). We empirically compare the retrieval and downstream open-domain QA task performance when dense retrievers work with Wikipedia indexed at the level of 100-word passages, sentences, or propositions (C, D).

can replace passages in downstream QA tasks.

Based on our empirical experiments, we discover that selecting the proper retrieval granularity at inference time can be a simple yet effective strategy for improving dense retrievers' retrieval and downstream QA performance. We illustrate our intuition with an example of open-domain QA in Table 1. The example shows retrieved text by the same retriever at three different granularities. The passage, which represents a coarser retrieval unit with a longer context, is theoretically able to provide more relevant information for the question. However, a passage often includes extraneous details (e.g., restoration period and horizontal displacement in the example of Table 1) that could potentially distract both the retriever and the language model in downstream tasks (Shi et al., 2023; Yu et al., 2023b). On the other hand, sentence-level indexing provides a finer-grained approach but does not entirely address the issue (Akkalyoncu Yilmaz et al., 2019; Yang et al., 2020). This is because sentences can still be complex and compounded, and they are often not self-contained, lacking necessary contextual information (e.g., in the example of Table 1, "the tower" is the coreference of "Pisa Tower") for judging the query-document relevance.

To address these shortcomings of typical retrieval units such as passages or sentences, we propose using proposition as a novel retrieval unit for dense retrieval. Propositions are defined as atomic expressions within text, where each encapsulates a distinct factoid and is presented in a concise, self-contained natural language format. We show an example proposition in Table 1. The proposition describes the information regarding the Tower of Pisa’s current leaning angle in a self-contained way and precisely responds to what the question is querying. We provide a more detailed definition and description of proposition in §2. To validate the efficacy of using proposition as a retrieval unit for dense retrievers inference, we first process and index an English Wikipedia dump with all documents segmented into propositions, which we refer to as FACTOIDWIKI.

We conduct experiments on five different open-domain QA datasets and empirically compare the performance of four dual-encoder retrievers when Wikipedia is indexed by passages, sentences, and our proposed propositions. Notably, our findings indicate that proposition-based retrieval outperforms sentence and passage-based retrieval, especially in terms of generalization, as discussed in §5. This suggests that propositions, being both compact and rich in context, enable dense retrievers to access precise information while maintaining adequate context. The average improvement over passage-based retrieval of Recall@20 is +10.1 on unsupervised dense retrievers and +2.7 on supervised retrievers, even though these retrievers were directly trained on passage-level retrieval. Furthermore, we observe a distinct advantage of proposition-based retrieval in downstream QA performance when using retrieval-augmented language models, as elaborated in §6. Retrieval by finer-grained units inherently provides a higher density of question-relevant information. This finding implies using finer-grained units in the prompts achieves the same performance with a shorter input length, and hence, a faster inference time.

Our main contributions are:

  • We provide a systemic study on how retrieval granularity impacts retrieval and downstream task performance. We observe that the retrieval units have a significant impact on performance.

  • We introduce FACTOIDWIKI, a processed English Wikipedia dump, where each page is segmented into multiple granularities: passages, sentences, and our proposed propositions.

  • We propose retrieval by proposition as an alternative strategy, which achieves better retrieval and QA accuracy and generalization performance (with unsupervised retriever), compared to passage or sentence as retrieval unit.