Manuscript Offprint

arXiv:2610.41732

From Training Exposure to Membership Evidence: A Controlled Study of OLMo 2

Ali Banaei, Muhammad Shahab Shahzad, Gerald Q. Maguire, Marco Chiesa, Dejan Kostić

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.

References (56)