From Training Exposure to Membership Evidence: A Controlled Study of OLMo 2
Organizations: KTH Royal Institute of Technology, Stockholm, Sweden
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 7,814 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.
Figures & tables
Appendix figures & tables6 assets
Supplementary material from the paper’s appendix.
Appendix
| Cohort | Source | Pairs | Tokens | |
|---|---|---|---|---|
| M | arXiv, 11 months, 5 categories | 1 | 17.2M | |
| L | arXiv prefixes, | 1 | 0.8M | |
| W new | Wikipedia, created after cutoff | 1 | 0.8M | |
| W gap | Wikipedia, absent from snapshot | 1 | 0.8M | |
| S se | StackExchange, 5 sites | 1 | 0.8M | |
| D | arXiv, | 2–16 | 25.8M |
| Stage | SD | auc | (%) | ||
|---|---|---|---|---|---|
| Mid-training | |||||
| + SFT | |||||
| + SFT + DPO | |||||
| + RLVR1 | |||||
| + RLVR2 (2k) | |||||
| + RLVR2 (end) |
| Attack | auc | (%) |
|---|---|---|
| Exact counterfactual | ||
| Ratio + Min-K% | ||
| Standardized ratio | ||
| Ratio | ||
| Ratio + Min-K%++ | ||
| Retrained reference | ||
| Attack | auc [95% CI] | [95% CI] | per cohort | ||
| Exact counterfactual | |||||
| Ratio | [.759,.774] | [2.9,4.8] | |||
| Standardized ratio | [.771,.783] | [7.3,10.9] | |||
| Retrained reference | |||||
| Ratio | [.737,.753] | [2.8,4.8] | |||
| Standardized ratio | [.718,.731] | [6.0,9.5] | |||
| Cohort | Note | auc | tpr (%) | |||
|---|---|---|---|---|---|---|
| D32 | 32 | |||||
| S se | 1 | |||||
| D | 2–16 | |||||
| DB | 4 | |||||
| W gap | 1 | |||||
| W new | 1 |
| Mid-training | SFT | DPO | RLVR(each stage) | |
|---|---|---|---|---|
| Start | stage-1 endpoint, with optimizer state | mid-training endpoint | final SFTmodel | final DPOmodel; final RLVR1 model |
| Data | 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 | of chunks | examples | pairs | ; prompts |
| Max. length | prompt, 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 ; reward verifier score |
| Learning rate | , linear to 0, no warm-up | , linear to 0, warm-up | , linear to 0, warm-up | , constant |
Privacy Leakage in Language Models
Privacy leakage in language models concerns how models expose training data, infer sensitive traits, or transmit private context through outputs and internal channels.
See all 296 papers