Physics of Language Models: Part 3.2, Knowledge Manipulation

Zeyuan Allen-Zhu, Yuanzhi Li
9/1/2023

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{allenzhu2023physics,
  title  = {Physics of Language Models: Part 3.2, Knowledge Manipulation},
  author = {Zeyuan Allen-Zhu and Yuanzhi Li},
  year   = {2023},
  eprint = {2309.14402},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2309.14402},
  journal = {ICLR 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2309.14402.svg)](https://codeofpaper.com/paper/2309.14402)

Discussion