OperatorSHAP: Fast and Accurate Shapley Value Estimation for Neural Operators

Joshua Stiller, Santo M. A. R. Thies, Felix Czaja, Eyke Hüllermeier

TL;DR

When AI predicts physical phenomena—like airflow over a wing or incoming severe weather—knowing why it made a prediction is just as important as the prediction itself. OperatorSHAP brings instant, game-theoretic feature attributions (Shapley values) to grid-agnostic neural operators, generating reliable explanations across arbitrary, irregular meshes in a single forward pass without retraining.

What Problem Does This Paper Address?

Neural operators (such as Fourier Neural Operators) have transformed physics-based machine learning because they map between continuous function spaces rather than fixed-size vectors. Train one on a 128-point sensor grid, and you can seamlessly evaluate it on a 1,024-point grid or a warped, irregular geometry.

However, explaining these models in safety-critical settings hits a bottleneck. Classical Shapley values—which borrow from cooperative game theory to fairly credit each input feature for a model's output—are notoriously slow to compute at inference time. Amortized methods like FastSHAP fix the speed issue by training a separate neural network to predict Shapley values in one shot, but they assume fixed, homogeneous input dimensions. If your sensor locations shift or your mesh resolution doubles, standard FastSHAP breaks; doubling the grid points doubles the "players" in the game, making attributions incomparable. We lacked a mathematically sound way to do fast, grid-free attribution in continuous space.

Figure 1: Left: Table with an overview of current methods. Right: A sample from the MeshGraphNets cylinder-flow dataset [31]. Top shows a heatmap of airflow velocity strengths, with a grid of sensor points, and the cylinder object obstructing the airflow. The bottom shows the attribution map from OperatorSHAP for the same sample. The explained spatial point is marked with a red star. The varying cylinder placement in this dataset yields heterogeneous meshes, but OperatorSHAP is able to give correct explanations. Here, the area upstream of the cylinder and along its lower side is positively relevant, as the air flows from left to right.

Methods

To escape fixed grids, the authors move from finite-player game theory to infinite-player Aumann–Shapley values, where every spatial point in a continuous domain acts as a player, and attributions behave like continuous spatial densities.

Here is how they bridge continuous math and discrete code:

  • Smooth Operator Games (New Theory): Proving that an infinite-player game actually has a well-defined value in function space is mathematically thorny. By defining "smooth operator games" using smooth spatial bump masks (partitions of unity) on well-behaved function spaces (Sobolev spaces), the authors prove that standard neural operators with smooth activations admit unique Aumann–Shapley values—and that discrete grid Shapley values converge to this continuous limit as resolution increases.
  • OperatorSHAP Architecture (New Algorithm): Instead of an MLP or Vision Transformer, the explainer itself is a neural operator mirroring the backbone model. To ask where the model looked to predict the state at a specific query point $x^\star$, they pass a tiny Gaussian bump centered at $x^\star$ as an extra input channel, keeping the whole pipeline grid-agnostic.
  • Amortized Training (Adapted from FastSHAP): During training, OperatorSHAP outputs a continuous attribution field, integrates (coarsens) it over the cells of whatever discrete grid the current sample uses, and minimizes FastSHAP's weighted least-squares loss with hard normalization to ensure attributions sum to the total prediction change.

Datasets

The authors evaluate existing partial differential equation (PDE) benchmarks without introducing new datasets:

  • Ten structured PDE datasets across 1D, 2D, and 3D grids (including Burgers 1D, Shallow Water 2D, Reaction–Diffusion 2D, Heat, and Advection equations), strided across resolutions from $n=8$ to $1024$ ($512$ in 3D) to simulate heterogeneous grids.
  • Two irregular-mesh benchmarks from MeshGraphNets: Cylinder Flow and Airfoil.

