WildTrace

WildTrace: Evaluating Training Data Detection in Realistic Large-Scale LLM Post-Training

Hengxiang Zhang, Junxian Liu, Hongxin Wei

Tracing training data across the post-training lifecycle
SUPERVISED FINE-TUNING

SFT

PREFERENCE OPTIMIZATION

DPO

REINFORCEMENT LEARNING

RL

WildTrace benchmark overview. A reliable benchmark designed to evaluate detection methods in realistic, large-scale post-training settings. Built on a multi-stage pipeline, WildTrace encompasses stage-specific models throughout the post-training lifecycle, spanning SFT, DPO, and RL.

Can we determine whether a given sample was used to train a language model?

At realistic scale, even the strongest evaluated method performs close to random guessing.

Abstract

Although post-training significantly enhances model performance, the use of massive undisclosed data raises concerns about benchmark contamination and copyright infringement. This drives growing interest in training data detection for post-trained models. Existing evaluations for training data detection often leverage benchmarks constructed post hoc, which can introduce distribution shifts. Alternatively, controlled evaluations rely on small-scale training setups that diverge from realistic post-training settings. As a result, their reported performance may not faithfully reflect the effectiveness of detection methods in real-world scenarios.

To this end, we introduce WildTrace, a reliable benchmark designed to evaluate detection methods in realistic, large-scale post-training settings. Built on a multi-stage pipeline, WildTrace encompasses stage-specific models throughout the post-training lifecycle, spanning SFT, DPO, and RL. To perform a reliable evaluation, we construct model-specific evaluation sets across four diverse tasks, featuring distribution-matched members and non-members with verifiable membership labels.

Our results reveal that even the best-performing method achieves an average AUC of only 0.529 on our benchmark, which approaches random-guessing level (0.5). Furthermore, our analysis suggests that evaluation protocols can significantly affect measured detection performance. These findings highlight the significant potential for developing effective, practical, and robust detection methods under realistic scenarios.

Benchmark

An ideal benchmark for post-training data detection should adhere to three key principles.

01

Distribution-matched sampling with verifiable membership

Members and non-members should be drawn from the same data distributions, with verifiable membership labels rather than labels inferred post hoc. This avoids distribution shifts and unreliable membership labels.

02

Realistic large-scale post-training settings

Target models should be trained on diverse, large-scale datasets using standard post-training practices. Small, domain-specific datasets trained for multiple epochs can overestimate the detectability of training data.

03

Reproducible evaluation across post-training lifecycle

The benchmark should provide publicly available oracle models and evaluation sets for each post-training stage—SFT, DPO, and RL—to enable reproducible evaluation and fair comparisons throughout the post-training lifecycle.

A comprehensive and reliable benchmark for evaluating training data detection in realistic settings.

Model-specific evaluation

For each of four tasks, 250 held-out samples form the non-member set and 250 training samples form the member set. Each stage has 2,000 evaluation examples, for 6,000 examples across the benchmark. Together, these model-specific sets provide comprehensive coverage of four tasks across all three post-training stages.

Validate with blind baselines

Nine combinations of text features and classifiers test for unintended data artifacts without accessing the target model. Average AUCs of 0.53, 0.53, and 0.52 across SFT, DPO, and RL remain near chance. These results support a reliable benchmark by showing that the tested blind baselines find little signal for distinguishing members from non-members using text features alone.

Results

