Banks lean on machine learning to catch fraud in real time, but those models can be fooled by adversarial attacks. I wanted to see if diffusion models could both stress-test a detector and clean up malicious inputs, without constantly retraining it on new attacks.
On the IEEE-CIS Fraud Detection dataset, I used Diff-PGD (diffusion-based projected gradient descent) to generate realistic adversarial examples, then TabDiff reverse diffusion to pull tampered inputs back toward clean data. Robustness improved while the detector kept its 96% ROC-AUC baseline.
What surprised me was that diffusion helps on both sides of the fight: generating hard fraud examples and cleaning up adversarial inputs without retraining the detector. It got really fun once I saw that generation and purification rely on the same idea of a clean data manifold.