GlueNN: gluing patchwise analytic solutions with neural networks
Doyoung Kim, Donghee Lee, Hye-Sung Lee, Jiheon Lee, Jaeok Yi
TL;DR
GlueNN tackles the challenge of solving differential equations with strongly scale-dependent terms by constructing a global solution from patchwise analytic forms whose integration constants become learnable, scale-dependent coefficient functions. The method uses a head–trunk neural network to produce these coefficients and a composite loss that combines data fitting, differential-equation residuals, and out-of-patch suppression, eliminating the need for ad hoc boundary matching. It demonstrates accurate, extrapolatable solutions in chemical kinetics and inflationary cosmology, and provides an interpretable decomposition that reveals which asymptotic regime dominates where. This approach offers a robust, physically principled alternative to traditional matching and extends the reach of physics-informed learning to multiregime problems.
Abstract
In many problems in physics and engineering, one encounters complicated differential equations with strongly scale-dependent terms for which exact analytical or numerical solutions are not available. A common strategy is to divide the domain into several regions (patches) and simplify the equation in each region. When approximate analytic solutions can be obtained in each patch, they are then matched at the interfaces to construct a global solution. However, this patching procedure can fail to reproduce the correct solution, since the approximate forms may break down near the matching boundaries. In this work, we propose a learning framework in which the integration constants of asymptotic analytic solutions are promoted to scale-dependent functions. By constraining these coefficient functions with the original differential equation over the domain, the network learns a globally valid solution that smoothly interpolates between asymptotic regimes, eliminating the need for arbitrary boundary matching. We demonstrate the effectiveness of this framework in representative problems from chemical kinetics and cosmology, where it accurately reproduces global solutions and outperforms conventional matching procedures.
