Manuscript Offprint

arXiv:2611.02578

Probing Local Conditional Fit for Diffusion Model Membership Inference

ByungHee Cha, Naoki Murata, Yuhta Takida, Jong Chul Ye, Yuki Mitsufuji

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Membership inference determines whether a candidate example was used to train a text-to-image diffusion model and is an important tool for auditing training-data use. We identify a directional membership signal in conditional prediction shifts, the changes in predicted noise under alternative text conditions at a fixed noisy input: whether movement toward the alternative prediction initially lowers or raises the denoising loss from its value under the original caption. Members exhibit less room for such local improvement. To quantify this response, we propose LoFIT (Local Conditional Fit), which measures the initial response of the denoising loss along normalized prediction shifts and aggregates it across multiple text conditions and diffusion states. LoFIT requires no target-model gradients and can be computed using only forward queries to the denoiser. Evaluations on four datasets show improved membership discrimination across fine-tuned and pretrained models. LoFIT distinguishes members early in fine-tuning, while the naive denoising-loss baseline remains near chance. Controlled comparisons show that the membership signal is concentrated in the first-order response, with little discrimination from prediction-shift magnitude alone.

1 INTRODUCTION

Text-to-image diffusion models are trained on large collections of paired images and captions (Rombach et al., 2022) and can memorize and reproduce training images (Carlini et al., 2023; Somepalli et al., 2023b; Hong et al., 2024). Because these collections may contain private, copyrighted, or otherwise unauthorized material, determining whether a candidate example was used in training is important for auditing data provenance and training-data use. Membership inference attacks (MIAs) determine whether a queried example participated in training (Shokri et al., 2017) and can provide such audits for text-to-image diffusion models (Zhai et al., 2024; Qi et al., 2026). We study a gray-box setting in which an auditor can query the noise predictor at chosen noisy inputs, timesteps, and text conditions, but cannot inspect model weights or obtain target-model gradients. This access enables direct evaluation of conditional denoising fit without differentiating through the target model.

Several diffusion-model MIAs use denoising or reconstruction errors as their primary membership signals (Duan et al., 2023; Kong et al., 2024; Tang et al., 2023). Denoising loss is a natural starting point not only because it is the training objective but also because it is connected to likelihood through the variational bound (Ho et al., 2020). Generalization allows diffusion models to denoise unseen images accurately, making absolute denoising error alone an incomplete indicator of membership (Zhai et al., 2024). CLiD (Zhai et al., 2024) extends this view to the relationship between an image and its text condition. Motivated by conditional overfitting, it compares losses under the original caption and modified conditions. Its results suggest that membership information can reside in the learned image-text relationship, beyond denoising accuracy under a single condition.

†Corresponding authors.

Figure

Figure 1: Illustration of LoFIT for a queried image-caption pair. At a fixed noisy input, rr denotes the original-caption prediction error relative to the target noise, and δ\delta the prediction shift toward a reference-caption prediction. LoFIT measures the initial denoising-loss response along this shift through the normalized alignment ⟨r,δ⟩/∥δ∥2\langle r, \delta \rangle / \|\delta\|_2. Members exhibit a weaker initial loss decrease than non-members, indicating less room for local denoising improvement and yielding a higher score. The curves are conceptual; measured class distributions appear in Figure 6.

Condition-dependent evidence also appears in a model's response to changes in the text condition. SD-MIA studies pre-training membership under black-box access by perturbing the original textual instruction and measuring the relevance of generated images to the queried image (Qi et al., 2026). The success of its method on a pretrained model provides a useful insight that membership evidence also resides in the local behavior across text conditions.

CLiD and SD-MIA provide complementary motivations. CLiD shows that membership information can lie in the image-text relationship, while SD-MIA shows that changing the text condition can expose it. These findings motivate us to ask how a change in text condition affects the denoising fit for the same image. With access to the noise predictor, we examine this question by comparing predictions across conditions while holding the noisy input and target noise fixed.

