PhysGuard: Fisher-Guided Gradient Projection for Sim-to-Real Neural PDE Surrogates

Changjian Zhou, Junfeng Fang, Negin Yousefpour, peng wu, Bin Yan, Guillermo A Narsilio

TL;DR

When you train a neural network to simulate fluid dynamics on clean computer-generated data, it often stumbles in the messy real world—and naively fine-tuning it on sparse experimental measurements can accidentally overwrite the core laws of physics it just learned. PhysGuard solves this by mapping out the exact parameter directions where a model stores its foundational physical knowledge and locking them safely out of reach during fine-tuning. The result is a fast, architecture-agnostic way to bridge the "sim-to-real" gap without giving your physics surrogate amnesia.

What Problem Does This Paper Address?

In scientific machine learning, neural operators are rising stars: instead of taking hours to numerically solve partial differential equations (PDEs) from scratch, these models learn solution mappings directly from massive simulation datasets, running orders of magnitude faster.

The catch is the sim-to-real gap. Simulations rely on idealized assumptions, whereas real-world sensor data is full of noise and unmodeled quirks. The obvious fix is to fine-tune the simulation-trained model on a small batch of real experimental data. However, unconstrained fine-tuning carries a hidden danger: in trying to fit high-frequency sensor noise, the optimizer often destroys the low-frequency structures—large-scale coherent patterns like mean flow profiles and vortex streets—that represent the core physics of the system. While vision and language researchers have plenty of tools to prevent "catastrophic forgetting" (like LoRA or EWC), neural operators use fundamentally different architectures (like spectral convolutions) to encode continuous physical fields rather than discrete semantic features. Until now, how to adapt them safely remained an open question.

Figure 1: Predicted fields (top) and power spectra (bottom) for the simulation-pretrained model (left) and the same model after PhysGuard fine-tuning on real data (right). Dashed curves show the ground truth. PhysGuard better matches the ground-truth spectrum at low frequencies. Best viewed in color.

Methods

PhysGuard takes a geometric approach rather than adding finicky penalty terms to the loss function. It operates in two phases:

  1. Offline Subspace Identification: Before touching real data, PhysGuard feeds $N$ simulation samples through the pretrained model to see which parameter directions the simulation loss is most sensitive to, captured via the empirical Fisher Information Matrix (FIM). Because computing a $d \times d$ matrix for millions of parameters ($d$) is computationally brutal, the authors use a clever layer-wise Gram-matrix trick: they compute an $N \times N$ matrix ($G G^\top$ instead of $G^\top G$), which shares the exact same non-zero eigenvalues at a tiny fraction of the memory cost. An adaptive threshold automatically selects the top-$k$ eigenvectors that capture a set fraction of Fisher information, defining the "physics-critical subspace" per layer.
  2. Orthogonal Gradient Projection: During iterative fine-tuning on real data, every gradient update is projected onto the null space (orthogonal complement) of that protected subspace. Updates that would overwrite core physics are mathematically zeroed out, while all remaining parameter directions are left completely free to adapt to real-world nuances.

Datasets

Rather than introducing a new dataset, the authors evaluate PhysGuard on RealPDEBench, which is uniquely suited for this problem: unlike standard synthetic benchmarks (such as PDEBench or CFDBench), RealPDEBench is the first benchmark providing paired numerical simulations and real-world experimental measurements. They test across three fluid-mechanics scenarios of increasing difficulty:

  • Cylinder Flow (featuring Kármán vortex streets and severe domain shift)
  • Controlled Cylinder (smaller sim-to-real gap)
  • Turbulent Combustion (localized high-intensity OH* chemiluminescence zones)

Key Insights and Ideas

  • Physics lives in a tiny corner of parameter space: Across 12 combinations of scenarios and four distinct architectures (FNO, CNO, DeepONet, and Transolver), the protected subspace only needed to lock down a median of 4.0% of candidate gradient directions—and a vastly smaller fraction of the full parameter space—leaving huge room for real-world adaptation.
  • Sensitivity equals scale: Using a clever diagnostic "spectral probe" (perturbing weights along specific directions and taking a 2D Fourier transform of the output change), the authors discovered an "aha" connection: the top FIM eigenvectors almost exclusively govern low-frequency, large-scale spatial structures ($\ge 99.5\%$ of perturbation energy in the lowest wavenumber band), whereas random parameter directions scatter energy across high frequencies.
  • Overall error can lie about physical fidelity: In experiments with the CNO architecture on Cylinder Flow, standard Direct Fine-Tuning (DFT) actually improved overall RMSE while simultaneously degrading low-frequency error worse than the unadapted pretrained model—proving that a model can look better on paper while quietly forgetting coherent physics.

Key Results

Evaluated across four architectures ranging from 3.5M to 50.4M parameters (FNO, CNO, DeepONet, Transolver), PhysGuard consistently outperformed standard fine-tuning (DFT) and regularization baselines ($\text{L}_2\text{-SP}$, EWC) on most metrics:

  • Severe Domain Shift: Benefits were largest on Cylinder Flow, where PhysGuard reduced low-frequency spectral error (Low-$f$) by 22% to 32% compared to DFT across FNO, CNO, and DeepONet.
  • Recovering Failed Adaptations: For DeepONet on Cylinder Flow, PhysGuard boosted $R^2$ by over 50% relative to pretraining (from 0.4581 to 0.7048), whereas DFT achieved less than a 20% gain (0.5371). On Transolver, where all baselines actually degraded Cylinder Flow RMSE, PhysGuard still delivered a ~16% relative $R^2$ improvement.
  • Visual Fidelity: Qualitatively, PhysGuard recovered crisp alternating vortex boundaries and sharp combustion zones where pretrained models were blurry and unconstrained baselines smeared out key structures.

Limitations and Future Work

PhysGuard relies on a foundational assumption: the model's Fisher spectrum must be low-rank (concentrated in a few dominant directions). The authors transparently note that on certain foundation-model-scale pretrained operators like DPOT, scenario-specific training flattens the Fisher spectrum, making compact subspace projection less effective. Additionally, because RealPDEBench is currently the only paired sim-to-real PDE benchmark available, testing was restricted to fluid mechanics.

For future work, the authors suggest scaling subspace methods to massive foundation-scale PDE models, dynamically updating the protected subspace during adaptation, and extending physics-preserving adaptation to graph neural simulators.

Summary updated

BibTeX
@inproceedings{zhou2026physguard,
  author = {Changjian Zhou and Junfeng Fang and Negin Yousefpour and peng wu and Bin Yan and Guillermo A Narsilio},
  title = {{PhysGuard: Fisher-Guided Gradient Projection for Sim-to-Real Neural PDE Surrogates}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=zHUiR3DWyZ},
}
Figure