2025-03-21 · 进阶 · 机器学习 · 自然语言处理

Reinforcement Learning for Reasoning in Small LLMs: What Works and What Doesn't

该论文研究了强化学习在小型LLM推理能力提升中的潜力,通过资源受限条件下的实验,证明了其在推理性能上的提升和成本效益。

更新于 2025-08-30。作者:Quy-Anh Dang、Chris Ngo。

中文摘要

提升大型语言模型(LLMs)的推理能力通常依赖于庞大的计算资源和广泛的训练数据集,这限制了资源受限环境中的可访问性。我们的研究探讨了强化学习(RL)在小型LLMs中改善推理的潜力,重点关注一个参数量为15亿的模型,DeepSeek-R1-Distill-Qwen-1.5B,在严格的限制条件下进行训练:在24小时内使用4个NVIDIA A40 GPU(每个48 GB VRAM)进行训练。通过调整Group Relative Policy Optimization(GRPO)算法和精心制作一个紧凑、高质量的数学推理数据集,我们进行了三项实验来探索模型的行为和性能。我们的结果表明,通过仅使用7,000个样本和42美元的训练成本,模型的推理能力迅速提升——例如,AMC23的准确率从63%提高到80%,AIME24达到46.7%,超过了o1-preview——这相比基准模型数千美元的成本具有显著优势。然而,随着训练时间的延长,一些挑战如优化不稳定性和长度限制开始显现。这些发现突出了基于RL的微调对于小型LLMs的有效性,为大规模方法提供了成本效益的替代方案。我们发布了我们的代码和数据集作为开源资源,提供了关于权衡的见解,并为在资源有限的环境中实现可扩展、具有推理能力的LLMs奠定了基础。所有资源均可从https://github.com/knoveleng/open-rs获取。

英文摘要

Enhancing the reasoning capabilities of large language models (LLMs) typically relies on massive computational resources and extensive datasets, limiting accessibility for resource-constrained settings. Our study investigates the potential of reinforcement learning (RL) to improve reasoning in small LLMs, focusing on a 1.5-billion-parameter model, DeepSeek-R1-Distill-Qwen-1.5B, under strict constraints: training on 4 NVIDIA A40 GPUs (48 GB VRAM each) within 24 hours. Adapting the Group Relative Policy Optimization (GRPO) algorithm and curating a compact, high-quality mathematical reasoning dataset, we conducted three experiments to explore model behavior and performance. Our results demonstrate rapid reasoning gains - e.g., AMC23 accuracy rising from 63% to 80% and AIME24 reaching 46.7%, surpassing o1-preview - using only 7,000 samples and a $42 training cost, compared to thousands of dollars for baseline models. However, challenges such as optimization instability and length constraints emerged with prolonged training. These findings highlight the efficacy of RL-based fine-tuning for small LLMs, offering a cost-effective alternative to large-scale approaches. We release our code and datasets as open-source resources, providing insights into trade-offs and laying a foundation for scalable, reasoning-capable LLMs in resource-limited environments. All are available at https://github.com/knoveleng/open-rs.

解读

一句话总结

该论文研究了强化学习在小型LLM推理能力提升中的潜力,通过资源受限条件下的实验,证明了其在推理性能上的提升和成本效益。

问题1:这篇论文想要解决什么具体问题?

问题2:论文的核心创新点是什么?

问题3:实验结果如何验证了方法的有效性?

问题4:这个研究的实际应用价值是什么?

来源

机器可读索引:llms.txt