{"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/designing-a-minimal-retrieve-and-read-system","title":"Designing a Minimal Retrieve-and-Read System for Open-Domain Question Answering","arxiv_id":"2104.07242","date":"2021-04-15","proceeding":"NAACL 2021 4","authors":["Sohee Yang","Minjoon Seo"],"abstract":"In open-domain question answering (QA), retrieve-and-read mechanism has the inherent benefit of interpretability and the easiness of adding, removing, or editing knowledge compared to the parametric approaches of closed-book QA models. However, it is also known to suffer from its large storage footprint due to its document corpus and index. Here, we discuss several orthogonal strategies to drastically reduce the footprint of a retrieve-and-read open-domain QA system by up to 160x. Our results indicate that retrieve-and-read can be a viable option even in a highly constrained serving environment such as edge devices, as we show that it can achieve better accuracy than a purely parametric model with comparable docker-level system size.","url_abs":"https://arxiv.org/abs/2104.07242v2","url_pdf":"https://arxiv.org/pdf/2104.07242v2.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":"designing-a-minimal-retrieve-and-read-system","repo_url":"https://github.com/clovaai/minimal-rnr-qa","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"tf","reach":null}],"tasks":[{"task_slug":"open-domain-question-answering","task_name":"Open-Domain Question Answering"},{"task_slug":"question-answering","task_name":"Question Answering"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2104.07242","atlas_url":"https://app.syntology.ai/?focus=2104.07242","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2104.07242"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-25T09:33:49+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/google-research/google-research","reach":null},{"provenance":"deterministic:regex_extraction","url":"https://github.com/clovaai/minimal-rnr-qa","reach":null},{"provenance":"deterministic:regex_extraction","url":"https://github.com/google-research-datasets/naturalquestions","reach":{"status":"gone","observed_at":"2026-09-17","how":"tree_404+repo_404"}}],"summary":{"ran_draft_wrong":4,"unverified":1},"by_repo_kind":{"official":{"samples":5,"ran":4,"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":0,"samples":[{"code_sha256_prefix":"cf9ffa02a42184af","entry":"whitespace_tokenize","repo":"clovaai/minimal-rnr-qa","repo_kind":"official","path":"playground/workspace/minimal_rnr/tfserving/bert_tokenizer/tokenization_bert.py","file_url":"https://github.com/clovaai/minimal-rnr-qa/blob/HEAD/playground/workspace/minimal_rnr/tfserving/bert_tokenizer/tokenization_bert.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":2,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"cf9ffa02a42184af"}},{"code_sha256_prefix":"4f19f0dd0d6275a1","entry":"get_first_matched_file_path","repo":"clovaai/minimal-rnr-qa","repo_kind":"official","path":"playground/workspace/minimal_rnr/utils/inference.py","file_url":"https://github.com/clovaai/minimal-rnr-qa/blob/HEAD/playground/workspace/minimal_rnr/utils/inference.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"4f19f0dd0d6275a1"}},{"code_sha256_prefix":"e7fbc7a74a3457c7","entry":"load_vocab","repo":"clovaai/minimal-rnr-qa","repo_kind":"official","path":"playground/workspace/minimal_rnr/tfserving/bert_tokenizer/tokenization_bert.py","file_url":"https://github.com/clovaai/minimal-rnr-qa/blob/HEAD/playground/workspace/minimal_rnr/tfserving/bert_tokenizer/tokenization_bert.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"e7fbc7a74a3457c7"}},{"code_sha256_prefix":"fe09325ee5e2d803","entry":"read_txt","repo":"clovaai/minimal-rnr-qa","repo_kind":"official","path":"playground/workspace/minimal_rnr/utils/inference.py","file_url":"https://github.com/clovaai/minimal-rnr-qa/blob/HEAD/playground/workspace/minimal_rnr/utils/inference.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"fe09325ee5e2d803"}},{"code_sha256_prefix":"9d264e3b0a582677","entry":"extend_span_to_full_words","repo":"clovaai/minimal-rnr-qa","repo_kind":"official","path":"playground/workspace/minimal_rnr/utils/inference.py","file_url":"https://github.com/clovaai/minimal-rnr-qa/blob/HEAD/playground/workspace/minimal_rnr/utils/inference.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":"9d264e3b0a582677"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}