NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

KerONet: Rethinking Cross-Attention for Physics-Informed Operator Learning

Seth Dale, Carolyn Koh, Dinesh MehtaNeurIPS 2026

TL;DR

Recent neural networks that solve families of differential equations have adopted heavy transformer architectures—stacked cross-attention blocks, layer normalization, and residual streams—borrowed directly from NLP and vision. This paper asks whether all that heavy machinery is actually necessary. By stripping attention down to its bare minimum—a single, parameter-free softmax readout grafted onto a classic network backbone—the authors introduce KerONet, matching or beating full-blown transformers on physics benchmarks while training up to $7.4\times$ faster.

What Problem Does This Paper Address?

In science and engineering, we often need to solve Partial Differential Equations (PDEs) repeatedly across changing initial conditions or forcing terms. Running traditional numerical solvers from scratch every time is computationally brutal. Operator learning solves this by training a neural network to map an entire input function directly to its PDE solution, making inference nearly instantaneous. Physics-informed operator learning goes a step further: it trains entirely without simulation data, using only the mathematical equations of the PDE itself (via automatic differentiation) as the loss function.

The foundational model here is PI-DeepONet. It splits the job in two: a branch network encodes the input function (sampled at fixed sensors), and a trunk network encodes the $(x, t)$ coordinate you want to query. They meet at the end via a simple dot product. However, because a dot product is a linear reconstruction, PI-DeepONet struggles when solutions feature sharp, moving fronts or near-shocks whose locations depend on the input.

To fix this, researchers brought in Transformers (like PIT and PINTO). Cross-attention allows the query coordinate to dynamically mix sensor features—a nonlinear reconstruction. Accuracy jumped on tough PDEs, but computational costs skyrocketed due to stacked attention layers, per-token encoders, and normalization blocks. The authors ask: What is the minimal modification to PI-DeepONet that captures query-dependent feature mixing without importing the entire transformer kitchen sink?

Methods

Enter KerONet (Kernel Operator Network). It keeps the clean branch-trunk split of DeepONet and replaces only the final dot product with a single softmax-weighted readout.

KerONet Architecture

Here is how the pieces fit together:

  • Trunk Network (Standard + Twist): Takes the query coordinate, passes it through a fixed random Fourier feature lift (to help learn high-frequency details), and runs it through an MLP to emit a single query vector $\mathbf{q}$.
  • Branch Network (Global Encoding): Instead of creating tokens for every individual sensor like a transformer, the branch MLP swallows the entire sensor vector globally and outputs $S$ latent key-value pairs $(\mathbf{K}, \mathbf{V})$ directly from its final layer.
  • Softmax Readout (The Minimalist Core): Computes standard scaled dot-product attention $\text{softmax}(\mathbf{Kq}/\sqrt{d_k})$ to weight the values $\mathbf{V}$. Crucially, there are no separate $W_Q, W_K, W_V$ projection matrices, no layer norms, no residual streams, and no stacked blocks.
  • Post-Readout MLP: A tiny two-layer tanh-activated MLP maps the readout vector to the final scalar PDE solution.

The authors also prove mathematically that KerONet retains the universal approximation property for operators. All models (KerONet, PI-DeepONet, PIT, and PINTO) are evaluated fairly using automated hyperparameter tuning (Optuna) under strictly matched parameter budgets (100k to 500k parameters).

Datasets

Because this is data-free physics-informed training, there are no pre-computed simulation datasets for training! Instead, models are trained by sampling random input functions from a Gaussian Random Field (GRF) and minimizing PDE residuals at random space-time points.

To test accuracy, predictions are compared against ground-truth numerical solvers across five canonical PDE benchmarks (following established conventions):

  1. 1D Linear Advection: Smooth wave transport.
  2. 1D Viscous Burgers: Nonlinear dynamics featuring sharp, input-dependent near-shocks.
  3. 1D Diffusion-Reaction: Smooth parabolic diffusion with a forcing term.
  4. 1D Allen-Cahn: Bistable phase separation with sharp fronts.
  5. 2D Allen-Cahn: Two-dimensional curvature-driven interface motion (using 3,200 GRF-derived two-phase initial conditions, compared to 80 inputs for the 1D problems).

