TangentPDE: Learning Local Operator Responses via Sparse Finite-Difference Supervision

TangentPDE uses finite differences to build local response labels and jointly supervise neural operator values and directional derivatives.
TangentPDE introduces a new training framework for neural PDE operators. To address the inability of traditional state reconstruction losses to capture local operator sensitivity, it leverages reference solver state outputs on sparsely paired inputs and approximates directional derivatives via finite differences to construct task-relevant finite-step response labels. The training objective jointly constrains state fidelity, response direction alignment, and response magnitude calibration, enabling the model to learn both operator values and their local variations. The method requires no explicit derivative labels or adjoint solves, is plug-and-play, and can be integrated into various neural operator backbones. Across four PDE systems and 20 task-backbone settings, 18 settings reduced state and Rollout@20 errors, validating local response supervision, though gains depend on task and backbone.
Neural PDE operators are typically optimized through state reconstruction, which primarily constrains operator values at observed inputs but fails to adequately characterize their sensitivity to local perturbations. A more faithful approximation of operator behavior requires not only accurate state predictions but also correct changes along local perturbation directions. TangentPDE introduces a new method that uses finite differences to approximate directional derivatives and constructs task-relevant finite-step responses from the state outputs of a reference solver on sparsely paired inputs, thereby simultaneously learning operator values and their local variations.

Why Is Local Response Supervision Needed?
Traditional neural operator training relies primarily on state reconstruction loss. Models perform well on inputs covered by the training data, but may fail to respond correctly to small input changes—which is critical for downstream tasks such as control and optimization.
The core insight of TangentPDE is that the local behavior of an operator (i.e., its directional derivative) can be cheaply estimated via finite differences from the state outputs of paired inputs. Specifically, given the solutions of a reference solver at (x) and (x+\delta v), the finite difference ((u(x+\delta v)-u(x))/\delta) approximates the directional derivative along direction (v). This method does not rely on explicit derivative labels, linearization, or adjoint PDE solving, nor does it require the full Jacobian matrix, making it applicable to nonlinear solvers without derivative interfaces.
Directional Derivatives and Finite Differences
The directional derivative describes the rate of change of a function along a specified direction. For an operator ( u ), the directional derivative along direction ( v ) is defined as ( \lim_{\delta \to 0} \frac{u(x+\delta v)-u(x)}{\delta} ). When ( \delta ) is a small positive number, this limit can be approximated by a finite difference, namely ( (u(x+\delta v)-u(x))/\delta ). This approximation requires neither analytic derivatives nor solving adjoint equations—only two evaluations of the operator—making it particularly suitable for black-box or nonlinear solvers. TangentPDE leverages this property to construct response labels from the state outputs of sparsely paired inputs, thereby obtaining local sensitivity supervision at low cost.
Method Design: Jointly Constraining State and Response
The TangentPDE training objective consists of three terms: state fidelity, response direction alignment, and response magnitude calibration. State fidelity ensures that the predicted solution matches the reference solution; response direction alignment requires the predicted finite-step response to align with the response direction constructed via finite differences; and response magnitude calibration constrains the magnitude of the response. These three joint constraints enable the model to not only fit operator values but also learn their local variations.
Since response labels are constructed entirely from the state outputs of paired inputs, the method requires no additional annotations and can be integrated as a plug-and-play training framework into various neural operator backbones. The authors also propose a selectively executed adaptation mechanism that further enhances local operator representations under finite-difference supervision.
Rollout Error and Long-Term Stability
Rollout error (e.g., Rollout@20) measures the cumulative deviation of a model's autoregressive multi-step predictions: starting from an initial condition, the model's prediction is fed as input to the next step, and after several iterations the result is compared with the reference trajectory. This metric reflects the stability of the operator's long-term evolution rather than single-step accuracy alone. Neural operators that optimize only single-step state reconstruction may amplify errors during multi-step rollouts. By constraining the direction and magnitude of local responses, TangentPDE indirectly improves the model's propagation behavior under small perturbations, thereby achieving gains on Rollout metrics. In experiments, 18 out of 20 settings reduced Rollout@20 error, indicating that local supervision contributes to long-term stability.
Experimental Validation: Gains Across Multiple Tasks and Backbones
The authors evaluated TangentPDE on four PDE systems and 20 task-backbone settings. Results show that in 18 settings, TangentPDE reduced the state error averaged over three seeds; it also reduced Rollout@20 error in 18 settings. The intrinsic finite-step response gain was strongest on DiffReact, while on other tasks and backbones it exhibited task and backbone dependence.
To isolate the effect of relational supervision, the authors designed budget-matching and corresponding perturbation control experiments, ruling out improvements stemming from additional state observations or increased data volume. This demonstrates that the performance gains indeed arise from supervision of local responses rather than simple data augmentation.
DiffReact System and Task Dependence
DiffReact is a 2D reaction-diffusion PDE benchmark containing two coupled variables, whose dynamics are sensitive to local perturbations and highly nonlinear. TangentPDE achieves the strongest intrinsic finite-step response gain on this task, possibly because the directional derivative information of reaction-diffusion processes is richer and more easily captured from finite differences. On other tasks (such as Navier-Stokes and Darcy flow) or backbones, the gains are dependent, suggesting that the effectiveness of response supervision is related to the degree of local sensitivity of the PDE, the smoothness of the solver, and network capacity. The authors ruled out data volume factors through budget-matching experiments, confirming that the gains stem from relational supervision itself.
Limitations and Outlook
Although TangentPDE is effective in most settings, its response gains are not consistent—improvements are limited on some tasks and backbones. Future work could explore more adaptive finite-difference step selection, combinations of response supervision with other regularizations, and extension to higher-dimensional or more complex PDE systems.
Overall, TangentPDE introduces a novel supervision signal for neural operator training, learning local operator responses through sparse finite-difference supervision and offering new ideas for applications that require precise local sensitivity.
One-line Summary
TangentPDE constructs local response labels via finite differences and jointly supervises neural operator values and directional derivatives.
Paragraph Summary
TangentPDE proposes a new training framework for neural PDE operators. To address the inability of traditional state reconstruction losses to characterize local operator sensitivity, it leverages the state outputs of a reference solver on sparsely paired inputs and approximates directional derivatives via finite differences to construct task-relevant finite-step response labels. The training objective jointly constrains state fidelity, response direction alignment, and response magnitude calibration, enabling the model to simultaneously learn operator values and their local variations. The method requires no explicit derivative labels or adjoint solves, is plug-and-play, and can be integrated into various neural operator backbones. Across four PDE systems and 20 task-backbone settings, 18 settings reduced state error and Rollout@20 error, validating the effectiveness of local response supervision, though the gains exhibit task and backbone dependence.
Related articles

GLM-5.4 vs. Opus and Neon: How Far From the Top?
No official benchmarks for GLM-5.4. Based on a YouTube deep test and developer trials, we analyze its gap vs. Claude Opus 5.5 and Gemini Neon, the speed bottleneck from marathon-style thinking, and its real position in enterprise agent scenarios.

From Gobbler to Sloppy Joe: The Hit-Making Playbook of a New Jersey Deli Institution
NYT Cooking visits Milburn Deli in New Jersey to break down the hit logic behind the Gobbler turkey sandwich and the local Sloppy Joe: bread sliced to order, house-made sauces, a group shout culture, and customer co-creation behind six locations.

In the Age of AI Programming, When Do You Still Need to Write Code by Hand?
Is handwritten code still valuable once AI programming agents are widespread? This article outlines three scenarios where handwriting is essential—learning, style development, and prototype validation—and provides a division-of-labor framework between AI and humans to help developers balance efficiency and skill growth.