Evaluating the Adversarial Robustness for Fourier Neural Operators

Abolaji D. Adesoji, Pin-Yu Chen

Abstract

Fourier Neural Operators (FNOs) have emerged as a powerful tool for solving complex partial differential equations (PDEs) with high speed and accuracy. However, their reliability in critical engineering applications remains under-explored. This paper presents the first systematic study of the adversarial robustness of FNOs. Using a modified Projected Gradient Descent (PGD) attack and a novel surrogate field approach to maintain physical validity, we demonstrate that FNOs are highly sensitive to small input perturbations. Our results show that prediction error grows quadratically or even cubically with attack strength, highlighting a significant vulnerability in current scientific machine learning models.

Introduction

Traditional numerical solvers for physics problems are often computationally expensive. Machine Learning (ML) models, particularly Fourier Neural Operators (FNOs), offer a promising alternative due to their mesh-free nature and superior inference speed. Despite their success in modeling phenomena like fluid turbulence, the "trustworthiness" of these models is a major concern. In domains like computer vision, adversarial examples are known to cause catastrophic failures. This study investigates whether FNOs exhibit similar vulnerabilities when subjected to small, targeted errors in input data, such as initial conditions.

Methodology

To evaluate robustness, we employ the Projected Gradient Descent (PGD) attack, adapted for physics-informed models. The goal is to find a perturbation $\delta$ within an $\ell_\infty$-norm bound $\epsilon$ that maximizes the Mean Squared Error (MSE) of the FNO prediction.

A significant challenge arises because traditional PDE solvers, used for ground truth, require inputs to satisfy specific mathematical constraints (e.g., smoothness). To address this, we introduce a surrogate field approach:

  1. Perturb the FNO's input using PGD.
  2. Perform a grid search through a library of pre-calculated random Gaussian fields to find the closest "surrogate" $b_j$ that a traditional solver can process.
  3. Use the output of that surrogate as the ground truth to measure how much the FNO's prediction deviated under attack.
Visualizing input perturbations and surrogate field matching across different attack strengths ($\epsilon$).

Experimental Setup

We evaluated FNO robustness on three standard benchmarks:

  • 1D Burgers Equation: Modeling viscous fluid flow.
  • 2D Darcy Flow: Modeling steady-state flow through porous media.
  • 2D+1 Navier-Stokes Equations: Modeling complex incompressible fluid turbulence.

Results and Discussion

Our analysis reveals that FNO robustness degrades rapidly as the perturbation level $\epsilon$ increases. The relationship between $\epsilon$ and MSE is non-linear, typically following a quadratic or cubic trend. This suggests that as the underlying physics becomes more complex, the model becomes exponentially more sensitive to input noise.

  • 1D Burgers: The MSE increased roughly 80% faster than the perturbation level, indicating high sensitivity even in simple cases.
  • 2D Darcy Flow: Exhibited a quadratic relationship, with error growing approximately 50% faster than the perturbation level.
  • Navier-Stokes: Demonstrated a cubic relationship in error growth. While showing some initial resistance to very small perturbations—likely due to higher model complexity and regularization—the error scales dramatically as $\epsilon$ increases.
The relationship between perturbation strength ($\epsilon$) and prediction error (MSE) for the Navier-Stokes equations, showing cubic growth.

Qualitative analysis shows that even when perturbed inputs are visually indistinguishable from the original, the resulting FNO predictions can deviate significantly from the physical ground truth. This "over-sensitivity" suggests that as physical systems become more complex, the models used to represent them become exponentially more vulnerable to noise.

Conclusion

This work provides a framework for assessing the trustworthiness of scientific ML models. The observed sensitivity of FNOs to adversarial perturbations underscores the need for robust training techniques. Future research will focus on developing adversarial training methods to "vaccinate" FNOs and designing inherently stable architectures for critical scientific and engineering applications.

Summary updated

Abstract

In recent years, Machine-Learning (ML)-driven approaches have been widely used in scientific discovery domains. Among them, the Fourier Neural Operator (FNO) was the first to simulate turbulent flow with zero-shot super-resolution and superior accuracy, which significantly improves the speed when compared to traditional partial differential equation (PDE) solvers. To inspect the trustworthiness, we provide the first study on the adversarial robustness of scientific discovery models by generating adversarial examples for FNO, based on norm-bounded data input perturbations. Evaluated on the mean squared error between the FNO model's output and the PDE solver's output, our results show that the model's robustness degrades rapidly with increasing perturbation levels, particularly in non-simplistic cases like the 2D Darcy and the Navier cases. Our research provides a sensitivity analysis tool and evaluation principles for assessing the adversarial robustness of ML-based scientific discovery models.
BibTeX
@misc{adesoji2022evaluating,
  author = {Abolaji D. Adesoji and Pin-Yu Chen},
  title = {{Evaluating the Adversarial Robustness for Fourier Neural Operators}},
  year = {2022},
  eprint = {2204.04259},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2204.04259},
}

Loading related content...

Figure