mlsanityData to 14 Oct 2026

FlowPure: Continuous Normalizing Flows for Adversarial Purification

arXiv 2505.13280 ↗First posted 19 May 2025cs.LG cs.AI cs.CRcited by 2

On the map: Diffusion models → Robustness, privacy and adversarial aspects

Abstract (arXiv)

Despite significant advances in the area, adversarial robustness remains a critical challenge in systems employing machine learning models. The removal of adversarial perturbations at inference time, known as adversarial purification, has emerged as a promising defense strategy. To achieve this, state-of-the-art methods leverage diffusion models that inject Gaussian noise during a forward process to dilute adversarial perturbations, followed by a denoising step to restore clean samples before classification. In this work, we propose FlowPure, a novel purification method based on Continuous Normalizing Flows (CNFs) trained with Conditional Flow Matching (CFM) to learn mappings from adversarial examples to their clean counterparts. Unlike prior diffusion-based approaches that rely on fixed noise processes, FlowPure can leverage specific attack knowledge to improve robustness under known threats, while also supporting a more general stochastic variant trained on Gaussian perturbations for settings where such knowledge is unavailable. Experiments on CIFAR-10 and CIFAR-100 demonstrate that our method outperforms state-of-the-art purification defenses in preprocessor-blind and white-box scenarios, and can do so while fully preserving benign accuracy in the former. Moreover, our results show that not only is FlowPure a highly effective purifier but it also holds strong potential for adversarial detection, identifying preprocessor-blind PGD samples with near-perfect accuracy. Our code is publicly available at https://github.com/DistriNet/FlowPure.

Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Placed in Robustness, privacy and adversarial aspects, one of 14 directions in Diffusion models. Builds on 36 of its 41 references that are in the map. First posted on arXiv 19 May 2025.

Builds on

36 of 41 references.

Closest ancestors · 7

Same direction, newest first

  1. 2024ADBM: Adversarial diffusion bridge model for reliable adversarial purification1 Aug
  2. 2023DiffAttack: Evasion Attacks Against Diffusion-Based Adversarial Purification27 Oct
  3. 2023Enhancing Adversarial Robustness via Score-Based Optimization10 Jul
  4. 2023Robust Classification via a Single Diffusion Model24 May
  5. 2022Guided Diffusion Model for Adversarial Purification30 May
  6. 2022Diffusion Models for Adversarial Purification16 May
  7. 2021Adversarial purification with Score-based generative models11 Jun

Other references · 29

  1. 2020Denoising Diffusion Probabilistic Modelscited by 21,076
  2. 2015U-Net: Convolutional Networks for Biomedical Image Segmentationcited by 19,713
  3. 2020Score-Based Generative Modeling through Stochastic Differential Equationscited by 9,122
  4. 2014Explaining and Harnessing Adversarial Examplescited by 7,364
  5. 2017Towards Deep Learning Models Resistant to Adversarial Attackscited by 6,415
  6. 2022Flow Matching for Generative Modelingcited by 5,702
  7. 2013Intriguing properties of neural networkscited by 5,155
  8. 2018Neural Ordinary Differential Equationscited by 3,779
  9. 2022Flow Straight and Fast: Learning to Generate and Transfer Data with Rectified Flowcited by 3,700
  10. 2016Wide Residual Networkscited by 3,070
  11. 2016Towards Evaluating the Robustness of Neural Networkscited by 2,998
  12. 2018A Simple Unified Framework for Detecting Out-of-Distribution Samples and Adversarial Attackscited by 1,485
17 more
  1. 2020Reliable evaluation of adversarial robustness with an ensemble of diverse parameter-free attackscited by 1,451
  2. 2018Obfuscated Gradients Give a False Sense of Security: Circumventing Defenses to Adversarial Examplescited by 1,268
  3. 2023Improving and generalizing flow-based generative models with minibatch optimal transportcited by 879
  4. 2020RobustBench: a standardized adversarial robustness benchmarkcited by 661
  5. 2020On Adaptive Attacks to Adversarial Example Defensescited by 555
  6. 2019On Evaluating Adversarial Robustnesscited by 447
  7. 2018Defense-GAN: Protecting Classifiers Against Adversarial Attacks Using Generative Modelscited by 362
  8. 2018Characterizing Adversarial Subspaces Using Local Intrinsic Dimensionalitycited by 282
  9. 2017PixelDefend: Leveraging Generative Models to Understand and Defend against Adversarial Examplescited by 244
  10. 2020Torchattacks: A PyTorch Repository for Adversarial Attackscited by 158
  11. 2021Solo-learn: A Library of Self-supervised Methods for Visual Representation Learningcited by 116
  12. 2023Robust Evaluation of Diffusion-Based Adversarial Purificationcited by 65
  13. 2021Detecting Adversarial Examples from Sensitivity Inconsistency of Spatial-Transform Domaincited by 29
  14. 2022On the Limitations of Stochastic Pre-processing Defensescited by 21
  15. 2023Towards more Practical Threat Models in Artificial Intelligence Securitycited by 17
  16. 2022Be Your Own Neighborhood: Detecting Adversarial Example by the Neighborhood Relations Built on Self-Supervised Learningcited by 5
  17. 2023Randomness in ML Defenses Helps Persistent Attackers and Hinders Evaluatorscited by 5

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 1; 2026: 1.

2 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2024Instant Adversarial Purification with Adversarial Consistency Distillation
  2. 2026NADD: Amplifying Noise for Effective Diffusion-based Adversarial Purification
  3. 2024LoRID: Low-Rank Iterative Diffusion for Adversarial Purification
  4. 2025DBLP: Noise Bridge Consistency Distillation For Efficient And Reliable Adversarial Purification
  5. 2025Divide and Conquer: Heterogeneous Noise Integration for Diffusion-based Adversarial Purification
  6. 2025Defending Against Frequency-Based Attacks with Diffusion Models
  7. 2022Guided Diffusion Model for Adversarial Purification from Random Noise
  8. 2024DiffBreak: Is Diffusion-Based Purification Robust?