Manuscript Offprint
arXiv:2610.41732From Training Exposure to Membership Evidence: A Controlled Study of OLMo 2
Ali Banaei, Muhammad Shahab Shahzad, Gerald Q. Maguire Jr., Marco Chiesa, Dejan Kostić
KTH Royal Institute of Technology
Stockholm, Sweden
{alibma, mssh, maguire, mchiesa, dmk}@kth.se
Abstract—Whether a language model was trained on a document matters for copyright, privacy, and benchmark contamination. Yet most membership-inference (MI) evaluations on language models collect members and non-members after the fact, so success may reflect distribution shift and failure is inconclusive. We re-ran OLMo 2 1B's official 50-billion-token mid-training stage, replacing selected training chunks with documents from 7814 pairs matched on domain and difficulty. For each pair, a coin flip determined which document was inserted and which was held out. The run released by the Allen Institute for AI (AI2) from the same seed saw identical data everywhere else and serves as the counterfactual. One exposure raises a previously unseen document's likelihood on average but rarely identifies it. Using the counterfactual as reference, the reference ratio has an area under the ROC curve (AUC) of 0.767 but, with one threshold across domains, catches 3.8 % of members at a 1 % false-positive rate (FPR). In contrast, 13 matched pairs give a paired test 80 % power at the 5 % level to detect training on a collection, given same-domain non-members and a close reference. A reference trained with another seed recovers 92% of the counterfactual's AUC advantage over chance, whereas reference-free attacks stay within 0.07 of chance when pooled over domains. The full official post-training recipe, re-run on both models, leaves 89 % of the average effect. Even with a closely matched reference, substantial document-level variability limits individual membership inference. We will release the checkpoints, per-token log-probabilities, and the evaluation documents ; the code is available at https://github.com/ali-bana/OLMo-Twin.
Index Terms—membership inference, training-data provenance, memorization, language models, privacy auditing
1. Introduction
Whether a specific document was used to train a language model has important implications for copyright and data provenance [1–3], training-data transparency [4], and benchmark contamination [5, 6]. Membership-inference (MI) attacks attempt to answer this question using information obtained from a trained model, often through statistics derived from its token log-probabilities. However, their viability is unsettled: a steady stream of attack methods for language models [7–10] is met by an equally steady line of work arguing that the attacks do not work, or cannot be shown to work, on pretraining-scale models and that the benchmarks on which they appear to work are flawed [11–14].
A central difficulty lies in how these attacks are evaluated. Many existing benchmarks identify members and non-members using training-data cutoffs or document publication dates. These populations can differ in topic, writing style, and other characteristics unrelated to membership. Consequently, an attack may distinguish the two groups without identifying whether a document was actually used for training. Indeed, Das et al. [12] show that classifiers with no access to the target model can outperform reported MI attacks on several published benchmarks. Conversely, poor attack performance does not necessarily imply that training leaves no detectable evidence of membership, but may indicate that the evaluated statistics are unable to recover that evidence. Distinguishing these possibilities requires a setting in which training-data inclusion is known, and its effect on the model can be measured.
Previous work has addressed parts of this problem through different experimental designs. Same-distribution evaluations reduce differences between member and non-member populations [11, 15], while controlled insertion studies establish membership ground truth by introducing known text into training data, including canaries [16], copyright traps [17], watermarked data [18], and randomized insertions of realistic text [19]. Other approaches estimate counterfactual memorization using models trained on different data subsets or information from training checkpoints [20, 21]. These studies leave open important questions: how much does including a real document change a language model trained using an established training recipe, and to what extent can MI attacks exploit that change?
We investigate these questions using the official 50-billion-token mid-training stage of OLMo 2 1B [22]. Starting from the released checkpoint at which this stage begins, we reproduce the seeded training-data order used by the Allen Institute for AI (AI2) and construct a second run in which one document from each of 7814 matched pairs is randomly selected for insertion into the training stream. We use the publicly released same-seed run as our exact counterfactual reference: the training-data sequence is identical except at the substituted positions. By comparing the changes in document likelihood between randomly assigned members and their held-out partners, we estimate the average membership-associated effect under this intervention. We then examine how well existing attacks recover this signal, how the results depend on reference-model quality and document characteristics, and how membership evidence evolves during training and subsequent post-training.
C1. A same-seed reference at the scale of an official training stage. Measuring how much including a document changes a model requires a counterfactual: the same model trained on the same data without that document. Testbeds built for this purpose are often trained at small scale or with simplified setups, and may not capture the training dynamics of real-world recipes. We instead build the counterfactual around a released model: AI2's released mid-training run serves as the control (the twin), and we train only the treated model. OLMo's data order is fixed by a seed, so we can reconstruct it and give the treated model the same chunks in the same order, replacing only those assigned to injected documents (Section 3.1). The control is therefore a run trained with the official recipe, and the two runs see identical training data except at the replaced positions.
C2. Separating membership from document difficulty and domain shifts. MI must isolate training inclusion from intrinsic document difficulty [23, 24] and domain-level likelihood shifts induced by training on related data. To separate these effects, we construct 7814 document pairs—nearly all real text—matched on cohort, length, and pre-treatment difficulty. In each pair, a coin flip assigns one document to injection and the other to holdout. We define a document's gain as its mean per-token log-likelihood difference between the treated model and the twin. Because the held-out partner was never trained on, its domain gain reflects only how the rest of the intervention and the execution differences moved it. The difference between an injected document's gain and its partner's yields its training gain; averaging across pairs isolates membership effects from shared domain shifts. We evaluate thirteen cohorts varying source, length, duplication, timing, and representation (Table 1). Our headline population comprises 4832 verified-unseen single-exposure pairs from arXiv, Wikipedia, and StackExchange, screened against both training stages for -word verbatim overlaps (Section 3.5). While this population yields a within-pair effect of +0.0221 nats/token (Section 5.1), never-injected arXiv documents also gain +0.0421 nats/token — surpassing the within-pair effect (+0.0232) of injected arXiv documents. This domain spillover (Section 5.6) demonstrates that raw model-to-model likelihood differences cannot measure document-specific membership without a matched comparison baseline.
C3. From measurable effects to membership decisions.
Measurable exposure effects do not necessarily translate into reliable MI. We evaluate ranking performance and decisions at low false-positive rate (FPR), including precision and false-discovery screening under specified prevalences, comparing reference-free attacks against attacks using the published checkpoint, an independently seeded run, or the exact counterfactual (Section 2).
On verified-unseen single-exposure documents evaluated against difficulty-matched non-members, pooled reference-free area under the ROC curve (AUC) stays within 0.07 of chance (Section 5.2). Using the exact counterfactual, the reference ratio achieves an AUC of

(b) A collection of documents, one exposure each
Figure 1. One document cannot be decided, but a dozen can. Verified-unseen documents are injected once. (a) TPR at 1% FPR with one threshold across domains, for the four reference regimes of Section 2 (no adversary holds the exact counterfactual); even the exact counterfactual catches 3.8% with the reference ratio and 8.8% with the standardized ratio (see §5.1). (b) AUC when documents are pooled and compared by their mean score: a retrained reference is nearly as good as the counterfactual; at the counterfactual reaches 0.990 and the retrained reference 0.987.
0.767, but its true-positive rate (TPR) at pooled 1% FPR is only 3.8%; token-level standardization raises this to 8.8%. Calibrating thresholds per domain further improves detection to 16.5% and 31.4%, respectively (Section 5.1).
Evidence strengthens considerably when aggregated across documents (Figure 1b). In our paired setup, 13 matched pairs achieve 80% power at the 5% level (Section 5.1), though this assumes access to matched pairs rather than an arbitrary collection audit. Retained references closely match counterfactual performance: an independently seeded run recovers 92% of the counterfactual's AUC advantage over chance (requiring 14 pairs for equal power), while the published checkpoint needs 87 pairs (Section 5.3). These results quantify how inference efficacy hinges on reference choice, calibration, and whether the goal is single-document or collection-level detection.
C4. Duplication, forgetting, and post-training. Membership evidence depends on exposure timing and frequency. Because early documents are seen at a higher learning rate and are followed by more training, a single final checkpoint obscures exposure-time dynamics. We therefore score every evaluation document under 24 step-matched checkpoints of the treated run, the twin and AI2's seed-42069 run. We also carry the treated model and the twin through the official post-training recipe of supervised fine-tuning (SFT), direct preference optimization (DPO), and two stages of reinforcement learning with verifiable rewards (RLVR), with identical data, order, and seeds.
For arXiv papers injected up to 32 times, the effect scales nearly linearly with exposure count (fitted exponent 1.00), with per-document detection catching most members at 1% FPR between four and eight exposures (Section 5.5). Checkpoint trajectories show that early exposure effects decay substantially during training, despite weak timing dependence at the final checkpoint. Documents injected in the first 4000 updates retain 21% of their measured peak at the end of mid-training — an upper bound, as checkpoints lag injections by 495 updates on average (Section 5.4). After post-training, 89 % of the raw within-pair effect and 74 % of the AUC advantage persist at the checkpoint corresponding to the released OLMo 2 1B Instruct (Section 5.7).
Our results reflect one 1B-parameter model (4T-token pretraining) and one mid-training stage, with 0.135 % of tokens replaced; “seen once” denotes a single mid-training injection. While the reference ratio was pre-specified, all other analyses (standardized ratio, domain thresholds, trajectory, precision, collection-level tests, and post-training comparison) were exploratory post-protocol additions. This work complements critiques of observational MI [13, 14] and collection-level dataset inference [25, 26].
Section 2 presents the threat model, Section 3 the experimental design, and Section 4 the measurement methodology. Section 5 reports the results, Section 6 discusses their implications and limitations, and Section 7 reviews related work.
2. Background and Threat Model
Membership inference. An MI attack determines whether a document was used to train a model [27]. For language models, common attacks use token log-probabilities, including loss, zlib-calibrated loss, Min-K%, and Min-K%++ [7–9, 28]. Reference-based attacks instead compare the target model against a model trained without the document, helping account for its intrinsic difficulty [23, 24]. Section 7 reviews these approaches, and Appendix B defines the statistics we evaluate.
Why the evidence is contested. Benchmarks that separate members and non-members by publication date or document source may confuse membership with distribution differences. As Das et al. [12] show on post hoc datasets, simple classifiers without access to the model outperform the best reported attacks. Furthermore, most methods fall somewhere near chance on same-distribution evaluation datasets [11, 15]. These concerns motivate evaluations with randomized membership assignment [13, 14].
Adversary. The adversary holds a document and can obtain token-level log-probabilities from the target model, either through open weights or a suitable application programming interface (API). It may additionally hold a reference model, and the strength of the attack depends on how close that reference is to the counterfactual “same model, trained without ”. We evaluate four reference regimes (in order of increasing access):
Regime 1 No reference. Only the target model.
Regime 2 Published checkpoint. The released checkpoint from which the target’s final training stage began. It might be available to any adversary today, and it has never seen the final stage’s data mixture.
Regime 3 Retrained reference. A model the adversary trains by following the published recipe, differing from the target’s control only in data-order seed. We instantiate it with AI2’s own seed-42069 run of the same stage, whose data paths are identical to the control’s.

