让大模型在混乱推理中仍能准确判断,提出新方法提升抗干扰能力。
Can Language Models Perform Robust Reasoning in Chain-of-thought Prompting with Noisy Rationales?
- 通过对比噪声与纯净推理路径,实现输入端去噪与输出端多路径投票。
- 在含错误推理的场景下,准确率比基线模型平均提升17.8%。
- 适合需要高鲁棒性推理的应用,如教育评测、智能问答系统。
本文研究大语言模型在包含噪声推理链的上下文学习中的鲁棒性问题。构建了专用于评估该场景的NoRa数据集,发现当前模型对噪声极为敏感:相比干净推理,含无关推理时准确率下降1.4%-19.8%,含错误推理时更下降2.2%-40.4%。现有自校正与自一致性方法效果有限。为此提出对比去噪链式思维(CD-CoT)方法,仅需一个纯净推理作为参照,在输入空间重构并筛选推理路径,输出空间探索多条路径并投票。实验表明,该方法相较基线平均提升17.8%准确率,显著优于现有方法。代码已开源。
原文摘要 · Abstract (English)
This paper investigates an under-explored challenge in large language models (LLMs): chain-of-thought prompting with noisy rationales, which include irrelevant or inaccurate reasoning thoughts within examples used for in-context learning. We construct NoRa dataset that is tailored to evaluate the robustness of reasoning in the presence of noisy rationales. Our findings on NoRa dataset reveal a prevalent vulnerability to such noise among current LLMs, with existing robust methods like self-correction and self-consistency showing limited efficacy. Notably, compared to prompting with clean rationales, base LLM drops by 1.4%-19.8% in accuracy with irrelevant thoughts and more drastically by 2.2%-40.4% with inaccurate thoughts. Addressing this challenge necessitates external supervision that should be accessible in practice. Here, we propose the method of contrastive denoising with noisy chain-of-thought (CD-CoT). It enhances LLMs' denoising-reasoning capabilities by contrasting noisy rationales with only one clean rationale, which can be the minimal requirement for denoising-purpose prompting. This method follows a principle of exploration and exploitation: (1) rephrasing and selecting rationales in the input space to achieve explicit denoising and (2) exploring diverse reasoning paths and voting on answers in the output space. Empirically, CD-CoT demonstrates an average improvement of 17.8% in accuracy over the base model and shows significantly stronger denoising capabilities than baseline methods. The source code is publicly available at: https://github.com/tmlr-group/NoisyRationales.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。