{"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/evidentiality-guided-generation-for-knowledge","title":"Evidentiality-guided Generation for Knowledge-Intensive NLP Tasks","arxiv_id":"2112.08688","date":"2021-12-16","proceeding":"NAACL 2022 7","authors":["Akari Asai","Matt Gardner","Hannaneh Hajishirzi"],"abstract":"Retrieval-augmented generation models have shown state-of-the-art performance across many knowledge-intensive NLP tasks such as open question answering and fact verification. These models are trained to generate the final output given the retrieved passages, which can be irrelevant to the original query, leading to learning spurious cues or answer memorization. This work introduces a method to incorporate the evidentiality of passages -- whether a passage contains correct evidence to support the output -- into training the generator. We introduce a multi-task learning framework to jointly generate the final output and predict the evidentiality of each passage, leveraging a new task-agnostic method to obtain silver evidentiality labels for supervision. Our experiments on five datasets across three knowledge-intensive tasks show that our new evidentiality-guided generator significantly outperforms its direct counterpart with the same-size model and advances the state of the art on FaVIQ-Ambig. We attribute these improvements to both the auxiliary multi-task learning and silver evidentiality mining techniques.","url_abs":"https://arxiv.org/abs/2112.08688v2","url_pdf":"https://arxiv.org/pdf/2112.08688v2.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":"evidentiality-guided-generation-for-knowledge","repo_url":"https://github.com/akariasai/evidentiality_qa","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"attribute","task_name":"Attribute"},{"task_slug":"fact-verification","task_name":"Fact Verification"},{"task_slug":"memorization","task_name":"Memorization"},{"task_slug":"multi-task-learning","task_name":"Multi-Task Learning"},{"task_slug":"open-question","task_name":"Open-Ended Question Answering"},{"task_slug":"question-answering","task_name":"Question Answering"},{"task_slug":"retrieval","task_name":"Retrieval"},{"task_slug":"retrieval-augmented-generation","task_name":"Retrieval-augmented Generation"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2112.08688","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2112.08688"}},"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":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/akariasai/evidentiality_qa","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran_fixture":1,"ran":6,"unverified":6},"by_repo_kind":{"official":{"samples":13,"ran":7,"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":"6bef6bdd6eb44070","entry":"cross_attention_forward","repo":"akariasai/evidentiality_qa","repo_kind":"official","path":"evi_gen/src/model.py","file_url":"https://github.com/akariasai/evidentiality_qa/blob/HEAD/evi_gen/src/model.py","link_basis":"harvester_set","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"6bef6bdd6eb44070"}},{"code_sha256_prefix":"bc0dae797248182b","entry":"encode_passages","repo":"akariasai/evidentiality_qa","repo_kind":"official","path":"evi_gen/src/data.py","file_url":"https://github.com/akariasai/evidentiality_qa/blob/HEAD/evi_gen/src/data.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"bc0dae797248182b"}},{"code_sha256_prefix":"e3a0e6ac26d46ae2","entry":"get_checkpoint_path","repo":"akariasai/evidentiality_qa","repo_kind":"official","path":"evi_gen/src/util.py","file_url":"https://github.com/akariasai/evidentiality_qa/blob/HEAD/evi_gen/src/util.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"e3a0e6ac26d46ae2"}},{"code_sha256_prefix":"1700ba94a8342336","entry":"init_logger","repo":"akariasai/evidentiality_qa","repo_kind":"official","path":"evi_gen/src/util.py","file_url":"https://github.com/akariasai/evidentiality_qa/blob/HEAD/evi_gen/src/util.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"1700ba94a8342336"}},{"code_sha256_prefix":"148af9b729d03eba","entry":"load_data","repo":"akariasai/evidentiality_qa","repo_kind":"official","path":"evi_gen/src/data.py","file_url":"https://github.com/akariasai/evidentiality_qa/blob/HEAD/evi_gen/src/data.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"148af9b729d03eba"}},{"code_sha256_prefix":"e2f8b9900fd662b1","entry":"select_examples_NQ","repo":"akariasai/evidentiality_qa","repo_kind":"official","path":"evi_gen/src/preprocess.py","file_url":"https://github.com/akariasai/evidentiality_qa/blob/HEAD/evi_gen/src/preprocess.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"e2f8b9900fd662b1"}},{"code_sha256_prefix":"e544cd4b39e5ec61","entry":"select_examples_TQA","repo":"akariasai/evidentiality_qa","repo_kind":"official","path":"evi_gen/src/preprocess.py","file_url":"https://github.com/akariasai/evidentiality_qa/blob/HEAD/evi_gen/src/preprocess.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"e544cd4b39e5ec61"}},{"code_sha256_prefix":"7a4988952dd3a127","entry":"calculate_matches","repo":"akariasai/evidentiality_qa","repo_kind":"official","path":"evi_gen/src/evaluation.py","file_url":"https://github.com/akariasai/evidentiality_qa/blob/HEAD/evi_gen/src/evaluation.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"7a4988952dd3a127"}},{"code_sha256_prefix":"637b51b8df78832a","entry":"check_answer","repo":"akariasai/evidentiality_qa","repo_kind":"official","path":"evi_gen/src/evaluation.py","file_url":"https://github.com/akariasai/evidentiality_qa/blob/HEAD/evi_gen/src/evaluation.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"637b51b8df78832a"}},{"code_sha256_prefix":"9c4b02a23802ff58","entry":"get_options","repo":"akariasai/evidentiality_qa","repo_kind":"official","path":"evi_gen/src/options.py","file_url":"https://github.com/akariasai/evidentiality_qa/blob/HEAD/evi_gen/src/options.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"9c4b02a23802ff58"}},{"code_sha256_prefix":"fa4ecbff4b9a354b","entry":"has_answer","repo":"akariasai/evidentiality_qa","repo_kind":"official","path":"evi_gen/src/evaluation.py","file_url":"https://github.com/akariasai/evidentiality_qa/blob/HEAD/evi_gen/src/evaluation.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"fa4ecbff4b9a354b"}},{"code_sha256_prefix":"a16b92bf7d32bad5","entry":"load","repo":"akariasai/evidentiality_qa","repo_kind":"official","path":"evi_gen/src/util.py","file_url":"https://github.com/akariasai/evidentiality_qa/blob/HEAD/evi_gen/src/util.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"a16b92bf7d32bad5"}},{"code_sha256_prefix":"977e5af0d6932a3e","entry":"load_data_class","repo":"akariasai/evidentiality_qa","repo_kind":"official","path":"evi_gen/src/data.py","file_url":"https://github.com/akariasai/evidentiality_qa/blob/HEAD/evi_gen/src/data.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"977e5af0d6932a3e"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}