Figure 2. The testbed. AI2’s seed-42 run of OLMo 2 1B’s stage-2 mid-training consumes a fixed sequence of 12 212 224 chunks. The treated run consumes the same sequence with 24 081 slots (0.197 %) replaced by copies of injected documents. Each injected document (a blue slot) has a partner matched in length and pre-treatment difficulty that was held out by a coin flip. Both runs save checkpoints every 1 000 updates (24 per run) and both are carried through the official post-training recipe, so every document can be scored under step-matched pairs of models at every stage.
Regime 4 Exact counterfactual. The twin . No adversary has this; it is the strongest reference in this study.
Regime 3 represents a realistic option for an adversary with access to an open training recipe, although reproducing the exact data mixture may be difficult. The exact counterfactual provides the strongest reference in our study but is not available to a real-world adversary. Section 5.3 compares their performance.
Two questions, and the metrics for each. MI addresses two distinct tasks. The document-level question asks whether a specific document was included in training, while the collection-level question asks whether a set of documents was included [25, 26]. The latter allows evidence to be aggregated across documents. Although AUC measures overall member vs. non-member ranking across all thresholds, document-level claims specifically demand TPR at low FPR [24] and positive predictive value at a stated prevalence [29]. We report all three metrics and maintain the distinction between these two questions throughout.
3. A Counterfactual Testbed on an Official Training Run
The testbed has three parts: a treated run that reproduces AI2’s official mid-training stage with documents inserted, a set of injected documents and their matched partners assigned by coin flip, and the measurements taken on both models during training and after post-training. Figure 2 gives the overview; this section explains each part and how it was verified.
3.1. The twin
OLMo 2 1B undergoes a 4-trillion-token pretraining stage followed by 50 billion tokens of mid-training, which anneals the learning rate linearly to zero [22]. The official mid-training stage runs for 23 852 updates, each processing 512 chunks of 4 096 tokens. We start from the released pre-stage checkpoint, including its optimizer state, and follow the official mid-training recipe and seed-42 data order.
Our control is AI2's released seed-42 run (AI2 released the training runs using three random seeds, 42, 666, and 42069). We reconstruct its data order and feed the treated model the same chunks at every position except the planned substitutions. We verify every inserted chunk against a frozen manifest and sample unchanged chunks before training and each resumption. An independent audit after mid-training verifies the data order and the placement of injected chunks. The training-data sequences therefore match outside the substitutions. A separately seeded official run provides an additional reference (Section 5.3), trained on the same data but in a different order.
3.2. Injection mechanics
Injection is a substitution, not an addition: each document copy replaces official training chunks, so both runs process the same number of tokens. A document of tokens occupies consecutive chunk positions, beginning at its assigned target or the next available position. Any unused space in the final chunk is filled with tokens from the official chunk it replaces. All other chunks retain their original contents and order.
Each copy begins at a 4096-token window boundary, matching the contexts used for scoring (Section 4). Naturally packed training documents need not have this alignment, making it a favorable condition for detection. We distribute placement targets across the stage, balancing them by training decile and excluding the first and last 1%. Copies of the same document do not share a batch. In total, 12 414 copies of 7 814 injected documents replace 24 081 chunk positions (0.197 % of positions). The inserted documents contribute 67.3 million tokens, or 0.135 % of the stream. The inserted tokens are unevenly distributed across sources; we examine the resulting domain shifts in Section 5.6.
3.3. Matched pairs assigned by coin flip
Candidates come mainly from arXiv papers, Wikipedia pages, and StackExchange posts. We also include edited versions of previously trained Wikipedia pages and synthetic anchors, described in Section 3.4. Within each cohort and stratum, we group candidates by length quartile, sort them by pre-treatment bits-per-byte under the pre-stage checkpoint, and pair adjacent documents. An independent fair coin then selects one document per pair for injection, while the other is held out. Cohort manipulations, such as exposure count and target length, apply to both partners.
Matching makes the two arms comparable in source, length, and pre-treatment difficulty, while random assignment determines which document is inserted. The consequence is the design's main strength: within a pair, difficulty, topic, register, and length are controlled by construction, and which partner becomes the member is chance. A third arm of 7 053 never-injected documents from the same sources serves as a background.
3.4. Cohorts
Inspired by [30], we construct thirteen cohorts to examine document source, length, exposure count and timing, representation, and novelty (Table 1). Our main verified-unseen single-exposure population contains five cohorts: post-cutoff arXiv papers (M), truncated arXiv prefixes (L), new Wikipedia pages (W), Wikipedia pages absent from the training snapshot (W), and StackExchange posts (S). This population contains 4 832 matched pairs.
Three cohorts inject arXiv papers 2–32 times (D, D32, DB), where cohort DB places its four copies inside a 1 % window of the run. Cohort F injects the LTEX-derived text of a paper while the partner keeps the PDF-derived text. Cohort X injects synthetic anchors — model samples, shuffled text and random tokens — to span the surprisal spectrum. The E cohorts are edited Wikipedia pages whose originals are in both training stages, stratified from 0 % to over 75 % novel words; for these the contrast is re-exposure of known text against known text, not membership against non-membership, and we report them separately.
3.5. Verifying non-membership
Previously seen documents would weaken our member-non-member comparison. For cohorts intended to be unseen, we therefore search the candidates against all 13 components of the released pretraining and mid-training data [22], parts of which derive from Dolma [31]. The exhaustive fingerprint search covers 8.3 TiB and detects verbatim overlaps of at least 40 words. Before training, we remove 156 overlapping candidates and refill their pairs. Shorter or heavily paraphrased overlaps may remain. The edited Wikipedia cohorts are intentionally re-exposed, and the synthetic anchors are not subject to this verification.
3.6. Post-training
We apply the official post-training recipe to both the treated model and , using identical training data, order, and seeds. SFT uses the OLMo 2 variant of the Tülu 3 mixture [22, 32], followed by DPO on the released preference mixture and two stages of RLVR [32] as configured in AI2's release of OLMo 2 1B, the first on math and instruction-following prompts and the second on math prompts only. AI2's released OLMo 2 1B Instruct is step 2000 of its second stage; we report the same step of our runs and the end of the stage. We post-train the control ourselves rather than compare against AI2's published instruction-tuned checkpoint. This maintains matched post-training conditions for measuring how the mid-training intervention persists.
4. Measurement and Estimation
Scoring. Every evaluation document is scored from its stored token IDs — nothing is re-tokenized — in non-overlapping 4096-token windows with no cross-window context, which matches how training saw long documents. We also record at every position the mean and standard deviation (SD) of the log-probability over the vocabulary, which the evaluated attacks require. The post-trained models are scored on raw document text, not wrapped in a chat template, to enable comparisons across training stages. Every checkpoint is scored with the same procedure, token IDs, windows and positions, and the per-document score is the token-weighted mean over all scored positions.
Estimand and estimator. Let denote the mean per-token log-likelihood of document d under model M. We define its gain as the difference between the treated and control models:
For N matched pairs, we estimate the average membership-associated effect using the within-pair contrast:
The held-out partner captures changes that occur without its direct inclusion, including shifts shared by related documents. Random assignment allows the average contrast to estimate the effect of membership under our joint intervention. Matching reduces the influence of document difficulty and shared domain shifts, although these need not cancel exactly within each pair (Section 5.6). This estimate is not the isolated effect of including one document while holding all other training data fixed.
Populations. Unless stated otherwise, results use the 4832 verified-unseen single-exposure pairs defined in Section 3.4. We also report pooled results over 7326 analyzed pairs from the eligible cohorts, including duplication and re-exposure experiments. Cohorts X and F are excluded from pooled estimates and negative sets: X contains synthetic anchors with unstable scores across runs, while F differs in surface form between arms and fails its placebo test (Section 5.8). Including X and F, 7803 pairs remain in the full analyzed dataset after the exclusions for post-training overlap and document length.
Inference. We test the average membership-associated effect using a sign-flip randomization test based on the within-pair coin flips. The test is exact under the sharp null of no effect from assignment. We report Cohen's as a standardized effect size, bootstrap confidence intervals for means and AUC, and rank AUC as a measure of discrimination. For individual-document inference, we report TPR at 1% and 0.1% FPRs. Thresholds are set using held-out partners, either across the full population (the pooled operating point) or separately for each cohort (the cohort-stratified operating point). The latter requires knowledge of the document's domain and suitable matched non-members which an attacker might acquire. We also check the pooled operating point using pair-level cross-fitting. Where the number of negatives is too small to resolve an FPR, we say which order statistic set the threshold. To assess which documents can be identified, we construct candidate pools at stated member prevalences. Each candidate receives a conformal p-value against separate calibration non-members, followed by the Benjamini–Hochberg procedure at level q. The resulting false-discovery rate (FDR) control relies on assumptions about the calibration and candidate non-members [33]. For collection-level inference, sample sizes for 80% power are estimated from the paired with the normal approximation for a one-sided paired test at and checked by resampling pairs from the observed contrasts. Appendix C provides the statistical details.
Attacks evaluated. All statistics are oriented so that higher scores indicate stronger membership evidence, and all are computed from the same per-token files. We evaluate mean log-probability (loss), perplexity, bits-per-byte, the zlib ratio, Min-K% and Min-K%++ at K=20, and a surprise statistic in which is the model's own expected log-probability at each position. Reference-based attacks subtract the same statistic computed under the reference model; for the mean log-probability this difference is a log-likelihood ratio, and we call it the reference ratio, or "ratio" in tables. The pre-specified statistic is the reference ratio; per-cohort numbers use it rather than the best of the variants. We evaluated for the Min-K% family and report K=20; choosing K on half of the pairs and evaluating on the other half changes the pooled AUC by less than 0.001. A further statistic is computed from the same per-token files (Appendix B). The standardized ratio divides a document's reference ratio by the standard error of its per-token differences, with the number of tokens replaced by an effective number from a windowed autocorrelation estimate [34]; it has no tuned parameter. Table 4 compares it with the reference ratio.
5. Evaluation
In this section we address eight questions (Sections 5.1 to 5.8). Unless stated otherwise, every number is a within-pair estimate on verified-unseen documents injected once, measured against the exact counterfactual. Additionally, all confidence intervals (CIs) are 95% CIs.
5.1. Q1: How much signal does one exposure leave, and is it decidable?
The effect exists and is unambiguous in aggregate.
Over the 4832 verified-unseen single-exposure pairs, the within-pair effect is +0.0221 nats/token (standard error 0.0004; bootstrap CI ), with . The injected document has a higher gain than its held-out partner in 85.4% of pairs (Figure 3b). The sign-flip randomization test places the observed mean 40 SDs outside its own null, so is the resolution of the test rather than an estimate. Pooled over the 7326 analyzed pairs of every cohort except F and X, which include the duplication and re-exposure cohorts, the effect is +0.0335 with ; the standardized effect is smaller there because the multi-copy cohorts add between-dose variance, not because the signal is weaker.
It does not support a decision about one document
With the exact counterfactual as reference, AUC is 0.767 (CI [0.759, 0.774]), but with one threshold for the whole population the TPR at 1% false positives is 3.8% (bootstrap CI 2.9–4.8%) and at 0.1% it is 0.19% (Figure 4). Calibrating the threshold on separate pairs through five-fold cross-fitting gives 3.8% at a realized FPR of 1.01%. Combining the ratio with Min-K% improves AUC to 0.816 and the 1% FPR detection rate to 5.0%. The reason is visible in Figure 3b: the contrast distribution is a broad shift of the whole population, with SD 0.0309 versus a mean of +0.0221, rather than a separated subpopulation of exposed documents. Precision also depends on how common members are in the population being screened. At an illustrative prevalence of 0.2%, close to the fraction of training slots replaced here, the positive predictive value
(a) Three arms, all documents

(b) Within-pair, verified-unseen single copy, n=4,832
Figure 3. One exposure moves a document's likelihood by a small, consistent amount. (a) Per-document effect for the three arms over all documents; the never-injected arms are not centered at zero ( 5.6). (b) The within-pair contrast for verified-unseen single-exposure pairs removes that offset: the mean is +0.0221 and 85.4% of pairs are ordered correctly.
no reference (surprise) published checkpoint retrained reference exact counterfactual exact counterfactual, standardized
(a) Full ROC (AUC in legend)

