arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2305.14825cs.CLcs.AI
收藏

大型语言模型是上下文语义推理者而非符号推理者

Large Language Models are In-Context Semantic Reasoners rather than Symbolic Reasoners

Peking University(北京大学);National Key Laboratory of General Artificial Intelligence, BIGAI(北京通用人工智能研究院通用人工智能国家重点实验室);Tsinghua University(清华大学)

Xiaojuan Tang, Zilong Zheng, Jiaqi Li, Fanxu Meng, Song-Chun Zhu, Yitao Liang, Muhan Zhang

AI总结:

本文通过将语义与推理过程解耦,评估 LLM 的演绎、归纳和溯因能力,证明其上下文推理主要依赖与常识一致的语义而非真正的符号推理。

摘要:

近年来,大型语言模型(LLM)涌现出的少样本推理能力令自然语言和机器学习界感到振奋。尽管已有大量成功应用,但这种上下文能力的底层机制仍不清楚。在本研究中,我们假设语言 token 所习得的语义在推理过程中承担了最主要的工作。与人类的符号推理过程不同,LLM 的语义表示能够在 token 之间建立强连接,从而组成一条表面化的逻辑链。为检验该假设,我们将语义从语言推理过程中解耦,并评估三类推理能力,即演绎、归纳和溯因。我们的发现表明,语义在 LLM 的上下文推理中发挥着至关重要的作用:当语义与常识一致时,LLM 的表现显著更好;而在利用上下文中的新知识解决符号化或反常识推理任务时,它们则会陷入困境。这些令人惊讶的观察结果质疑现代 LLM 是否已经像人类智能那样掌握了归纳、演绎和溯因推理能力,并推动研究去揭示黑盒 LLM 内部存在的魔法。总体而言,我们的分析为语义在开发和评估语言模型推理能力中的作用提供了新视角。代码可在 https://github.com/XiaojuanTang/ICSR 获取。

英文摘要:

The emergent few-shot reasoning capabilities of Large Language Models (LLMs) have excited the natural language and machine learning community over recent years. Despite of numerous successful applications, the underlying mechanism of such in-context capabilities still remains unclear. In this work, we hypothesize that the learned \textit{semantics} of language tokens do the most heavy lifting during the reasoning process. Different from human's symbolic reasoning process, the semantic representations of LLMs could create strong connections among tokens, thus composing a superficial logical chain. To test our hypothesis, we decouple semantics from the language reasoning process and evaluate three kinds of reasoning abilities, i.e., deduction, induction and abduction. Our findings reveal that semantics play a vital role in LLMs' in-context reasoning -- LLMs perform significantly better when semantics are consistent with commonsense but struggle to solve symbolic or counter-commonsense reasoning tasks by leveraging in-context new knowledge. The surprising observations question whether modern LLMs have mastered the inductive, deductive and abductive reasoning abilities as in human intelligence, and motivate research on unveiling the magic existing within the black-box LLMs. On the whole, our analysis provides a novel perspective on the role of semantics in developing and evaluating language models' reasoning abilities. Code is available at {\url{https://github.com/XiaojuanTang/ICSR}}.

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

↑