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

Sharpness-Aware Hybrid Model Learning for Architecture-Agnostic Parameter Estimation

Naoya TakeishiNeurIPS 2026

TL;DR

When you pair a physics equation with a neural network to model a complex system, the hyper-flexible neural network often "cheats" by memorizing all the data itself, leaving your physics parameters completely meaningless. Existing fixes require custom math tailored to specific model architectures. This paper solves the problem universally by tweaking how we navigate the loss landscape: by forcing the neural network into "flat" minima, it stays simple enough to let the physics equation do its job, regardless of how the two are wired together.

What Problem Does This Paper Address?

Imagine trying to model a damped pendulum, except you forgot the math for air resistance. You write down the clean gravity equation (with an unknown pendulum frequency $\theta$) and attach a neural network (with parameters $\phi$) to learn the messy leftover friction. This is hybrid modeling—blending interpretable scientific models with flexible machine learning.

Here’s the catch: deep neural networks are too expressive. During training, the neural network can easily swallow the entire signal—gravity, friction, and all—fitting the data perfectly while leaving your scientific parameter $\theta$ stuck at a random, useless value.

To prevent this, researchers usually penalize the neural network's output. If your hybrid model simply adds the two parts together ($y = \text{physics}(x) + \text{NN}(x)$), you can just penalize the size of $\text{NN}(x)$. Put a leash on the network, and the physics model has to step up. But what if the physics output is fed into a convolutional decoder to generate images, or nested deep inside a complex pipeline? Designing custom regularizers for arbitrary, nested architectures quickly becomes a bespoke mathematical headache. We need an architecture-agnostic way to keep the neural network honest.

Methods

Instead of inventing a new penalty term, author Naoya Takeishi turns to Occam’s Razor and information theory. The core intuition is straightforward: if the scientific parameter $\theta$ is accurate, the leftover job for the neural network should be simple.

In deep learning, a "simple" model (one with a short minimum description length) corresponds to a flat minimum in the loss landscape—a wide valley where nudging the neural network's weights doesn't ruin the predictions. Conversely, if $\theta$ is wrong, the neural network has to contort itself into a hyper-specific, brittle configuration—a sharp minimum—to compensate.

To find these flat valleys, the paper adapts Sharpness-Aware Minimization (SAM)—an optimization technique normally used to improve standard generalization. Standard SAM perturbs all parameters uphill to test the sharpness of the valley before taking a gradient step. Takeishi introduces a crucial, Surgical twist: perturb only the neural network parameters ($\phi$), and leave the scientific parameters ($\theta$) alone.

Figure 1: Update step of Algorithm 1.

Why? Because we want the loss landscape to be sharp along the $\theta$-axis! A steep valley for $\theta$ means only a very specific value works, making the scientific parameter easy to pinpoint. Flattening $\theta$ would just make it unidentifiable again. The author pairs this targeted perturbation with standard SAM, Adaptive SAM (asam), and Fisher SAM (fsam).

Datasets

No new datasets were introduced, as evaluating parameter estimation requires knowing the ground-truth physics. The method was tested across six diverse tasks:

  • Synthetic Physics Tasks: Time-series prediction for a damped Pendulum, a spatial Reaction-Diffusion PDE system, and a nonlinear Duffing Oscillator, plus Pendulum Images (predicting video frames of a pendulum using CNN encoders/decoders wrapped around a physics ODE).
  • Real-World Benchmarks: Using existing physical testbed datasets from Gamella et al. (2025), including a Wind Tunnel (predicting internal pressure from fan loads and hatch positions) and a Light Tunnel (predicting RGB sensor images from light sources and polarizer angles).

Key Insights and Ideas

  • Connecting Two Worlds: Loss flatness has been studied for decades to help neural networks generalize to new data. Here, flatness is repurposed for system identification—forcing component separation inside a hybrid model without touching its architecture.
  • Asymmetric Flatness Matters: Blindly applying off-the-shelf Fisher SAM to all parameters caused $\theta$ estimation errors to balloon by nearly $10\times$ on the pendulum time-series task ($37 \times 10^{-3}$ vs. $3.7 \times 10^{-3}$) and nearly $3\times$ on the wind tunnel task. Leaving $\theta$ unperturbed acts as a vital safeguard when the true parameter sits in a sharp valley.
  • When Intuitive Penalties Backfire: On the additive Duffing Oscillator, traditional functional regularization (f-reg, which minimizes the neural net's output energy) failed badly. Why? Because of a mathematical quirk in the cubic oscillator equation, the neural network actually outputs smaller numbers when the physics parameter is overestimated! SAM, caring about functional simplicity rather than raw output size, nailed the true parameter.

Key Results

Across the board, the SAM variants (sam, asam, fsam) matched or beat architecture-specific regularizers—shining brightest when models got complex and non-additive.

Table 1: Estimation errors of θ and prediction errors of y. For LIGHT TUNNEL, we report the cosine similarity between the estimated and reference θ’s because the scale of θ is structurally unidentifiable; otherwise the root mean squared errors are reported. The best and the second best results are bolded and underlined, respectively. Mean and SD over 5 runs with different random seeds are reported.
  • Non-Additive Triumphs: In the Wind Tunnel task, baseline empirical risk minimization (erm) yielded a massive $\theta$-error of $69.6 \times 10^{-2}$. Custom functional regularization brought this down to $4.39 \times 10^{-2}$, while architecture-agnostic fsam cut that error in half again to $1.90 \times 10^{-2}$.
  • Complex Pipelines: For Pendulum Images, fsam dropped $\theta$-error to $5.04 \times 10^{-2}$ compared to $11.7 \times 10^{-2}$ for functional regularization. On the Light Tunnel, SAM variants hit $0.98$ cosine similarity with reference physics parameters (vs. $0.76$ for erm).
  • Beating the Trap: On the Duffing Oscillator, sam and fsam slashed $\theta$-error to $1.32 \times 10^{-2}$, blowing past erm ($30.8 \times 10^{-2}$) and the misled f-reg ($18.7 \times 10^{-2}$).

Limitations and Future Work

Occam's Razor is a heuristic, not a physical law. The author candidly notes that without strict assumptions about how the data was generated, no architecture-agnostic method—SAM included—can mathematically guarantee recovering the "true" scientific parameter in every universe. Sometimes reality really is messy in a way that makes a wrong physics parameter look convenient to a neural network. Building a rigorous, universal theory of parameter identifiability for general hybrid architectures remains a wide-open—and fascinating—problem.

Summary updated

BibTeX
@inproceedings{takeishi2026sharpness,
  author = {Naoya Takeishi},
  title = {{Sharpness-Aware Hybrid Model Learning for Architecture-Agnostic Parameter Estimation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=jeJb9vl2gZ},
}
Figure