{"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-2608-26385","title":"Why RAGs Hallucinate: Penalty-Aware Evaluation of Retrieval-Augmented Generation Systems with Knowledge-Gap Canaries","arxiv_id":"2608.26385","date":"2026-08-26","proceeding":null,"authors":["Alden Do Rosario","Hussein Younes","Felipe Pires"],"abstract":"Volume-based accuracy rewards retrieval-augmented generation (RAG) systems for guessing: a system that answers everything outscores one that declines when its knowledge base cannot support an answer. Building on the confidence-target analysis of Kalai et al. (2025), we present a penalty-aware evaluation framework for deployed RAG products, combining (i) asymmetric scoring (correct +1, wrong -4, abstain 0), (ii) knowledge-gap canaries, questions whose answers are verifiably absent from the knowledge base, so that any answer constitutes ungrounded generation from parametric memory, and (iii) a failure-attribution pipeline that separates retrieval, generation, and abstention-policy failures. Applying the framework to three commercial RAG systems and a no-retrieval baseline on SimpleQA-Verified (1,000 questions x 3 repeats, graded blind by a cross-family three-judge panel with 98.9% unanimity), we find that accuracy when answering is closely clustered across systems (97.0-98.0%), while canary violation rates differ roughly sixfold (16.7% vs. 98.1%). The systems are separated less by what they answer correctly than by whether they answer at all when they should not, and penalty-aware scoring reorders the volume-based ranking accordingly; the reordering is stable across penalty settings from k=1 to k=9. All code, configurations, transcripts, and judge votes are released for independent audit.","url_abs":"https://arxiv.org/abs/2608.26385","url_pdf":"https://arxiv.org/pdf/2608.26385","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":null,"mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2608.26385"}},"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/adorosario/why-rags-hallucinate","reach":null}],"summary":{"ran":9,"unverified":1},"by_repo_kind":{"found_in_text":{"samples":10,"ran":9,"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":"739dade065048416","entry":"calculate_confidence_interval","repo":"adorosario/why-rags-hallucinate","repo_kind":"found_in_text","path":"src/confidence_threshold_simpleqa_eval.py","file_url":"https://github.com/adorosario/why-rags-hallucinate/blob/HEAD/src/confidence_threshold_simpleqa_eval.py","link_basis":"first_harvest_node","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":"739dade065048416"}},{"code_sha256_prefix":"b8f1a5ec4dfb7216","entry":"cohens_d","repo":"adorosario/why-rags-hallucinate","repo_kind":"found_in_text","path":"src/confidence_threshold_simpleqa_eval.py","file_url":"https://github.com/adorosario/why-rags-hallucinate/blob/HEAD/src/confidence_threshold_simpleqa_eval.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"b8f1a5ec4dfb7216"}},{"code_sha256_prefix":"8bdebd87aa9e1e7f","entry":"format_multichoice_question","repo":"adorosario/why-rags-hallucinate","repo_kind":"found_in_text","path":"src/common.py","file_url":"https://github.com/adorosario/why-rags-hallucinate/blob/HEAD/src/common.py","link_basis":"first_harvest_node","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":"8bdebd87aa9e1e7f"}},{"code_sha256_prefix":"54e3c9d1f2d466c0","entry":"get_navigation_bar","repo":"adorosario/why-rags-hallucinate","repo_kind":"found_in_text","path":"src/brand_kit.py","file_url":"https://github.com/adorosario/why-rags-hallucinate/blob/HEAD/src/brand_kit.py","link_basis":"first_harvest_node","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":"54e3c9d1f2d466c0"}},{"code_sha256_prefix":"b66adef9c170142e","entry":"get_page_header","repo":"adorosario/why-rags-hallucinate","repo_kind":"found_in_text","path":"src/brand_kit.py","file_url":"https://github.com/adorosario/why-rags-hallucinate/blob/HEAD/src/brand_kit.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"b66adef9c170142e"}},{"code_sha256_prefix":"11a8de9c15e75df5","entry":"load_audit_logs","repo":"adorosario/why-rags-hallucinate","repo_kind":"found_in_text","path":"src/audit_logger.py","file_url":"https://github.com/adorosario/why-rags-hallucinate/blob/HEAD/src/audit_logger.py","link_basis":"first_harvest_node","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":"11a8de9c15e75df5"}},{"code_sha256_prefix":"92b6d58fb50c32c2","entry":"parse_judge_json","repo":"adorosario/why-rags-hallucinate","repo_kind":"found_in_text","path":"src/judge_panel.py","file_url":"https://github.com/adorosario/why-rags-hallucinate/blob/HEAD/src/judge_panel.py","link_basis":"first_harvest_node","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":"92b6d58fb50c32c2"}},{"code_sha256_prefix":"21df971c85cc985a","entry":"tally_votes","repo":"adorosario/why-rags-hallucinate","repo_kind":"found_in_text","path":"src/judge_panel.py","file_url":"https://github.com/adorosario/why-rags-hallucinate/blob/HEAD/src/judge_panel.py","link_basis":"first_harvest_node","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":"21df971c85cc985a"}},{"code_sha256_prefix":"b46c86ac397ccae8","entry":"wilson_score_interval","repo":"adorosario/why-rags-hallucinate","repo_kind":"found_in_text","path":"src/confidence_threshold_simpleqa_eval.py","file_url":"https://github.com/adorosario/why-rags-hallucinate/blob/HEAD/src/confidence_threshold_simpleqa_eval.py","link_basis":"first_harvest_node","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":"b46c86ac397ccae8"}},{"code_sha256_prefix":"dcb2c3e1d6cb168f","entry":"get_html_head","repo":"adorosario/why-rags-hallucinate","repo_kind":"found_in_text","path":"src/brand_kit.py","file_url":"https://github.com/adorosario/why-rags-hallucinate/blob/HEAD/src/brand_kit.py","link_basis":"first_harvest_node","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":"dcb2c3e1d6cb168f"}}]},"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":{"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,264 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":6264},"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}}}