cs.CLApr 12, 2026

SERC: LDPC-Inspired Semantic Error Correction for Retrieval-Augmented Generation

Authors: Gyumin Kim, Juhwan Park, Jaeha Kim, Seunggyun Han, Kyungrak Son, Ikbeom Jang

Organizations: Department of Information Communications Engineering, Hankuk University of Foreign Studies, Republic of Korea · Division of Computer Engineering, Hankuk University of Foreign Studies, Republic of Korea · Department of Statistics, Hankuk University of Foreign Studies, Republic of Korea

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.

Figures & tables

Explore similar work

CardsList
  1. Hallucination as an Anomaly: Dynamic Intervention via Probabilistic Circuits

    May 7, 2026Erik Nielsen, Elia Cunegatti, Marcus Vukojevic +1Probabilistic CircuitsLLM Hallucination Mitigation

  2. MARCH: Multi-Agent Reinforced Self-Check for LLM Hallucination

    Mar 25, 2026Zhuo Li, Yupeng Zhang, Pengyu Cheng +8LLM Hallucination MitigationLLM Hallucination Detection

  3. Towards Lightweight Reliability: Using Soft Prompts for Hallucination Mitigation in Large Language Models

    May 30, 2026S M Tahmid Siddiqui, Akib Jawad Ononto, Anoop Singhal +1LLM Hallucination MitigationQuestion Answering