{"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/arxiv-2601-04525","title":"GRACE: Reinforcement Learning for Grounded Response and Abstention under Contextual Evidence","arxiv_id":"2601.04525","date":"2026-01-08","proceeding":null,"authors":["Yibo Zhao","Jiapeng Zhu","Zichen Ding","Xiang Li"],"abstract":"Retrieval-Augmented Generation (RAG) integrates external knowledge to enhance Large Language Models (LLMs), yet systems remain susceptible to two critical flaws: providing correct answers without explicit grounded evidence and producing fabricated responses when the retrieved context is insufficient. While prior research has addressed these issues independently, a unified framework that integrates evidence-based grounding and reliable abstention is currently lacking. In this paper, we propose GRACE, a reinforcement-learning framework that simultaneously mitigates both types of flaws. GRACE employs a data construction method that utilizes heterogeneous retrievers to generate diverse training samples without manual annotation. A multi-stage gated reward function is then employed to train the model to assess evidence sufficiency, extract key supporting evidence, and provide answers or explicitly abstain. Experimental results on two benchmarks demonstrate that GRACE achieves state-of-the-art overall accuracy and strikes a favorable balance between accurate response and rejection, while requiring only 10% of the annotation costs of prior methods. Our code is available at https://github.com/YiboZhao624/Grace..","url_abs":"https://arxiv.org/abs/2601.04525","url_pdf":"https://arxiv.org/pdf/2601.04525","source":{"archive":null,"snapshot":"2025-07-28","note":"not in the Papers with Code archive (frozen at the snapshot)","row_kind":"graph","title_abstract_authors_date":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)"},"code_links":[],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2601.04525","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2601.04525"}},"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":[{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/YiboZhao624/Grace","reach":null}],"summary":{"ran_draft_wrong":2,"ran_honours":2,"unverified":1},"by_repo_kind":{"found_in_text":{"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":5,"samples":[{"code_sha256_prefix":"8a5663b366c8eef1","entry":"choice_reward","repo":"YiboZhao624/Grace","repo_kind":"found_in_text","path":"src/custom_reward_v2.py","file_url":"https://github.com/YiboZhao624/Grace/blob/HEAD/src/custom_reward_v2.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":"8a5663b366c8eef1"}},{"code_sha256_prefix":"ca32d84f17d98414","entry":"format_reward","repo":"YiboZhao624/Grace","repo_kind":"found_in_text","path":"src/custom_reward_v2.py","file_url":"https://github.com/YiboZhao624/Grace/blob/HEAD/src/custom_reward_v2.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"ca32d84f17d98414"}},{"code_sha256_prefix":"2b14e7f98c3a44b3","entry":"rouge_l_reward","repo":"YiboZhao624/Grace","repo_kind":"found_in_text","path":"src/custom_reward_v2.py","file_url":"https://github.com/YiboZhao624/Grace/blob/HEAD/src/custom_reward_v2.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"2b14e7f98c3a44b3"}},{"code_sha256_prefix":"6f99087c3d7aad4b","entry":"text_normalize","repo":"YiboZhao624/Grace","repo_kind":"found_in_text","path":"src/custom_reward_v2.py","file_url":"https://github.com/YiboZhao624/Grace/blob/HEAD/src/custom_reward_v2.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":"6f99087c3d7aad4b"}},{"code_sha256_prefix":"a294d7ea55dda89b","entry":"reward_function","repo":"YiboZhao624/Grace","repo_kind":"found_in_text","path":"src/custom_reward_v2.py","file_url":"https://github.com/YiboZhao624/Grace/blob/HEAD/src/custom_reward_v2.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":"a294d7ea55dda89b"}}]},"arxiv_metadata":{"licence":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)","fields":["title","abstract","authors","date"],"primary_category":"cs.CL","source":"arxiv_2026.jsonl"},"syntology_extracted_results":null}