(b) Low-FPR regime (log-log)
Figure 4. No reference regime yields a usable per-document operating point for most documents. Receiver operating characteristic (ROC) curves for the four reference regimes, and for the standardized ratio against the exact counterfactual (blue dotted), on verified-unseen single-exposure pairs, (a) linear and (b) log-log with the 1% FPR line. Standardizing lifts the low-FPR end; the other curves converge on the diagonal below about 0.1% FPR.
at 1% FPR is only 0.8%: more than 99 in 100 flagged documents would be non-members. At 5% prevalence it is 17% and at 50% it is 79% (Figure 6b). Naming individual documents under false-discovery control requires a candidate pool that also contains non-members. We form such pools at stated member prevalences from held-out folds of the pairs, compare every candidate with 3865 non-members of the other folds, and apply the Benjamini–Hochberg procedure at q = 0.05 (Appendix C). With the reference ratio, no member is named at any prevalence from 0.2% to 50%.
A per-document variance estimate helps, at the tail
The reference ratio averages token-level differences, so its precision varies across documents. Longer documents generally provide a more precise average than short posts; token-level noise accounts for 45% of the within-pair variance in the short cohorts (Section 5.8). The standardized ratio divides each document's ratio by its estimated standard error, using an effective token count to account for autocorrelation (Section 4). It has no tuned parameter. Against the exact counterfactual, AUC changes little (0.778 versus 0.767), but TPR at 1% FPR rises from 3.8% to 8.8% (CI 7.3–10.9%; 8.8% with cross-fitted thresholds). At 0.1% FPR, it rises from 0.19% to 2.94%. Under false-discovery control, the gain is real but small: in pools that are half members, the standardized ratio names 54 of the 4832 members on average (21–94 across fold assignments, with 3 non-members named alongside), about 2 at 20% prevalence, and essentially none at 5% or below. The non-members' standardized scores are not centered at
zero (mean +3.2, SD 3.2; the one-sided 1% cutoff under a standard-normal null, z > 2.33, flags 48% of them), because the treated run moved the held-out partners too (Section 5.6); the statistic is a ranking calibrated against the matched non-members, like every other statistic here, and not a p-value. Because standardization scales with , the pooled threshold favors longer documents. Of the 427 members it detects at 1% FPR, 399 are arXiv papers, versus 153 of 186 for the plain ratio. Since pair lengths are matched, this difference comes from the statistic rather than a length mismatch between arms.
A threshold per domain changes the answer for short documents. The pooled threshold is set by the domain whose non-members score highest, which is arXiv (Section 5.6), so members from other domains are held to a bar set by arXiv papers. An adversary who knows a document's domain and holds domain-matched non-members can set one threshold per cohort. At 1% FPR per cohort the TPR weighted by cohort size is 16.5% (bootstrap CI 13.2–19.3%; the per-domain rates are far less stable than the pooled ones because each cohort's threshold rests on a few negatives), but it is 52.0% for StackExchange posts, 12.7% and 8.5% for the two Wikipedia cohorts, and 5.5% and 2.8% for arXiv papers and their prefixes (Table 5). With separate screening within each cohort in pools that are half members, 617 members are named at q = 0.05 (with 17 non-members), 593 of them StackExchange posts, and 48 at 20% prevalence. With the standardized ratio the stratified rate is 31.4% (CI 26.1–35.4%; 12.5% for arXiv papers), and the within-domain screen names 1265 members at 50% prevalence (with 36 non-members), 170 at 20% and 5 at 5%; among arXiv papers it names 48 of 1982 at 50% prevalence and none at 5% or below. With the retrained reference, the stratified rate is 8.2%, and with the published checkpoint 2.8%. Per-document membership inference is therefore not uniformly hard: it fails for most long natural-text documents and succeeds for short, formulaic ones, given a reference close to the counterfactual and non-members from the same domain.
It does support a decision about a collection. The same evidence identifies a set easily. For the within-pair contrast tested against zero with a one-sided paired t-test at , the observed implies that 13 matched pairs give 80% power, and resampling 13 pairs from the observed contrasts rejects in 81% of draws; with the standardized ratio the within-pair is 1.04 and resampling shows that 7 pairs suffice. Pooling independently drawn members against non-members and comparing their mean scores, AUC rises from 0.767 at to 0.949 at and 0.990 at (Figure 6a); with the published checkpoint it reaches 0.771 at and needs 87 pairs for 80% power. These results do not mean that an arbitrary collection of 13 documents can establish membership. The paired test assumes matched non-members, and a weaker reference requires more evidence. As we discuss in Section 6, domain shifts (Section 5.6) do not average away with collection size. The difference between evidence for one document and evidence for a well-matched collection is the central quantitative result of this paper.
5.2. Q2: What do existing attacks recover when difficulty is matched?
Reference-free statistics measure difficulty. Figure 5 and Table 3 give the central measurement. Against matched partners, mean log-probability reaches AUC 0.519, Min-K% 0.527, the zlib ratio 0.517 and bits-per-byte 0.519; the best reference-free statistic, Surprise, reaches 0.566. The bootstrap intervals of several exclude 0.5 — at per arm a margin of 0.02 is detectable — so the honest statement is not that these attacks fail entirely but that they retain a statistically visible and operationally worthless margin: none exceeds 1.6% TPR at 1% FPR. We read this as evidence about what the statistics measure. They rank documents mainly by how surprising they are to the model; members and non-members in a post hoc split differ in surprisingness, matched pairs do not, and when the difficulty axis is removed, little remains. This is consistent with Das et al. [12], who outperform the best reported attacks on post hoc benchmark sets with no model access at all, which shows that members and non-members in such sets differ before any model is consulted.
Position-wise calibration appears more useful than token selection. Min-K%++ reaches 0.559 against Min-K%'s 0.527. The surprise statistic — every token calibrated by the model's own expected log-probability at that position, with no selection of least-likely tokens — reaches 0.566, slightly more. The gain therefore comes from per-position calibration rather than from reading only the hardest tokens, which is a testable claim about Min-K%++ that, to our knowledge, has not previously been isolated. However, the comparison is not conclusive; the intervals overlap and the surprise statistic also drops

Figure 5. Difficulty matching collapses the reference-free statistics we evaluate. AUC of every attack statistic on verified-unseen single-exposure pairs with bootstrap 95% intervals; the dashed line is chance. Pooled over domains, reference-free statistics lie within 0.07 of chance; what a reference buys depends on how close it is to the counterfactual. The standardized ratio changes AUC little; its gain is at low FPR (Table 4).
Min-K%++'s division by the SD. OLMo-Detect [15] reports the opposite ordering on sets matched on quality, date and vocabulary but not on difficulty (Min-K%++ 0.56 against Min-K%'s 0.66, averaged over model sizes and training stages); in our data the gain comes mainly from the arXiv papers of cohort M (0.613 against 0.537; the surprise statistic reaches 0.636 there, the highest reference-free AUC among the single-exposure cohorts), while on StackExchange posts the two are close (0.525 against 0.513). With a reference, the pattern reverses: adding Min-K% to the counterfactual ratio raises AUC from 0.767 to 0.816, while adding Min-K%++ lowers it to 0.665.
Offline LiRA reduces to the ratio; the standardized ratio helps at the tail. The likelihood-ratio attack (LiRA) [24] in its online form needs reference models trained with the document, which no run here provides. Its offline form needs only models trained without the document, but estimates each document's score distribution under them from many such models; with one reference model and a variance shared across documents, offline LiRA on the mean log-likelihood ranks documents exactly as the reference ratio does, so we do not evaluate it separately. On the 4832 verified-unseen single-exposure pairs (Table 4), the standardized ratio raises the TPR at 1% FPR from 3.8% to 8.8% (paired difference +5.0 points, CI [+3.0, +7.0]) at an AUC change of +0.010 [+0.005, +0.015]; with the retrained reference from 3.7% to 8.1% at an AUC change of -0.021; and with the published checkpoint it gains little. Its advantage is at the tail, where the documents whose ratio is large relative to their own token noise sit; the bulk of the ranking, which AUC measures, is governed by the document-level dispersion of Section 5.3, which no per-document variance estimate removes.
5.3. Q3: How good a reference does the adversary need?
The published checkpoint is a weak reference while a retrained reference recovers most of the counterfactual's advantage. Differencing against the pre-stage-2 checkpoint lifts AUC from 0.519 to 0.603 but only to 0.27, so a collection-level test with this reference needs 87 pairs for 80% power. Against AI2's seed-42069 run — the same recipe and the same data mixture as the control, a different random order — the within-pair effect is +0.0221 with and AUC 0.745, versus +0.0221, 0.71, and 0.767 for the exact counterfactual (Table 3). The effect estimate is unchanged; the retrained reference recovers 92% of the counterfactual's advantage over chance; and a collection-level test needs 14 rather than 13 pairs. Figure 7 explains why. On never-injected text, two seeds of the same recipe differ by +0.0001 nats/token on average with SD 0.0075; with both members of a pair carrying that noise, it is about 12% of the variance of the within-pair effect (SD 0.0309). The dispersion an attack must clear is far larger: the treated run moved its never-injected held-out partners by +0.0243 nats/token on average with SD 0.0286. That spread is how unevenly the injection as a whole, together with any hardware nondeterminism we cannot separate from it, moved documents the treated model never saw; a single-document counterfactual would not contain it, and it is what the per-document results of this paper are measured against.
A caveat bounds this result. The seed-42069 run shares the control's exact data mixture rather than one the adversary reconstructed from a paper, so the retrained-reference numbers are themselves an upper bound on that tier. What the regime establishes is that the seed is not the obstacle, not that mixture recovery is free.
5.4. Q4: Is the signal forgotten?
The answer is that most of it is forgotten, and that the end-of-training snapshot cannot show it. We first state what the snapshot says.
The cross-section says nothing is forgotten. Regressing the end-of-training effect on the update at which the copy was placed gives a slope of +0.00036 nats/token per 1 000 updates over the first 90% of the run (bootstrap CI [+0.00023, +0.00052], ): flat to slightly increasing. A document injected at update 2 000 is as detectable at the end as one injected at update 20 000, and the natural reading is that a single exposure is not forgotten over 45 billion subsequent tokens. That reading is wrong, and the cross-section cannot show why, because in it two things are perfectly collinear: a document injected late was both seen recently and seen at a low learning rate.
Along a trajectory the two separate. We scored the whole evaluation set under every checkpoint (one per 1 000 updates) of the treated run, the control and the seed-42069 run (69 checkpoints), and aligned each document to the first checkpoint at or after its own placement. Figure 8a shows the result: every curve is flat at zero until
its copy lands — the last checkpoint before placement is within ±0.0011 nats/token of zero in every window, a placebo the design did not plan — then spikes and decays. Both models consume identical data after the copy, so the decline is not the control catching up on the domain; it is the treated model's trace of the copy being overwritten. Placement time also fixes a document's position in the data mixture, which we cannot separate from the learning rate at exposure. Figure 8b separates the height of the peak from how much of it survives. The peak falls with placement time, from 0.0843 for copies placed before update 4000 to 0.0217 for those placed after 20 000, because the learning rate anneals linearly to zero. The fraction of the peak surviving to the end rises in the opposite direction, from 21% (CI 19–24) to 82%, because less training follows (Figure 8c). Pooled against time since the copy, the effect retains 68% of its peak after 1 000–2 000 updates, 39% after 4 000–6 000 and 19% after 12 000–16 000. The endpoint is nearly flat in placement time only because these two gradients nearly cancel.
Two qualifications apply. Checkpoints are 1 000 updates apart, so the first reading after a copy is on average 495 updates late and the true peak, immediately after the gradient step, is higher; every surviving fraction above is an upper bound on retention. And the cancellation is a property of this learning-rate schedule: under a schedule that anneals differently, the cross-section would not be flat, which is a reason not to extrapolate the “no forgetting” reading beyond runs like this one.
5.5. Q5: How does the signal scale with duplication?
On the matched arXiv cohorts, the average membership effect grows nearly linearly with the number of exposures . A power-law fit gives (CI 0.96–1.04, ). The measured effects are +0.0232, +0.0396, +0.0802, +0.1593, +0.3281, and +0.7258 nats/token for , respectively. We observe no clear saturation over this range. This is consistent with the increased extraction and regeneration rates under duplication reported by Carlini et al. [35] and Kandpal et al. [36], although those studies measure different outcomes. Individual detection improves more slowly because the variation across documents also increases with exposure count. At , Cohen's is 0.61, 0.88, 1.50, and 2.21, while TPR at 1% FPR rises from 6% to 14%, 41%, and 79% (Figure 9). Detection of most members therefore becomes possible between four and eight exposures in this setting. However, precision still depends on member prevalence: at , it is only 13% at 0.2% prevalence, compared with 81% at 5% prevalence. These low-FPR estimates have limited resolution. The duplication cohorts contain approximately 100 pairs per exposure level, so the 1% FPR threshold is determined by only one or two held-out scores. At , it is set by the single largest held-out score. The high detection rates should therefore be interpreted as evidence of strong detectability, rather than precise estimates of performance at 1% FPR.

