Learning to Detect Language Model Training Data via Active Reconstruction

Junjie Oscar Yin, John X. Morris, Vitaly Shmatikov, Sewon Min, Hannaneh Hajishirzi
2/22/2026
cs.LGcs.AIcs.CL

No official code found. Best implementation: oseyosey/MIA-RL (2 stars, Apache-2.0, last commit 2026-02-24).

Abstract

Detecting LLM training data is generally framed as a membership inference attack (MIA) problem. However, conventional MIAs operate passively on fixed model weights, using log-likelihoods or text generations. In this work, we introduce \textbf{Active Data Reconstruction Attack} (ADRA), a family of MIA that actively induces a model to reconstruct a given text through training. We hypothesize that training data are \textit{more reconstructible} than non-members, and the difference in their reconstructibility can be exploited for membership inference. Motivated by findings that reinforcement learning (RL) sharpens behaviors already encoded in weights, we leverage on-policy RL to actively elicit data reconstruction by finetuning a policy initialized from the target model. To effectively use RL for MIA, we design reconstruction metrics and contrastive rewards. The resulting algorithms, \textsc{ADRA} and its adaptive variant \textsc{ADRA+}, improve both reconstruction and detection given a pool of candidate data. Experiments show that our methods consistently outperform existing MIAs in detecting pre-training, post-training, and distillation data, with an average improvement of 10.7\% over the previous runner-up. In particular, \MethodPlus~improves over Min-K\%++ by 18.8\% on BookMIA for pre-training detection and by 7.6\% on AIME for post-training detection.

View on arXivView PDF

Code Implementations(1)

oseyosey/MIA-RLCommunity67%
Apache-2.0

Learning to Detect Language Model Training Data via Active Reconstruction

20Shell, PythonFeb 12, 20267 months agoApache-2.0

Similar Papers

Cite this paper

@article{yin2026learning,
  title  = {Learning to Detect Language Model Training Data via Active Reconstruction},
  author = {Junjie Oscar Yin and John X. Morris and Vitaly Shmatikov and Sewon Min and Hannaneh Hajishirzi},
  year   = {2026},
  eprint = {2602.19020},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2602.19020v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2602.19020.svg)](https://codeofpaper.com/paper/2602.19020)

Discussion