[Paper Review] Speak, Memory: An Archaeology of Books Known to ChatGPT/GPT-4
The paper uses a name cloze membership inference to detect books memorized by ChatGPT and GPT-4, showing memorization correlates with web frequency and biases downstream tasks; it argues for open models with known training data to ensure validity in cultural analytics.
In this work, we carry out a data archaeology to infer books that are known to ChatGPT and GPT-4 using a name cloze membership inference query. We find that OpenAI models have memorized a wide collection of copyrighted materials, and that the degree of memorization is tied to the frequency with which passages of those books appear on the web. The ability of these models to memorize an unknown set of books complicates assessments of measurement validity for cultural analytics by contaminating test data; we show that models perform much better on memorized books than on non-memorized books for downstream tasks. We argue that this supports a case for open models whose training data is known.
Motivation & Objective
- Motivate study of what books are memorized by large language models and why memorization matters for cultural analytics.
- Develop a dataset and task (name cloze) to infer memorized books from GPT-4 and ChatGPT outputs.
- Quantify how memorization correlates with web prevalence and how it affects downstream tasks.
- Advocate for open training data to improve validity and reproducibility in model-assisted literary analysis.
Proposed method
- Formulate a hard name cloze task: predict a single-token proper name in passages 40–60 tokens with no other named entities.
- Assemble evaluation data from 571 fiction works across five sources (LitBank, Pulitzer nominees, bestsellers, Black authors, Global Anglophone, genre).
- Extract 100 passages per book using BookNLP and apply a fixed prompt to elicit a single name in XML format.
- Run the prompt through ChatGPT (gpt-3.5-turbo) and GPT-4, recording name cloze accuracy per book.
- Perform baseline comparisons with BERT and analyze memorization via error analysis and correlation with web prevalence (Google/Bing/C4/Pile).
- Evaluate downstream impact by predicting year of first publication and narrative time on passages, comparing top vs bottom memorized books.
Experimental results
Research questions
- RQ1Which books are memorized by OpenAI models (GPT-4 and ChatGPT) as measured by a name cloze task?
- RQ2How does memorization vary by book category and popularity on the web?
- RQ3Does memorization of books affect downstream literary analytics tasks such as dating a work or estimating narrative time?
- RQ4What are the implications for data contamination, evaluation validity, and the case for open training data?
Key findings
- GPT-4 and ChatGPT memorize a wide collection of in-copyright books, with stronger memorization for science fiction/fantasy and bestsellers.
- Memorization correlates with the book’s presence on the web across Google, Bing, C4, and Pile sources, especially for pre-1928 public-domain texts.
- BERT shows near-zero memorization except for Fifty Shades of Grey, implying training data influence varies by model and corpus.
- Memorization leads to better downstream performance on memorized books for tasks like predicting year of first publication and narrative time, indicating test data contamination risk.
- Disparities in memorization imply biases in cultural analytics results, reinforcing the need for open models with known training data.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.