Importance-Weighted Operator Learning Under Probability Measure Shifts

Lei Sun, Yusuke Tanaka, Xiaocheng Shang, Takaharu Yaguchi, Tomoharu IwataNeurIPS 2026

TL;DR

Neural operators are fast, AI-driven surrogates for solving complex physics equations, but they stumble when the real-world conditions they encounter at test time differ statistically from their training data. This paper introduces a framework to rescue these models under such "probability measure shifts" by reweighting training examples based on how closely they resemble the target test conditions. By using a clever mathematical mixture and a resolution-independent classifier, the authors keep these weights stable in infinite-dimensional function spaces, dramatically cutting prediction errors across fluid dynamics and physics benchmarks.

What Problem Does This Paper Address?

Solving partial differential equations (PDEs)—the mathematical rules governing everything from weather patterns to fluid flow—traditionally requires slow, computationally heavy numerical simulations. Recently, operator learning (via architectures like Fourier Neural Operators and DeepONet) has emerged as a fast alternative. Instead of mapping numbers to numbers, neural operators map entire input functions (like initial temperatures or boundary conditions) directly to output solution functions.

However, standard operator learning relies on a fragile assumption: that the input functions seen during deployment are drawn from the exact same probability distribution (or probability measure, in function-space terms) as the training data. In reality, environmental conditions change, sensors drift, and synthetic training simulations rarely capture the exact statistics of real-world inputs. While the underlying laws of physics (the operator) remain unchanged, the distribution of inputs shifts. Because standard training minimizes error on the training distribution, performance degrades sharply on the shifted test distribution.

In standard machine learning, we fix this "covariate shift" using importance weighting—multiplying each training sample's loss by the ratio of test-to-training probabilities. Doing this for functions, however, is a mathematical minefield. In infinite-dimensional function spaces, probability density ratios (formally called Radon–Nikodym derivatives) require strict "absolute continuity" conditions that easily fail, and even when they exist, the weights can blow up to infinity, destabilizing training.

Methods

The authors propose Importance-Weighted Operator Learning (IWOL) and its practical, stabilized counterpart, Relative IWOL, executed in a clean two-step pipeline using labeled training pairs and unlabeled test input functions:

  1. Relative Importance Weights (New Theory for Operators): Instead of dividing the test measure directly by the training measure, the authors compare the test measure against a mixture of the training and test measures controlled by a mixing parameter $\alpha \in (0, 1)$. This guarantees the weights always exist and strictly bounds them by $1/\alpha$, preventing extreme weights from wrecking the training variance.
  2. Function-Space Binary Classifier (New Architecture Application): Since we don't know the explicit equations for these probability measures, how do we calculate the weights? The authors turn weight estimation into a binary classification game: train a classifier to tell apart functions drawn from the mixture distribution versus the test distribution. Crucially, instead of using a standard neural network on a fixed grid, they build a functional classifier using kernel integral operators (specifically, Fourier layers followed by global average pooling). Because it operates directly in function space, this weight estimator is discretization-invariant—it works across different grid resolutions without retraining.
  3. Weighted Operator Training (Standard + Reweighted): Once the functional classifier is trained, its output probabilities are algebraically converted into relative importance weights for each training sample. Finally, a standard neural operator (like FNO or DeepONet) is trained using this reweighted loss, forcing it to pay extra attention to training functions that look like the test regime.

Datasets

The authors evaluate their method on seven PDE benchmarks where models predict solution functions from initial conditions:

  • Five public benchmarks (from PDEBench): Advection, Burgers', Darcy flow, Shallow-water, and incompressible Navier–Stokes (at viscosities $\nu = 10^{-3}$ and $10^{-4}$). To simulate measure shifts here, the authors extracted spectral features via Fast Fourier Transform (FFT) and used $k$-means clustering to split data into two distinct clusters ($A$ and $B$), training on $A$ plus a 10% slice of $B$, while testing on $B$.
  • Two newly generated datasets: Korteweg–de Vries (KdV) and Cahn–Hilliard equations, simulated by the authors with measure shifts built directly into the initial-state generation mechanisms.

