Computational mathematics researchers have demonstrated that explicit finite-difference updates with variable coefficients can be expressed as a finite sum of fixed-kernel convolutions scaled by precomputed coefficient fields within machine-learning frameworks. Modern tensor computing frameworks expose a compact collection of core primitives, notably fixed-kernel convolution, elementwise multiplication, tensor addition, and boundary padding, and compile these operations for the specific processor architectures they support. While explicit finite-difference solvers for linear partial differential equations with constant coefficients map directly onto these standard tensor operations, equations featuring position-dependent coefficients introduce computational stencils whose weights change from point to point across the grid. Because a conventional shared convolution kernel applies identical weights across all locations, it cannot directly express these spatially varying updates without reformulation.
The mathematical analysis presented in the study establishes that every explicit finite-difference update possessing position-dependent weights of bounded support belongs to a single unified algebraic class. The authors show that the minimal number of coefficient fields required to express such an update is mathematically equal to the rank of the underlying weight matrix. This minimal number of fields directly establishes the total memory traffic incurred by the numerical calculation whenever each precomputed field is streamed once per time step. Consequently, this algebraic rank property provides a direct theoretical metric for understanding and predicting the memory access overhead associated with executing variable-coefficient partial differential equation solvers on modern computing hardware.
To implement this algebraic formulation across different physical problems, the investigators introduced three practical realizations of the underlying framework. The first realization, termed scaled convolutions, employs precomputed fields that represent direct spatial samples of the coefficients appearing in the governing partial differential equation. The second realization, called blended kernel banks, utilizes precomputed fields that serve as spatial selection masks to dynamically choose between specific discretization schemes, such as directional upwinding. The third realization, known as position-dependent kernels, relies on coefficient fields generated directly from the local geometry of the computational grid. Together, these three implementations demonstrate how diverse numerical strategies can be mapped onto common tensor primitives.
Beyond introducing the formulation, the researchers established rigorous theoretical guarantees of consistency, numerical stability, and convergence for the variable-coefficient schemes used throughout their experiments. Their theoretical derivations provide an exact-arithmetic operator identity for the conservative diffusion stencil, alongside a maximum principle and a total-variation bound for the blended upwind scheme. Furthermore, the analysis proves Gershgorin-based stability for explicit variable-diffusivity updates. For wave propagation phenomena, the authors established discrete energy conservation for the variable-speed wave leapfrog scheme and energy dissipation for the variable-damping telegraph leapfrog scheme in both one and two spatial dimensions, in addition to proving a weighted-energy stability bound for leapfrog advection using second-order and fourth-order finite-difference stencils.
To validate these analytical properties, the team evaluated a reference implementation across several numerical test scenarios. The experimental benchmarks successfully reproduced the predicted theoretical convergence orders and confirmed discrete wave energy conservation to a relative deviation of ten to the power of negative fifteen. In mixed-precision tests using bfloat16 arithmetic, the reference implementation successfully separated numerical stagnation from precision roundoff artifacts.
The researchers conducted experimental performance measurements on a two-core central processing unit to examine the execution behavior of the proposed convolutional formulations in practice. The benchmark tests evaluated versions written in PyTorch, both with graph compilation and without graph compilation, and compared their execution performance against an uncompiled NumPy baseline and the dedicated Devito stencil compiler. To rigorously evaluate hardware efficiency, each implementation was situated on a roofline model constructed from measured processor bandwidth and computational throughput. The resulting roofline analysis revealed that every tested software variant operated within the memory-bound execution regime rather than the compute-bound regime on the dual-core processor.
Performance comparisons from the roofline evaluation highlighted substantial speed differences among the tested computing approaches. The compiled shift-based computational graph in PyTorch achieved approximately half of the execution throughput attained by the highly specialized Devito stencil compiler. In contrast, directly invoking the eager convolution primitive within PyTorch proved to be the slowest execution option among all measured implementations.
Subject of Research: Convolutional formulation of explicit finite-difference schemes for variable-coefficient linear partial differential equations in machine-learning frameworks
Article Title: A convolutional formulation of explicit finite-difference schemes for variable-coefficient linear partial differential equations in machine-learning frameworks
Article References: Akram, M., Ahmad, K., Ishtiaq, U., & Popa, I.-L. (2026). A convolutional formulation of explicit finite-difference schemes for variable-coefficient linear partial differential equations in machine-learning frameworks. Frontiers in Applied Mathematics and Statistics, 12, Article 1939606. https://doi.org/10.3389/fams.2026.1939606
Image Credits: AI Generated
DOI: 10.3389/fams.2026.1939606
Keywords: finite-difference methods, partial differential equations, variable-coefficient equations, machine-learning frameworks, tensor primitives, stencil computation, fixed-kernel convolution, PyTorch, Devito stencil compiler, roofline model, graph compilation, mixed precision, bfloat16 arithmetic, blended upwind scheme, leapfrog advection, harmonic face averaging, energy conservation
Cite Scienmag News
Teresa Odom. (November 25, 2026). Explicit Finite Difference Solvers Map Onto Standard Machine Learning Convolution Primitives. Scienmag. https://scienmag.com/explicit-finite-difference-solvers-map-onto-standard-machine-learning-convolution-primitives/
Teresa Odom. "Explicit Finite Difference Solvers Map Onto Standard Machine Learning Convolution Primitives." Scienmag, 25 November 2026, https://scienmag.com/explicit-finite-difference-solvers-map-onto-standard-machine-learning-convolution-primitives/. Accessed 25 November 2026.
Teresa Odom. "Explicit Finite Difference Solvers Map Onto Standard Machine Learning Convolution Primitives." Scienmag. November 25, 2026. https://scienmag.com/explicit-finite-difference-solvers-map-onto-standard-machine-learning-convolution-primitives/








