arXiv:2411.16353cs.CLcs.AI2024-11被引 10

研究大模型如何在无思维链情况下进行两跳推理,发现其具备潜在推理能力。

Lessons from Studying Two-Hop Latent Reasoning

  • 用合成事实训练模型,排除记忆和捷径影响
  • 纯合成事实下推理失败,混合自然与合成事实时成功
  • 提醒研究者避免误判成功或失败的根源

大型语言模型可通过思维链(CoT)外化推理过程,可能实现对智能体的监督。以往研究表明,无CoT时模型在两跳问答任务上表现不佳。若此为根本局限,则意味着许多复杂代理任务也需依赖CoT。本文以两跳问答为案例,探究大模型的隐式推理能力。通过引入可控实验设置,使用合成事实对Llama 3 8B和GPT-4o等模型进行微调,并测试其两跳推理表现。合成事实可排除记忆和推理捷径的影响。结果表明:模型无法组合两个合成事实,但当一个事实为合成、另一个为自然时能成功推理。这证明大模型具备明确的隐式两跳推理能力,但其随模型规模的变化规律尚不清晰。最后强调:研究大模型隐式推理时,必须警惕虚假成功(源于记忆或捷径)和虚假失败(源于脱离实际训练环境的实验设计)。

原文摘要 · Abstract (English)

Large language models can use chain-of-thought (CoT) to externalize reasoning, potentially enabling oversight of capable LLM agents. Prior work has shown that models struggle at two-hop question-answering without CoT. This capability is so basic that if it was a fundamental limitation, it would imply that many complex agentic tasks would similarly require CoT. We investigate LLM latent reasoning capabilities using two-hop question answering as a case study. Previous work on the gap between latent and externalized two-hop reasoning produced mixed evidence with inconclusive results. In this paper, we introduce a controlled setting for investigating two-hop reasoning in LLMs, where a positive result provides definitive evidence for latent reasoning. We fine-tune LLMs (including Llama 3 8B and GPT-4o) on synthetic facts and test two-hop reasoning over these facts. By using synthetic facts, we rule out memorization and reasoning shortcuts as explanations for two-hop performance. We observe a nuanced picture: Models fail to compose two synthetic facts, but can succeed when one fact is synthetic and the other is natural. These results demonstrate that LLMs are undeniably capable of latent two-hop reasoning, although it remains unclear how this ability scales with model size. Finally, we highlight a lesson for researchers studying LLM reasoning: when drawing conclusions about LLM latent reasoning, one must be careful to avoid both spurious successes (that stem from memorization and reasoning shortcuts) and spurious failures (that may stem from artificial experimental setups, divorced from training setups of frontier LLMs).

大模型推理隐式推理两跳问答

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