Since training minimizes denoising loss on observed image-caption pairs, we hypothesize that predictions for members have less potential for further reduction in denoising loss through conditional adjustments than those for non-members. Based on this hypothesis, we introduce LoFIT (Local Conditional Fit), a membership score that measures the local denoising-loss response to conditional adjustments. LoFIT uses predictions under alternative captions to probe whether the original prediction can be locally improved. For each alternative, it measures the initial change in denoising loss per unit movement toward that prediction, then averages these responses across reference captions and diffusion states. Higher scores indicate less scope for local improvement on average and provide evidence of membership. LoFIT computes this score using only forward predictions, without access to model gradients.

We evaluate LoFIT on four datasets spanning fine-tuned and pretrained diffusion models. It outperforms the evaluated baselines, including CLiD (Zhai et al., 2024) and PFAMI (Fu et al., 2024), in AUROC, reaching 0.935, 0.954, and 0.896 on fine-tuned SD v1.4 and 0.602 on pretrained SD v1.5 (Section 4.2). Across training checkpoints, its discrimination strengthens as fixed image-caption pairs are used for training, while absolute denoising loss remains a weak discriminator (Section 5.1). On identical predictions, controlled decompositions locate membership separation in the first-order alignment response (Section 5.3). Matched-budget comparisons show LoFIT's advantage at equal query cost (Section 4.2).

Our contributions are:

  • We identify a membership signal in the local denoising-loss response to conditional prediction adjustments: members exhibit less potential for loss reduction than non-members.

  • We introduce LoFIT, which measures this response per unit prediction change and aggregates it across reference captions and diffusion states using only forward queries.

  • We evaluate LoFIT on four evaluation sets and use controlled comparisons to identify the contribution of its first-order response.