Key Insights and Ideas

  • One Softmax Is All You Need: You don't need iterated cross-attention to handle sharp, localized physics. By letting the basis weights depend on both the input function and the query coordinate, a single softmax breaks free of PI-DeepONet's fixed linear subspace limitation (known mathematically as the Kolmogorov $n$-width barrier).
  • Transformers Pay a "Smoothness Tax": While PIT and PINTO beat PI-DeepONet on shock-heavy PDEs like Burgers, they actually perform worse than simple PI-DeepONet on smooth problems like advection and diffusion-reaction. KerONet is the only architecture that gets the best of both worlds—excelling on sharp localized features without losing precision on smooth ones.
  • Dramatically Better Stability: Transformers are notoriously finicky across random seeds in physics-informed settings. Stripping away the deep attention stacks makes optimization remarkably consistent, yielding $2\text{--}91\times$ lower seed-to-seed variance.
  • Encoding vs. Dynamics in 2D: On 2D Allen-Cahn, KerONet and PINTO tie overall, but for fascinatingly different reasons. PINTO fits the $t=0$ initial condition better (thanks to per-sensor token encoding), whereas KerONet learns the evolving interface dynamics over time much more accurately.
Figure 3: Rel-L2 error of the predicted snapshot s(·, t) versus time for KerONet and PINTO on 1D (left) and 2D (right) Allen-Cahn, averaged over test inputs and seeds.

Key Results

At the headline 200,000-parameter budget, KerONet matches or beats every baseline across the board:

Accuracy Comparison Across Five PDEs
  • Vs. Transformers (PIT & PINTO): KerONet outperforms both on every 1D PDE across all five random seeds (e.g., achieving 3.13% relative $L^2$ error on Burgers vs. 6.17% for PINTO and 7.06% for PIT; 1.31% on 1D Allen-Cahn vs. 3.48% and 5.72%). In 2D Allen-Cahn, it statistically ties PINTO (6.41% vs. 6.31%) while beating PIT (12.15%).
  • Vs. PI-DeepONet: On localized PDEs across all budgets, KerONet slashes mean error by $2.0\text{--}12.3\times$ (at 200k: 3.13% vs. 23.44% on Burgers; 6.41% vs. 15.92% on 2D Allen-Cahn), while statistically tying on smooth PDEs (1.89% on Advection, ~0.63% on Diffusion-Reaction).
  • Speedups: Across all budgets (100k–500k), KerONet trains $1.8\text{--}7.4\times$ faster than PIT and PINTO. On 2D Allen-Cahn (200k budget), KerONet trains in 491 seconds on an RTX 4090, whereas PINTO takes 2,573 seconds (~43 minutes).
Predictions and Errors on Burgers and Advection

Limitations and Future Work

The authors are upfront about the boundaries of their study:

  • Fixed Sensor Grids: Because KerONet's branch is a standard MLP, it requires a fixed, uniform grid of sensors ($m=80$ in 1D, $9\times9$ in 2D). It cannot natively handle irregular geometries or shifting sensor locations without retraining.
  • 3D and Loss Balancing Untested: Experiments were restricted to 1D and 2D unit domains using a simple unweighted sum of boundary and residual losses. Adaptive loss-weighting schemes might shift architectural rankings.
  • Isolating the Softmax: While they ablated the post-readout MLP, they haven't yet tested softmax-free (e.g., linear/Galerkin) readouts on the same key-value slot structure.
  • Future Direction: Swapping the MLP branch for an attention-based encoder could eliminate the fixed-sensor constraint and fix the $t=0$ error in 2D, while keeping KerONet's fast, single-softmax query readout intact.

Summary updated

BibTeX
@inproceedings{dale2026keronet,
  author = {Seth Dale and Carolyn Koh and Dinesh Mehta},
  title = {{KerONet: Rethinking Cross-Attention for Physics-Informed Operator Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=kaHFJVwIAG},
}
Figure