{"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-2605-28837","title":"SERC: LDPC-Inspired Semantic Error Correction for Retrieval-Augmented Generation","arxiv_id":"2605.28837","date":"2026-04-12","proceeding":null,"authors":["Gyumin Kim","Juhwan Park","Jaeha Kim","Seunggyun Han","Kyungrak Son","Ikbeom Jang"],"abstract":"While Large Language Models (LLMs) have demonstrated remarkable capabilities, their reliability is significantly compromised by hallucinations. Existing intrinsic self-correction methods attempt to address this, but often fail due to self-bias, where models struggle to identify errors in their own outputs without external verification. To overcome these limitations, we propose the LDPC-inspired semantic error correction for retrieval-augmented generation (SERC), providing a theoretical framework to interpret and mitigate LLM hallucinations. We reformulate the text generation process as a semantic noisy channel, treating generated responses as noise-corrupted codewords. Inspired by low-density parity-check (LDPC) codes, SERC employs a sparse verification strategy: instead of exhaustively checking all facts, it generates low-density verification queries and validates them against external evidence to efficiently detect and correct errors. We evaluate SERC on LongForm Bio and TruthfulQA benchmarks using Llama-3-8B and Qwen2.5-14B. Experimental results demonstrate that SERC outperforms both intrinsic self-correction methods and strong retrieval-augmented baselines, demonstrating significant gains especially in factual precision (FactScore). Notably, SERC enables small language models (SLMs) to surpass the performance of larger baselines in hallucination reduction and information preservation. Our findings demonstrate that SERC provides a training-free, model-agnostic solution that significantly reduces verification overhead compared to dense methods, achieving an optimal trade-off between cost and fidelity in resource-constrained environments.","url_abs":"https://arxiv.org/abs/2605.28837","url_pdf":"https://arxiv.org/pdf/2605.28837","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":"2605.28837"}},"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/labhai/SERC","reach":null}],"summary":{"ran":6,"unverified":9},"by_repo_kind":{"found_in_text":{"samples":15,"ran":6,"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":15,"samples":[{"code_sha256_prefix":"20ecc2ba25bd146b","entry":"generate_sentence_group_question_prompt","repo":"labhai/SERC","repo_kind":"found_in_text","path":"src/prompts.py","file_url":"https://github.com/labhai/SERC/blob/HEAD/src/prompts.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"20ecc2ba25bd146b"}},{"code_sha256_prefix":"0290eafd5de116ba","entry":"load_config","repo":"labhai/SERC","repo_kind":"found_in_text","path":"src/utils.py","file_url":"https://github.com/labhai/SERC/blob/HEAD/src/utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"0290eafd5de116ba"}},{"code_sha256_prefix":"763eff846e4d365b","entry":"load_dataset","repo":"labhai/SERC","repo_kind":"found_in_text","path":"src/data_loader.py","file_url":"https://github.com/labhai/SERC/blob/HEAD/src/data_loader.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"763eff846e4d365b"}},{"code_sha256_prefix":"2d3cbbede5014185","entry":"load_jsonl","repo":"labhai/SERC","repo_kind":"found_in_text","path":"src/utils.py","file_url":"https://github.com/labhai/SERC/blob/HEAD/src/utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"2d3cbbede5014185"}},{"code_sha256_prefix":"cafb989ff661b528","entry":"programmatic_parse_fact_list","repo":"labhai/SERC","repo_kind":"found_in_text","path":"src/programmatic_helpers.py","file_url":"https://github.com/labhai/SERC/blob/HEAD/src/programmatic_helpers.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"cafb989ff661b528"}},{"code_sha256_prefix":"007571ac1dc9055e","entry":"programmatic_replace","repo":"labhai/SERC","repo_kind":"found_in_text","path":"src/programmatic_helpers.py","file_url":"https://github.com/labhai/SERC/blob/HEAD/src/programmatic_helpers.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"007571ac1dc9055e"}},{"code_sha256_prefix":"61b723055025357c","entry":"extract_responses","repo":"labhai/SERC","repo_kind":"found_in_text","path":"experiments/evaluate_truthfulqa.py","file_url":"https://github.com/labhai/SERC/blob/HEAD/experiments/evaluate_truthfulqa.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":"61b723055025357c"}},{"code_sha256_prefix":"c7b26bed4f43ee0f","entry":"prompt_baseline","repo":"labhai/SERC","repo_kind":"found_in_text","path":"experiments/run_SERC.py","file_url":"https://github.com/labhai/SERC/blob/HEAD/experiments/run_SERC.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":"c7b26bed4f43ee0f"}},{"code_sha256_prefix":"221d94c852d397d9","entry":"prompt_extract_entity_desc","repo":"labhai/SERC","repo_kind":"found_in_text","path":"experiments/run_SERC.py","file_url":"https://github.com/labhai/SERC/blob/HEAD/experiments/run_SERC.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":"221d94c852d397d9"}},{"code_sha256_prefix":"79757e748e17ad77","entry":"prompt_extract_rag_desc","repo":"labhai/SERC","repo_kind":"found_in_text","path":"experiments/run_SERC.py","file_url":"https://github.com/labhai/SERC/blob/HEAD/experiments/run_SERC.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":"79757e748e17ad77"}},{"code_sha256_prefix":"7b70c35e2b6f88b7","entry":"run_cove_no_rag","repo":"labhai/SERC","repo_kind":"found_in_text","path":"baselines/run_cove.py","file_url":"https://github.com/labhai/SERC/blob/HEAD/baselines/run_cove.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":"7b70c35e2b6f88b7"}},{"code_sha256_prefix":"b8ed28cc4330eb99","entry":"run_cove_rag","repo":"labhai/SERC","repo_kind":"found_in_text","path":"baselines/run_cove_rag.py","file_url":"https://github.com/labhai/SERC/blob/HEAD/baselines/run_cove_rag.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":"b8ed28cc4330eb99"}},{"code_sha256_prefix":"3a08a84eecc79c04","entry":"run_rarr","repo":"labhai/SERC","repo_kind":"found_in_text","path":"baselines/run_rarr.py","file_url":"https://github.com/labhai/SERC/blob/HEAD/baselines/run_rarr.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":"3a08a84eecc79c04"}},{"code_sha256_prefix":"7ace363e64fc6de9","entry":"run_re_ex","repo":"labhai/SERC","repo_kind":"found_in_text","path":"baselines/run_re_ex.py","file_url":"https://github.com/labhai/SERC/blob/HEAD/baselines/run_re_ex.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":"7ace363e64fc6de9"}},{"code_sha256_prefix":"9a20a688cf9f6ed4","entry":"run_single_item_wrapper","repo":"labhai/SERC","repo_kind":"found_in_text","path":"baselines/run_cove.py","file_url":"https://github.com/labhai/SERC/blob/HEAD/baselines/run_cove.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":"9a20a688cf9f6ed4"}}]},"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}}}