References (67)

  • Convex Optimization
  • Extracting training data from diffusion models
  • Are diffusion models vulnerable to membership inference attacks? In International Conference on Machine Learning, 2023
  • Towards more realistic membership inference attacks on large diffusion models
  • A probabilistic fluctuation based membership inference attack for diffusion models (opens arXiv in a new tab)
  • Classifier-Free Diffusion Guidance
  • Denoising diffusion probabilistic models
  • Membench: Memorized image trigger prompt dataset for diffusion models (opens arXiv in a new tab)
  • No caption, no problem: Caption-free membership inference via model-fitted embeddings
  • An efficient membership inference attack for the diffusion model by proximal initialization
  • Towards black-box membership inference attack for diffusion models
  • Blip-2: Bootstrapping language-image pre-training with frozen image encoders and large language models
  • Noise as a probe: Membership inference attacks on diffusion models leveraging initial noise (opens arXiv in a new tab)
  • Microsoft coco: Common objects in context
  • Compositional visual generation with composable diffusion models
  • Openvid-1m: A large-scale high-quality dataset for text-to-video generation
  • Black-box membership inference attacks on the pre-training data of image-generation models
  • Animeshooter: A multi-shot animation dataset for reference-guided video generation (opens arXiv in a new tab)
  • Learning transferable visual models from natural language supervision
  • Score-based membership inference on diffusion models (opens arXiv in a new tab)
  • High-resolution image synthesis with latent diffusion models
  • Membership inference attacks against machine learning models
  • Understanding and mitigating copying in diffusion models
  • Diffusion art or digital forgery? investigating data replication in diffusion models
  • Membership inference attacks on diffusion models via quantile regression (opens arXiv in a new tab)
  • Wan: Open and Advanced Large-Scale Video Generative Models
  • Detecting, explaining, and mitigating memorization in diffusion models
  • Cogvideox: Text-to-video diffusion models with an expert transformer
  • From image descriptions to visual denotations: New similarity metrics for semantic inference over event descriptions
  • Membership inference on text-to-image diffusion models via conditional likelihood discrepancy
  • Table 6 lists the evaluated checkpoints and effective batch sizes
  • >SD v1.4</td><td>Flickr30k</td><td>16</td><td>20,000</td></tr><tr><td>COCO</td><td>256</td><td>1,000</td></tr><tr><td>Pokemon</td><td>256</td><td>200</td></tr><tr><td rowspan=
  • We shuffle each dataset once with seed 0, assign the first $n$ images to members, and take the next $n$ as non-members, with $n = 10,000$ for Flickr30k and $n = 2,500$ for COCO. Pokemon uses the first 416 images as members and the remaining 417 as non-members
  • The language-model edits are inspired by SD-MIA's textual perturbations (Qi et al., 2026) and use gpt-4.1-mini
  • ><tr><td>Prompt family</td><td>Construction</td></tr><tr><td colspan=
  • n} paraphrases: SAME meaning, different wording, each clearly distinct from the others}]
  • ><tr><td>Reference family</td><td>Flickr30k</td><td>COCO</td><td>Pokemon</td><td>LAION-MI</td></tr><tr><td colspan=
  • Both scores use identical predictions over 48 states on Flickr30k and LAION-MI and 16 on COCO and Pokemon
  • Analyses of caption edits and Gaussian perturbations use the caption sets and query budgets specified for each experiment
  • Each attack uses its default fixed-timestep setting and one noise realization per image, with seed 0
  • Calibration follows the experiment-specific protocols below
  • These entries give an oracle AUROC upper bound over the tested grid, rather than an independently calibrated attack
  • Table 3 isolates the scoring rule by computing both methods from identical predictions
  • For text-to-image diffusion, we VAE-encode perturbed images at the target model's resolution and condition on the original caption with guidance scale 1
  • CLIP matching controls their image-text similarity discrepancy
  • The retained and excluded non-member groups are themselves distinguishable, showing that population differences can inflate apparent membership discrimination
  • The loss-landscape and prediction-shift analyses use captions with varying degrees of wording and semantic modification, together with random captions and the empty prompt (Appendix A.2)
  • Figures 5 and 6 show the loss curves and minimum locations
  • The curve coefficient $\widetilde{v}_j$ normalizes after state averaging; LoFIT instead normalizes each $v_{ij}$ before averaging
  • Each curve uses the state-averaged statistics for one reference
  • Figure 6 shows this pattern across all four datasets
  • We study which references provide strong and complementary signals, compare conditioning changes with alternative perturbations, and assess how reference selection changes when the original caption is unavailable
  • Semantic edits vary more across refer-ences; on COCO, their mean single-reference AUROC is 0.793, compared with 0.819 for random captions
  • We use the full evaluation sets and diffusion-state grids in Table 14
  • We sample four Gaussian directions per image at each $h \in \{40, 80, 160\}$ and reuse each direction across that image's diffusion states
  • Their original-caption denoising losses agree exactly on all four datasets
  • Entries show means and standard deviations where available
  • This ranking differs on pretrained LAION-MI: Gaussian probes yield AUROC 0.520–0.534, compared with 0.574 for random captions and 0.606 for the empty prompt
  • We pool alignment responses from the complete caption reference sets in Table 8 and eight additional Gaussian probes, four at $h = 80$ and four at $h = 160$
  • At $h = 160$, AUROC reaches 0.842, 0.904, and 0.802 on Flickr30k, COCO, and Pokemon, respectively
  • On OpenVid, we evaluate 1,000 members and 4,000 non-members for both backbones
  • For Wan2.1, the same nominal timesteps map to noise levels $\sigma = t/1000 \in \{0.08, 0.16, \dots, 0.96\}$, with
  • Wan2.1 losses and alignment responses are evaluated in velocity-prediction space
  • LoFIT uniformly averages the responses over all 12 predefined states, requiring 24 denoiser forward evaluations per video (12 states $\times$ 2 conditions)
  • Bold marks the best value per model, dataset, and metric
  • >Method</td><td colspan=
  • On CogVideoX-2b, it reaches AUROC 0.948 on Anime-Shooter and 0.656 on OpenVid, compared with 0.870 and 0.594 for CLiD$_{th}$