arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2411.19865cs.CLcs.AIcs.LG
收藏

逆向思维使大语言模型成为更强的推理者

Reverse Thinking Makes LLMs Stronger Reasoners

UNC Chapel Hill(北卡罗来纳大学教堂山分校);Google Cloud AI Research(谷歌云人工智能研究部);Google DeepMind(谷歌DeepMind)

Justin Chih-Yao Chen, Zifeng Wang, Hamid Palangi, Rujun Han, Sayna Ebrahimi, Long Le, Vincent Perot, Swaroop Mishra, Mohit Bansal, Chen-Yu Lee, Tomas Pfister

AI总结:

本文提出RevThink框架,通过数据增强和多任务学习让大语言模型学会从问题到方案及反向推理,在12个数据集上显著提升推理性能并展现样本效率和泛化能力。

摘要:

逆向思维在人类推理中起着至关重要的作用。人类不仅可以从问题推理到解决方案,还可以反向推理,即从解决方案出发推理回问题。这通常会提升整体推理表现,因为它能够在正向思维和逆向思维之间进行一致性检查。为了使大语言模型(LLMs)能够进行逆向思维,我们提出了逆向增强思维(RevThink),这是一个由数据增强和学习目标组成的框架。在RevThink中,我们通过从教师模型收集结构化的正向-逆向推理来增强数据集,包括:(1)原始问题,(2)正向推理,(3)逆向问题,以及(4)逆向推理。然后,我们采用三个目标以多任务学习的方式训练一个较小的学生模型:(a)从问题生成正向推理,(b)从问题生成逆向问题,以及(c)从逆向问题生成逆向推理。在涵盖常识、数学和逻辑推理的12个数据集上的实验表明,与学生模型的零样本性能相比,平均提升了13.53%,与最强的知识蒸馏基线相比提升了6.84%。此外,我们的方法展示了样本效率——仅使用训练数据中10%的正确正向推理,它就优于在10倍多的正向推理上训练的标准微调方法。RevThink还表现出对分布外留出数据集的强大泛化能力。

英文摘要:

Reverse thinking plays a crucial role in human reasoning. Humans can reason not only from a problem to a solution but also in reverse, i.e., start from the solution and reason towards the problem. This often enhances overall reasoning performance as it enables consistency checks between their forward and backward thinking. To enable Large Language Models (LLMs) to perform reverse thinking, we introduce Reverse-Enhanced Thinking (RevThink), a framework composed of data augmentation and learning objectives. In RevThink, we augment the dataset by collecting structured forward-backward reasoning from a teacher model, consisting of: (1) the original question, (2) forward reasoning, (3) backward question, and (4) backward reasoning. We then employ three objectives to train a smaller student model in a multi-task learning fashion: (a) generate forward reasoning from a question, (b) generate a backward question from a question, and (c) generate backward reasoning from the backward question. Experiments across 12 datasets covering commonsense, math, and logical reasoning show an average 13.53% improvement over the student model's zero-shot performance and a 6.84% improvement over the strongest knowledge distillation baselines. Moreover, our method demonstrates sample efficiency -- using only 10% of the correct forward reasoning from the training data, it outperforms a standard fine-tuning method trained on 10x more forward reasoning. RevThink also exhibits strong generalization to out-of-distribution held-out datasets.

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

↑