Beyond Public Access in LLM Pre-Training Data
Organizations: AI Disclosures Project, Code for Science and Society · O’Reilly Media · Institute for Innovation and Public Purpose, University College London
Abstract
Using a legally obtained dataset of 34 copyrighted O'Reilly Media books (13,962 paragraphs), we apply the DE-COP membership inference attack to test whether OpenAI models show recognition of non-public (pay-walled) content they were not licensed to train on. Our main contribution is examining non-public books, which allows us to consider potential access violations and not just training inclusion. Our results suggest that GPT-4o, OpenAI's more recent and capable model in our sample, exhibits patterns consistent with recognition of non-public books, with an AUROC score of 0.82 (95% bootstrapped CI: 0.60-0.96) -- where above 50% is better than random chance. GPT-3.5 Turbo (trained two years prior) and the smaller GPT-4o Mini both score near chance recognition on non-public data (0.54 and 0.56, respectively). Results are robust to independent paraphrasers (Gemma and Qwen) and leave-one-book-out sensitivity analyses. We also test both GPT-4o and GPT-4o mini, with the same October 2023 training cutoff date, to ensure the model is not simply identifying language shifts over time. These findings support disclosure requirements for pre-training data provenance and formal licensing markets for training content. Results remain preliminary given the small book sample, possible contamination of post-cutoff controls, and differences across models in size, architecture, and training composition.
Figures & tables
| Model | Data-Split | Sample Size (n) | Average Word Count |
| GPT-4o | Public | 1,965 | 112 |
| Non-Public | 8,997 | 113 | |
| Potentially In-Dataset | 8,985 | 113 | |
| Out-of-Dataset | 1,977 | 110 | |
| GPT-4o Mini | Public | 1,968 | 112 |
| Non-Public | 9,005 | 113 |
| Model | Total Paragraphs | Non-Public | Public | Books |
| GPT-4o | 10,962 | 8,997 | 1,965 | 24 |
| GPT-4o Mini | 10,973 | 9,005 | 1,968 | 24 |
| GPT-3.5 Turbo | 8,100 | 6,171 | 1,929 | 26 |
Appendix figures & tables12 assets
Supplementary material from the paper’s appendix.
Appendix
| Title | Date | GPT-3.5 Turbo Paragraph Count | GPT-4o Mini Paragraph Count | GPT-4o Paragraph Count |
|---|---|---|---|---|
| 97 Things Every Information Security Professional Should Know | 2021-09-14 | — | 315 | 314 |
| AI-Powered Business Intelligence | 2022-06-10 | 239 | 397 | 396 |
| Advancing into Analytics | 2021-04-18 | — | 157 | 157 |
| Applied Machine Learning and AI for Engineers | 2022-11-10 | 329 | 353 | 353 |
| Azure Cookbook | 2023-06-29 | 42 | — | — |
| Building Green Software | 2024-03-11 | 226 | 416 | 414 |
| Public Split | Non-Public Split | ||
| Phrase | Occurrences | Phrase | Occurrences |
| in this chapter | 138 | as well as | 455 |
| as well as | 115 | one of the | 449 |
| one of the | 99 | be able to | 444 |
| be able to | 89 | the number of | 436 |
| a lot of | 85 | you want to | 399 |
| GPT-4o | GPT-4o Mini | GPT-3.5 Turbo | |
| All Paragraphs | |||
| Papers Method for AUROC (Binary) | 0.79 | 0.61 | 0.65 |
| AUROC on Book Level | 0.79 | 0.56 | 0.58 |
| AUROC on Paragraph Level | 0.63 | 0.49 | 0.50 |
| Balanced AUROC Mean Using Papers Method | 0.82 | 0.65 | 0.68 |
| Balanced AUROC Mean on Book Level | 0.81 | 0.56 | 0.60 |
| Model | Data-Split | Book Level AUROC |
| GPT-4o | All | 0.79 (0.53, 0.96) |
| Public | 0.64 (0.36, 0.93) | |
| Non-Public | 0.82 (0.60, 0.96) | |
| GPT-4o Mini | All | 0.56 (0.25, 0.84) |
| Public | 0.55 (0.20, 0.84) | |
| Non-Public | 0.56 (0.28, 0.83) |
| Model | Data-Split | Paragraph Level AUROC |
| GPT-4o | All | 0.63 (0.62, 0.65) |
| Public | 0.60 (0.57, 0.63) | |
| Non-Public | 0.64 (0.63, 0.66) | |
| GPT-4o Mini | All | 0.49 (0.48, 0.51) |
| Public | 0.48 (0.45, 0.51) | |
| Non-Public | 0.50 (0.48, 0.51) |
| Model | Non-Public AUROC | Public AUROC | Difference | 95% CI | P-value |
| GPT-4o | 0.82 | 0.65 | 0.18 | (0.02, 0.38) | 0.04 |
| GPT-4o Mini | 0.56 | 0.55 | 0.02 | ( , 0.22) | 0.87 |
| GPT-3.5 Turbo | 0.54 | 0.64 | ( , 0.14) | 0.46 |
| Target Model | Claude 3.5 Sonnet (original) | Gemma 4 26B | Qwen 3.5 9B | Paragraphs |
| GPT-4o | 0.74 | 0.85 | 0.81 | 960 |
| GPT-4o Mini | 0.51 | 0.61 | 0.68 | 960 |
| GPT-3.5 Turbo | 0.43 | 0.55 | 0.55 | 759 |
| Model | Last Public | First Private | Diff. | 95% CI | P-value | Pairs |
| GPT-4o | 0.80 | 0.74 | ( , 0.11) | 0.55 | 281 | |
| GPT-4o Mini | 0.79 | 0.63 | ( , 0.11) | 0.28 | 282 | |
| GPT-3.5 Turbo | 0.44 | 0.27 | ( , 0.04) | 0.11 | 225 |
| Model | Ch. 4 Public | Ch. 3/5 Private | Diff. | 95% CI | P-value | Books |
| GPT-4o | 0.57 | 0.67 | 0.11 | ( , 0.35) | 0.39 | 24 |
| GPT-4o Mini | 0.44 | 0.43 | ( , 0.19) | 0.97 | 24 | |
| GPT-3.5 Turbo | 0.46 | 0.59 | 0.13 | ( , 0.45) | 0.42 | 25 |
Privacy Leakage in Language Models
Privacy leakage in language models concerns how models expose training data, infer sensitive traits, or transmit private context through outputs and internal channels.
See all 296 papers