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

推理中的细微错误:通过错误注入自我编辑进行偏好学习

Subtle Errors in Reasoning: Preference Learning via Error-injected Self-editing

The Hong Kong Polytechnic University(香港理工大学);Huawei Noah’s Ark Lab(华为诺亚实验室)

Kaishuai Xu, Tiezheng Yu, Wenjun Hou, Yi Cheng, Chak Tou Leong, Liangyou Li, Xin Jiang, Lifeng Shang, Qun Liu, Wenjie Li

AI总结:

提出RISE框架,通过错误注入自我编辑构建困难对进行偏好学习,有效缓解LLM推理中的细微错误,在数学、逻辑和代码任务上均提升性能。

摘要:

大型语言模型(LLMs)已展现出强大的数学推理能力,能够处理从基础算术到高级竞赛级别的问题。然而,频繁出现的细微但关键的错误,如计算错误或错误替换,限制了LLMs的全部潜力。现有的提升数学能力的研究通常涉及对逐步解决方案对应用偏好学习。尽管这些方法利用不同粒度的样本来缓解推理错误,但它们忽视了关键的细微错误。在这项工作中,我们提出了一种新颖的偏好学习框架,称为错误注入自我编辑(RISE),该框架将预定义的细微错误注入推理或计算步骤中的关键标记,以构建用于错误缓解的困难对。具体来说,RISE利用LLM自身编辑解决方案中的少量标记,注入设计的细微错误。然后,由自我编辑的解决方案及其对应的正确解决方案组成的对,以及通过采样获得的正确和错误解决方案对,一起用于细微错误感知的DPO训练。与其他偏好学习方法相比,RISE进一步细化了训练目标,无需细粒度采样或偏好标注。大量实验验证了RISE的有效性,在Qwen2-7B-Instruct上进行偏好学习,仅使用4.5K训练样本,在GSM8K上取得了3.0%的显著提升,在MATH上取得了7.9%的提升。此外,错误缓解的效果从数学推理扩展到逻辑推理和代码生成。

英文摘要:

Large Language Models (LLMs) have exhibited strong mathematical reasoning prowess, tackling tasks ranging from basic arithmetic to advanced competition-level problems. However, frequently occurring subtle yet critical errors, such as miscalculations or incorrect substitutions, limit the LLMs' full potential. Existing studies to improve mathematical ability typically involve applying preference learning to step-wise solution pairs. Although these methods leverage samples of varying granularity to mitigate reasoning errors, they overlook critical subtle errors. In this work, we propose a novel preference learning framework called eRror-Injected Self-Editing (RISE), which injects predefined subtle errors into pivotal tokens in reasoning or computation steps to construct hard pairs for error mitigation. In detail, RISE uses the LLM itself to edit a small number of tokens in the solution, injecting designed subtle errors. Then, pairs composed of self-edited solutions and their corresponding correct ones, along with pairs of correct and incorrect solutions obtained through sampling, are used together for subtle error-aware DPO training. Compared with other preference learning methods, RISE further refines the training objective without requiring fine-grained sampling or preference annotation. Extensive experiments validate the effectiveness of RISE, with preference learning on Qwen2-7B-Instruct yielding notable improvements of 3.0% on GSM8K and 7.9% on MATH with only 4.5K training samples. Moreover, the effect of error mitigation extends from mathematical reasoning to logical reasoning and code generation.

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

↑