Key Insights and Ideas

  • Zero-Shot Resolution Transfer: Because OperatorSHAP learns an underlying continuous attribution density, a single trained explainer can be discretized onto an $8 \times 8$ grid or a $16 \times 16$ grid on the fly, matching expensive per-sample estimators without retraining.
  • Beating Gradient Methods on Decisions: Integrated Gradients (IG) turns out to be deeply connected to Aumann–Shapley values in smooth settings. However, when explaining thresholded decisions (e.g., "did the load cross a safety limit?"), gradients vanish to zero and IG completely fails. Because OperatorSHAP only uses forward passes of the game, it handles non-differentiable decision readouts effortlessly.
  • Exposing Architectural Quirks: When tested on linear advection (where the true physics only depends on an upstream foot point), OperatorSHAP revealed a sharp attribution spike right at the query point itself—catching the FNO backbone "cheating" via its pointwise skip connections.
Figure 2: Explanations and input data of the 2D heat equation. The left column shows input (top) and label (bottom) of the backbone model. The right three columns show the explanation of OperatorSHAP, RegressionMSR, and their difference, respectively. The top row uses an 8 × 8 grid and the bottom row a 16 × 16 grid. The same OperatorSHAP model produces both rows, at comparable results to RegressionMSR.

Key Results

  • Speed & Amortization: At inference, OperatorSHAP needs just one explainer forward pass and two backbone passes—making it orders of magnitude faster than KernelSHAP and RegressionMSR, and 1.5x to 1.9x faster than Integrated Gradients where IG is able to match its faithfulness. Upfront training costs pay off after $1.1 \cdot 10^4$ to $3.7 \cdot 10^5$ explanations, ideal for continuously monitored production models.
  • Accuracy at High Resolution: On Shallow Water 2D ($n=1024$), OperatorSHAP achieves a faithfulness $R^2$ of 0.974 and Pearson correlation of 0.923 against a heavy $3 \cdot 10^5$-evaluation reference, whereas KernelSHAP collapses under a $2n$ budget ($R^2 = -3.861$, Pearson $= 0.136$).
  • Non-Differentiable Tasks: On decision readouts where IG outputs identically zero (NRMSE $= 1.000$), OperatorSHAP maintains strong correlation with ground-truth Shapley values (0.990 on Burgers 1D at $n=64$; 0.964 on Shallow Water 2D at $n=1024$).

Limitations and Future Work

  • Upfront Cost: Training OperatorSHAP is computationally expensive; if you only need a handful of explanations before retraining your surrogate model, classical per-sample estimators make more sense.
  • Resolution Bottlenecks: Extremely fine grids exponentially enlarge the coalition space during training, requiring spatial binning that can blur sharp, localized attribution spikes.
  • Future Directions: The authors suggest adapting smart sampling tricks to focus on high-frequency spatial regions, extending the purely additive framework to capture interactions between spatial regions, and expanding the mathematical theory to formally cover non-smooth activations (like ReLU, which already works well empirically) and discontinuous models.

Summary updated

Abstract

Understanding model predictions is essential for physical applications, where outputs often inform safety-critical decisions, such as structural load assessment, weather warnings, and clinical diagnosis. Shapley values satisfy many desirable properties as an attribution method, but their computational cost during inference hinders their practical use. Current amortized explainers, such as FastSHAP, are limited to homogeneous inputs, which is problematic for physical applications where data often comes from irregular grids and geometries. We introduce OperatorSHAP, a grid-agnostic attribution method that allows us to train FastSHAP-like explainers for neural operators. We establish a theoretical framework for attributions in function space, connecting to Aumann–Shapley values. We further show that OperatorSHAP's explanations are consistent with state-of-the-art discrete Shapley values across resolutions and transfer across grid sizes without retraining.
BibTeX
@inproceedings{stiller2026operatorshap,
  author = {Joshua Stiller and Santo M. A. R. Thies and Felix Czaja and Eyke Hüllermeier},
  title = {{OperatorSHAP: Fast and Accurate Shapley Value Estimation for Neural Operators}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=EXq2TaPGfM},
}
Figure