Dataset Usage Inference without Shadow Models or Held-out Data

Wojciech Łapacz, Stanisław Pawlak, Jan Dubiński, Franziska Boenisch, Adam DziedzicarXiv 2026

TL;DR

This paper introduces NU-DUI (Negative Unlabeled Dataset Usage Inference), a practical framework that estimates exactly what fraction of a dataset was used to train a generative AI model. Unlike previous methods, it eliminates the need for training expensive "shadow models" or requiring a real, trusted held-out dataset, achieving a 2,000× compute speedup while maintaining high estimation accuracy.

What Problem Does This Paper Address?

With high-profile lawsuits like The New York Times v. OpenAI, proving whether—and to what extent—copyrighted data was used to train large generative models has become a critical legal and ethical challenge.

While Membership Inference Attacks (MIAs) can guess if a single sample was in a training set, their signals are often too weak and noisy for modern large models. Dataset Inference (DI) methods aggregate these signals to give a binary "yes/no" answer for an entire dataset. However, courts and content owners need to quantify the extent of usage (e.g., "Was 10% or 90% of my dataset used?").

Prior attempts to solve this Dataset Usage Inference (DUI) problem relied on two unrealistic assumptions:

  1. Shadow Models: Training multiple massive replica models to mimic the target model, costing thousands of GPU hours.
  2. Real Held-out Data: Access to a clean, verified "in-distribution" dataset that is guaranteed not to have been used in training, which is rarely available in real-world disputes.

Methods

NU-DUI bypasses these constraints by framing DUI as a Mixture Proportion Estimation (MPE) problem. Given a "suspect" dataset, the pipeline operates in three main stages:

Figure 1: Overview of NU-DUI. Given a suspect set, we generate a synthetic non-member reference set with Stable Diffusion img2img and autoencode the suspect set with the same autoencoder to reduce distribution shift. We then query the target model on both sets, extract MIA features, and apply mixture proportion estimation to infer what fraction of the suspect set was used for training.
  1. Synthetic Non-Member Generation (Cross-Family Paraphrasing): Instead of finding real held-out data, the authors generate synthetic non-members by running the suspect dataset through an image-to-image (img2img) generator from a different model family than the target model (e.g., using Stable Diffusion if auditing an autoregressive model).
  2. Artifact Alignment via Autoencoding: Generative models leave distinct high-frequency artifacts. To prevent the MPE algorithm from simply separating real images from synthetic images based on these artifacts, the original suspect dataset is passed through the same autoencoder used during the paraphrasing step. This ensures both sets share identical generator artifacts, isolating the true membership signal.
  3. MPE & Feature Extraction: The target model is queried using both the autoencoded suspect set (unlabeled mixture) and the synthetic non-member set (negative reference). MIA features are extracted and fed into an MPE estimator to calculate the final member ratio ($\hat{p}$).
Visual comparison of real, autoencoded, and paraphrased images

Datasets

The method was evaluated using ImageNet-1k, leveraging its well-defined, independent training and testing splits to establish ground-truth member and non-member ratios.

The framework was tested against five state-of-the-art target models:

  • Autoregressive Models: VAR-24 (1.0B), VAR-30 (2.1B), RAR-XL (955M), and RAR-XXL (1.5B).
  • Diffusion Models: DiT-RF-XL/2-8E2A (4.1B total parameters).

Key Insights and Ideas

  • The Cross-Family Imperative: Paraphrasing images using a model from the same family as the target model fails. This is because same-family paraphrases naturally land near the target model's loss fixed points, making them look like "members" regardless of actual training history. Generating across families (e.g., Diffusion $\leftrightarrow$ Autoregressive) breaks this confound.
  • Fighting Artifact Bias: The "aha moment" of the paper is realizing that MPE classifiers will eagerly cheat by identifying low-level generation noise rather than actual membership cues. Autoencoding the suspect set acts as a control variable, forcing the estimator to focus strictly on whether the model recognizes the data.
Impact of same-family vs. cross-family generation

Key Results

  • Massive Efficiency Gains: On the RAR-XXL model, the full NU-DUI pipeline takes just 42.5 A100 GPU minutes. In comparison, traditional shadow-model methods (like DUCI) require over 1,500 A100 GPU hours for a single shadow model—representing a speedup of more than 2,000×.
  • High Accuracy: Across most target models, NU-DUI keeps the Mean Absolute Error (MAE) of the estimated dataset fraction well below 0.1 (e.g., an MAE of 0.058 on RAR-XXL), performing nearly as well as an "oracle" setup that has access to perfect, real held-out data.
Estimated member ratios vs. true member ratios across different architectures

Limitations and Future Work

  • MIA Dependency: NU-DUI is fundamentally bounded by the strength of the underlying Membership Inference Attacks. If a target model is heavily regularized and leaks virtually no membership information, the framework's estimation stability degrades.
  • Cross-Family Availability: The method relies on having a strong alternative generative model family to create the synthetic non-members. While this is easy for images (Diffusion vs. Autoregressive), it may be more challenging to apply to other domains (like text or audio) where a diverse set of high-performing model families might not be as readily accessible.

Summary updated

BibTeX
@misc{apacz2026dataset,
  author = {Wojciech Łapacz and Stanisław Pawlak and Jan Dubiński and Franziska Boenisch and Adam Dziedzic},
  title = {{Dataset Usage Inference without Shadow Models or Held-out Data}},
  year = {2026},
  eprint = {2606.26257},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.26257},
}
Figure