Papers › Phrase Retrieval Learns Passage Retrieval, Too

Phrase Retrieval Learns Passage Retrieval, Too

16 Sep 2021EMNLP 2021 11arXiv:2109.08133archive 2025-07-28

Jinhyuk Lee, Alexander Wettig, Danqi Chen

Dense retrieval methods have shown great promise over sparse retrieval methods in a range of NLP problems. Among them, dense phrase retrieval-the most fine-grained retrieval unit-is appealing because phrases can be directly used as the output for question answering and slot filling tasks. In this work, we follow the intuition that retrieving phrases naturally entails retrieving larger text blocks and study whether phrase retrieval can serve as the basis for coarse-level retrieval including passages and documents. We first observe that a dense phrase-retrieval system, without any retraining, already achieves better passage retrieval accuracy (+3-5% in top-5 accuracy) compared to passage retrievers, which also helps achieve superior end-to-end QA performance with fewer passages. Then, we provide an interpretation for why phrase-level supervision helps learn better fine-grained entailment compared to passage-level supervision, and also show that phrase retrieval can be improved to achieve competitive performance in document-retrieval tasks such as entity linking and knowledge-grounded dialogue. Finally, we demonstrate how phrase filtering and vector quantization can reduce the size of our index by 4-10x, making dense phrase retrieval a practical and versatile solution in multi-granularity retrieval.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2109.08133")

Code

Syntology Ran 11 of 19 code samples harvested from 1 repository linked to this paper; 8 have no recorded run. Of those that ran: 2 ran · honoured contract; 1 ran · violated contract; 5 ran · our draft was wrong; 3 ran with no contract checked.

By repository: official repository: 19 samples from 1 repository, 11 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

princeton-nlp/DensePhrases officialmentioned in papermentioned on GitHubpytorchApache-2.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

19 samples harvested; 11 ran; 2 honoured the contract we drafted; 8 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

2ran · honoured contract
1ran · violated contract
5ran · our draft was wrong
3ran
8unverified

Licence: 0 of the 19 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from princeton-nlp/DensePhrases. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

to_list princeton-nlp/DensePhrases/densephrases/utils/single_utils.py official repository ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · 9df40357afea56cc · report
whitespace_tokenize princeton-nlp/DensePhrases/densephrases/utils/data_utils.py official repository ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · cf9ffa02a42184af · report
compute_exact princeton-nlp/DensePhrases/densephrases/utils/squad_metrics.py official repository ran · honoured contract fingerprinted Apache-2.0 (permissive) · 9026d9da5d085bd4 · report
exact_match_score princeton-nlp/DensePhrases/densephrases/utils/eval_utils.py official repository ran · violated contract fingerprinted Apache-2.0 (permissive) · 9d0dc82a4491f803 · report
f1_score princeton-nlp/DensePhrases/densephrases/utils/eval_utils.py official repository ran · honoured contract Apache-2.0 (permissive) · 32a5f1733d9a8971 · report
get_tokens princeton-nlp/DensePhrases/densephrases/utils/squad_metrics.py official repository ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · aa6bc32d9c17a2f1 · report
hf_bucket_url princeton-nlp/DensePhrases/densephrases/utils/file_utils.py official repository ran fingerprinted Apache-2.0 (permissive) · 070b5bdeecd71825 · report
is_remote_url princeton-nlp/DensePhrases/densephrases/utils/file_utils.py official repository ran Apache-2.0 (permissive) · 899d1e2736236351 · report
normalize_answer princeton-nlp/DensePhrases/densephrases/utils/eval_utils.py official repository ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · dae7ab386661a4f4 · report
normalize_answer princeton-nlp/DensePhrases/densephrases/utils/squad_metrics.py official repository ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · 6a96435eba311b08 · report
url_to_filename princeton-nlp/DensePhrases/densephrases/utils/file_utils.py official repository ran fingerprinted Apache-2.0 (permissive) · e827d94caab33f59 · report
backward_compat princeton-nlp/DensePhrases/densephrases/utils/single_utils.py official repository unverified Apache-2.0 (permissive) · 4c8de8b151ba3a85 · report
filter_metadata princeton-nlp/DensePhrases/densephrases/utils/embed_utils.py official repository unverified Apache-2.0 (permissive) · 3baccefd6793b306 · report
float_to_int8 princeton-nlp/DensePhrases/densephrases/utils/embed_utils.py official repository unverified Apache-2.0 (permissive) · bb7cb2f116b46a6b · report
get_metadata princeton-nlp/DensePhrases/densephrases/utils/embed_utils.py official repository unverified Apache-2.0 (permissive) · 3149bf27eadf82a3 · report
load_cross_encoder princeton-nlp/DensePhrases/densephrases/utils/open_utils.py official repository unverified Apache-2.0 (permissive) · 3a741d4be5d5e611 · report
squad_convert_example_to_features princeton-nlp/DensePhrases/densephrases/utils/squad_utils.py official repository unverified Apache-2.0 (permissive) · ca7e876a279ff16f · report
squad_convert_examples_to_features princeton-nlp/DensePhrases/densephrases/utils/squad_utils.py official repository unverified Apache-2.0 (permissive) · a47a1d74b5244c37 · report
to_numpy princeton-nlp/DensePhrases/densephrases/utils/single_utils.py official repository unverified Apache-2.0 (permissive) · 9d4a497954fa5100 · report

Tasks

Entity LinkingOpen-Domain Question AnsweringPassage RetrievalQuantizationQuestion AnsweringRetrievalSlot Fillingslot-filling

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections