ICAS: Detecting training data from autoregressive image generative models

Hongyao Yu, Yixiang Qiu, Yiheng Yang, Hao Fang, Tianqu Zhuang, Jiaxin Hong, Bin Chen, Hao Wu, Shu-Tao Xia

TL;DR

This paper introduces ICAS, a novel method for detecting if an image was used to train autoregressive image generation models. ICAS leverages an "implicit classifier" and an adaptive scoring strategy to outperform existing methods, particularly for scale-wise visual autoregressive models, and reveals a concerning linear scaling law between model size and vulnerability to such attacks.

What Problem Does This Paper Address?

Autoregressive image generation models, like the increasingly popular scale-wise visual autoregression (VAR), produce impressive results but rely on massive datasets, raising concerns about data privacy and copyright infringement. Detecting if specific images were used in training is crucial. Existing membership inference (MI) techniques, primarily developed for large language models (LLMs), struggle with the unique characteristics of autoregressive image models, especially their strong generalization capabilities. This paper aims to bridge this gap by proposing a new MI method specifically tailored for these visual generative models.

Methods

The core of ICAS lies in two key components:

  • Implicit Classification: Instead of relying on the model's direct generation probability (which is similar for member and non-member samples in autoregressive image models), ICAS uses an "implicit classifier." This classifier estimates the probability of a condition given an image token, effectively capturing how well a token "fits" the model's learned conditional distributions. This is achieved by comparing the log probability of a token given the condition ($p_\theta(x_i|c)$) with its unconditional log probability ($p_\theta(x_i)$).
  • Adaptive Score Aggregation Strategy (AS): Individual token scores can be noisy. To address this, ICAS aggregates these token scores into a final image score. The AS strategy is adaptive, meaning it assigns higher weights to tokens with lower implicit classification scores. The intuition is that member samples are more likely to have some low-scoring tokens due to overfitting, while non-member samples tend to have more consistently low-scoring tokens. This weighted aggregation helps to better distinguish between member and non-member images.

Datasets

The paper primarily uses the ImageNet [5] dataset for training and evaluation of the autoregressive image generation models. They also mention using validation sets for FID calculations. No new benchmark datasets are introduced.

Key Insights and Ideas

  • LLM MI Methods Don't Directly Translate: The strong generalization of autoregressive image models makes standard LLM-based MI techniques less effective.
  • Implicit Classification is Key: Focusing on the conditional probability of image tokens given the condition, rather than just the generation probability, provides a more discriminative signal.
  • Low-Score Tokens Matter: Giving more weight to tokens with lower implicit classification scores is crucial for robust membership inference.
  • Scale-Wise VAR is More Vulnerable: Training data from scale-wise visual autoregressive models is surprisingly easier to detect than from other autoregressive paradigms. This might be due to the multi-scale processing potentially leading to more memorization of specific details.
  • A Linear Scaling Law of Vulnerability: As autoregressive models (especially large ones) increase in size (parameters), their vulnerability to membership inference attacks grows linearly. This is a significant finding for understanding the privacy implications of scaling up foundation models.

Key Results

  • Superior Performance: ICAS consistently outperforms baseline methods (adapted from LLM MI) across various autoregressive image generation models (VAR, VAR-CCA, VAR-CLIP) and different model depths. For instance, it achieves significantly higher AUROC scores, with some models reaching over 0.9980.
  • Robustness: ICAS demonstrates strong robustness to common image transformations like noise, rotation, saturation, and brightness changes.
  • Text-to-Image Vulnerability: The method shows a notable improvement in detecting training data for text-to-image models (VAR-CLIP) compared to class-conditional models, suggesting text-to-image models might be more prone to memorization.
  • Scaling Law Confirmation: Experiments with models ranging from 111M to 3.1B parameters confirm a linear scaling law between model size and AUROC, indicating larger models are more susceptible.

Limitations and Future Work

  • Limitations:
    • The current method is limited to autoregressive generative models that support both conditional and unconditional prediction. It cannot be directly applied to models that only support conditional prediction (e.g., VQVAE, VQGAN).
  • Future Work:
    • Extend the approach to more fine-grained generative paradigms, such as those that use images as conditioning inputs (e.g., ControlVAR, EditAR).
  • Investigate the applicability of the method to other modalities like video and audio.
  • Explore the impact of different numbers of scales and token counts on the scaling law.

Summary updated

BibTeX
@inproceedings{yu2025icas,
  author = {Hongyao Yu and Yixiang Qiu and Yiheng Yang and Hao Fang and Tianqu Zhuang and Jiaxin Hong and Bin Chen and Hao Wu and Shu-Tao Xia},
  title = {{ICAS: Detecting training data from autoregressive image generative models}},
  booktitle = {ACM Multimedia},
  year = {2025},
  url = {https://openreview.net/forum?id=v8A55ipZBR},
}
Figure