Tracing to the source: Source attribution using temporal dynamics in diffusion trajectoriesTracing the Roots: Leveraging Temporal Dynamics in Diffusion Trajectories for Origin Attribution
The authors use diffusion trajectory features for membership inference and provenance attribution, and state that threshold methods can lose to a blind baseline under distribution shift.
The authors model data forensics as a game between the model developer and an adversary: the adversary extracts features from an off-the-shelf diffusion model and trains a linear probe to determine whether an image belongs to the training set, is newly generated by the model, or comes from an external source. White-box access is assumed, and less than 3.4% of the member set can be accessed; the surrogate framework is not used.
- The authors aim to uniformly determine whether an image is a diffusion model training member, a newly generated model sample, or external data. They point out that existing loss-threshold-based membership inference struggles to distinguish generated data from training data and may be affected by distribution shift.
- The method extracts denoising losses and their gradient norms with respect to inputs and model parameters at multiple denoising time steps, forming trajectory features, and then uses a linear classifier to perform binary membership inference, three-class provenance attribution and model attribution.
- The experiments cover DDPMs on CIFAR-10, CIFAR-100, and CelebA-HQ 256. The authors report that full-trajectory features outperform local time steps, with three-class OA AUC of 86.5 on CIFAR-10; model attribution still has failure cases on DDGAN and DDIM.
- The authors state that the method's runtime is comparable to diffusion inference and slower than existing membership inference; the evaluation uses a controlled external set, and model attribution has failure cases. Future directions include intra-class shift, data corruption, and generalization to large foundation generative systems.
- Evaluated models
- DDPM (CIFAR-10)DDPM (CelebA-HQ 256)DDPM (CIFAR-100)
- Metrics
- AUCTPR @ 1% FPRTPR @ 0.1% FPRASRclass-balanced accuracySSCD Cosine Similarity
The researchers propose a framework that determines image provenance by analyzing diffusion trajectories, distinguishing whether an image comes from the model's training set, is newly generated by the model, or comes from an external source. The authors claim that temporal dynamics along the entire trajectory enable more robust classification, challenging the "Goldilocks zone" conjecture that membership inference is only effective in a narrow denoising stage. The paper also points out that representative membership inference methods fail under distribution shift or when model-generated data is mixed in; regarding model attribution, the authors present what they claim is the first white-box method directly applicable to diffusion models, and propose unifying data provenance verification into a single framework for modern generative systems.
Related events and news
1 events · 0 news mentions
- This event's paper
追溯根源:利用扩散轨迹中的时间动态进行来源归因
Paper analysis
What problem does this paper attempt to solve?
Uniformly determine the membership, generation attribution, and external-source relationship of an image with respect to a diffusion model.
The core question is: given a pretrained diffusion model and an image, how to determine whether the image is a training member, a newly generated sample from the model, or from outside. The authors call this data provenance problem Origin Attribution (OA), placing membership inference and model attribution in the same framework.
- Application motivation: The authors believe that sensitive or copyrighted content in training data may be memorized and reproduced, and the lack of a content attribution mechanism is also detrimental to tracing the source of harmful outputs, so privacy, security and accountability need to be addressed simultaneously.
- Problems with existing methods: The authors point out that MIA represented by denoising loss thresholds misclassifies model-generated samples with lower loss as members; when there is a distribution shift between member and external data, some attacks may even be worse than a blind baseline without access to the diffusion model.
- Core observation and hypothesis: The authors question the “Goldilocks zone” conjecture of Carlini et al. (2023), that membership inference is only suitable for intermediate denoising stages; their hypothesis is that the temporal dynamics of the full diffusion trajectory contain global patterns that can be used to distinguish categories.
- Proposed approach: The method concatenates denoising losses at multiple time steps and the norms of input and parameter gradients, trains a linear probe, and extends to member–belonging–external three-class classification, data extraction filtering and white-box model attribution.
- Threat model:
- Goal: Extract features coupling the diffusion model and data, reveal their relationship, and use them for membership inference, provenance attribution or model attribution.
- Knowledge: Assumes white-box access and can use internal model signals; the authors believe that when fair and without distribution shift, black-box methods struggle to distinguish categories.
- Capability: Can access a small portion of the member set; experiments use less than 3.4%, and no surrogate development framework is used.
- Victim system: Off-the-shelf DDPMs whose training data is not public; the classifier is a linear probe outputting binary or three-class logits.
What related research exists?
Related work is divided into loss-threshold MIA, gradient white-box MIA, and reconstruction- or inversion-based model attribution.
Basic framework of membership inference
- Shokri et al. (2017): reproduce the target model's behavior through surrogate models, then train membership inference attacks in a supervised manner. The authors consider this framework computationally expensive when applied to modern generative systems, and its implicit assumptions such as training setup and data composition are difficult to define.
- Yeom et al. (2018): propose loss-threshold-based MIA, judging based on the fact that training samples usually have lower loss, with a design close to parameter-free; this paper uses it as a representative threshold attack framework.
- Carlini et al. (2022), Zhang et al. (2025): the former discusses membership inference from first principles, and the latter argues that MIA cannot prove that a model used a certain piece of data; based on this, the authors position existing diffusion MIA as a filtering component for data extraction.
Membership inference on diffusion models
- Matsumoto et al. (2023), Duan et al. (2023), Kong et al. (2024) (PIA), etc.: adopt or develop denoising-loss-based methods; the authors take Matsumoto et al. and PIA as representative methods and examine their performance under generated data and distribution shift.
- Carlini et al. (2023): study diffusion model training data extraction and propose the "Goldilocks zone" conjecture that the intermediate denoising stage is most suitable for membership inference, reporting that t ∈ [50, 300] is optimal on CIFAR-10; this paper directly re-examines this setting.
- Pang et al. (2025) (GSA): partition model parameters and aggregate loss gradient features of each subset, without relying on a simple loss threshold; the authors are inspired by its internal gradient signals and use it as a white-box attack comparison.
Model attribution and related evaluation views
- Wang et al. (2023), Laszkiewicz et al. (2024): estimate the model's internal preimage through reconstruction or inversion for generated content attribution. The authors state that these methods apply only indirectly to diffusion on latent or distilled models and cannot be equated with directly attributing DDPM.
- Liu et al. (2025): use foundation model representations for black-box, model-agnostic image provenance attribution; the authors believe its effectiveness may come from pretraining, and because the development details are opaque, it is outside the scope of this paper's methods.
- Das et al. (2025), Dubiński et al. (2024): study blind baselines exceeding MIA and obtaining more realistic attack settings through data cleaning, respectively; the authors advocate retaining distribution shift and interpreting metrics with a fairly developed blind baseline.
Baselines and benchmarks: binary MIA and OA use a ResNet18 blind baseline that does not access the diffusion model, and are compared with Matsumoto et al. (2023), PIA, and GSA2; data include CIFAR-10, CIFAR-10.1, CIFAR-100, CelebA-HQ 256, and FFHQ. Model attribution additionally uses generated samples from DDIM, WaveDiff, and DDGAN for open-world testing.
The authors position this paper as moving from single MIA to unified OA: replacing local thresholds with internal signals of the full trajectory, and state that it demonstrates a white-box model attribution method directly applicable to diffusion models.
How does the paper address this problem?
Concatenate full-trajectory loss and gradient features, and use a linear probe to unify membership inference and provenance attribution.
The overall idea is to extend single-time-step loss judgments into a diffusion trajectory representation: extract internal signals along the denoising process, then use a unified linear classifier to handle MIA, OA, and model attribution.
Problem setting and feature learning
- Data are divided into member (training set samples), belonging (newly generated model samples), and external (external samples); MIA is binary classification, and OA treats member, belonging, and external as three classes.
- The classifier is l(x;ϵθ)=W· f(x;ϵθ)+b, where f is the trajectory feature extracted from the target diffusion model, and W and b are trained by the adversary under a limited data budget.
- By default, 1000 class-balanced samples per class are used to develop the classifier, and evaluation is on separately selected data; features are normalized to zero mean and unit variance using training data statistics.
From loss thresholds to the full time trajectory
- A representative threshold attack uses Lt=|ϵθ(√(ᾱt)x+√(1−ᾱt)ϵ,t)−ϵ|22, judging as a member when Lt is below a threshold; this paper retains Lt but no longer relies on a single time step.
- Under a fixed diffusion model query budget, Lt from multiple time steps are concatenated into a vector, comparing local contiguous intervals with uniform sampling covering the entire process, to test the "Goldilocks zone" conjecture.
- The full representation also adds the input gradient norm and parameter gradient norm at each time step. The authors state that there is no theoretical basis for including gradients, and they only intuitively expect them to provide curvature information helpful for trajectory modeling.
- The paper notes that these loss sequences are not the native DDPM trajectory: the noise at different time steps in the native forward process is correlated, whereas here the overall noise is completely independent of t.
Feature extraction and classifier training
- Algorithm 1 samples Gaussian noise for each t ∈ {0,…,T−1}, computes Lt, the input gradient norm, and the parameter gradient norm, aggregates them, and returns them as f.
- The linear classifier uses cross-entropy and AdamW: batch size 50, 100 epochs, learning rate 1e-3, weight decay 10; StepLR multiplies the learning rate by 0.8 every 5 epochs (Table 5).
- Hyperparameters follow the settings optimized for Pang et al. (2025) on CIFAR-10 with TPR @ 1% FPR, and the authors did not search further; feature extraction uses a Quadro RTX 6000, and framework development uses a GTX 1650.
Three tasks and success criteria
- MIA: distinguish member from external, reporting AUC, TPR @ FPR, and ASR, and compare with a ResNet18 blind baseline under the same data budget; ten random data splits are additionally used to examine intra-class shift.
- OA and data extraction: add model-generated data during training for member–belonging–external three-class classification; collect generated samples misjudged as member and use SSCD scores to filter samples similar to training members.
- Model attribution: the development stage sees only target DDPM generated samples and non-attributed real samples; at test time, unseen DDIM, WaveDiff, and DDGAN samples are added, reporting per-model accuracy and class-balanced average accuracy.
What experiments did the paper conduct?
Experiments show two types of failure of threshold methods; full-trajectory features improve MIA/OA, but model attribution still has failures.
Experimental setup
- Generative models under test: Off-the-shelf DDPMs on CIFAR-10, CIFAR-100 and CelebA-HQ 256; CelebA-HQ resolution is 256×256. Model attribution test generators also include DDIM, WaveDiff (WDiff in the table) and DDGAN.
- Data and external sets: CIFAR-10 experiments use CIFAR-10.1 as the external set, CIFAR-100 uses CIFAR-100 val; CelebA-HQ uses FFHQ. Appendix A states that the former has a smaller inter-class shift, while the latter has a clear shift.
- Baselines and controls: The ResNet18 blind baseline does not access the diffusion model; MIA controls are Matsumoto et al. (2023), PIA and GSA2. By default 1000 development samples per class, and the blind baseline uses the same budget.
- Metrics: AUC, TPR @ 1% FPR, TPR @ 0.1% FPR, ASR; OA averages after treating member or belonging respectively as the positive class. Model attribution reports per-model accuracy and class-balanced average accuracy.
- Repetition and determination: Table 4 reports mean and standard deviation over ten random data splits that are not necessarily class-balanced; the other main tables do not report the number of repetitions. Classification is done by a linear probe; the paper does not use LLM review.
Main results
The member–external MIA results of Table 2 are as follows; the CIFAR-10 external set is CIFAR-10.1, and the CelebA-HQ 256 external set is FFHQ.
Swipe horizontally to read the table
Method CIFAR-10 AUC CIFAR-10 TPR@1%FPR CIFAR-10 ASR CelebA AUC CelebA TPR@1%FPR CelebA ASR Naive (model-blind) 52.2 0.0 52.0 94.4 60.1 86.6 Matsumoto et al. (2023) 63.2 3.3 59.7 85.2 26.4 76.2 Kong et al. (2024) (PIA) 66.9 5.1 62.4 62.5 0.1 58.1 Pang et al. (2025) (GSA2) 82.7 12.5 73.5 100.0 99.6 92.5 - Failure of threshold methods: The authors state that Matsumoto et al. and PIA are worse than the blind baseline under the distribution shift caused by the FFHQ external set; GSA2 does not use a loss threshold and still maintains the highest results in the table.
- Generated-data confusion: In Table 1, CIFAR-10 at t=50 has TPR/external FPR of 56.3/46.4, while the generated-data FPR is 60.7; CelebA-HQ 256 at t=300 is 59.6/45.6, with generated-data FPR 65.7. The authors state that generated samples consistently achieve the lowest loss, making threshold detectors unable to reliably audit synthetic data.
- Scope of graphical evidence: Figure 1 gives the mean loss of the three data classes as t varies on CelebA-HQ DDPM; Figure 2 contains histograms and t-SNE of loss and input-gradient features. The plain-text conversion did not preserve verifiable cluster positions, so their degree of separation is not described further.
Full trajectory and three-class provenance attribution
- Time ranges: Table 3 fixes the number of queries; on CIFAR-10 the AUCs for t=0,…,249, 250,…,499, 500,…,749, 750,…,999 are 68.5, 68.1, 54.7, 50.7 respectively; when uniformly taking t=0,4,…,996 it is 71.2. The authors accordingly propose the counter-hypothesis that the full trajectory contains global patterns.
- OA results: In Table 6, with full Lt, input-gradient and parameter-gradient features at t=0,1,…,999, CIFAR-10's AUC/TPR@1%FPR/ASR is 86.5/15.9/71.1, and CelebA-HQ 256 is 99.3/86.5/94.1; the blind baselines are 51.5/1.2/34.7 and 90.0/32.1/74.4 respectively.
- Feature variants: The full trajectory with only Lt has an OA AUC of 71.6 on CIFAR-10; t=0,3,…,999 plus the three feature types is 85.0. The corresponding values for CelebA-HQ 256 are 95.2 and 98.8 (Table 6).
Data extraction and model attribution
- Extraction filtering: Figure 7 filters the subset of 30k model-generated samples misclassified as members down to 1.7k samples similar to members, measured using SSCD scores; the authors state that these generated samples and similar members were not used to train the classifier, and treat the left-skewed similarity distribution as evidence that the method is effective.
- Open-world MA: The full-feature method in Table 7 achieves accuracies on CIFAR-10 for DDPM/DDIM/DDGAN/WDiff of 87.2/86.8/13.1/91.7, averaging 75.5; the blind baseline averages 51.2.
- Failure cases: The same method on CelebA-HQ 256 for DDPM/DDIM/DDGAN/WDiff is 100.0/3.5/86.8/68.9, averaging 76.5; the blind baseline averages 55.8. The authors point out that on DDGAN and DDIM the blind baseline may achieve higher conditional accuracy, so conditional accuracy alone should not be used.
Other ablations and analyses
- Ten splits: For CIFAR-10 TPR@1%FPR in Table 4, GSA2 is 9.1±1.64, and the full features of this paper are 12.0±2.93; for CIFAR-100 they are 2.6±1.10 and 9.4±2.50 respectively.
- Feature ablation: In Table 8 at t=0,1,…,999, the Lt+two-gradient combination for CIFAR-10 has AUC/TPR@1%FPR/ASR of 83.3/16.8/74.8, and CelebA-HQ 256 is 100.0/100.0/99.5.
- PIA features: In Table 8, after combining PIA with the three feature types, CIFAR-10 AUC is 76.3 and CelebA-HQ 256 is 99.3; the authors state that deterministic PIA features are worse than random features.
- Data budget: Figures 4 and 5 compare MIA under different member set proportions, with legends Ours and GSA2; the converted text did not preserve reliably readable curve endpoints, so no values are supplied.
- Ordinary classification: Table 9 uses trajectory features to predict CIFAR-10 object classes; full-feature accuracy is 31.6, with the authors using random guessing of about 10% as a reference.
What are some points that can be further explored?
The authors list limitations such as speed, controlled evaluation and attribution failures, and propose several robustness directions.
Limitations and future directions noted by the authors
- Computational cost: Section 7.1 states that the attack's runtime is comparable to diffusion inference, making the method slower than existing membership inference attacks; the authors consider this not unusable because it is not aimed at real-time applications.
- Attribution failures: Section 7.1 explicitly notes that the model attribution in Section 6.2 has failure cases requiring further study.
- Controlled evaluation: Section 7.1 states that data provenance tools and evaluations need to be more robust, especially because the benchmark uses a controlled external set.
- Robustness and generalization: Section 7.1 lists intra-class distribution shift, common and adversarial data corruption, generalization ability, and extension to large foundation generative systems as future directions.
- Task positioning: Section 7.2 suggests re-examining the surrogate threat model and avoiding the use of foundation or pretrained models in resource-constrained, sensitive model attribution scenarios.
- Evaluation protocol and extraction task: Section 7.2 suggests retaining distribution shift together with a fair blind baseline; it also argues that membership inference research should shift from traditional benchmarks to training data extraction tasks.
Scope of experiments
- The targets tested are three off-the-shelf DDPMs, corresponding to CIFAR-10, CIFAR-100, and CelebA-HQ 256; the open-world samples for model attribution come from DDIM, WaveDiff, and DDGAN (Section 6, Appendix A).
- The external sets include CIFAR-10.1, CIFAR-100 val, and FFHQ; the combination of CelebA-HQ and FFHQ has the distribution shift described by the authors (Table 2, Appendix A).
- The default classifier development budget is 1000 samples per class, and the threat model allows access to less than 3.4% of the member set; Figures 4 and 5 additionally examine different data budgets (Section 3, Appendix A).
- Ten random splits appear only in the intra-class shift analysis of Table 4; the other main results tables do not report the number of repetitions, and the paper also does not report the number of attack queries or specific runtime.
- The data extraction experiment filters from 30k generated samples to 1.7k similar samples using SSCD scores; the paper does not report manual review or human agreement (Figure 7).
Summarize the main content of the paper
Trajectory features unify the three data provenance tasks and expose the boundaries of threshold MIA and open-world attribution.
This is an attack and evaluation study on diffusion model data provenance, unifying membership inference and model attribution into the Origin Attribution framework, distinguishing training members, newly generated model samples, and external data.
- Problem: The authors point out that single-time-step denoising loss thresholds cannot reliably distinguish generated samples from training members; when external data has distribution shift, some representative MIAs may also lose to a blind baseline that does not access the target model.
- Method: Concatenate denoising loss, input gradient norm, and parameter gradient norm along multiple time steps, and train a linear probe with limited member data; the same representation is used for binary MIA, three-class OA, generated data extraction filtering, and white-box model attribution.
- Counterexamples to threshold methods: In Table 2, for CelebA-HQ 256 with FFHQ as the external set, the blind baseline ASR is 86.6, Matsumoto et al. is 76.2, and PIA is 58.1; GSA2 is 92.5.
- Temporal dynamics: Table 3 fixes the query budget; on CIFAR-10, uniform time steps covering the full trajectory achieve AUC 71.2, while the four local intervals are 68.5, 68.1, 54.7, and 50.7 respectively; the authors use this to question the "Goldilocks zone" conjecture.
- Unified OA: In Table 6, full-trajectory features achieve AUC 86.5, TPR@1%FPR 15.9, and ASR 71.1 on CIFAR-10; on CelebA-HQ 256 they are 99.3, 86.5, and 94.1 respectively.
- Attribution boundaries: In Table 7, the full-feature method achieves class-balanced MA accuracy of 75.5 on CIFAR-10, but only 13.1 for DDGAN; on CelebA-HQ 256, DDIM is only 3.5. The authors therefore caution against judging methods by conditional accuracy alone.
The authors believe that the full trajectory is more suitable for data forensics than local loss thresholds, but the task is far from solved; they suggest adopting fair blind baselines in the future, retaining distribution shift, and grounding membership inference more in training data extraction, while studying speed, corruption robustness, and generalization to large generative systems.