Skip to yearly menu bar Skip to main content


Oral
in
Workshop: The 2nd Workshop on Reliable and Responsible Foundation Models

Extracting memorized pieces of (copyrighted) books from open-weight language models

A. Feder Cooper · Aaron Gokaslan · Ahmed Ahmed · Amy Cyphert · Chris De Sa · Mark Lemley · Daniel Ho · Percy Liang

Keywords: [ copyright ] [ memorization ] [ LLMs ]


Abstract:

Plaintiffs and defendants in copyright lawsuits over generative AI often make sweeping, opposing claims about the extent to which large language models (LLMs) have memorized plaintiffs' protected expression. Drawing on adversarial ML and copyright law, we show that these polarized positions dramatically oversimplify the relationship between memorization and copyright. To do so, we leverage a recent probabilistic extraction technique to extract pieces of the \texttt{books3} dataset from 13 open-weight LLMs. Through numerous experiments, we show that it's possible to extract substantial parts of at least some books from different LLMs. This is evidence that the LLMs have memorized the extracted text; this memorized content is copied inside the model parameters. But the results are complicated: the extent of memorization varies both by model and by book. With our specific experiments, we find that the largest LLMs don't memorize most books---either in whole or in part. However, we also find that \textsc{Llama 3.1 70B} memorizes some books, like \emph{Harry Potter} and \emph{1984}, almost entirely. We discuss why our results have significant implications for copyright cases, though not ones that unambiguously favor either side.

Chat is not available.