arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2402.12091cs.CLcs.AI
收藏

大型语言模型是理解逻辑还是仅仅模仿上下文?

Do Large Language Models Understand Logic or Just Mimick Context?

Alibaba Group(阿里巴巴集团);East China Normal University(华东师范大学)

Junbing Yan, Chengyu Wang, Jun Huang, Wei Zhang

AI总结:

本文通过反事实方法替换上下文和修改逻辑概念,发现LLMs并未真正理解逻辑规则,仅靠上下文学习提高正确答案概率,揭示了其逻辑推理局限性并呼吁更鲁棒机制。

摘要:

在过去的几年里,大型语言模型(LLMs)的能力受到了广泛关注,它们在逻辑推理和符号推理等复杂场景中表现异常出色。促成这一进步的一个重要因素是上下文学习和少样本提示的益处。然而,这类模型利用上下文推理取得成功背后的原因尚未得到充分探索。LLMs是理解逻辑规则来进行推断,还是通过从上下文中学习一种概率映射来“猜测”答案?本文通过使用反事实方法替换上下文文本并修改逻辑概念,研究了LLMs在两个逻辑推理数据集上的推理能力。基于我们的分析,发现LLMs并未真正理解逻辑规则;相反,上下文学习仅仅提高了这些模型得出正确答案的可能性。如果改变上下文文本中的某些单词或更改逻辑术语的概念,LLMs的输出可能会受到显著干扰,从而导致反直觉的响应。这项工作为LLMs的局限性提供了关键见解,强调了需要更鲁棒的机制来确保LLMs中可靠的逻辑推理。

英文摘要:

Over the past few years, the abilities of large language models (LLMs) have received extensive attention, which have performed exceptionally well in complicated scenarios such as logical reasoning and symbolic inference. A significant factor contributing to this progress is the benefit of in-context learning and few-shot prompting. However, the reasons behind the success of such models using contextual reasoning have not been fully explored. Do LLMs have understand logical rules to draw inferences, or do they ``guess'' the answers by learning a type of probabilistic mapping through context? This paper investigates the reasoning capabilities of LLMs on two logical reasoning datasets by using counterfactual methods to replace context text and modify logical concepts. Based on our analysis, it is found that LLMs do not truly understand logical rules; rather, in-context learning has simply enhanced the likelihood of these models arriving at the correct answers. If one alters certain words in the context text or changes the concepts of logical terms, the outputs of LLMs can be significantly disrupted, leading to counter-intuitive responses. This work provides critical insights into the limitations of LLMs, underscoring the need for more robust mechanisms to ensure reliable logical reasoning in LLMs.

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

↑