Figure 6. Set membership is easy; document membership is not. (a) AUC when documents are pooled and compared by their mean score, for three reference regimes. (b) Precision at 1% FPR as a function of the prevalence of members in the candidate pool, at the exact counterfactual's TPR; at a prevalence of 0.2%, about the share of training slots injected here, it is below 1%.

Figure 7. A retrained reference is almost as good as the exact counterfactual, because seed noise is small. Three distributions over verified-unseen documents: the difference between two seeds of the same recipe on never-injected text (seed noise), the difference the injection made to the held-out partners (spillover, §5.6), and the within-pair membership effect; about 1% of the spillover and membership values lie beyond the axis and are not drawn.
5.6. Q6: Do documents the model never saw also move?
The never-injected documents in Figure 3a are not centered at zero: their likelihoods also change between the treated and control models. These shifts are larger than typical seed-to-seed differences (Figure 7) and vary substantially across domains. Never-injected arXiv papers gain +0.0421 nats/token (held-out partners) and +0.0440 (null pool); never-injected Wikipedia pages gain +0.0107, StackExchange posts +0.0066 and the edited-Wikipedia pool +0.0044 (Figure 10). ArXiv received 60.8M of the 67.3M injected tokens, so the largest shift falls on the domain that received the most, but the ordering among the smaller domains does not follow token share — edited Wikipedia received more than plain Wikipedia and moved less — so we do not claim a dose-response for spillover, only its existence and its size. Its size matters more than it looks. An adversary comparing a target against any reference without domain-matched non-members measures membership plus this term, and on arXiv the term (+0.0421) is larger than the membership effect (+0.0232). A population-level claim built on unmatched non-members can therefore be dominated by the fact that the model saw similar documents, not these ones. Within a pair, both documents share a domain, so the term cancels in the within-pair contrast on average; testing against zero instead of against the partner would have inflated our
headline effect by about a factor of two. This spillover is consistent with the finding of Grosse et al. [37] that related training sequences, not only copies, raise a text's likelihood, and with the contribution of fuzzy duplicates to a sequence's membership signal [38], although that work concerns near-copies rather than distinct documents from one domain. The spillover is why matched non-members are not a refinement of the design but its core.
5.7. Q7: Does post-training erase it?
One might expect post-training to erase evidence of earlier training. To test this, we apply the same official post-training recipe (SFT, DPO, and two stages of RLVR), with identical data, order, settings, and seeds, to both the treated and control models. After SFT the within-pair effect is +0.0155 (70% of its mid-training value) and after DPO it is +0.0199 (90%); the standardized effect falls from 0.71 to 0.65 and 0.58, and AUC from 0.767 to 0.731 and 0.708, while the TPR at 1% FPR moves from 3.8% to 3.7% and 4.8% (Table 2). After the two RLVR stages, at the checkpoint corresponding to the released OLMo 2 1B Instruct (step 2000 of the second stage, to which "after RLVR" refers below), the within-pair effect is +0.0196 (89%), with 0.55, AUC 0.697 and TPR 4.7%; at the end of the stage it is +0.0197. RLVR thus leaves the raw effect nearly where DPO left it and lowers AUC by about 0.01. Post-training therefore does not remove the evidence — nine tenths of the raw effect survives the full recipe, 77% of the standardized effect and 74% of the AUC advantage over chance — but on single-exposure documents it does not sharpen it either: the per-pair effect correlates only 0.59 between mid-training and SFT, 0.34 between mid-training and DPO and 0.32 after RLVR, so which documents carry the signal is partly reshuffled. Pooled over all cohorts except F and X, the picture looks different — rises from 0.45 to 0.51 and TPR from 7.3% to 9.2% (0.50 and 9.1% after RLVR) — but that rise is carried by the multi-copy cohorts, whose spread compresses more than their large effects; it is not a property of the single-exposure case. DPO partly reverses SFT's compression. Detectability also falls unevenly across document types: from mid-training to DPO, AUC falls from 0.962 to 0.752 for StackExchange, 0.900 to 0.729 for and 0.950 to 0.754 for the re-exposure cohort E, while arXiv (M) moves from 0.718 to 0.744. After RLVR these four are 0.745, 0.718, 0.739 and 0.737.

Figure 8. Forgetting is large; the annealed learning rate hides it. All panels use verified-unseen single-exposure pairs scored under 24 step-matched checkpoints. (a) The within-pair effect as a function of the checkpoint it is read at, grouped by when the copy was placed; each curve is flat at zero until its own copy lands, then spikes and decays. (b) Aligned to each document's own placement: the peak falls with placement time because the learning rate anneals, the endpoint barely moves, and the last checkpoint before placement is zero. (c) The fraction of the peak surviving to the end of the stage against how much training followed, by placement window and pooled against time since the copy.

Figure 9. Detection lags the effect. True-positive rate at 1% FPR and against the number of copies on the matched arXiv ladder (cohort M at one copy, D at 2–16, D32 at 32); the effect itself grows linearly in . At the 1% FPR threshold is the single largest held-out score, so those points sit at the resolution floor of negatives (40 at ).

Figure 10. Documents in neither model still gain. Mean for never-injected documents by domain — the held-out partners and, except for StackExchange, an independent null pool — with the number of tokens injected in that domain. The domain that received 90% of the injected tokens moves most; the ordering among the small domains does not follow token share.
5.8. Q8: Which documents are attackable, and does length help?
Effect is uniform; detectability is not. Across the real-text single-exposure cohorts, the mean per-token effect lies in a relatively narrow range (+0.0178 to +0.0264 nats/token), yet AUC varies from 0.713 to 0.962

