{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/improving-passage-retrieval-with-zero-shot","title":"Improving Passage Retrieval with Zero-Shot Question Generation","arxiv_id":"2204.07496","date":"2022-04-15","proceeding":null,"authors":["Devendra Singh Sachan","Mike Lewis","Mandar Joshi","Armen Aghajanyan","Wen-tau Yih","Joelle Pineau","Luke Zettlemoyer"],"abstract":"We propose a simple and effective re-ranking method for improving passage retrieval in open question answering. The re-ranker re-scores retrieved passages with a zero-shot question generation model, which uses a pre-trained language model to compute the probability of the input question conditioned on a retrieved passage. This approach can be applied on top of any retrieval method (e.g. neural or keyword-based), does not require any domain- or task-specific training (and therefore is expected to generalize better to data distribution shifts), and provides rich cross-attention between query and passage (i.e. it must explain every token in the question). When evaluated on a number of open-domain retrieval datasets, our re-ranker improves strong unsupervised retrieval models by 6%-18% absolute and strong supervised models by up to 12% in terms of top-20 passage retrieval accuracy. We also obtain new state-of-the-art results on full open-domain question answering by simply adding the new re-ranker to existing models with no further changes.","url_abs":"https://arxiv.org/abs/2204.07496v4","url_pdf":"https://arxiv.org/pdf/2204.07496v4.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"improving-passage-retrieval-with-zero-shot","repo_url":"https://github.com/DevSinghSachan/unsupervised-passage-reranking","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"language-modeling","task_name":"Language Modeling"},{"task_slug":"language-modelling","task_name":"Language Modelling"},{"task_slug":"open-domain-question-answering","task_name":"Open-Domain Question Answering"},{"task_slug":"open-question","task_name":"Open-Ended Question Answering"},{"task_slug":"passage-retrieval","task_name":"Passage Retrieval"},{"task_slug":"question-answering","task_name":"Question Answering"},{"task_slug":"question-generation","task_name":"Question Generation"},{"task_slug":"question-generation","task_name":"Question-Generation"},{"task_slug":"re-ranking","task_name":"Re-Ranking"},{"task_slug":"retrieval","task_name":"Retrieval"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2204.07496","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2204.07496"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"deterministic:regex_extraction","url":"https://github.com/castorini/pygaggle","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/DevSinghSachan/unsupervised-passage-reranking","reach":null}],"summary":{"ran":5,"ran_draft_wrong":3,"unverified":6},"by_repo_kind":{"official":{"samples":10,"ran":8,"repositories":1},"found_in_text":{"samples":4,"ran":0,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"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"},"n_pointer_only_for_licence":10,"samples":[{"code_sha256_prefix":"d5901455e19a84f8","entry":"CustomDataLoader","repo":"DevSinghSachan/unsupervised-passage-reranking","repo_kind":"official","path":"upr.py","file_url":"https://github.com/DevSinghSachan/unsupervised-passage-reranking/blob/HEAD/upr.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"d5901455e19a84f8"}},{"code_sha256_prefix":"4f65156d8be990b5","entry":"DistributedBatchSampler","repo":"DevSinghSachan/unsupervised-passage-reranking","repo_kind":"official","path":"upr.py","file_url":"https://github.com/DevSinghSachan/unsupervised-passage-reranking/blob/HEAD/upr.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"4f65156d8be990b5"}},{"code_sha256_prefix":"a3c5fbbe7959f17b","entry":"OpenQADataset","repo":"DevSinghSachan/unsupervised-passage-reranking","repo_kind":"official","path":"upr.py","file_url":"https://github.com/DevSinghSachan/unsupervised-passage-reranking/blob/HEAD/upr.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"a3c5fbbe7959f17b"}},{"code_sha256_prefix":"ba8cd692f32803b2","entry":"OpenRetrievalEvidenceDataset","repo":"DevSinghSachan/unsupervised-passage-reranking","repo_kind":"official","path":"upr.py","file_url":"https://github.com/DevSinghSachan/unsupervised-passage-reranking/blob/HEAD/upr.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"ba8cd692f32803b2"}},{"code_sha256_prefix":"21e99db1be01d7eb","entry":"build_sample","repo":"DevSinghSachan/unsupervised-passage-reranking","repo_kind":"official","path":"upr.py","file_url":"https://github.com/DevSinghSachan/unsupervised-passage-reranking/blob/HEAD/upr.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"21e99db1be01d7eb"}},{"code_sha256_prefix":"61c86a4b8de629dd","entry":"get_one_epoch_dataloader","repo":"DevSinghSachan/unsupervised-passage-reranking","repo_kind":"official","path":"upr.py","file_url":"https://github.com/DevSinghSachan/unsupervised-passage-reranking/blob/HEAD/upr.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"61c86a4b8de629dd"}},{"code_sha256_prefix":"a1921ddd1ee47af6","entry":"get_open_retrieval_wiki_dataset","repo":"DevSinghSachan/unsupervised-passage-reranking","repo_kind":"official","path":"upr.py","file_url":"https://github.com/DevSinghSachan/unsupervised-passage-reranking/blob/HEAD/upr.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"a1921ddd1ee47af6"}},{"code_sha256_prefix":"c4f3e9bb67241b4c","entry":"get_openqa_dataset","repo":"DevSinghSachan/unsupervised-passage-reranking","repo_kind":"official","path":"upr.py","file_url":"https://github.com/DevSinghSachan/unsupervised-passage-reranking/blob/HEAD/upr.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"c4f3e9bb67241b4c"}},{"code_sha256_prefix":"fa40f72ce9f3d097","entry":"Query","repo":"castorini/pygaggle","repo_kind":"found_in_text","path":"pygaggle/rerank/transformer.py","file_url":"https://github.com/castorini/pygaggle/blob/HEAD/pygaggle/rerank/transformer.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"fa40f72ce9f3d097"}},{"code_sha256_prefix":"d5d41b07008bdae5","entry":"QuestionAnsweringTransformerReranker","repo":"castorini/pygaggle","repo_kind":"found_in_text","path":"pygaggle/rerank/transformer.py","file_url":"https://github.com/castorini/pygaggle/blob/HEAD/pygaggle/rerank/transformer.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"d5d41b07008bdae5"}},{"code_sha256_prefix":"cbf50e14db93384e","entry":"Reranker","repo":"castorini/pygaggle","repo_kind":"found_in_text","path":"pygaggle/rerank/transformer.py","file_url":"https://github.com/castorini/pygaggle/blob/HEAD/pygaggle/rerank/transformer.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"cbf50e14db93384e"}},{"code_sha256_prefix":"31c7b4b7bfee3a66","entry":"Text","repo":"castorini/pygaggle","repo_kind":"found_in_text","path":"pygaggle/rerank/transformer.py","file_url":"https://github.com/castorini/pygaggle/blob/HEAD/pygaggle/rerank/transformer.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"31c7b4b7bfee3a66"}},{"code_sha256_prefix":"79f98dfffed2b010","entry":"UnsupervisedPassageReranker","repo":"DevSinghSachan/unsupervised-passage-reranking","repo_kind":"official","path":"upr.py","file_url":"https://github.com/DevSinghSachan/unsupervised-passage-reranking/blob/HEAD/upr.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"79f98dfffed2b010"}},{"code_sha256_prefix":"4d4b4d61d1dc8caa","entry":"print_rank_0","repo":"DevSinghSachan/unsupervised-passage-reranking","repo_kind":"official","path":"upr.py","file_url":"https://github.com/DevSinghSachan/unsupervised-passage-reranking/blob/HEAD/upr.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"4d4b4d61d1dc8caa"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}