Neuro-Symbolic AI for Analytical Solutions of Differential Equations

Orestis Oikonomou, Levi E. Lingsch, Dana Grund, Siddhartha Mishra, Georgios Kissas · OpenReview

Abstract

Analytical solutions of differential equations offer exact insights into fundamental behaviors of physical processes. Their application, however, is limited as finding these solutions is difficult. To overcome this limitation, we combine two key insights. First, constructing an analytical solution requires a composition of foundational solution components. Second, iterative solvers define parameterized function spaces with constraint-based updates. Our approach merges compositional differential equation solution techniques with iterative refinement by using formal grammars, building a rich space of candidate solutions that are embedded into a low-dimensional (continuous) latent manifold for probabilistic exploration. This integration unifies numerical and symbolic differential equation solvers via a neuro-symbolic AI framework to find analytical solutions of a wide variety of differential equations. By systematically constructing candidate expressions and applying constraint-based refinement, we overcome longstanding barriers to extract such closed-form solutions. We illustrate advantages over commercial solvers, symbolic methods, and approximate neural networks on a diverse set of problems, demonstrating both generality and accuracy.

Introduction

Partial Differential Equations (PDEs) are the fundamental language of physics, yet discovering their analytical (closed-form) solutions is notoriously difficult. While numerical solvers provide approximations, analytical solutions are the "gold standard," offering explicit insights into stability and parameter dependencies. Traditionally, finding these solutions requires rare human intuition or exhaustive combinatorial searches through infinite combinations of functions. Recent AI attempts have struggled with either the combinatorial explosion of symbolic search or the narrow generalization of purely neural methods. This work introduces the Symbolic Iterative Grammar Solver (SIGS), a neuro-symbolic framework that transforms the search for equations into a tractable optimization problem by embedding formal mathematical grammars into a continuous latent space.

Methodology

SIGS utilizes a hierarchical, grammar-guided approach to navigate the space of potential solutions efficiently.

Grammar-Based Analytic Atoms

Instead of searching through raw primitives (like $+$, $-$, $\sin$), SIGS uses a formal grammar to generate "analytic atoms"—physically meaningful building blocks such as spatial eigenfunctions or temporal decay factors. This higher-level representation significantly constrains the search to mathematically valid structures.

The Language of Functions: Mapping symbolic expressions from a formal grammar to a functional space via an interpretation operator.

Topological Grammar VAE (TGVAE)

To make the discrete space of grammar rules searchable, SIGS embeds them into a continuous latent space using a Variational Autoencoder. A key innovation is Topological Regularization (using persistent homology and convex hull losses), which ensures the latent space is smooth and navigable. This prevents the optimizer from getting stuck in the mathematical "dead zones" typical of discontinuous symbolic spaces.

Two-Stage Discovery Process

The search for a solution follows a two-stage pipeline:

  1. Structure Discovery: An iterative clustering and search process in the latent space identifies the best symbolic form by minimizing a physics-based residual.
  2. Coefficient Refinement: Once the symbolic structure is identified, numeric constants are fine-tuned using gradient-based optimization (via JAX).
The two-stage solution search process: (I) Structure discovery via iterative refinement in the latent space and (II) Coefficient refinement using gradient-based optimization.

Experimental Evaluation

SIGS was evaluated on a benchmark suite of ten PDEs spanning hyperbolic, parabolic, and elliptic families, including the Viscous Burgers, 1D Wave, and complex coupled systems like the 2D Shallow Water and 2D Compressible Euler equations.

Key Results

  • Unprecedented Accuracy: SIGS recovered exact analytical solutions with relative errors as low as $10^{-14}$ (machine precision), significantly outperforming symbolic baselines like HD-TLGP.
  • Efficiency: The framework finds solutions in seconds to minutes on a single laptop GPU, whereas traditional symbolic methods often fail to converge within hours.
  • Robustness to Misspecification: Even when the exact required function (e.g., $sech$) was missing from the grammar, SIGS found mathematically equivalent forms (e.g., using $tanh$) that satisfied the physics, demonstrating true exploration of functional space.
  • Comparison with LLMs: While models like ChatGPT-5.1 can sometimes guess solutions, they often fail on specific boundary conditions (e.g., 157% error on Poisson-Gauss), whereas SIGS remains physically grounded.

Discussion and Conclusion

SIGS represents a significant advancement in automated symbolic discovery for physics. By combining formal grammars with continuous latent space optimization, it overcomes the combinatorial barriers that have long hindered analytical solution discovery. While currently reliant on a high-level structural "Ansatz," future work may integrate Large Language Models to automate this initial template creation. Additionally, extending the framework to handle multiscale phenomena like turbulence and irregular engineering geometries remains a promising frontier for neuro-symbolic AI.

Summary updated

BibTeX
@inproceedings{oikonomou2026neuro,
  author = {Orestis Oikonomou and Levi E. Lingsch and Dana Grund and Siddhartha Mishra and Georgios Kissas},
  title = {{Neuro-Symbolic AI for Analytical Solutions of Differential Equations}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=acvRKe2uMW},
}
Figure