Figure 11. Detectability is governed by the variance of the score, not only by the size of the effect. Single-exposure cohorts: within-pair effect with 95% intervals and, on the right, the AUC against the exact counterfactual, by which the rows are ordered. The two orderings disagree. Re-exposure cohorts (E) are near-duplicates of trained text; F, compared across surface forms, fails its placebo test; X is synthetic.
(Figure 11 and Table 5). StackExchange posts, which are short and often formulaic, reach an AUC of 0.962 and 52.0% TPR at 1% FPR. In contrast, arXiv papers have a comparable average effect (+0.0232) but reach only 0.718 AUC. Thus, average effect size alone does not explain detectability; variation in document scores also matters. The standardized ratio partly addresses this variation by scaling each document's reference ratio by its estimated token-level noise. Its gains at 1% FPR are particularly large for the short Wikipedia cohorts: from 8.5% to 28.5% for , and from 12.7% to 50.8% for . For arXiv papers, the improvement is smaller, from 5.5% to 12.5% (Section 5.1). However, we cannot fully separate intrinsic document variability from the uneven domain shifts caused by the joint intervention and possible execution differences. ArXiv received 90% of the injected tokens and is among the least detectable cohorts, so these shifts may contribute to its poorer detection performance. Previously exposed text behaves differently: re-exposing original Wikipedia content (E0) reaches 0.957 AUC, while edited versions (E) reach 0.950. These high values show that additional exposure to previously seen or closely related text can produce stronger membership evidence than a first exposure to unseen documents.
Two cohorts fail. Cohort F injects LTFEX-derived text while its held-out partner is evaluated in PDF-derived form. The control model alone distinguishes the two arms with an AUC of 0.84, showing that their surface forms are confounded with membership. Its original AUC of 0.627 therefore cannot be interpreted as membership detection. We also rescore both arms in the same representation, using 271 pairs that pass the data audit and have complete scores for both forms. The control model then gives AUC 0.48 for LTFEX and 0.47 for PDF text, consistent with the removal of the original confound. The within-pair effect measured on PDF renderings is 0.35 (CI 0.10–0.53) of that measured on the LTFEX sources. This provides an exploratory estimate of how the effect of training transfers across document representations. Cohort X also requires separate treatment. Its synthetic anchors show a relatively large mean effect (+0.0564) but only 0.645 AUC. Scores for random-token and model-sampled text are unstable across independent runs, producing extreme values that would dominate low-FPR thresholds. We therefore exclude both F and X from pooled negative sets.
Longer documents help where token noise dominates.
The estimated token-sampling component accounts for 17% of the within-pair variance across verified-unseen single-exposure pairs. For arXiv papers, it accounts for only 9%, indicating that variation across documents is the dominant source of uncertainty. For the shorter Wikipedia and StackExchange documents, the share rises to 45%, suggesting that additional tokens could reduce a larger fraction of their score variability. To measure the benefit of additional text, we consider the 1616 pairs in cohort M for which both papers contain at least 4096 tokens. Using only the first 16 tokens gives an AUC of 0.587, which rises to 0.726 when scoring 4096 tokens (paired difference +0.14, CI 0.12–0.16). Scoring the remainder of each paper adds almost nothing (+0.003, CI -0.002–+0.008). The truncated-paper cohort L shows a similar, though less precise, pattern. Its AUC rises from 0.61 at 512 tokens to 0.80 at 4096 tokens, with only 50 pairs per length and 95% intervals of approximately ±0.1. Pooled over all lengths, its performance is comparable to that of full papers (0.713 versus 0.718). These results suggest that additional tokens improve discrimination until token-level noise becomes small relative to variation across documents.
6. Discussion
Two questions, one name. The clearest implication of our measurements is that “membership inference” refers to two questions whose evidence requirements differ by more than an order of magnitude. With the exact counterfactual, AUC is 0.767 and 3.8% of single-exposure documents are caught at 1% FPR with a pooled threshold (8.8% with the standardized ratio), 16.5% (31.4%) with one threshold per domain; the same scores identify a collection of 13 matched pairs with 80% power. Individual membership inference is more effective for short StackExchange posts when domain-matched non-members are available. For long documents, the evidence is much weaker. For example, when half the candidate pool consists of members, the standardized ratio identifies only 48 of 1982 arXiv papers at an FDR level of 0.05, while the plain ratio identifies about 4. When the member prevalence drops to 5% or below, neither identifies any arXiv members. For the rest, the signal is present, but the error rate at any useful threshold is unacceptable for an individual accusation. A claim that a corpus was used is a different matter and is well supported by a few dozen documents. Duplication helps a claimant substantially — works appearing four to eight times cross into testable territory — and post-training is not a defense: after our re-run of the official recipe, the model retains 89% of the effect; forgetting, on the other hand, is real, although under this learning-rate schedule, a document seen early ends the stage no fainter than one seen late. We would therefore propose that papers making document-level claims report the TPR at a low FPR and the precision at a stated prevalence, and that papers reporting only AUC describe their result as collection-level. Both document-level measures come from prior work, the first from Carlini et al. [24] and the second from Jayaraman et al. [29]; our contribution is to put a number on the gap between the two kinds of claim in a setting where the ground truth is known by construction.
What the collection-level result requires. Our collection-level results depend on two important conditions. First, members and non-members must come from comparable populations. The domain-level shifts observed in Section 5.6 can otherwise produce misleading results, and these systematic differences do not disappear when more documents are tested. For example, a collection of 13 never-injected arXiv papers is incorrectly identified as members in more than 99.9% of trials when compared against StackExchange non-members. This shows how differences between domains can be mistaken for evidence of membership. Second, the reference model must be sufficiently close to the counterfactual. With the exact counterfactual, our paired test requires only 13 matched pairs to achieve 80% power. Using the published checkpoint instead increases this requirement to 87 pairs. These findings are also relevant to dataset-inference methods [25, 26], which compare suspected training documents against held-out data. For example, Maini et al. [25] assume that both collections come from the same distribution. Our results reinforce the importance of this assumption and show how reference quality affects the amount of evidence required. However, the collection sizes measured in our controlled experiment should not be interpreted as general requirements for real-world membership audits.
What the negative results do not show. Our reference-free attacks perform close to chance against difficulty-matched non-members. This does not mean that membership evidence is absent: our experiment measures a training effect that these statistics largely fail to recover. Conversely, success on unmatched populations may reflect document difficulty or domain differences rather than membership. Our findings concern mainly single-exposure documents and attacks based on token log-probabilities. The standardized ratio improves detection at low FPR, but most long documents remain difficult to identify. Under our single-reference, shared-variance approximation, offline LiRA [24] reduces to the reference ratio. We do not evaluate attacks using gradients, activations, or additional model queries. Repeated exposure can also substantially improve detection (Figure 9). Finally, the exact counterfactual provides an exceptionally strong reference that real-world adversaries are unlikely to obtain. It represents a near-best-case reference for the evaluated attacks, although it is not a theoretical upper bound on their performance. The choice of statistic still matters: combining the reference ratio with Min-K% improves AUC over the plain ratio (Section 5.2). Our negative results therefore concern the evaluated attacks and conditions, not membership inference in general.
Limitations. We study one IB-parameter model during its 50-billion-token mid-training stage and subsequent post-training. Re-running the preceding 4-trillion-token pretraining stage was beyond our computational budget. Further studies are needed to determine whether our findings hold for larger models, longer training runs, and different learning-rate schedules. We inject 7814 documents jointly, replacing 0.135 % of the training stream. Our estimates therefore concern this joint intervention, not the isolated effect of including one document. Injected documents begin at training-window boundaries, which may favor detectability. Our verification detects verbatim overlaps of at least 40 words, but shorter or heavily paraphrased overlaps may remain. The retrained reference shares the official data mixture and may be stronger than one an adversary could reproduce. Precision depends on member prevalence, while our FDR results require appropriate calibration non-members. Several analyses, including the standardized ratio, domain-specific thresholds, collection-level tests, training trajectories, and post-training comparison, were exploratory. Finally, cohort F's original comparison is confounded by document representation, and a few injections were affected by training-data filtering or displacement (Appendices A and D).
7. Related Work
Attacks, benchmarks, and critiques. Loss-threshold attacks [28] and calibrated variants — zlib [7], Min-K% [8], Min-K%++ [9], ReCaLL [10], and reference models [23, 24, 39–41] — define standard practice. However, observational evaluations frequently confound membership with distribution shift: blind classifiers match reported attacks on uncurated splits [12], and same-distribution benchmarks show performance dropping to near chance [11, 13, 15]. While recent datasets leverage open corpora (CheckMIABench [42], OLMoMIA [43], OLMo-Detect [15]), they lack counterfactual controls. Our testbed provides the randomized, same-data baseline these critiques demand.
Controlled memorization and dynamics. Prior controlled studies rely on synthetic canaries [16], watermarks [18, 44], test contamination [45, 46], or continued-pretraining insertions [47, 48]. Closest to our work, Wei et al. [19] insert passages into models trained from scratch, and Jagielski et al. [49] track example forgetting. We extend this to real documents injected across a complete official mid-training stage with an exact same-seed twin, tracking 24 step-matched checkpoints and the final models through post-training. This characterizes the interaction between decay and learning-rate annealing [50, 51], quantifies domain spillover [37, 38], and establishes that while post-training retains 89% of the exposure signal [52, 53], collection-level audits [25, 26] remain far more statistically tractable than individual document attribution.
Post-training. Prior studies show that aligned chat models can emit memorized pretraining data [52], data-poisoning effects persist through alignment [53], and fine-tuning memorization survives reinforcement learning from human feedback (RLHF) [54]. We evaluate what the official post-training recipe does to membership traces against a byte-matched counterfactual: while 89% of the raw effect survives, the signal is not sharpened for single-exposure documents.
Document-level and collection-level inference. Document-level attacks typically train classifiers on summary features of normalized token probabilities [55], whereas collection-level methods test datasets against held-out splits [25, 26] or synthetic distributions [56], or leverage exchangeability tests for contamination [6]. Our evaluation quantifies the orders-of-magnitude separation between these two objectives within a single controlled experiment: the published-checkpoint tier demonstrates why collection-level audits succeed with moderate sample sizes even when single-document attribution remains statistically intractable.
8. Conclusion
We constructed a randomized, closely matched counterfactual for the complete 50-billion-token mid-training stage of OLMo 2 1B. Our experiment includes 7814 matched document pairs, nearly all real text, with one document per pair randomly selected for injection. By comparing the treated model against AI2's released same-seed run and tracking 24 step-matched checkpoints across three training ladders, we measure how exposure changes document likelihood and whether that change supports membership inference.
Our central finding is that a measurable training effect does not necessarily support reliable individual membership decisions. A single exposure produces an average within-pair effect of +0.0221 nats/token, with 85.4% of pairs correctly ordered and an observed mean 40 SDs from the randomization null. Yet even with the exact counterfactual, the reference ratio achieves only 3.8% TPR at 1% FPR using a pooled threshold. Token-level standardization improves this to 8.8%, while cohort-specific calibration raises detection to 16.5% and 31.4%, respectively, given suitable non-members for each cohort. Under false-discovery control at q = 0.05 and 50% member prevalence, the standardized ratio identifies about 54 of 4832 members, compared with none for the plain ratio. At 5% prevalence or below, it identifies essentially none.
In contrast, aggregating evidence across matched documents is substantially more effective. With the exact counterfactual, a paired test requires an estimated 13 matched pairs for 80% power, assuming comparable non-members. An independently seeded reference also recovers 92% of the counterfactual's AUC advantage over chance. Thus, the difficulty of individual attribution cannot be explained by reference quality alone; substantial variation in document-level effects remains even with a closely matched reference.
The remaining experiments help explain this gap. Reference-free attacks recover little additional evidence once document difficulty is matched, while documents never injected into training also exhibit domain-dependent likelihood shifts. Repeated exposure increases the average effect nearly linearly through 32 copies, whereas checkpoint trajectories reveal substantial decay after individual exposures that is difficult to detect from the final checkpoint alone. The official post-training recipe preserves approximately 89% of the average effect, although individual detectability varies considerably across document types. Together, these findings show why measurable exposure effects, individual attribution, and collection-level inference must be evaluated separately.
Our results concern one model size, one mid-training recipe, and the evaluated attack statistics. The testbed provides a basis for studying whether these findings change with model scale and learning-rate schedules. We will release the treated checkpoints, post-trained models, per-token log-probabilities, and frozen assignment manifest, enabling future work to measure membership evidence against the same controlled reference. This work can specifically help researchers design their attacks using our findings, and the checkpoints and cohorts provide them with a domain- and difficulty-matched testbed to assess their methods.
Acknowledgments
This work was supported by the Knut and Alice Wallenberg Foundation through a Wallenberg Scholar Grant to Prof. Dejan Kostić and through computational resources on the Berzelius supercomputer at the National Academic Infrastructure for Supercomputing in Sweden.
References
[1] A. F. Cooper et al., “The files are in the computer: On copyright, memorization, and generative AI”, Chicago-Kent Law Rev., vol. 100, no. 1, pp. 141–219, 2025. [Online]. Available: https://scholarship.kentlaw.iit.edu/clawreview/vol100/iss1/9/
[2] K. Lee et al., Talkin' 'bout AI generation: Copyright and the generative-AI supply chain, 2024. arXiv:2309.08133.
[3] United States Copyright Office, “Copyright and artificial intelligence, part 3: Generative AI training”, US Copyright Office, Report of the Register of Copyrights (pre-publication version), May 2025. [Online]. Available: https://www.copyright.gov/ai/Copyright-and-Artificial-Intelligence-Part-3-Generative-AI-Training-Report-Pre-Publication-Version.pdf
[4] European Parliament and Council of the EU, Regulation (EU) 2024/1689 of the European Parliament and of the Council of 13 June 2024 laying down harmonised rules on artificial intelligence ... (Artificial Intelligence Act), Official J. EU, L, 2024/1689, 2024. [Online]. Available: https://eur-lex.europa.eu/eli/reg/2024/1689/oj/eng
[5] S. Golchin et al., “Time travel in LLMs: Tracing data contamination in large language models”, in Proc. 12th Int. Conf. Learn. Represent. (ICLR), 2024. [Online]. Available: https://arxiv.org/abs/2308.08493
[6] Y. Oren et al., “Proving test set contamination in black-box language models”, in Proc. 12th Int. Conf. Learn. Represent. (ICLR), 2024. [Online]. Available: https://arxiv.org/abs/2310.17623
[7] N. Carlini et al., “Extracting training data from large language models”, in Proc. 30th USENIX Security Symp., USENIX Assoc., Aug. 2021, pp. 2633–2650. [Online]. Available: https://www.usenix.org/confere/usenixsecurity21/presentation/carlini-extracting
[8] W. Shi et al., “Detecting pretraining data from large language models”, in Proc. 12th Int. Conf. Learn. Represent. (ICLR), 2024. [Online]. Available: https://arxiv.org/abs/2310.16789
[9] J. Zhang et al., “Min-K%++: Improved baseline for detecting pre-training data from large language models”, in Proc. 13th Int. Conf. Learn. Represent. (ICLR), 2025. [Online]. Available: https://arxiv.org/abs/2404.02936
[10] R. Xie et al., “ReCaLL: Membership inference via relative conditional log-likelihoods”, in Proc. Conf. Empirical Methods Natural Lang. Process. (EMNLP), Assoc. Comput. Linguistics, Nov. 2024, pp. 8671–8689. DOI: 10.18653/v1/2024.emnlp-main.493
[11] M. Duan et al., “Do membership inference attacks work on large language models?”, in Proc. Conf. Lang. Modeling (COLM), 2024. [Online]. Available: https://arxiv.org/abs/2402.07841
[12] D. Das et al., “Blind baselines beat membership inference attacks for foundation models”, in Proc. IEEE Security Privacy Workshops (SPW), IEEE,
2025, pp. 118–125. DOI: 10.1109/SPW67851.2025.00016
[13] M. Meeus et al., “SoK: Membership inference attacks on LLMs are rushing nowhere (and how to fix it)”, in Proc. IEEE Conf. Secure Trustworthy Mach. Learn. (SaTML), IEEE, 2025, pp. 385–401. DOI: 10.1109/SaTML64287.2025.00028
[14] J. Zhang et al., “Position: Membership inference attacks cannot prove that a model was trained on your data”, in Proc. IEEE Conf. Secure Trustworthy Mach. Learn. (SaTML), IEEE, 2025, pp. 333–345. DOI: 10.1109/SaTML64287.2025.00025
[15] T. Shi et al., OLMo-Detect: A multi-stage, confounder-controlled benchmark for membership inference on large language models, 2026. arXiv:2610.02986.
[16] N. Carlini et al., “The secret sharer: Evaluating and testing unintended memorization in neural networks”, in Proc. 28th USENIX Security Symp., USENIX Assoc., Aug. 2019, pp. 267–284. [Online]. Available: https://www.usenix.org/conference/usenixsecurity19/presentation/carlini
[17] M. Meeus et al., “Copyright traps for large language models”, in Proc. 41st Int. Conf. Mach. Learn. (ICML), vol. 235, PMLR, Jul. 2024, pp. 35 296–35 309. [Online]. Available: https://proceedings.mlr.press/v235/meeus24a.html
[18] J. Wei et al., “Proving membership in LLM pre-training data via data watermarks”, in Findings of the Assoc. Comput. Linguistics: ACL 2024, Assoc. Comput. Linguistics, Aug. 2024, pp. 13 306–13 320. DOI: 10.18653/v1/2024.findings-acl.788
[19] J. T.-Z. Wei et al., “Hubble: A model suite to advance the study of LLM memorization”, in Proc. 14th Int. Conf. Learn. Represent. (ICLR), 2026. [Online]. Available: https://arxiv.org/abs/2510.19811
[20] C. Zhang et al., “Counterfactual memorization in neural language models”, in Proc. 37th Conf. Neural Inf. Process. Syst. (NeurIPS), 2023. [Online]. Available: https://openreview.net/forum?id=67o9UQgTD0
[21] P. Lesci et al., “Causal estimation of memorisation profiles”, in Proc. 62nd Annu. Meeting Assoc. Comput. Linguistics (ACL), vol. 1, Assoc. Comput. Linguistics, Aug. 2024, pp. 15 616–15 635. DOI: 10.18653/v1/2024.acl-long.834
[22] Team OLMo et al., 2 OLMo 2 furious, 2025. arXiv:2501.00656.
[23] L. Watson et al., “On the importance of difficulty calibration in membership inference attacks”, in Proc. 10th Int. Conf. Learn. Represent. (ICLR), 2022. [Online]. Available: https://arxiv.org/abs/2111.08440
[24] N. Carlini et al., “Membership inference attacks from first principles”, in Proc. IEEE Symp. Security Privacy (SP), 2022, pp. 1897–1914. DOI: 10.1109/SP46214.2022.9833649
[25] P. Maini et al., “LLM dataset inference: Did you train on my dataset?”, in Adv. Neural Inf. Process. Syst. (NeurIPS), vol. 37, Curran Assoc., 2024, pp. 124 069–124 092. DOI: 10.52202/079017-3941
[26] H. Puerto et al., “Scaling up membership inference: When and how attacks succeed on large language models”, in Findings Assoc. Comput. Linguistics: NAACL 2025, Assoc. Comput. Linguistics, Apr. 2025, pp. 4165–4182. DOI: 10.18653/v1/2025.findings-naacl.234
[27] R. Shokri et al., “Membership inference attacks against machine learning models”, in Proc. IEEE Symp. Security Privacy (SP), IEEE, 2017, pp. 3–18. DOI: 10.1109/SP.2017.41
[28] S. Yeom et al., “Privacy risk in machine learning: Analyzing the connection to overfitting”, in Proc. IEEE 31st Comput. Security Found. Symp. (CSF), IEEE, Jul. 2018, pp. 268–282. DOI: 10.1109/csf.2018.00027
[29] B. Jayaraman et al., “Revisiting membership inference under realistic assumptions”, Proc. Privacy Enhancing Technol., vol. 2021, no. 2, pp. 348–368, Jan. 2021. DOI: 10.2478/popets-2021-0031
[30] S. Bordt et al., “Train once, answer all: Many pretraining experiments for the cost of one”, in Proc. 14th Int. Conf. Learn. Represent. (ICLR), 2026, pp. 77 253–77 296. [Online]. Available: https://proceedings.iclr.cc/paper_files/paper/2026/file/7d19ac069b96a50cab2e6eb0e54558e3-Paper-Conference.pdf
[31] L. Soldaini et al., “Dolma: An open corpus of three trillion tokens for language model pretraining research”, in Proc. 62nd Annu. Meeting Assoc. Comput. Linguistics (ACL), vol. 1, Assoc. Comput. Linguistics, Aug. 2024, pp. 15 725–15 788. DOI: 10.18653/v1/2024.acl-long.840
[32] N. Lambert et al., “Tülu 3: Pushing frontiers in open language model post-training”, in Proc. Conf. Lang. Modeling (COLM), 2025. [Online]. Available: https://arxiv.org/abs/2411.15124
[33] S. Bates et al., “Testing for outliers with conformal p-values”, The Annals of Statistics, vol. 51, no. 1, pp. 149–178, 2023. DOI: 10.1214/22-AOS2244
[34] A. D. Sokal, “Monte Carlo methods in statistical mechanics: Foundations and new algorithms”, in Functional Integration: Basics and Applications, ser. NATO ASI Series B: Physics, vol. 361, Springer, 1997, pp. 131–192. DOI: 10.1007/978-1-4899-0319-8_6
[35] N. Carlini et al., “Quantifying memorization across neural language models”, in Proc. 11th Int. Conf. Learn. Represent. (ICLR), 2023. [Online]. Available: https://mlanthology.org/iclr/2023/carlini2023iclr-quantifying/
[36] N. Kandpal et al., “Deduplicating training data mitigates privacy risks in language models”, in Proc. 39th Int. Conf. Mach. Learn. (ICML), vol. 162, PMLR, Jul. 2022, pp. 10 697–10 707. [Online]. Available: https://proceedings.mlr.press/v162/kandpal22a.html
[37] R. Grosse et al., Studying large language model generalization with influence functions, 2023. arXiv:2308.03296.
[38] I. Shilov et al., “The mosaic memory of large language models”, Nature Commun., vol. 17, no. 1, p. 2142, Jan. 2026. DOI: 10.1038/s41467-026-68603-0
[39] A. Sablayrolles et al., “White-box vs black-box: Bayes optimal strategies for membership inference”, in Proc. 36th Int. Conf. Mach. Learn. (ICML), vol. 97, PMLR, Jun. 2019, pp. 5558–5567. [Online]. Available: https://proceedings.mlr.press/v97/sablayrolles19a.html
[40] J. Ye et al., “Enhanced membership inference attacks against machine learning models”, in Proc. ACM SIGSAC Conf. Comput. Commun. Security (CCS), ACM, Nov. 2022, pp. 3093–3106. DOI: 10.1145/3548606.3560675
[41] J. Hayes et al., “Exploring the limits of strong membership inference attacks on large language models”, in Adv. Neural Inf. Process. Syst. (NeurIPS), vol. 38, Curran Assoc., 2025, pp. 97 515–97 581. DOI: 10.52202/085713-2934
[42] J. G. Wang et al., “CheckMIABench: Firm foundations for membership inference attacks on language models”, in Proc. 64th Annu. Meeting Assoc. Comput. Linguistics (ACL), vol. 2, Assoc. Comput. Linguistics, Jul. 2026, pp. 364–370. DOI: 10.18653/v1/2026.acl-short.30
[43] G. Kim et al., “Detecting training data of large language models via expectation maximization”, in Proc. 19th Conf. Eur. Chapter Assoc. Comput. Linguistics (EACL), vol. 1, Assoc. Comput. Linguistics, Mar. 2026, pp. 1115–1129. DOI: 10.18653/v1/2026.eacl-long.49
[44] T. Sander et al., “Watermarking makes language models radioactive”, in Adv. Neural Inf. Process. Syst. (NeurIPS), vol. 37, Curran Assoc., 2024, pp. 21 079–21 113. DOI: 10.52202/079017-0664
[45] S. Bordt et al., “How much can we forget about data contamination?”, in Proc. 42nd Int. Conf. Mach. Learn. (ICML), vol. 267, PMLR, Jul. 2025, pp. 4998–5016. [Online]. Available: https://proceedings.mlr.press/v267/bordt25a.html
[46] J. T.-Z. Wei et al., Correcting test set contamination by spiking the training data, 2026. arXiv: 2605.24818.
[47] J. Huang et al., “Demystifying verbatim memorization in large language models”, in Proc. 2024 Conf. Empirical Methods Natural Lang. Process. (EMNLP), Assoc. Comput. Linguistics, Nov. 2024, pp. 10 711–10 732. DOI: 10.18653/v1/2024.emnlp-main.598
[48] H. Chang et al., “How do large language models acquire factual knowledge during pretraining?”, in Adv. Neural Inf. Process. Syst. (NeurIPS), vol. 37, Curran Assoc., 2024, pp. 60 626–60 668. DOI: 10.52202/079017-1939
[49] M. Jagielski et al., “Measuring forgetting of memorized training examples”, in Proc. 11th Int. Conf. Learn. Represent. (ICLR), 2023. [Online]. Available: https://openreview.net/forum?id=7bjJzxLKrR
[50] A. Hägele et al., “Scaling laws and compute-optimal training beyond fixed training durations”, in Adv. Neural Inf. Process. Syst. (NeurIPS), 2024. [Online]. Available: https://openreview.net/forum?id=Y13gSfTjGr
[51] H. Tissue et al., “Scaling law with learning rate annealing”, in Proc. 39th Annu. Conf. Neural Inf.
Process. Syst. (NeurIPS), 2025. [Online]. Available: https://openreview.net/forum?id=VBx4yMNtjt
[52] M. Nasr et al., Scalable extraction of training data from (production) language models, 2023. arXiv:2311.17035.
[53] Y. Zhang et al., “Persistent pre-training poisoning of LLMs”, in Proc. 13th Int. Conf. Learn. Represent. (ICLR), 2025. [Online]. Available: https://arxiv.org/abs/2410.13722
[54] A. Pappu et al., “Measuring memorization in RLHF for code completion”, in Proc. 13th Int. Conf. Learn. Represent. (ICLR), 2025. [Online]. Available: https://openreview.net/forum?id=Tg8RLxpMDu
[55] M. Meeus et al., “Did the neurons read your book? Document-level membership inference for large language models”, in Proc. 33rd USENIX Security Symp., USENIX Assoc., Aug. 2024, pp. 2369–2385. [Online]. Available: https://www.usenix.org/conference/usenixsecurity24/presentation/meeus
[56] B. Zhao et al., “Unlocking post-hoc dataset inference with synthetic data”, in Proc. 42nd Int. Conf. Mach. Learn. (ICML), vol. 267, PMLR, Jul. 2025, pp. 77 608–77 629. [Online]. Available: https://proc.eedings.mlr.press/v267/zhao25q.html
Appendix A.
The Thirteen Cohorts
Table 1 lists every cohort as built. All documents are real text except cohort X. The E cohorts are, by design, edited versions of Wikipedia pages present in both training stages, so their held-out partners are members with a known trained ancestor; they measure re-exposure, not membership, and are excluded from the verified-unseen population. A post hoc audit found that the official chunks displaced by injected copies contained the ancestors of some E-family documents, so the control saw text that the treated run did not: 49 evaluation documents share at least 50 document-specific 13-grams with displaced text, 17 injected and 13 held-out among the pairs, with no consistent sign, so this adds noise to the re-exposure cohorts rather than bias.
Table 1. COHORTS AS BUILT. PAIRS, COPIES PER DOCUMENT r AND TOKENS INJECTED (ROWS ROUNDED TO 0.1M; THE TOTAL IS EXACT). THE POOLED ANALYZED SET HAS 7 326 PAIRS AFTER EXCLUSIONS.
| Cohort | Source | Pairs | r | Tokens |
|---|---|---|---|---|
| M | arXiv, 11 months, 5 categories | 1 986 | 1 | 17.2M |
| L | arXiv prefixes, 512–8 192 tokens | 250 | 1 | 0.8M |
| Wikipedia, created after cutoff | 1 000 | 1 | 0.8M | |
| Wikipedia, absent from snapshot | 600 | 1 | 0.8M | |
| StackExchange, 5 sites | 1 000 | 1 | 0.8M | |
| D | arXiv, | 400 | 2–16 | 25.8M |
| D32 | arXiv | 40 | 32 | 10.8M |
| DB | arXiv, 4 copies in 1% window | 60 | 4 | 2.1M |
| F | arXiv, LaTeX vs. PDF form | 278 | 1 | 4.2M |
| X | synthetic anchors | 200 | 1 | 0.2M |
| E0 | edited Wikipedia, 0% novel | 300 | 1 | 0.3M |
| E0-D | edited Wikipedia, 0% novel | 200 | 4 | 0.8M |
| E | edited Wikipedia, 5 strata | 1 500 | 1 | 2.9M |
| Total | 7 814 | 67.3M |
Table 2. THE MEMBERSHIP SIGNAL ACROSS POST-TRAINING ON VERIFIED-UNSEEN SINGLE-EXPOSURE PAIRS. STAGES ARE CUMULATIVE. RLVR1 IS THE END OF THE FIRST RLVR STAGE; RLVR2 (2k) IS STEP 2000 OF THE SECOND STAGE, THE CHECKPOINT CORRESPONDING TO THE RELEASED OLMo 2 1B INSTRUCT, AND RLVR2 (END) IS THAT STAGE'S FINAL STEP (2604).
| Stage | SD | AUC | TPR@1%FPR (%) | ||
|---|---|---|---|---|---|
| Mid-training | +0.0221 | 0.0309 | 0.71 | 0.767 | 3.8 |
| + SFT | +0.0155 | 0.0239 | 0.65 | 0.731 | 3.7 |
| + SFT + DPO | +0.0199 | 0.0343 | 0.58 | 0.708 | 4.8 |
| + RLVR1 | +0.0196 | 0.0350 | 0.56 | 0.700 | 5.1 |
| + RLVR2 (2k) | +0.0196 | 0.0355 | 0.55 | 0.697 | 4.7 |
| + RLVR2 (end) | +0.0197 | 0.0355 | 0.55 | 0.699 | 4.9 |
Appendix B.
Attack Statistics
For a document of scored tokens with log-probabilities under the target model, and with , the mean and standard deviation of the log-probability under the model's next-token distribution at position : loss is ; perplexity is , and bits-per-byte is ; both are negated so that larger is more member-like; the zlib ratio is divided by the zlib-compressed length of the text, a variant of the ratio of Carlini et al. [7] with the summed rather than the mean log-probability; Min-K% [8] is the mean of the smallest ; Min-K%++ [9] is the mean of the smallest ; and surprise is . A reference-based variant subtracts the same statistic under the reference model. We evaluated and report ; choosing on half of the pairs and evaluating on the other half changes the pooled AUCs by less than 0.001.
Standardized ratio. With , the per-token difference against the reference and the number of scored tokens, the statistic is , where is the sample SD of and , with the integrated autocorrelation of , the window the smallest [34], and clamped to ; the median against the exact counterfactual is 1.34, so the median document keeps 74% of its tokens. Positions without a score, the first of each scoring window, are dropped. Using in place of gives AUC 0.772 against 0.778 and a per-domain rate of 34.5% against 31.4%.
Appendix C.
Statistical Details
Randomization test. Under the null that injection has no effect, each within-pair contrast is equally likely to carry either sign, so the null distribution of the mean is obtained by flipping signs at random. Its standard deviation is , which gives the standard score reported in the text; a Monte Carlo draw of sign vectors never reached the observed mean.
Operating points. The threshold for an FPR is the score that admits held-out partners above it; with this is the largest held-out score at 1% and the at 0.1%. For cohorts with fewer than 100 negatives the 1% threshold is the single largest held-out score (the second largest with 100 to 199 negatives), and the rate is at the design's resolution floor.
Table 3. ATTACK AUC AND TRUE-POSITIVE RATE AT 1% FPR, GROUPED BY THE REFERENCE THE ADVERSARY HOLDS; VERIFIED-UNSEEN SINGLE-EXPOSURE PAIRS AGAINST THEIR MATCHED PARTNERS.
| Attack | AUC | TPR@1%FPR (%) |
|---|---|---|
| Exact counterfactual | ||
| Ratio + Min-K% | 0.816 | 5.0 |
| Standardized ratio | 0.778 | 8.8 |
| Ratio | 0.767 | 3.8 |
| Ratio + Min-K%++ | 0.665 | 1.6 |
| Retrained reference | ||
| Ratio + Min-K% | 0.779 | 5.3 |
| Ratio | 0.745 | 3.7 |
| Standardized ratio | 0.725 | 8.1 |
| Ratio + Min-K%++ | 0.641 | 1.2 |
| Published checkpoint | ||
| Ratio + Min-K% | 0.626 | 1.6 |
| Ratio + Min-K%++ | 0.608 | 1.6 |
| Ratio | 0.603 | 1.3 |
| Standardized ratio | 0.562 | 2.0 |
| Reference-free | ||
| Surprise | 0.566 | 1.6 |
| Min-K%++ () | 0.559 | 1.5 |
| Min-K% () | 0.527 | 1.3 |
| Bits-per-byte | 0.519 | 1.2 |
| LOSS | 0.519 | 1.4 |
| Perplexity | 0.519 | 1.4 |
| zlib ratio | 0.517 | 1.2 |
Table 4. THE REFERENCE RATIO AND THE STANDARDIZED RATIO. EVERY ROW IS EVALUATED ON THE SAME 4 832 VERIFIED-UNSEEN SINGLE-EXPOSURE PAIRS, WITH PAIR-BOOTSTRAP 95 % INTERVALS; "PER COHORT" IS THE TPR AT 1 % FPR WITH ONE THRESHOLD PER COHORT.
| Attack | AUC [95% CI] | TPR@1%FPR [95% CI] | per cohort |
|---|---|---|---|
| Exact counterfactual | |||
| Ratio | 0.767 [.759,.774] | 3.8 [2.9,4.8] | 16.5 |
| Standardized ratio | 0.778 [.771,.783] | 8.8 [7.3,10.9] | 31.4 |
| Retrained reference | |||
| Ratio | 0.745 [.737,.753] | 3.7 [2.8,4.8] | 8.2 |
| Standardized ratio | 0.725 [.718,.731] | 8.1 [6.0,9.5] | 20.2 |
| Published checkpoint | |||
| Ratio | 0.603 [.593,.613] | 1.3 [0.8,1.9] | 2.8 |
| Standardized ratio | 0.562 [.557,.566] | 2.0 [1.6,2.9] | 2.6 |
Naming documents under false-discovery control. The pairs are split into five folds, balanced within cohorts. For each fold, a candidate pool combines the fold's non-members with a random subset of its members chosen to give the stated prevalence. A candidate with score receives the conformal -value , computed against the 3865 non-members of the other four folds, and the Benjamini–Hochberg procedure at level is applied within the pool. Counts are total over the five folds, averaged over 50 random fold assignments; ranges are the and percentiles over assignments. Because the smallest attainable -value is , a pool that is half members can name a document only if at least 10 of its candidates score above every calibration non-member.
Collection-level AUC. For each we draw members and non-members independently with replacement from the population, compare the two means, and repeat at least 400 times; AUC is the rank AUC of the resulting pooled
Table 5. PER-COHORT EFFECT AND DETECTABILITY AGAINST THE EXACT COUNTERFACTUAL, WITH THE 1% FPR THRESHOLD SET WITHIN EACH COHORT; IS COPIES PER DOCUMENT AND IS PAIRS AFTER EXCLUSIONS.
| Cohort | Note | AUC | TPR (%) | |||
|---|---|---|---|---|---|---|
| D32 | 40 | 32 | +0.7258 | 1.000 | 100.0 | |
| 1000 | 1 | +0.0251 | 0.962 | 52.0 | ||
| D | 400 | 2–16 | +0.1508 | 0.943 | 56.2 | |
| DB | 60 | 4 | +0.0757 | 0.921 | 21.7 | |
| 600 | 1 | +0.0178 | 0.900 | 12.7 | ||
| 1000 | 1 | +0.0182 | 0.874 | 8.5 | ||
| M | 1982 | 1 | +0.0232 | 0.718 | 5.5 | |
| L | 250 | 1 | +0.0264 | 0.713 | 2.8 | |
| E0-D | re-exposure | 200 | 4 | +0.0669 | 0.997 | 100.0 |
| E0 | re-exposure | 299 | 1 | +0.0164 | 0.957 | 36.5 |
| E | re-exposure | 1495 | 1 | +0.0179 | 0.950 | 17.7 |
| X | synthetic | 200 | 1 | +0.0564 | 0.645 | 12.5 |
| F | failed placebo | 277 | 1 | +0.0094 | 0.627 | 1.1 |
scores. The draws are unpaired, so the matched partners are not used as the non-member collection.
Token-noise share. From the per-token contrasts we estimate for each document the variance of its mean effect under token resampling, using the effective number of independent tokens from a windowed autocorrelation estimate, and report the mean over pairs of the two partners' token variances divided by the variance of the within-pair contrast.
Rescoring. Within each comparison of a treated model with its control, both are scored with the same code. Mid-training checkpoints are scored with OLMo's model code and post-trained models with the Hugging Face implementation of the same architecture (Appendix D). In fp32 on CPU the two give bitwise identical log-probabilities on identical weights; in bf16 they differ only by rounding: on 1 121 documents scored on GPU under the stage-1 endpoint with both, per-document means differ by a median of nats/token and at most , with mean (standard error ). The one difference between arms is the attention kernel at mid-training: the treated checkpoints were saved with flash attention enabled, whereas AI2's checkpoints use PyTorch's scaled-dot-product attention, as do all post-trained models. Flash attention has no fp32 implementation, so we rescored 327 documents of at most 1400 tokens under both mid-training endpoints in fp32 on CPU with one implementation and compared the stored bf16 scores with this reference. The error of the per-document effect averages nats/token (standard error , per-document SD ); its difference between injected and held-out documents, (standard error ), is at most 2% of the within-pair effect at 95% confidence, and on never-injected documents it averages .
Appendix D. Implementation Details
This appendix gives the implementation details of the training runs and the analysis; Table 6 lists the training settings. Our scripts and configuration files are part of the code we will release.
Mid-training run. The run starts from AI2's OLMo 2 1B stage-1 endpoint at step 1907359, which
Table 6. TRAINING SETTINGS. OUR MID-TRAINING RUN FOLLOWS AI2'S PUBLISHED STAGE-2 CONFIGURATION; POST-TRAINING SETTINGS ARE THE SAME FOR THE TREATED MODEL AND THE CONTROL. DATASET REVISIONS ARE THE FIRST EIGHT HEXADECMIAL DIGITS OF THE HUGGING FACE COMMIT.
| Mid-training | SFT | DPO | RLVR (each stage) | |
|---|---|---|---|---|
| Start | stage-1 endpoint, with optimizer state | mid-training endpoint | final SFT model | final DPO model; final RLVR1 model |
| Data | 576 stage-2 files, seed-42 order | allenai/tulu-3-sft-olmo-2-mixture-0225@ d91a0785 | allenai/olmo-2-0425-1b-preference-mix@ c6454f3d | allenai/RLVR-GSM-MATH-IF-Mixed-Constraints@ 7dbd180f; allenai/RLVR-MATH @ bd2a9355 |
| Size | 12 212 224 of 12 570 760 chunks | 861 812 examples | 371 767 pairs | 29 689; 7 499 prompts |
| Max. length | 4 096 | 4 096 | 2 048 | 2 048 prompt, 2 048 response |
| Objective | cross-entropy, z-loss (configured ) | cross-entropy on assistant tokens, mean per micro-batch | length-normalized DPO, | policy gradient with group-normalized advantages, Kullback–Leibler coefficient 0.01; reward verifier score , constant |
| Learning rate | , linear to 0, no warm-up | , linear to 0, 3% warm-up | , linear to 0, 10% warm-up | |
| Optimizer | AdamW, , , weight decay 0.1 (not on embeddings) | AdamW, , , weight decay 0 | as SFT | as SFT, but weight decay 0.01 |
| Batch | 512 4 096 tokens | 128 sequences | 128 pairs | 48 prompts 16 responses, 2 updates per step |
| Duration | 23 852 updates | 2 epochs, 13 466 updates | 1 epoch, 2 905 updates | 2 604 steps |
| Gradient clip | 1.0 | 1.0 | 1.0 | 1.0 |
| Precision | bf16, fp32 gradient reduction | bf16, ZeRO-3 | bf16, ZeRO-2 | bf16, ZeRO-2 |
| Seed | 42 | 1 | 111 | 1 |
| GPUs | 2 8 A100-SXM4-80GB | 8 A100-SXM4-80GB | 8 A100-SXM4-80GB | 2 8 A100-SXM4 (12 for training, 4 for sampling) |
| Checkpoints | every 1 000 updates | every 1 000 updates | every 500 updates | every 200 steps |
is the released pre-stage checkpoint of Section 3.1 and the published checkpoint of Section 2. We downloaded it as an OLMo-native checkpoint with model weights and AdamW state from https://olmo-checkpoints.org/ai2-llm/peteish1/step1907359-unsharded/, the load path of AI2's published stage-2 configuration. On the four tensors we compared, the Hugging Face branch stage1-step1907359-tokens4001B of allenai/OLMo-2-0425-1B is bitwise identical to it. Weights and optimizer state are loaded, and the update counter and data position start at zero, with restore_dataloader, reset_optimizer_state and reset_trainer_state set as in AI2's seed-42 configuration; OLMo restored no random-number-generator state from the checkpoint, and all dropout rates are zero. The trainer is OLMo at commit 090253dac6688f2532509daa 7aa2eb5fae50e956, run in a container image built from nvcr.io/nvidia/pytorch:26.06-py3 (PyTorch 2.13.0a0, CUDA 13.3, NCCL 2.30.5, flash-attn 2.7.4.post1, NumPy 1.26.4). The configuration is AI2's published configs/official-0425/OLMo2-1B-stage2-seed42.yaml at that commit, in which we changed only the data paths, run name, output folder, checkpoint intervals and retention, and experiment-tracking keys. Command-line options also set the load path to our local copy, disabled the 27 in-loop downstream evaluations, enabled resumption from the latest checkpoint and, from the third launch, turned off ephemeral checkpoints.
The file sets the z-loss multiplier (auxiliary_loss_multiplier) to , but the pinned trainer does not pass it to the loss function, which applies its default of . The trainer derives the learning-rate horizon from the duration of tokens, so the rate reaches zero at update 23 842 and stays zero for the last 11 of the 23 852 updates; the per-update logs confirm this.
The stage-2 data are the 576 pre-tokenized files listed in the configuration (51 491 007 838 tokens, or 12 570 760 chunks of 4 096 tokens when each file is cut separately); AI2's seed-42 and seed-42069 configurations list the same files in the same order. OLMo's loader permutes the chunk indices once with NumPy's PCG64 generator seeded with the training seed (42), and update reads positions [512(), 512) of this order for any number of GPUs, so the 23 852 updates consume its first 12 212 224 positions (97.1% of the chunks). We compute this order for the official files and, separately, the order the same loader produces for a set of 12 212 224 chunks; we then write the official chunk at each position of the first order, or the injected chunk that replaces it, into the slot that the second order reads at position , in 64 new files. With the data paths pointed at these files, the unmodified loader reads at every position the chunk of AI2's sequence or its substitute. Injected documents were tokenized with the Hugging Face tokenizer of allenai/OLMo-2-0425-1B, without special tokens and with one end-of-text token (id 100 257) appended; this tokenizer has the same vocabulary, merges and special tokens as the trainer's. Of the copies placed as described in Section 3.2, 25 were moved from their targets, by at most 359 positions; the first injected chunk falls in update 240 and the last in update 23614. OLMo's instance filter, set as in AI2's configuration, masks the loss of any chunk in which a sequence of 1 to 13 tokens repeats at least 32 times in a row; it masked 43 injected chunks from 18 documents, including the only chunk of two single-copy documents, which therefore received no gradient at all. We keep these documents in the analyses.
Before training, the SHA-256 hashes of all 64 files were checked against those recorded when the files were written, all 24081 injected chunks were compared with the frozen token files of the injected documents, and 20 000 sampled background chunks with the official files. Before each of the five launches, a check repeated the comparison for all injected chunks and for the same 5 000 background positions each time, compared file sizes, and verified the SHA-256 hashes of the configuration, the file listing the positions of the injected copies, the container image and the four stage-1 checkpoint files. After training, the global index file that OLMo saved equals the second order above; the per-rank data indices it logged for updates 18 001–23 852, the only ones kept, match it in all 93 632 rows; read through this index file, all 12 414 injected copies hold their documents' tokens at their planned positions; and 3 700 non-injected positions, drawn at random in two independent samples, are byte-identical to the official chunks at those positions.
Each of the 16 GPUs processed its 32 sequences per update as eight micro-batches of four. Training ran as five launches; four resumed from the run's own checkpoints with data-loader and random-number-generator state restored, and the retained checkpoints form one continuous run. The only changes to the trainer concern writing checkpoints to the shared file system; no loss, optimizer or data code was changed. The configuration stored in AI2's seed-42 checkpoints, which does not record the trainer commit, differs from the one saved with our run in these execution keys: AI2's run used the non-fused loss, no flash attention, torch.compile, hybrid ZeRO-2 sharding with 32 replicas and block-and-size wrapping, and two sequences per GPU, that is, 256 GPUs; our run used the fused loss, flash attention, no compilation and SHARD_GRAD_OP sharding without wrapping, as the published file specifies, and 32 sequences per GPU on 16 GPUs. The remaining differences concern gradient accumulation, in-loop evaluation, logging, checkpointing, resumption, file locations and run identity, plus two keys that AI2's configuration lacks; apart from the data paths, no optimizer hyperparameter and no scheduler, data, duration, loss-weight or precision key differs. Part of the shift of never-injected documents between the treated model and the control (Section 5.6) could come from these execution differences rather than from the injected data; that the largest shift falls on the domain that received most of the injected tokens points to the data.
Reference models. The control is AI2's seed-42 stage-2 run, which AI2 labels ingredient 3, read from the OLMo-native checkpoints under https://olmo-checkpoints.org/ai2-llm/peteish1/stage2/olmo2-1b-0425_stage2_ingredient3/ every 1 000 updates up to update 23 000 and at update 23 852. Their Hugging Face copies, the branches stage2-ingredient3-stepN-tokensMB of allenai/OLMo-2-0425-1B, agree bitwise with the downloaded files on every tensor we compared (four tensors on each of five branches). All 24 configurations declare seed 42 and two sequences per GPU (256 GPUs); steps 1000–19 000 and 20 000–23 852 carry the run names of two launches, whose configurations differ only in run name, output folder and tracking name. The seed-42069 run, used as the retrained reference (ingredient 1, branches stage2-ingredient1-stepN-tokensMB), carries one run name on all 24 checkpoints and eight sequences per GPU (64 GPUs); its configuration differs from that of the seed-42 run only in the seed, the per-GPU batch and gradient accumulation, the number of sharding replicas, and its run name, output folders and tracking names. The main revision of allenai/OLMo-2-0425-1B differs from the stage-1 endpoint and from the stage-2 endpoints of the seed-42, seed-42069 and seed-666 runs, so every reference is loaded by branch or checkpoint path.
Post-training. Post-training uses AI2's open-instruct at commit d19de7d27ac2af2cd1dcbf856dbala2d077b37f4 with its scripts finetune.py, dpo_tune_cache.py and grpo_vllm_thread_ray_gtrl.py. Our only code changes, in the first two scripts, keep the intermediate checkpoints and replace the launch timestamp in the output-directory name with a constant; the ZeRO-2 configuration file used for DPO, which this commit lacks, is a copy of AI2's configs/ds_configs/stage2_accelerate.conf at commit fc7748e. Our images are built from nvidia/cuda:12.4.1-cudnn-devel-ubuntu22.04 with Python 3.10, PyTorch 2.6.0, transformers 4.50.0, DeepSpeed 0.15.4, flash-attn 2.7.2.post1 and the other versions pinned in the commit's requirements.txt except vLLM and xgrammar; the image for the RLVR stages adds vLLM 0.8.2, InfiniBand libraries and xgrammar 0.1.17 (the pinned 0.1.16 is no longer on PyPI). The Dockerfile of open-instruct at this commit starts from a different base image and installs the same PyTorch and flash-attn versions. The control starts from AI2's seed-42 step-23 852 checkpoint converted to Hugging Face format, whose weight files are byte-identical to the branch stage2-ingredient3-step23852-tokens51B; the treated model starts from our step-23 852 checkpoint, converted with the same OLMo script. Both start models carry the released tokenizer files of allenai/OLMo-2-0425-1B. In the RLVR stages, vLLM samples responses with temperature 1 and top-p 1; a response that does not end with the end-of-text token earns reward 0 instead of its verifier score (GSM8K, MATH or instruction-following constraints); and the Kullback–Leibler penalty uses the k3 estimator against a frozen copy of the stage's starting model. Generation runs asynchronously with the learner. Both RLVR stages load the tokenizer of allenai/OLMo-2-1124-7B-DPO, as AI2's commands do; its tokenizer files equal those of our SFT models. Prompts are drawn in an order shuffled with seed 1. For the treated model and the control, the tokenized datasets are byte-identical at every stage, and the configurations differ only in names, output directories, starting model and tokenizer path.
Our SFT averages the loss over the label tokens of each micro-batch of two sequences (reduce_loss=mean, the default at the pinned commit), whereas AI2's logged OLMo 2 1B SFT run (Weights & Biases run ai2-1lm/open_instruct_public/mihc7mab) and its command in open-instruct's docs/olmo2.md at commit 89b4f62 sum it (reduce_loss=sum); the treated model and the control both use the mean. Apart from this setting, the starting model, paths and bookkeeping keys, our SFT configuration equals that of AI2's logged run, which started from a checkpoint that is not public. Apart from the starting model, the dataset name, the tokenizer source, paths and bookkeeping keys, our DPO configuration equals that of AI2's logged run (k34ppe9q in the same project), which also ran 2905 steps; the logged dataset name now redirects to the dataset we used, and our tokenizer, loaded from our SFT model instead of allenai/OLMo-2-1124-13B, has the tokenizer.json and vocab.json hashes that AI2 logged. The RLVR stages use AI2's original commands in the same file flag for flag, apart from names, tracking, upload, Beaker evaluation and local-path options. The logged configurations and code commit of AI2's RLVR runs are not public, and AI2's experiment names state learning rates of and while its commands pass , which we use. AI2 trained on H100 GPUs. Our RLVR stages ran on A100-SXM4-40GB GPUs, except the treated model's second stage, which ran on A100-SXM4-80GB GPUs.
Scoring. The per-token log-probabilities on the evaluation set are computed with the same token IDs, windows and positions for every model: OLMo-native checkpoints are loaded in the mid-training image, and Hugging Face models in the open-instruct image used for SFT and DPO. The intermediate checkpoints of the treated run and of AI2's seed-42 and seed-42069 runs (updates 1000 to 23000, 69 in all) were scored at document level only; all other models were scored per token, and for them and (Appendix B) are stored as well, computed over the full output layer of 100352 rows, that is, the tokenizer's vocabulary and 74 padding rows. The weights are cast to bf16 and the log-softmax is taken in fp32, with one window per forward pass and no padding. The evaluation token IDs were produced once with the Hugging Face tokenizer of allenai/OLMo-2-0425-1B, without special tokens, and stored as int32; the IDs of the cohort-X model samples and random tokens were generated directly. Every document ends with one end-of-text token, and no beginning-of-sequence token is added. As the first position of each window is not scored (Appendix B), a document of tokens has scored positions. Documents longer than 65536 tokens are not scored: one evaluation document, a cohort-F member of 69157 tokens, exceeds this limit and its pair is dropped. For OLMo-native checkpoints, the attention kernel is taken from each checkpoint's configuration: flash-attn for the treated mid-training checkpoints and PyTorch's scaled-dot-product attention for AI2's checkpoints, including the stage-1 endpoint. Every post-trained model is loaded in Hugging Face format and scored with scaled-dot-product attention. Scoring draws no random numbers; the treated and control endpoints were each scored twice on the evaluation set as OLMo-native checkpoints, once without and once with and , and both passes give identical per-document scores. Each scoring task on the evaluation set used one A100-SXM4-40GB GPU. The pre-treatment bits-per-byte
used for pairing were computed under the Hugging Face branch of the stage-1 endpoint with the same window conventions, but on text tokenized at scoring time rather than on the stored token IDs.
Analysis. Arm assignment and the target positions of the copies are drawn from named random streams under one seed (20260922). Resampling uses fixed seeds: the data figures, the generated tables and the standardized ratio use seed 20261012 (400 pair-bootstrap draws for AUC and TPR, 300 for the intervals in Figure 5; 100000 sign vectors for the randomization test; 20000 resamples per sample size for the resampled power of the standardized ratio), intervals for mean effects use 2000 pair resamples with seed 7, the trajectory windows 1000 with seed 3, and the remaining analyses seed 20261013. The RLVR rows of Table 2, the RLVR values in the text and Table 4, recomputed on all pairs with the evaluation functions used for the standardized ratio, are computed separately. Apart from these, the data figures, the generated tables and the standardized ratio were produced with Python 3.13.12, NumPy 2.5.1, SciPy 1.17.1 and Matplotlib 3.10.8. A scan of the four post-training datasets at the revisions in Table 6, with the 8-word-shingle matcher of the fingerprint search (Section 3.5), flagging a document at 40 or more shared contiguous words or 50 or more shared distinct 8-grams, found 16 evaluation documents, all in SFT or DPO examples; 11 of them belong to 10 pairs. Both members of these pairs and the five flagged documents of the third, never-injected arm (Section 3.3) are excluded from every reported analysis.