[论文解读] Mind's Eye: Grounded Language Model Reasoning through Simulation
Mind’s Eye 将语言模型推理建立在物理仿真器 MuJoCo 上,通过将问题转化为渲染代码、运行仿真,并将结果注入提示中以改进物理推理。它带来显著提升,特别是对较小的模型效果更明显。
Successful and effective communication between humans and AI relies on a shared experience of the world. By training solely on written text, current language models (LMs) miss the grounded experience of humans in the real-world -- their failure to relate language to the physical world causes knowledge to be misrepresented and obvious mistakes in their reasoning. We present Mind's Eye, a paradigm to ground language model reasoning in the physical world. Given a physical reasoning question, we use a computational physics engine (DeepMind's MuJoCo) to simulate the possible outcomes, and then use the simulation results as part of the input, which enables language models to perform reasoning. Experiments on 39 tasks in a physics alignment benchmark demonstrate that Mind's Eye can improve reasoning ability by a large margin (27.9% zero-shot, and 46.0% few-shot absolute accuracy improvement on average). Smaller language models armed with Mind's Eye can obtain similar performance to models that are 100x larger. Finally, we confirm the robustness of Mind's Eye through ablation studies.
研究动机与目标
- 激发超越纯文本训练、需要具象化推理的动机。
- 引入 Utopia,一个针对基本物理原理的多任务物理对齐基准。
- 提出三组件的 Mind’s Eye 流水线(文本到代码的语言模型、物理仿真器、基础模型)。
- 证明基于仿真的提示能够提升推理准确性,特别是对较小的语言模型,并与现有方法进行比较。
提出的方法
- 开发一个文本到代码的学习器,将问题转换为 MuJoCo 渲染 XML(MCJF)代码。
- 使用 MuJoCo 来仿真物理结果,并将结果转换为提示增强。
- 用问题加上基于仿真的提示提示基础模型,以生成答案。
- 从头开始创建 200k 对文本-代码,以训练 0.3B 和 1.5B 的文本到代码语言模型,预训练在 C4 语料上。
- 使用物理引擎生成真实答案,在六个场景中设 39 个子任务,构建 Utopia 物理对齐基准。
实验结果
研究问题
- RQ1大型语言模型在缺乏物理世界 grounding 的情况下,能否对基本物理进行准确推理?
- RQ2用外部物理仿真来增强语言模型推理是否会在不同模型规模上提升零-shot 和少样本的性能?
- RQ3Mind’s Eye 是否在不同的语言模型规模和提示范式下具有可扩展性和鲁棒性?
主要发现
- Mind’s Eye 在跨尺寸的零-shot 精度平均提升 18.4%,少样本精度提升 34.2%。
- 越小的语言模型经过 Mind’s Eye 增强后可达到甚至超过更大规模的原生语言模型的表现。
- 在该设置下,结合 Mind’s Eye 的 Instruct-GPT 的少样本性能接近近乎完美(68.6% 到 99.1%)。
- Mind’s Eye 在 Utopia 的零SHOT和少SHOT 场景中,优于其他多种推理增强方法(CoT、Zero-shot Reasoner、Self-Consistency、DiVerSe、RAG、T0-pp、Minerva)。
- 正确且一致的仿真结果对 grounding 至关重要;不匹配或错误的仿真会显著降低性能。
- 该方法将领域特定的物理知识与一般推理解耦,使较小的语言模型也能实现有竞争力的表现。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。