SERC: 受LDPC启发的检索增强生成语义纠错方法
SERC: LDPC-Inspired Semantic Error Correction for Retrieval-Augmented Generation
AI总结:
针对大语言模型幻觉问题,提出受LDPC码启发的语义纠错框架SERC,通过稀疏验证策略高效检测和纠正生成文本中的错误。
摘要:
尽管大语言模型(LLMs)展现了卓越的能力,但其可靠性因幻觉而严重受损。现有的内在自纠正方法试图解决这一问题,但由于自我偏见(模型在没有外部验证的情况下难以识别自身输出中的错误)而常常失败。为克服这些限制,我们提出了受LDPC启发的检索增强生成语义纠错方法(SERC),为解释和缓解LLM幻觉提供了理论框架。我们将文本生成过程重新表述为语义噪声信道,将生成的响应视为噪声干扰的码字。受低密度奇偶校验(LDPC)码的启发,SERC采用稀疏验证策略:不是穷举检查所有事实,而是生成低密度验证查询,并针对外部证据进行验证,以高效检测和纠正错误。我们在LongForm Bio和TruthfulQA基准上使用Llama-3-8B和Qwen2.5-14B评估了SERC。实验结果表明,SERC优于内在自纠正方法和强检索增强基线,特别是在事实精度(FactScore)上取得了显著提升。值得注意的是,SERC使小语言模型(SLMs)在幻觉减少和信息保留方面超越了更大的基线模型。我们的发现表明,SERC提供了一种无需训练、模型无关的解决方案,与密集方法相比显著降低了验证开销,在资源受限环境中实现了成本与保真度的最优权衡。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。