A Curvature-Aware Trick Fixes Physics AI Without Full FP64 Costs
A new precision controller for physics-informed neural networks dynamically switches between FP32 and FP64 using curvature signals, matching full double-precision accuracy at lower compute cost.
Takeaways
- A new curvature-aware precision controller dynamically switches PINN training between FP32 and FP64, cutting compute cost without sacrificing accuracy.
- PINN failure modes are caused by FP32 rounding errors that prematurely halt L-BFGS optimization, not by bad architectures or loss landscape traps.
- The controller reuses curvature signals already computed by L-BFGS to decide when FP64 is needed, adding zero overhead from new computations.
- Tested on four canonical failure-mode benchmarks (Convection, Reaction, Wave, Allen-Cahn) and multiple architectures including MLP, PINNsFormer, PINNMamba, and KAN.
- Dynamic precision matches or slightly exceeds full FP64 accuracy while reducing training wall-clock time across all benchmarks.
- No code or model weights have been released publicly alongside the paper.
Physics-informed neural networks (PINNs) sit at an awkward intersection: they need the numerical rigor of scientific computing, but they run on deep learning infrastructure built for speed. That tension has quietly been one of the biggest blockers to making PINNs reliable in practice. A new paper proposes a surprisingly elegant fix: stop treating numerical precision as a fixed setting, and instead let the optimizer itself decide when to upgrade.
The work, titled "Curvature-aware dynamic precision approach for physics-informed neural networks," introduces a precision controller that piggybacks on information the L-BFGS optimizer already computes, using it to flip between 32-bit and 64-bit floating point on the fly during training.
Why precision is a bigger deal for PINNs than for regular networks
Recent work established something counterintuitive: many well-known PINN failure modes are not caused by bad architectures or poor loss landscapes. PINNs often exhibit failure modes where the PDE residual loss converges while the solution error stays large, a phenomenon traditionally blamed on local optima. The real culprit turns out to be insufficient arithmetic precision: with standard FP32, the L-BFGS optimizer prematurely satisfies its convergence test, freezing the network in a spurious failure phase.
Arithmetic precision is generally not considered a decisive factor in vision and language networks, where FP16 and lower is common practice. But the problem PINNs are dealing with is scientific computing with high precision requirements. Second-order and hybrid optimizers demonstrate significantly improved performance under double precision, because they rely on precise curvature information such as Hessian approximations and gradient norms during line search or trust-region updates. Second-order methods typically terminate when the norm of the gradient falls below a threshold, so the level of numerical precision directly impacts their stopping criteria and convergence quality.
The fix seems obvious: just use FP64 everywhere. But double precision is more energy-intensive and currently restricted to high-end hardware such as NVIDIA's H100 GPUs. Increased demand for FP64 compute could raise the carbon footprint of scientific machine learning and exacerbate resource inequity between well-funded labs and those with limited budgets. The new paper's bet is that you don't need FP64 all the time, only when it matters.

The curvature signal hiding in plain sight
The key insight is that L-BFGS, the optimizer most commonly used for PINN training, already computes something useful: a running approximation of the loss landscape's curvature (technically, an approximation to the inverse Hessian). Since storing and manipulating the full inverse Hessian is prohibitively large for deep networks, L-BFGS maintains a compact approximation by using only the most recent iterations to incorporate curvature information, where typically 3 to 20 iterations are kept. This curvature estimate tells you how sharply the loss surface is bending at any given point in training.
The authors use this curvature signal as a proxy for numerical sensitivity. The logic: when curvature is high, the optimizer is navigating a sharp, complex region of the loss landscape where rounding errors in FP32 can cause it to stop prematurely or take a bad step. When curvature is low, the landscape is flat and smooth, and FP32 is perfectly fine. Rather than computing anything new, the precision controller just reads a signal that was already there.
The controller works as follows:
- At each training step, extract the curvature proxy from L-BFGS's internal state (specifically, the ratio of gradient-change to parameter-change vectors).
- Compare the log of this curvature value against a threshold.
- If curvature exceeds the threshold, promote all computations to FP64 for that step.
- If the curvature is low but the update is suspiciously small (a sign of precision-limited stagnation), also trigger FP64.
- Otherwise, stay in FP32.

The result is a training loop that spends most of its time in cheap FP32, but automatically escalates to FP64 during the numerically critical phases where precision actually matters. No manual tuning required.
What it was tested on
The benchmarks chosen are deliberately adversarial: they are the canonical PINN failure-mode problems that FP32 training is known to struggle with. The four PDE benchmarks are:
- Convection equation: a transport PDE with sharp wave fronts
- Reaction equation: a stiff ODE-like PDE with rapid dynamics
- Wave equation: oscillatory solutions that accumulate rounding error
- Allen-Cahn equation: a phase-field equation with steep interfaces
The method was also tested on an irradiance-driven ordinary differential equation, and evaluated across multiple architectures: standard MLPs, PINNsFormer, PINNMamba, and KAN (Kolmogorov-Arnold Networks). This is important because it shows the precision controller is architecture-agnostic. It lives at the optimizer level, not inside the network.
The numbers
The dynamic precision approach consistently matches or slightly exceeds full FP64 accuracy across all four benchmark equations, while reducing training time compared to running everything in FP64. The method never falls back to FP32-level failure modes. Across the benchmarks, the dynamic controller reaches FP64-equivalent accuracy at a fraction of the wall-clock time, sitting well below the 100% relative training time of a full FP64 run.

The paper also surfaces a finding that reframes how we should think about PINN training: precision sensitivity is phase-dependent. The optimizer only needs FP64 during specific windows of training, not throughout. Most of the training run is numerically benign and FP32 is sufficient. This is analogous to how mixed-precision training works in large language models, except here the switching criterion is derived from the physics of the optimization landscape rather than a fixed schedule.
Who should care, and when to use it
This is most useful for anyone running PINNs on problems where FP64 is necessary for correctness but the compute cost is a constraint. That covers a wide range of real-world applications: fluid dynamics simulations, geophysics and subsurface flow prediction, climate science modeling of ocean and atmospheric dynamics, and biomedical engineering applications such as blood flow simulation and tissue mechanics.
The approach is particularly relevant for teams running on hardware where FP64 throughput is limited. Reliable neural PDE solvers promise faster, mesh-free simulations for climate modelling, renewable-energy design, and personalised biomedical devices, potentially shortening innovation cycles and widening access to high-fidelity analysis in domains where traditional finite-element codes are prohibitively slow.
There are limitations worth noting. The method is tied to L-BFGS as the optimizer, since the curvature signal comes from L-BFGS's internal state. If you are using Adam or another first-order optimizer, first-order optimizers such as RAdam exhibit relatively consistent performance across both single- and double-precision settings, because their reliance on gradient-based updates and adaptive moment estimates renders them less sensitive to minor numerical fluctuations. The precision controller would not apply in that setting. The method also inherits L-BFGS's general limitations around stochastic mini-batch training.
The real takeaway
The deeper contribution here is not just a faster training trick. It is a new way of thinking about numerical precision in scientific ML: as a dynamic resource to be allocated where it is needed, rather than a global setting chosen once before training begins. These results reframe PINN failure modes as precision-induced stalls rather than inescapable local minima, and expose a three-stage training dynamic whose boundaries shift with numerical precision. The curvature-aware controller makes that insight actionable without adding any new hyperparameters or external signals. No code or pretrained models have been released alongside the paper at this time.