TL;DR
Detecting diffusion-generated time series data is fundamentally different from detecting synthetic images. While image domain detectors rely heavily on "white-box" reconstruction errors from massive foundation models, this paper demonstrates that this approach completely breaks down for time series under generator shift. Instead, simple "black-box" classifiers trained directly on raw signals offer a much more robust and generalizable defense against unseen generators.
What Problem Does This Paper Address?
Generative AI has made massive leaps in creating realistic time series data, with diffusion models leading the charge in applications across healthcare, finance, and engineering. However, the ability to generate highly realistic synthetic data brings risks of misuse, making reliable detection tools essential.
In computer vision, state-of-the-art synthetic image detectors often use a "white-box" approach: they pass an image through a known diffusion model, invert it, reconstruct it, and calculate the reconstruction error. Because synthetic images align closely with the generator's learned trajectories, their reconstruction error is low compared to real images. This paper addresses a critical gap: Does this reconstruction-based approach transfer to the time series domain, especially under "generator shift" (when the detector encounters synthetic data from a generator it wasn't trained on)?
Methods
The authors systematically compare two distinct detection strategies:
- White-Box Reconstruction-Based Detection: They adapt DIRE (a prominent image-domain method) to time series. This method uses Denoising Diffusion Implicit Model (DDIM) inversion to progressively add noise to a sequence and then denoise it back using a known reference generator ($G^*$). The detection metric is the mean squared reconstruction error.
- Black-Box Classifier-Based Detection: Bypassing the reconstruction step entirely, this approach trains standard time series classifiers directly on raw signals labeled as either real or synthetic (generated by the reference model). The authors evaluate several architectures, finding Disjoint-CNN (which separates temporal and channel-wise convolutions) to be the most effective.
Datasets
The detectors were evaluated across 10 diverse benchmark datasets: Electricity, Energy, ETTh1, ETTm1, Exchange Rate, fMRI, Illness, Stock, Traffic, and Weather.
To test robustness against generator shift, the authors utilized four state-of-the-art diffusion generators:
- SSSD: Used as the in-distribution reference generator to train the detectors.
- TSDiff, Diffusion-TS, and WaveStitch: Kept entirely unseen during training to serve as the out-of-distribution (OOD) testing suite.
Key Insights and Ideas
- The Missing Universal Prior: White-box reconstruction succeeds in images because massive models like Stable Diffusion provide a near-universal reconstruction prior that generalizes across other image generators. Time series models, by contrast, are trained on narrow, specific datasets and lack a universal foundation prior.
- The Collapse of Reconstruction Error: Under generator shift, a white-box model fails to expose synthesis artifacts. Instead, it mistakenly "corrects" samples from unseen generators toward its own learned distribution. As a result, the reconstruction errors of real data and unseen synthetic data collapse onto each other, erasing the decision boundary.
- Classifiers Generalize via Shared Fingerprints: Black-box classifiers perform surprisingly well because different diffusion models leave overlapping architectural "fingerprints" or artifacts in the raw signal. This allows a classifier trained on just one generator to successfully flag fakes from entirely different, unseen models.
Key Results
- In-Distribution Performance: Both methods excel when evaluating data from the known generator (SSSD), with Disjoint-CNN achieving an F1-score above 94% and DIRE averaging 91.9%.
- Out-of-Distribution Performance: Under generator shift, DIRE completely fails, with its True Positive Rate at a 1% False Positive Rate (TPR@1%FPR) dropping to near 0%.
- Classifier Superiority: Disjoint-CNN maintains an impressive average OOD F1-score of 79.2% (a 22.1% relative improvement over DIRE) and a TPR@1%FPR of 57.2%.
- Impact of Data Quality: As the generation quality of the underlying model improves (e.g., Diffusion-TS), detection becomes harder for both methods, but the black-box classifier degrades much more gracefully than the white-box approach.
Limitations and Future Work
- Sequence Length Bottleneck: While classifiers excel at short sequences (32-length), their OOD performance drops significantly on longer sequences (128-length). This suggests that generator-specific artifacts become harder to capture globally as the sequence length grows.
- Expanding Generator Types: This study focused exclusively on diffusion-based generators. The authors note that future work should explore whether black-box detectors can simultaneously handle both autoregressive models (like TimeGPT or MOMENT) and diffusion models.
- Cross-Dataset Generalization: The current framework evaluates cross-generator performance within the same dataset distribution. Generalizing a detector across entirely different datasets remains an open and vital challenge.
Summary updated