I-231Diffusion Step Trace
Detects artifacts from diffusion model denoising steps — each step leaves characteristic residual patterns.
Algorithm / Model
Denoising Step Artifact Detection
How it works
This method identifies residual traces left by the iterative denoising process of diffusion models (DDPM, DDIM, Stable Diffusion):1. Denoising Schedule Fingerprint: Diffusion models generate images through T denoising steps (typically 20–1000), each removing a fraction of Gaussian noise according to a variance schedule β_t. The final image retains subtle traces of the last few denoising steps. The method estimates the residual noise variance σ²_residual and compares it to the expected schedule: for DDPM with T=1000, σ²_residual ≈ β_T ≈ 0.02; for DDIM with 50 steps, σ²_residual ≈ 0.008.2. Spectral Residual Analysis: Each denoising step applies a learned U-Net that operates differently at different spatial frequencies. The method computes the power spectral density (PSD) of high-frequency residuals and looks for the characteristic 'spectral notch' at mid-frequencies (0.2–0.4 Nyquist) caused by the U-Net's skip connections, which create frequency-dependent filtering artifacts.3. Patch-Level Consistency: In diffusion models, the denoising network processes the entire image jointly, creating globally correlated noise patterns. The method divides the image into 32×32 patches and measures the cross-correlation of noise residuals between non-adjacent patches. Authentic images show near-zero cross-patch correlation (< 0.05), while diffusion-generated images show correlations of 0.1–0.3 due to the U-Net's receptive field.4. Classifier-Free Guidance Detection: Most practical diffusion models use classifier-free guidance (CFG) with scale w > 1, which amplifies the signal-to-noise ratio non-uniformly. The method detects this by measuring the local SNR variance across the image — CFG produces systematic SNR variations correlated with semantic content (higher SNR in foreground, lower in background).
Technical Parameters
Noise estimation: 8×8 DCT-based Wiener estimation
Patch size: 32×32 for cross-correlation analysis
Spectral notch frequency range: 0.2–0.4 Nyquist
Cross-patch correlation threshold: 0.08
CFG detection: local SNR variance threshold 1.5
Supported models: DDPM, DDIM, Stable Diffusion, DALL-E, Midjourney
Patch size: 32×32 for cross-correlation analysis
Spectral notch frequency range: 0.2–0.4 Nyquist
Cross-patch correlation threshold: 0.08
CFG detection: local SNR variance threshold 1.5
Supported models: DDPM, DDIM, Stable Diffusion, DALL-E, Midjourney
Accuracy & Reliability
85–93% detection accuracy on diffusion-generated images. Spectral notch detection alone achieves 80% for Stable Diffusion v1.5 outputs. Cross-patch correlation analysis reaches 88% across multiple diffusion architectures. Performance drops to 76% on images generated with very high step counts (>200) or with noise injection post-processing.
Strengths
• Specifically targets the unique artifacts of diffusion models, the dominant AI generation paradigm
• Spectral notch is a reliable fingerprint of U-Net-based denoisers
• Cross-patch correlation analysis is robust to post-processing
• Can differentiate between different diffusion architectures (DDPM vs. DDIM vs. flow matching)
• CFG detection provides additional evidence channel for guided generation
• Spectral notch is a reliable fingerprint of U-Net-based denoisers
• Cross-patch correlation analysis is robust to post-processing
• Can differentiate between different diffusion architectures (DDPM vs. DDIM vs. flow matching)
• CFG detection provides additional evidence channel for guided generation
Limitations
• Rapidly evolving — new diffusion architectures may leave different traces
• Very high step counts (>200) reduce residual artifacts below detection threshold
• Post-generation noise injection can mask diffusion traces
• Distilled models (LCM, SDXL Turbo) with 1–4 steps leave minimal traces
• Requires relatively clean images — heavy JPEG compression destroys subtle spectral features
• Very high step counts (>200) reduce residual artifacts below detection threshold
• Post-generation noise injection can mask diffusion traces
• Distilled models (LCM, SDXL Turbo) with 1–4 steps leave minimal traces
• Requires relatively clean images — heavy JPEG compression destroys subtle spectral features
Use Case
Detecting images generated by diffusion models (Stable Diffusion, DALL-E, Midjourney). Identifying the specific diffusion architecture and sampling schedule used. Distinguishing diffusion-generated images from GAN-generated images based on their different artifact patterns.