Table 1. AUC of detection methods on our benchmark. Results are averaged over three runs with different random seeds. Input-based methods score input tokens; output-based methods score generated tokens. Avg. is averaged across all tasks and post-trained models. Bold indicates the best result.
MethodORACLE-SFTORACLE-DPOORACLE-RLAvg.
MathCodeIFQAMathCodeIFQAMathCodeIFQA
Input-based methods
Perplexity0.4990.5650.5350.5590.5000.4510.5270.5140.5600.4870.5160.4560.514
Entropy0.4820.5020.4830.4720.5240.4470.4870.4880.5120.4880.5000.4750.488
Lowercase0.5150.5890.5440.5810.4980.4380.5140.5230.5210.4910.5340.4710.518
Zlib0.4690.5400.5720.5700.4660.5380.5260.4650.5390.4880.5010.4840.513
Neighbor0.5330.5370.4970.5550.5150.4290.5060.5440.5420.5030.4990.4880.512
Min-K%0.4990.5700.5410.5480.4960.4590.5350.5190.5520.4860.5170.4480.514
Min-K%++0.5100.6100.5830.6180.5040.5430.4730.5440.5290.4370.5280.4700.529
Output-based methods
Generated Perplexity0.5090.5130.4810.5210.5200.4810.5440.4880.5360.4990.4590.5010.504
Generated Entropy0.5050.5140.4750.5260.5210.4810.5340.4880.5290.4970.4560.5010.502
Generated Min-K%0.5100.5160.4820.5190.5190.4800.5470.4980.5380.5020.4670.4990.506
Min-kNN0.5190.5320.4790.5230.5250.4520.5120.5280.5710.4970.4690.4950.509
Self-Critique0.4790.4900.5570.5410.4840.4730.5090.5090.5240.4960.4950.4920.504
0.529BEST AVERAGE AUC

Detection remains difficult at scale

Across all tasks and stages, even the best-performing method achieves an average AUC only slightly above the random baseline of 0.500.

Small-scale success does not transfer

As the training set grows, detection performance deteriorates. AUC approaches the random baseline, while true positive rates at a fixed false positive rate decline.

Figure 2. Effect of training set size. Both AUC and true positive rates decline as training data scales up.

Analysis

Distribution shifts inflate scores

Cross-domain non-members can inflate detection scores. Even two non-member groups reach an AUC of 0.908, showing that high scores can reflect domain differences rather than training exposure.

Match the distributions: reliable evaluation must separate membership signals from domain artifacts.

Figure 3. Distribution shift inflates AUC, even between non-member sets.

Threshold calibration matters

In-distribution threshold calibration yields the best average accuracy. Using out-of-distribution validation data or unsupervised methods reduces performance.

The practical gap: matching validation data is rarely available in real-world deployment.

Table 2. Detection accuracy on Code under different threshold calibration settings. Each cell reports the mean ± standard deviation over ten runs; bold indicates the best result.

Reference models have limits

A suitable reference improves detection, and base references generally outperform instruct references. Yet detection performance still declines as training data grows.

Scale remains a challenge: a better reference does not resolve the difficulty of detection at scale.

Table 3. AUC across reference models at two training scales. Bold marks the better result within each base–instruct pair.

BibTeX

BibTeX
@article{zhang2026wildtrace,
  title={WildTrace: Evaluating Training Data Detection in Realistic Large-Scale LLM Post-Training},
  author={Zhang, Hengxiang and Liu, Junxian and Wei, Hongxin},
  journal={arXiv preprint arXiv:2610.16152},
  year={2026}
}

More Research

Fine-tuning can Help Detect Pretraining Data from Large Language Models

Hengxiang Zhang, Songxin Zhang, Bingyi Jing, Hongxin Wei

Fine-tuned Score Deviation measures how model scores change after fine-tuning on unseen data. The different shifts for members and non-members help reveal which examples were used in pretraining.

Defending Membership Inference Attacks via Privacy-aware Sparsity Tuning

Hengxiang Zhang, Qiang Hu, Hongxin Wei

Privacy-aware Sparsity Tuning applies adaptive penalties to parameters according to their privacy sensitivity. It reduces the loss gap between members and non-members to improve the balance between model utility and privacy.

Detecting Distillation Data from Reasoning Models

Hengxiang Zhang, Hyeong Kyu Choi, Sharon Li, Hongxin Wei

Token Probability Deviation detects whether a question appeared in reasoning distillation data. It scores probability patterns in generated tokens, allowing detection even when the original reasoning traces are unavailable.

Enlarged Figure 2 showing the effect of training set size on detection performance.