arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2309.02144cs.CLcs.AIcs.LG
收藏

通过对齐使大型语言模型成为更好的推理者

Making Large Language Models Better Reasoners with Alignment

Peking University(北京大学);The University of Hong Kong(香港大学);Tencent Cloud AI(腾讯云人工智能)

Peiyi Wang, Lei Li, Liang Chen, Feifan Song, Binghuai Lin, Yunbo Cao, Tianyu Liu, Zhifang Sui

AI总结:

针对微调LLM在推理中评估错位的问题,提出对齐微调范式,通过约束对齐损失校准正负COT分数,提升推理性能。

摘要:

推理是利用证据得出合理结论的认知过程。推理能力对于大型语言模型(LLMs)作为通用人工智能智能体的“大脑”至关重要。近期研究表明,在带有思维链(COT)推理过程的数据上对LLMs进行微调可以显著增强其推理能力。然而,我们发现微调后的LLMs存在一个“评估错位”问题,即它们经常给较差的COT分配更高的分数,这可能导致其推理能力受限。为解决此问题,我们提出了一种“对齐微调(AFT)”范式,包括三个步骤:1)使用COT训练数据微调LLMs;2)为每个问题生成多个COT响应,并根据是否获得正确答案将其分为正例和负例;3)通过一种新颖的约束对齐损失来校准LLMs给出的正负响应的分数。具体而言,约束对齐损失有两个目标:a)对齐,确保正例分数超过负例分数,以鼓励产生高质量COT的答案;b)约束,将负例分数限制在合理范围内,以防止模型退化。除了二元正负反馈外,当可获得排序反馈时,约束对齐损失还可以无缝适应排序情境。此外,我们还深入研究了近期基于排序的对齐方法,如DPO、RRHF和PRO,并发现这些方法所忽略的约束对其性能也至关重要。在四个推理基准上进行的广泛实验,涵盖二元反馈和排序反馈,证明了AFT的有效性。

英文摘要:

Reasoning is a cognitive process of using evidence to reach a sound conclusion. The reasoning capability is essential for large language models (LLMs) to serve as the brain of the artificial general intelligence agent. Recent studies reveal that fine-tuning LLMs on data with the chain of thought (COT) reasoning process can significantly enhance their reasoning capabilities. However, we find that the fine-tuned LLMs suffer from an \textit{Assessment Misalignment} problem, i.e., they frequently assign higher scores to subpar COTs, leading to potential limitations in their reasoning abilities. To address this problem, we introduce an \textit{Alignment Fine-Tuning (AFT)} paradigm, which involves three steps: 1) fine-tuning LLMs with COT training data; 2) generating multiple COT responses for each question, and categorizing them into positive and negative ones based on whether they achieve the correct answer; 3) calibrating the scores of positive and negative responses given by LLMs with a novel constraint alignment loss. Specifically, the constraint alignment loss has two objectives: a) Alignment, which guarantees that positive scores surpass negative scores to encourage answers with high-quality COTs; b) Constraint, which keeps the negative scores confined to a reasonable range to prevent the model degradation. Beyond just the binary positive and negative feedback, the constraint alignment loss can be seamlessly adapted to the ranking situations when ranking feedback is accessible. Furthermore, we also delve deeply into recent ranking-based alignment methods, such as DPO, RRHF, and PRO, and discover that the constraint, which has been overlooked by these approaches, is also crucial for their performance. Extensive experiments on four reasoning benchmarks with both binary and ranking feedback demonstrate the effectiveness of AFT.

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

↑