arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.13858cs.CL
收藏

大语言模型中的分布推理:多跳推理中的并行推理过程

Distributional reasoning in LLMs: Parallel reasoning processes in multi-hop reasoning

The Hebrew University of Jerusalem(耶路撒冷希伯来大学);Columbia University(哥伦比亚大学)

Yuval Shalev, Amir Feder, Ariel Goldstein

AI总结:

该研究提出一种可解释的分析方法,发现LLMs多跳推理的预测过程可通过语义空间线性变换建模,中间层存在代表潜在中间答案的嵌入与并行推理路径,为理解LLMs推理机制和认知建模提供新见解。

摘要:

大语言模型(LLMs)已展现出执行被认为需要思维过程的任务的惊人能力。当模型没有记录显式思维过程时,人们很难理解其隐藏层内发生的过程,也难以确定这些过程是否可被称为推理。我们提出了一种新颖且可解释的分析方法,用于研究LLMs内部的多跳推理过程。我们证明,组合推理问题的预测过程可以通过两个语义类别空间之间的简单线性变换来建模。我们发现,在推理过程中,网络的中间层会生成高度可解释的嵌入,这些嵌入代表了多跳问题的一组潜在中间答案。我们通过统计分析表明,模型输出中会激活对应的令牌子集,这意味着存在并行推理路径。即使在模型缺乏解决任务所需知识的情况下,这些观察结果依然成立。我们的发现有助于揭示LLMs解决推理任务所采用的策略,为人工智能中可能涌现的思维过程类型提供见解。最后,我们还讨论了这些结果在认知建模方面的意义。

英文摘要:

Large language models (LLMs) have shown an impressive ability to perform tasks believed to require thought processes. When the model does not document an explicit thought process, it becomes difficult to understand the processes occurring within its hidden layers and to determine if these processes can be referred to as reasoning. We introduce a novel and interpretable analysis of internal multi-hop reasoning processes in LLMs. We demonstrate that the prediction process for compositional reasoning questions can be modeled using a simple linear transformation between two semantic category spaces. We show that during inference, the middle layers of the network generate highly interpretable embeddings that represent a set of potential intermediate answers for the multi-hop question. We use statistical analyses to show that a corresponding subset of tokens is activated in the model's output, implying the existence of parallel reasoning paths. These observations hold true even when the model lacks the necessary knowledge to solve the task. Our findings can help uncover the strategies that LLMs use to solve reasoning tasks, offering insights into the types of thought processes that can emerge from artificial intelligence. Finally, we also discuss the implication of cognitive modeling of these results.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