用强化学习让大模型学会抽象思维,提升数学推理鲁棒性
AbstRaL: Augmenting LLMs' Reasoning by Reinforcing Abstract Thinking
- 通过强化学习训练模型生成问题的抽象表示
- 在GSM扰动测试中性能下降减少40%以上
- 适合需要强泛化能力的数学推理任务
近期研究表明,大语言模型(尤其是小型模型)在小学数学(GSM)推理中缺乏鲁棒性,尤其在面对数值、命名变量变化或干扰语句时性能明显下降。现有方法多依赖合成数据增强,本文则提出通过抽象化问题来应对分布偏移,并促进与符号工具的结合。聚焦GSM任务,我们发现相比监督微调,强化学习更有效生成忠实的抽象表示。提出的AbstRaL方法在粒度级抽象数据上使用强化学习,显著缓解了模型在最新GSM扰动基准上的性能退化。此外,通过AbstRaL提升GSM鲁棒性还能隐式增强模型在域外数学和一般推理任务上的表现,表明抽象思维有助于广泛泛化。
原文摘要 · Abstract (English)
Recent studies have shown that large language models (LLMs), especially smaller ones, often lack robustness in grade school math (GSM) reasoning. In particular, they tend to experience performance drops when faced with distribution shifts, such as changes to numerical or nominal variables, or insertions of distracting clauses. A possible strategy to address this involves generating synthetic data to further "instantiate" reasoning problems on potential variations. In this work, we instead focus on the strategy of "abstracting" reasoning problems. This not only helps counteract distribution shifts but also facilitates the connection to symbolic tools for deriving solutions. Focusing on GSM, we find that this abstraction process is better acquired through reinforcement learning (RL) than just supervised fine-tuning, which often fails to produce faithful abstractions. Our method, AbstRaL -- which promotes abstract reasoning in LLMs using RL on granular abstraction data -- significantly mitigates performance degradation on recent GSM perturbation benchmarks. Besides, improving GSM robustness via AbstRaL is shown to also implicitly benefit LLMs' capabilities on OOD mathematical and general reasoning tasks, indicating that abstract thinking broadly enables better generalizability.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。