arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2504.03302cs.CLcs.AI
收藏

用于缓解大语言模型幻觉的噪声增强微调

Noise Augmented Fine Tuning for Mitigating Hallucinations in Large Language Models

Afshin Khadangi, Amir Sartipi, Igor Tchappi, Ramin Bahmani

AI总结:

该研究提出基于信噪比自适应噪声注入的NoiseFiT框架,结合混合损失缓解大模型幻觉,理论上保障收敛,实验证实可降幻觉且性能匹配或优于基线,同时开源相关资源。

摘要:

大语言模型(LLM)常生成不准确或具误导性的内容,即幻觉。为应对这一挑战,我们提出噪声增强微调(Noise-Augmented Fine-Tuning,NoiseFiT),这是一种基于信噪比(SNR)利用自适应噪声注入来增强模型鲁棒性的新型框架。具体而言,NoiseFiT使用动态缩放的高斯噪声,选择性扰动被识别为高SNR(鲁棒性更强)或低SNR(可能正则化不足)的层。我们进一步提出一种混合损失,结合标准交叉熵、软交叉熵和一致性正则化,确保在噪声训练条件下输出稳定准确。我们的理论分析表明,自适应噪声注入既无偏又保持方差,为期望收敛提供了有力保障。在多个测试集和基准数据集上的实验结果表明,NoiseFiT显著降低了幻觉率,在关键任务上的性能通常优于或匹配基线。这些发现凸显了噪声驱动策略在无需过高计算开销的情况下,实现鲁棒、可信语言建模的潜力。鉴于实验的全面性和详细性,我们已分别在W&B、Hugging Face和GitHub上公开发布了微调日志、基准评估产物和源代码,以促进后续研究、可及性和可复现性。

英文摘要:

Large language models (LLMs) often produce inaccurate or misleading content-hallucinations. To address this challenge, we introduce Noise-Augmented Fine-Tuning (NoiseFiT), a novel framework that leverages adaptive noise injection based on the signal-to-noise ratio (SNR) to enhance model robustness. In particular, NoiseFiT selectively perturbs layers identified as either high-SNR (more robust) or low-SNR (potentially under-regularized) using a dynamically scaled Gaussian noise. We further propose a hybrid loss that combines standard cross-entropy, soft cross-entropy, and consistency regularization to ensure stable and accurate outputs under noisy training conditions. Our theoretical analysis shows that adaptive noise injection is both unbiased and variance-preserving, providing strong guarantees for convergence in expectation. Empirical results on multiple test and benchmark datasets demonstrate that NoiseFiT significantly reduces hallucination rates, often improving or matching baseline performance in key tasks. These findings highlight the promise of noise-driven strategies for achieving robust, trustworthy language modeling without incurring prohibitive computational overhead. Given the comprehensive and detailed nature of our experiments, we have publicly released the fine-tuning logs, benchmark evaluation artifacts, and source code online at W&B, Hugging Face, and GitHub, respectively, to foster further research, accessibility and reproducibility.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