TL;DR
Instead of asking which training documents caused a language model’s output, this paper asks the inverse: which outputs cannot be attributed to the pretraining corpus at all? By framing generation novelty as un-attributability and evaluating it with a scalable semantic retrieval pipeline, the authors reveal that instruction tuning significantly boosts output novelty and that smaller models actually generate more novel text than larger ones.
What Problem Does This Paper Address?
Traditional training-data attribution (TDA) methods try to trace an LLM’s output back to specific pretraining documents. However, causal influence methods (like leave-one-out influence functions) are far too computationally expensive to run over trillion-token datasets. Meanwhile, scalable "factual attribution" approaches rely on exact lexical or $n$-gram matching, which miss semantic reuse, paraphrases, and longer-span derivations.
Because surface-level metrics fail when phrasing changes, we lack a principled, scalable way to determine whether a model is genuinely generalizing or merely paraphrasing its training data. This paper addresses that gap by defining and measuring semantic novelty as un-attributability: an output is novel if no semantically equivalent context exists in the pretraining corpus.
Methods
The authors introduce a model-agnostic, two-stage retrieval pipeline to search full pretraining corpora for semantic matches:
- Stage 1 (Coarse Retrieval): The pretraining corpus is divided into 512-token chunks (with a 50-token overlap) and embedded using GIST embeddings. Candidate passages are indexed in FAISS using cosine similarity. Given a generation query $q$, the top-$n$ ($n = 100$) nearest chunks are retrieved.
- Stage 2 (Fine-Grained Reranking): Both the generation and retrieved candidates are chunked across multiple sequence lengths ($k \in \{50, 100, \dots, 500\}$ tokens) and reranked using ColBERTv2’s late-interaction token embeddings.
- Calibrated Baseline Normalization: Raw ColBERT scores scale with query length and lack an absolute anchor. The authors normalize scores by query length and compare them against a human-written baseline of equivalent length and domain. The resulting relative score $N^{(k)}$ indicates novelty:
- $N^{(k)} > 0$: The output is more similar to the corpus than human text is (higher overlap / lower novelty).
- $N^{(k)} < 0$: The output is less attributable to the corpus than human writing (higher novelty).
Datasets
- Pretraining Corpora: Evaluated against the full pretraining corpora of the open SmolLM and SmolLM2 model families (primarily FineWeb-Edu subsets).
- Human Baselines: A 1,210-document subset of Dolma (specifically Reddit and PeS2o subsets, document lengths 2,500–7,500 tokens), verified to not be in the SmolLM pretraining mixture.
- Evaluation Benchmarks:
- GSM8K: Math reasoning (evaluated on correct answers; reference targets serve as the baseline).
- TruthfulQA: Factual reasoning (evaluated on correct answers; reference targets serve as baseline).
- OpenRewriteEval: Open-ended text rewriting (evaluated on outputs with ROUGE-L $\ge 0.25$; Dolma serves as baseline).
Key Insights and Ideas
- $N$-gram overlap underestimates memorization: While $n$-gram matching drops to zero overlap for long or lightly paraphrased sequences, embedding similarity reveals that models draw on training contexts across much longer spans than lexical metrics suggest.
- Smaller models are more novel than larger models: Across lengths in SmolLM2, the 360M models produce outputs less attributable to pretraining data than the 1.7B models. This suggests larger parameter capacities lead to increased semantic memorization.
- Instruction tuning drives compositional novelty: Instruction tuning does not simply modify tone or conversational formatting—it systematically increases semantic novelty. On benchmarks like TruthfulQA, instruction-tuned models regularly generate correct answers that are more novel than human-written references.
- Prompting anchors novelty: Unprompted generations closely follow pretraining probability distributions (lower novelty, especially for short chunk sizes). Providing 1,000 tokens of context constrains the topical space and immediately pushes output novelty toward human levels.
Key Results
- Context vs. Unprompted: In SmolLM/SmolLM2, unprompted generations start with high corpus similarity at 50 tokens (up to 10–15% higher than human baselines) and gradually become more novel as generation length increases. With prompt context, generations immediately reach or exceed human-level novelty ($N^{(k)} \approx 0$ to $-0.05$).
- Benchmark Novelty by Domain:
- GSM8K: Scores hug the baseline ($N^{(k)} \approx 0$) because single-solution arithmetic constrains output variation.
- TruthfulQA: Base models stick close to or above pretraining similarity (e.g., SmolLM2-1.7B-Base exhibits relative similarity up to $+3.88$), whereas instruction-tuned variants generate novel explanations with negative relative scores (e.g., SmolLM2-1.7B-Instruct scores $-0.49$).
- Efficiency & Verification: Validation tests showed $n = 100$ initial FAISS candidates is sufficient; candidates ranked beyond top-20 in Stage 1 rarely get promoted to rank 0 by ColBERTv2.
Limitations and Future Work
- Embedding Model Biases: The test relies on the representational fidelity of GIST and ColBERTv2; systematic blind spots in these embedders could cause false negatives or false positives.
- Storage and Compute Overhead: While vastly cheaper than gradient unrolling or influence functions, indexing pretraining sets at scale is storage-heavy (~20 TB of embeddings and index artifacts in this study).
- Factual vs. Causal Attribution: The framework identifies semantic absence in data, but cannot distinguish between true zero-shot reasoning and multi-document composition driven by causal training weights.
- Corpus Access: The technique strictly requires open, accessible pretraining corpora, currently limiting its application to open-weights models with published data.
Summary updated