语言模型的物理学:第3.2部分,知识操纵
Physics of Language Models: Part 3.2, Knowledge Manipulation
AI总结:
本文通过受控合成实验揭示语言模型在知识检索上表现优异,但在分类、比较和逆向搜索等知识操纵任务上存在固有缺陷,即使知识存储完美且模型规模足够,该发现同样适用于GPT-4,并催生区分人类与AI的图灵测试。
摘要:
语言模型能够存储大量事实知识,但它们在后续任务中(例如通过指令微调)灵活运用这些知识的能力仍然存疑。本文研究了四种基本的知识操纵任务:检索(例如,“人物A的属性X是什么?”)、分类(例如,“A的属性X是偶数还是奇数?”)、比较(例如,“在属性X上,A是否大于B?”)以及逆向搜索(例如,“哪个人的属性X等于T?”)。我们表明,语言模型在知识检索方面表现出色,但在最简单的分类或比较任务上却表现挣扎,除非在训练和推理过程中都采用思维链(CoTs)。此外,它们在逆向知识搜索上的表现几乎为0%,无论提示如何。我们的主要贡献是一项受控的合成实验,该实验确认了这些弱点固有于语言模型:即使知识被完美存储在模型中,且训练充分、模型规模足够,它们也无法高效地操纵来自预训练数据的知识。我们的发现同样适用于现代预训练语言模型,如GPT-4,从而催生了许多图灵测试,用以区分人类与当代人工智能。
英文摘要:
Language models can store vast factual knowledge, yet their ability to flexibly use this knowledge for downstream tasks (e.g., via instruction finetuning) remains questionable. This paper investigates four fundamental knowledge manipulation tasks: retrieval (e.g., "What is person A's attribute X?"), classification (e.g., "Is A's attribute X even or odd?"), comparison (e.g., "Is A greater than B in attribute X?"), and inverse search (e.g., "Which person's attribute X equals T?"). We show that language models excel in knowledge retrieval but struggle even in the simplest classification or comparison tasks unless Chain of Thoughts (CoTs) are employed during both training and inference. Moreover, their performance in inverse knowledge search is virtually 0%, regardless of the prompts. Our primary contribution is a controlled, synthetic experiment that confirms these weaknesses are inherent to language models: they cannot efficiently manipulate knowledge from pre-training data, even when such knowledge is perfectly stored in the models, despite adequate training and sufficient model size. Our findings also apply to modern pretrained language models such as GPT-4, thus giving rise to many Turing tests to distinguish Humans from contemporary AIs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。