Adaptive Text Transformations Defend Against Dataset Inference Attacks

Ahan Mishra, Olivera Kotevska, Sumit Kumar JhaOpenReview 2026 · Submission to ICLR 2026 · Rejected

TL;DR

Researchers have demonstrated that current "Dataset Inference" (DI) attacks—tools used to prove an LLM was trained on copyrighted data—rely on the fragile assumption that models are trained on exact copies of a dataset. By adaptively transforming text through summarization and rephrasing before fine-tuning, the authors reduced the success rate of state-of-the-art detection attacks from over 95% to less than 5%, while still retaining the model's performance gains.

What Problem Does This Paper Address?

As LLMs grow more powerful, so does the legal scrutiny regarding their training data. High-profile lawsuits (like those involving The New York Times or Anthropic) hinge on the ability to prove a model was trained on specific copyrighted material.

Technically, this is handled via Membership Inference Attacks (MIA)—checking if a specific sentence was in the training set—or the more robust Dataset Inference (DI), which aggregates signals across a whole collection of documents to reach a statistical verdict. However, DI attacks typically assume the "thief" trained on the raw, original data. This paper challenges that assumption: Can a trainer "wash" their data through semantic transformations to evade detection while still reaping the benefits of the information?

Methods

The authors propose two main algorithms for "adaptive text transformation" based on the length of the input:

  1. For Short Texts (Synonym Substitution): The algorithm repeatedly replaces words with synonyms until the embedding similarity between the original and transformed text falls below a specific threshold. This injects "noise" into the statistical signature of the data while keeping the meaning intact.
  2. For Long Texts (Summarize + Rephrase): This is a two-step pipeline. First, a helper model (Mistral-7B) summarizes the text. Second, it rephrases that summary using synonyms and structural rearrangement.

Crucially, the authors also introduce a new theoretical framework for LLM dataset inference. They model the training data in a latent space and derive a success probability formula ($p_{success}$) that accounts for dataset size, learning rate, number of epochs, and model parameters.

Datasets

The study evaluated these methods across several diverse benchmarks:

  • The Pile: 12 subsets of this massive open-source corpus (including Wikipedia, PubMed, and GitHub) were used to test long-text transformations.
  • Short-Text Benchmarks: GSM-MC (math), BoolQ (reading comprehension), and MNLI (natural language inference).
  • Models: The researchers tested their defenses on various sizes of the Pythia model family (70M to 1.4B parameters) and GPT-2.

Key Insights and Ideas

  • The "Exact Match" Fallacy: Current DI attacks are highly sensitive to the specific phrasing of training data. By shifting the data's statistical distribution while preserving its semantic "signal," trainers can effectively "blind" the detector.
  • The Tipping Point: Theoretically, the paper suggests a counter-intuitive "tipping point." While larger datasets are usually easier to detect, if a trainer uses a constant level of noise (like their transformation method), there is a point where increasing the dataset size actually makes detection harder because the centers of the "public" and "private" data distributions converge in latent space.
  • Performance vs. Privacy: The authors show that "meaning" is surprisingly resilient. You don't need the exact words of a dataset to learn the underlying tasks; a summarized, rephrased version provides enough signal for the model to improve on benchmarks without leaving a detectable trail.

Key Results

The results represent a significant blow to the reliability of current DI methods:

  • Detection Evasion: For long texts, the success probability of a DI attack dropped from >95% to <5% when using the summarize + rephrase technique.
  • Utility Preservation: Despite the heavy transformations, the models achieved over 90% of the performance improvement they would have gained from training on the original, raw data.
  • Consistency: The defense was effective across all tested model sizes (from 70M to 1.4B parameters), suggesting that simply scaling up the model doesn't necessarily make it easier to detect transformed training data.

Limitations and Future Work

While the results are a wake-up call for researchers developing copyright-detection tools, the authors note several caveats:

  • Strict Assumptions: The theoretical model assumes an isotropic Gaussian distribution for the data in latent space, which may not perfectly capture the complexity of real-world natural language.
  • Hyperparameter Sensitivity: The effectiveness of the defense can vary depending on the specific properties of the dataset (e.g., Wikipedia and PubMed were slightly harder to "hide" than others).
  • The Arms Race: This paper essentially starts a new "cat-and-mouse" game. Future work will likely focus on developing DI attacks that are invariant to semantic transformations—looking for the "idea" of the data rather than the specific tokens.

Summary updated

Abstract

There has been increasing legal interest in identifying possible copyright violations committed by Large Language Model (LLM) trainers. Many works developing individual membership inference attacks have recently been shown to be weaker than previously thought, due to implicit distributional shifts. To combat this, progress has been made by considering large datasets and aggregating multiple different membership attacks. A hidden assumption in these methods is that if the LLM has improperly used a dataset, the LLM was trained on that exact dataset. By challenging this assumption, we demonstrate, to our knowledge, the first failure of any large-scale dataset inference (DI) attack. In particular, we study LLM fine-tuning for both short and long text datasets. We adaptively transform the datasets before fine-tuning, enabling an increase in model performance (compared to a base model not trained on the dataset) while avoiding dataset inference. In the case of long texts, we find that text summarization followed by rephrasing substantially reduces the success probability of DI in our setting from over 95\% to less than 5\%. We also develop a new theoretical formulation of dataset inference specifically tailored to LLMs, which explains the effectiveness of our method and sheds light on how parameters, such as the number of training epochs, can affect dataset inference.
BibTeX
@misc{mishra2026adaptive,
  author = {Ahan Mishra and Olivera Kotevska and Sumit Kumar Jha},
  title = {{Adaptive Text Transformations Defend Against Dataset Inference Attacks}},
  year = {2026},
  url = {https://openreview.net/forum?id=1arXr8LH2d},
  howpublished = {OpenReview},
  note = {Submitted to ICLR 2026},
}

Loading related content...

Figure