{"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-2603-19532","title":"EvidenceRL: Reinforcing Evidence Consistency for Trustworthy Language Models","arxiv_id":"2603.19532","date":"2026-03-20","proceeding":null,"authors":["J. Ben Tamo","Yuxing Lu","Benoit L. Marteau","Micky C. Nnamdi","May D. Wang"],"abstract":"Large Language Models (LLMs) are fluent but prone to hallucinations, producing answers that appear plausible yet are unsupported by available evidence. This failure is especially problematic in high-stakes domains where decisions must be justified by verifiable information. We introduce \\textbf{EvidenceRL}, a reinforcement learning framework that enforces evidence adherence during training. EvidenceRL scores candidate responses for grounding (entailment with retrieved evidence and context) and correctness (agreement with reference answers) and optimizes the generator using Group Relative Policy Optimization (GRPO). We evaluate across two high-stakes domains, cardiac diagnosis and legal reasoning, where EvidenceRL consistently improves evidence grounding and faithfulness without sacrificing task accuracy. On cardiac diagnosis, F1@3 increases from 37.0 to 54.5 on Llama-3.2-3B while grounding ($G_{\\max}@3$) rises from 47.6 to 78.2; hallucinations drop nearly 5$\\times$ and evidence-supported diagnoses increase from 31.8\\% to 61.6\\%. On legal reasoning, EvidenceRL raises Faithfulness from 32.8\\% to 67.6\\% on Llama-3.1-8B, demonstrating consistent behavioral change across domains. Our code is open-sourced at https://github.com/Wizaaard/EvidenceRL.git.","url_abs":"https://arxiv.org/abs/2603.19532","url_pdf":"https://arxiv.org/pdf/2603.19532","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":{"syntology_url":null,"atlas_url":"https://app.syntology.ai/?focus=2603.19532","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2603.19532"}},"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/Wizaaard/EvidenceRL","reach":null}],"summary":{"unverified":24},"by_repo_kind":{"found_in_text":{"samples":24,"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":24,"samples":[{"code_sha256_prefix":"f24bdeccaef4e732","entry":"bootstrap_ci","repo":"Wizaaard/EvidenceRL","repo_kind":"found_in_text","path":"paper_metrics.py","file_url":"https://github.com/Wizaaard/EvidenceRL/blob/HEAD/paper_metrics.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":"f24bdeccaef4e732"}},{"code_sha256_prefix":"3ee03322d6a1ef5c","entry":"bootstrap_ci","repo":"Wizaaard/EvidenceRL","repo_kind":"found_in_text","path":"paper_metrics_barexam.py","file_url":"https://github.com/Wizaaard/EvidenceRL/blob/HEAD/paper_metrics_barexam.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":"3ee03322d6a1ef5c"}},{"code_sha256_prefix":"97394df7ba9413c0","entry":"build_pairwise_match_matrix","repo":"Wizaaard/EvidenceRL","repo_kind":"found_in_text","path":"compute_evidencerl_metrics_vllm_enhanced.py","file_url":"https://github.com/Wizaaard/EvidenceRL/blob/HEAD/compute_evidencerl_metrics_vllm_enhanced.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":"97394df7ba9413c0"}},{"code_sha256_prefix":"2dc1911eec8d8e27","entry":"classify_case","repo":"Wizaaard/EvidenceRL","repo_kind":"found_in_text","path":"paper_metrics_barexam.py","file_url":"https://github.com/Wizaaard/EvidenceRL/blob/HEAD/paper_metrics_barexam.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":"2dc1911eec8d8e27"}},{"code_sha256_prefix":"676fb63821942cb3","entry":"classify_diagnosis","repo":"Wizaaard/EvidenceRL","repo_kind":"found_in_text","path":"paper_metrics.py","file_url":"https://github.com/Wizaaard/EvidenceRL/blob/HEAD/paper_metrics.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":"676fb63821942cb3"}},{"code_sha256_prefix":"41d6ea1aca121cea","entry":"compute_aggregate_metrics","repo":"Wizaaard/EvidenceRL","repo_kind":"found_in_text","path":"compute_evidencerl_metrics_vllm.py","file_url":"https://github.com/Wizaaard/EvidenceRL/blob/HEAD/compute_evidencerl_metrics_vllm.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":"41d6ea1aca121cea"}},{"code_sha256_prefix":"e6caa63af4ef9966","entry":"compute_grounding","repo":"Wizaaard/EvidenceRL","repo_kind":"found_in_text","path":"compute_barexam_metrics.py","file_url":"https://github.com/Wizaaard/EvidenceRL/blob/HEAD/compute_barexam_metrics.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":"e6caa63af4ef9966"}},{"code_sha256_prefix":"b58e9b553c59cc75","entry":"compute_patient_metrics_batch","repo":"Wizaaard/EvidenceRL","repo_kind":"found_in_text","path":"compute_evidencerl_metrics.py","file_url":"https://github.com/Wizaaard/EvidenceRL/blob/HEAD/compute_evidencerl_metrics.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":"b58e9b553c59cc75"}},{"code_sha256_prefix":"cf1535de381ffd97","entry":"compute_precision_recall_at_k","repo":"Wizaaard/EvidenceRL","repo_kind":"found_in_text","path":"compute_evidencerl_metrics.py","file_url":"https://github.com/Wizaaard/EvidenceRL/blob/HEAD/compute_evidencerl_metrics.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":"cf1535de381ffd97"}},{"code_sha256_prefix":"494edebfa96549dc","entry":"compute_precision_recall_at_k","repo":"Wizaaard/EvidenceRL","repo_kind":"found_in_text","path":"compute_evidencerl_metrics_vllm_enhanced.py","file_url":"https://github.com/Wizaaard/EvidenceRL/blob/HEAD/compute_evidencerl_metrics_vllm_enhanced.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":"494edebfa96549dc"}},{"code_sha256_prefix":"1c521a1a7379ada3","entry":"compute_reward_at_k","repo":"Wizaaard/EvidenceRL","repo_kind":"found_in_text","path":"compute_evidencerl_metrics.py","file_url":"https://github.com/Wizaaard/EvidenceRL/blob/HEAD/compute_evidencerl_metrics.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":"1c521a1a7379ada3"}},{"code_sha256_prefix":"ca46f3c759bc9316","entry":"compute_reward_at_k","repo":"Wizaaard/EvidenceRL","repo_kind":"found_in_text","path":"compute_evidencerl_metrics_vllm_enhanced.py","file_url":"https://github.com/Wizaaard/EvidenceRL/blob/HEAD/compute_evidencerl_metrics_vllm_enhanced.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":"ca46f3c759bc9316"}},{"code_sha256_prefix":"8e18216315d8d90c","entry":"compute_taxonomy","repo":"Wizaaard/EvidenceRL","repo_kind":"found_in_text","path":"paper_metrics_barexam.py","file_url":"https://github.com/Wizaaard/EvidenceRL/blob/HEAD/paper_metrics_barexam.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":"8e18216315d8d90c"}},{"code_sha256_prefix":"6d9a6eec15441660","entry":"extract_diagnosis_data","repo":"Wizaaard/EvidenceRL","repo_kind":"found_in_text","path":"plot_reasoning_vs_grounding.py","file_url":"https://github.com/Wizaaard/EvidenceRL/blob/HEAD/plot_reasoning_vs_grounding.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":"6d9a6eec15441660"}},{"code_sha256_prefix":"3cfc592462c22203","entry":"extract_patient_grounding","repo":"Wizaaard/EvidenceRL","repo_kind":"found_in_text","path":"plot_patient_movement.py","file_url":"https://github.com/Wizaaard/EvidenceRL/blob/HEAD/plot_patient_movement.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":"3cfc592462c22203"}},{"code_sha256_prefix":"798f67aa246648f5","entry":"extract_per_diagnosis","repo":"Wizaaard/EvidenceRL","repo_kind":"found_in_text","path":"plot_accuracy_vs_grounding.py","file_url":"https://github.com/Wizaaard/EvidenceRL/blob/HEAD/plot_accuracy_vs_grounding.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":"798f67aa246648f5"}},{"code_sha256_prefix":"12bd484052a4252a","entry":"extract_per_patient_metrics","repo":"Wizaaard/EvidenceRL","repo_kind":"found_in_text","path":"paper_metrics.py","file_url":"https://github.com/Wizaaard/EvidenceRL/blob/HEAD/paper_metrics.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":"12bd484052a4252a"}},{"code_sha256_prefix":"e122c556aafe7b09","entry":"find_metrics_file","repo":"Wizaaard/EvidenceRL","repo_kind":"found_in_text","path":"plot_accuracy_vs_grounding.py","file_url":"https://github.com/Wizaaard/EvidenceRL/blob/HEAD/plot_accuracy_vs_grounding.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":"e122c556aafe7b09"}},{"code_sha256_prefix":"77f3e0e8f70dae62","entry":"find_metrics_file","repo":"Wizaaard/EvidenceRL","repo_kind":"found_in_text","path":"plot_reasoning_vs_grounding.py","file_url":"https://github.com/Wizaaard/EvidenceRL/blob/HEAD/plot_reasoning_vs_grounding.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":"77f3e0e8f70dae62"}},{"code_sha256_prefix":"e5e010338e098c7a","entry":"llm_extract_batch","repo":"Wizaaard/EvidenceRL","repo_kind":"found_in_text","path":"run_barexam_vllm.py","file_url":"https://github.com/Wizaaard/EvidenceRL/blob/HEAD/run_barexam_vllm.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":"e5e010338e098c7a"}},{"code_sha256_prefix":"b815bf26e194b0d1","entry":"load_file","repo":"Wizaaard/EvidenceRL","repo_kind":"found_in_text","path":"plot_accuracy_vs_grounding.py","file_url":"https://github.com/Wizaaard/EvidenceRL/blob/HEAD/plot_accuracy_vs_grounding.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":"b815bf26e194b0d1"}},{"code_sha256_prefix":"2d5aed935e9e0f45","entry":"load_metrics_file","repo":"Wizaaard/EvidenceRL","repo_kind":"found_in_text","path":"plot_reasoning_vs_grounding.py","file_url":"https://github.com/Wizaaard/EvidenceRL/blob/HEAD/plot_reasoning_vs_grounding.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":"2d5aed935e9e0f45"}},{"code_sha256_prefix":"eb326c2f64c4533a","entry":"load_model_data","repo":"Wizaaard/EvidenceRL","repo_kind":"found_in_text","path":"plot_barexam_grounding_scatter.py","file_url":"https://github.com/Wizaaard/EvidenceRL/blob/HEAD/plot_barexam_grounding_scatter.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":"eb326c2f64c4533a"}},{"code_sha256_prefix":"563545db8b004590","entry":"load_model_data","repo":"Wizaaard/EvidenceRL","repo_kind":"found_in_text","path":"plot_medical_grounding_scatter.py","file_url":"https://github.com/Wizaaard/EvidenceRL/blob/HEAD/plot_medical_grounding_scatter.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":"563545db8b004590"}}]},"arxiv_metadata":{"licence":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)","fields":["title","abstract","authors","date"],"primary_category":"cs.LG","source":"arxiv_2026.jsonl"},"syntology_extracted_results":{"kind":"leaderboard_placements","source":"Syntology's leaderboard-shaped extractor over the paper's own arXiv-HTML tables: a model pointed at a cell, the number was read from that cell and checked against the board's metric, dataset, split and scale, and an independent check accepted the entry; not reviewed by the paper's authors or the archive's editors","extractor_model":"global.anthropic.claude-sonnet-4-5-20250929-v1:0","verifier_model":null,"prompt_sha":"fa63d4bb9d755694","coverage":{"sentence":"Syntology has checked 6,795 of the 9,581 papers on this site that are newer than the archive; results from the others appear after they are checked.","papers_newer_than_archive":9581,"papers_checked":6795},"entries":[],"not_placed":{"boards":0,"rejected_by_independent_check":0,"refused_by_a_rule":0,"check_did_not_answer":0,"proposed_without_a_cell":0,"declined_by_site":0}}}