FictionalQA: A Dataset for Studying Memorization and Knowledge Acquisition

John Kirchenbauer, Natjanan Mongkolsupawan, Yuxin Wen, Tom Goldstein, Daphne Ippolito

TL;DR

Researchers have introduced FictionalQA, a "cleanroom" dataset of entirely synthetic, fictional events designed to study how Large Language Models (LLMs) distinguish between verbatim memorization (repeating text word-for-word) and factual acquisition (learning the underlying information). Their findings suggest that training on diverse, natural-sounding documents actually helps models learn facts better than training on structured, succinct lists of data.

The Contamination Problem

We know LLMs are incredible at two things: memorizing long strings of text (verbatim memorization) and answering questions about the world (factual acquisition). However, studying the boundary between these two is notoriously difficult.

If you train a model on Wikipedia and it correctly answers "Why do cats see well in the dark?", did it "learn" the biological fact, or did it just memorize a specific paragraph? Because real-world facts are ubiquitous in pre-training data, researchers face a "contamination" problem—it is nearly impossible to find a fact the model hasn't seen before. This paper addresses this by creating a world of "fictional facts" that definitely do not exist in any model's prior training, allowing for a controlled study of how knowledge is actually internalized.

Methods: Building a Fictional World

To create this uncontaminated dataset, the authors developed a multi-stage synthetic data generation pipeline using GPT-4o:

The FictionalQA data generation pipeline, moving from seed events to structured fictsheets, diverse fictional documents, and finally Q&A pairs.
  1. Seed Events: Short premises (e.g., a mysterious overnight greenery in a Texas alley).
  2. Fictsheets: Structured outlines expanding these seeds into detailed "facts" (entities, dates, locations).
  3. Fictional Documents: The "fictsheets" are projected into realistic web-text styles: News articles, Social media feeds, Encyclopedia entries, Corporate manuals, and Blog posts.
  4. Q&A Pairs: Questions derived from these documents, filtered to ensure they are "infeasible" to answer without having seen the fictional data.

To test memorization, they fine-tuned various models (including Llama 3.1/3.2 and Gemma 1/2) on a mixture of 5% fictional data and 95% standard webtext (Dolma v1.6), measuring how well the models could reconstruct the text versus answer questions about the events. TriviaQA was used as a control to ensure fine-tuning on fiction didn't destroy the model's existing real-world knowledge.

Key Insights

  • The "Fictsheet" Paradox: Counter-intuitively, training models on structured, succinct lists of facts (Fictsheets) resulted in the slowest knowledge acquisition. Models learned facts much more effectively when they were embedded in diverse, natural-sounding documents (like news or blogs).
  • Memorization vs. Generalization: Verbatim memorization and factual learning are distinct processes. A model can overfit and memorize a sequence perfectly without necessarily being able to use the facts within that sequence to answer novel questions.
  • Knowledge Leakage: Improvements in question-answering were "leaky." Even when a specific event was held out of the training set, the model's performance on questions about that event improved slightly. This suggests models learn general distributional patterns about how fictional events are described, rather than just "atomic" facts.
  • Model Size Matters: Larger models are significantly better at transferring information from training documents to the Q&A format, even when the total amount of training data is the same.

Key Results: Rapid Overfitting and Accuracy

During training, models exhibited a classic U-shaped validation loss curve. They quickly learned the "style" of the fictional data, but as training continued, they began to verbatim memorize the sequences, causing validation loss on held-out documents to rise.

Training and validation loss curves alongside exact match (EM) memorization rates across different model sizes.

Despite this overfitting, factual acquisition occurred. In 4-way multiple-choice tests, models trained on fictional documents saw accuracy jump from near-chance (25%) to over 50% for the largest models tested (Llama-3.1-8B). Furthermore, high-diversity splits (training on multiple document styles) led to the strongest factual transfer, reinforcing the idea that "seeing a fact in different ways" helps the model internalize it.

Limitations and Future Work

Generating truly diverse fictional data is challenging; LLMs tend to fall into "tropes," and ensuring 100 entirely unique events required highly specific prompting. Additionally, the multiple-choice questions sometimes contained "distractor" answers that were too easy for the model to eliminate based on simple logic, potentially inflating accuracy scores.

While these experiments were conducted on models up to 8B parameters, the dynamics of factual acquisition might change at the "trillion-token" scale of frontier model pre-training. Looking ahead, the authors suggest FictionalQA could serve as a powerful benchmark for Machine Unlearning—testing if a model can truly "forget" a specific fictional fact without losing its general reasoning abilities.

Summary updated

BibTeX
@inproceedings{kirchenbauer2026fictionalqa,
  author = {John Kirchenbauer and Natjanan Mongkolsupawan and Yuxin Wen and Tom Goldstein and Daphne Ippolito},
  title = {{FictionalQA: A Dataset for Studying Memorization and Knowledge Acquisition}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=SUNC1eJGMr},
}
Figure