arXiv:2508.18098cs.CLcs.LG2025-08被引 1

提出可复现的检测方法,发现大模型有时规划、有时即兴。

Detecting and Characterizing Planning in Language Models

  • 用因果标准构建半自动化标注流程,区分规划与即兴生成。
  • Gemma-2-2B在代码生成中交替使用规划与即兴,非普遍行为。
  • 指令微调优化已有规划能力,不创造新规划行为。

现代大语言模型在多步推理任务中表现优异。有研究指出,这些模型可能具备规划能力——提前选定未来目标词,并生成导向该目标的中间词元,而非逐词即兴生成。然而,现有研究假设固定的规划视野,且常局限于单一提示或狭窄领域。为在不同模型和任务中区分规划与即兴行为,本文提出形式化且因果基础的规划检测标准,并将其操作化为半自动化标注流程。我们在MBPP代码生成基准和诗歌生成任务上对base版与指令微调版Gemma-2-2B模型进行测试,后者在诗歌生成任务中曾被证实具有规划能力。结果表明,规划并非普遍存在:与Claude 3.5 Haiku不同,Gemma-2-2B在相同诗歌任务中通过即兴完成;在MBPP中,其在同一类任务甚至连续词元预测中频繁切换规划与即兴模式。此外,指令微调仅精炼了基线模型原有的规划行为,而非从零创建。这些发现为大模型规划机制的可复现、可扩展研究奠定了基础。

原文摘要 · Abstract (English)

Modern large language models (LLMs) have demonstrated impressive performance across a wide range of multi-step reasoning tasks. Recent work suggests that LLMs may perform planning - selecting a future target token in advance and generating intermediate tokens that lead towards it - rather than merely improvising one token at a time. However, existing studies assume fixed planning horizons and often focus on single prompts or narrow domains. To distinguish planning from improvisation across models and tasks, we present formal and causally grounded criteria for detecting planning and operationalize them as a semi-automated annotation pipeline. We apply this pipeline to both base and instruction-tuned Gemma-2-2B models on the MBPP code generation benchmark and a poem generation task where Claude 3.5 Haiku was previously shown to plan. Our findings show that planning is not universal: unlike Haiku, Gemma-2-2B solves the same poem generation task through improvisation, and on MBPP it switches between planning and improvisation across similar tasks and even successive token predictions. We further show that instruction tuning refines existing planning behaviors in the base model rather than creating them from scratch. Together, these studies provide a reproducible and scalable foundation for mechanistic studies of planning in LLMs.

大模型规划行为机制分析

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。