Key Insights and Ideas

  • Taming infinity with a simple mixture: In infinite-dimensional spaces, two probability measures can easily fail to overlap cleanly, making standard importance weights undefined. Blending even a fraction of the test measure into the reference denominator neatly sidesteps a major measure-theoretic roadblock while acting as a natural variance regularizer.
  • Naive grid-based weighting backfires: You might be tempted to flatten a 2D physics grid into a 1D vector and run standard Kernel Density Estimation (KDE) or a feedforward network (FNN) to get weights. The authors show this fails spectacularly on complex PDEs because finite-dimensional estimators overfit to specific grid resolutions rather than capturing continuous physical structures.
  • Pseudo-labeling can make things worse: A common semi-supervised trick (SSOL) is to predict labels on the unlabeled test inputs and retrain on them. Under measure shifts, the initial predictions are flawed; retraining on them compounds the errors, frequently performing worse than doing no adaptation at all.

Key Results

Across all PDE benchmarks, the proposed method (FNO-Ours) consistently beat standard FNO and adaptation baselines (reported in Root Mean Square Error, scaled by $10^3$):

  • Dramatic Error Reductions: On Navier–Stokes ($\nu = 10^{-3}$), FNO-Ours slashed RMSE from 61.7 (standard FNO) down to 15.8, whereas grid-based FNO-KDE blew up to 741.0. On Burgers' equation, error dropped from 5.4 to 1.6, and on Darcy flow from 30.5 to 20.1.
  • Zero-Shot Super-Resolution: Trained on $32\times32$ Darcy flow grids and tested on $64\times64$ grids, FNO-Ours achieved an RMSE of 38.3, outperforming standard FNO (49.5) and FNO-FNN (58.0).
  • True Discretization Invariance: When the weight classifier was trained at $32\times32$ resolution and used to estimate weights at $16\times16$ and $64\times64$, FNO-Ours maintained Pearson correlations between 0.96 and 0.99 across resolutions (keeping downstream RMSE steady at 19.6–20.4). By contrast, FNO-KDE and FNO-FNN saw cross-resolution correlations plummet to -0.01–0.07 and 0.19–0.49, respectively.

Limitations and Future Work

  • Data hunger on the target side: Estimating reliable importance weights requires a reasonable batch of unlabeled test functions. If only two or three unlabeled test examples are available, the classifier struggles. The authors suggest combining their framework with meta-learning to handle few-shot adaptation.
  • Need for distribution overlap: Even though relative weights are mathematically well-defined without overlap, the final training loss is still evaluated over the training set. If the training data contains zero examples that remotely resemble the test regime, reweighting existing samples can only help so much.

Summary updated

Abstract

Operator learning has attracted significant interest for its capability to approximate mappings between function spaces. A common assumption in this field is that training and test samples are drawn from the same probability measure. However, this assumption is often violated, leading to probability measure shifts. Under such shifts, standard operator learning methods often lead to degraded performance because the expected training error does not match the expected test error. In this paper, we propose importance-weighted operator learning (IWOL), a framework for learning operators under probability measure shifts in function spaces. We prove that, when the test measure is absolutely continuous with respect to the training measure, the expected test error is equivalent to an importance-weighted expected training error, with weights given by the Radon--Nikodym derivative. This result provides a theoretical basis for correcting measure shifts in operator learning, but importance weighting relies on this absolute-continuity condition and may yield unbounded weights. To overcome these limitations, we introduce relative importance weights defined with respect to a mixture of the training and test measures. The resulting weights remain well-defined even when absolute continuity fails, and they are uniformly bounded. These weights induce a relative importance-weighted training objective for neural operators under probability measure shifts. To estimate these weights, we present binary classifiers that take functions as inputs, defined through functionals modeled by kernel integral operators. This design enables discretization-invariant weight estimation in function space. Experiments on multiple PDE benchmarks and neural operator architectures demonstrate that the proposed method consistently improves performance under probability measure shifts.
BibTeX
@inproceedings{sun2026importance,
  author = {Lei Sun and Yusuke Tanaka and Xiaocheng Shang and Takaharu Yaguchi and Tomoharu Iwata},
  title = {{Importance-Weighted Operator Learning Under Probability Measure Shifts}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=0afkWPjBeM},
}
Figure