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

顺序无关紧要,但推理很重要:使用以顺序为中心的数据增强训练大语言模型

Order Doesn't Matter, But Reasoning Does: Training LLMs with Order-Centric Augmentation

Shanghai Key Laboratory of Data Science, School of Computer Science, Fudan University(上海数据科学关键实验室,计算机科学学院,复旦大学);School of Data Science, Fudan University(数据科学学院,复旦大学);Ant Group(蚂蚁集团)

Qianxi He, Qianyu He, Jiaqing Liang, Yanghua Xiao, Weikang Zhou, Zeye Sun, Fei Yu

AI总结:

针对大语言模型在逻辑推理中受顺序变化影响、泛化能力不足的问题,本文提出基于交换律的以顺序为中心的数据增强框架,通过打乱前提顺序和基于有向无环图重排推理步骤,显著提升了模型在多个逻辑推理基准上的性能与适应性。

摘要:

逻辑推理对于大语言模型(LLMs)确保准确且连贯的推断至关重要。然而,LLMs 在推理顺序变化方面表现不佳,并且无法在逻辑等价变换之间进行泛化。LLMs 往往依赖固定的顺序模式,而非真正的逻辑理解。为了解决这一问题,我们引入了一个基于逻辑推理中交换律的以顺序为中心的数据增强框架。我们首先随机打乱独立前提,以引入条件顺序增强。对于推理步骤,我们构建一个有向无环图(DAG)来建模步骤之间的依赖关系,这使我们能够在保持逻辑正确性的同时识别步骤的有效重排。通过利用以顺序为中心的增强,模型可以发展出更灵活、更具泛化能力的推理过程。最后,我们在多个逻辑推理基准上进行了广泛实验,证明我们的方法显著增强了 LLMs 的推理性能和对多样化逻辑结构的适应性。我们在 https://github.com/qianxiHe147/Order-Centric-Data-Augmentation 发布了代码和增强数据。

英文摘要:

Logical reasoning is essential for large language models (LLMs) to ensure accurate and coherent inference. However, LLMs struggle with reasoning order variations and fail to generalize across logically equivalent transformations. LLMs often rely on fixed sequential patterns rather than true logical understanding. To address this issue, we introduce an order-centric data augmentation framework based on commutativity in logical reasoning. We first randomly shuffle independent premises to introduce condition order augmentation. For reasoning steps, we construct a directed acyclic graph (DAG) to model dependencies between steps, which allows us to identify valid reorderings of steps while preserving logical correctness. By leveraging order-centric augmentations, models can develop a more flexible and generalized reasoning process. Finally, we conduct extensive experiments across multiple logical reasoning benchmarks, demonstrating that our method significantly enhances LLMs' reasoning performance and adaptability to diverse logical structures. We release our codes and augmented data in https://github.com/qianxiHe147/Order-Centric-Data-Augmentation.

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

↑