2025-02-21 · 专家 · 自然语言处理 · 机器学习

AlphaMaze: Enhancing Large Language Models' Spatial Intelligence via GRPO

本文提出了一种结合监督微调和群相对策略优化的两阶段训练框架,以增强大型语言模型在迷宫导航中的视觉推理能力。

更新于 2025-02-21。作者:Alan Dao、Dinh Bach Vu。

中文摘要

大型语言模型(LLMs)在语言处理方面展现出令人印象深刻的性能,但它们在需要真正的视觉空间推理的任务上往往表现不佳。在本文中,我们介绍了一种新颖的两阶段训练框架,旨在为标准LLMs赋予迷宫导航的视觉推理能力。首先,我们利用监督微调(SFT)在一个精心挑选的、标记化迷宫表示的数据集上训练模型,使其能够预测逐步移动指令。接下来,我们应用组相对策略优化(GRPO)——一种在DeepSeekR1中使用的技巧——以及精心设计的奖励函数来细化模型的顺序决策并鼓励涌现的思维链行为。在合成迷宫上的实验结果表明,尽管基线模型无法导航迷宫,但SFT训练的模型达到了86%的准确率,进一步的GRPO微调将准确率提升至93%。定性分析揭示,GRPO促进了更稳健和自我纠正的推理,突显了我们的方法弥合语言模型和视觉空间任务之间差距的潜力。这些发现为在机器人技术、自主导航以及其他需要集成视觉和顺序推理的领域中的应用提供了有希望的启示。

英文摘要

Large Language Models (LLMs) have demonstrated impressive capabilities in language processing, yet they often struggle with tasks requiring genuine visual spatial reasoning. In this paper, we introduce a novel two-stage training framework designed to equip standard LLMs with visual reasoning abilities for maze navigation. First, we leverage Supervised Fine Tuning (SFT) on a curated dataset of tokenized maze representations to teach the model to predict step-by-step movement commands. Next, we apply Group Relative Policy Optimization (GRPO)-a technique used in DeepSeekR1-with a carefully crafted reward function to refine the model's sequential decision-making and encourage emergent chain-of-thought behaviors. Experimental results on synthetically generated mazes show that while a baseline model fails to navigate the maze, the SFT-trained model achieves 86% accuracy, and further GRPO fine-tuning boosts accuracy to 93%. Qualitative analyses reveal that GRPO fosters more robust and self-corrective reasoning, highlighting the potential of our approach to bridge the gap between language models and visual spatial tasks. These findings offer promising implications for applications in robotics, autonomous navigation, and other domains that require integrated visual and sequential reasoning.

解读

一句话总结

本文提出了一种结合监督微调和群相对策略优化的两阶段训练框架,以增强大型语言模型在迷宫导航中的视觉推理能力。

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

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

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

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

来源