Introduction
In scientific research, uncovering the fundamental laws governing dynamic systems—ranging from the movement of drugs through the human body to the oscillations of a pendulum—is a primary objective. These laws are typically expressed as Ordinary Differential Equations (ODEs). While deep learning models have become adept at "black-box" predictions of these systems, they often lack the interpretability required for scientific discovery. Symbolic Regression (SR) aims to bridge this gap by generating human-readable mathematical expressions.
However, current SR methods for ODEs face two significant hurdles. First, optimization is difficult; traditional genetic programming is slow, and modern Transformer-based models often fail to capture the underlying physical "flow" of the system. Second, evaluation metrics are often flawed, relying on single trajectories that are highly sensitive to initial conditions. This paper introduces DDOT (Derivative-directed Dual-decoder Ordinary Differential Equation Transformer) and a new evaluation metric, DIV-diff, to address these challenges.
Methodology
The DDOT Architecture
DDOT builds upon the standard Transformer framework but introduces a novel Dual-Decoder architecture designed to reconcile mathematical syntax with physical behavior:
- ODE Decoder: This component is responsible for predicting the symbolic mathematical expression (e.g., $\dot{x} = -y$). It focuses on the structural and syntactic representation of the system.
- Derivative Decoder: Simultaneously, this decoder predicts the numerical derivative values ($f(x(t))$) at specific points in time.
By employing Auxiliary Task Learning, the model is forced to ensure that the symbolic equations it generates are consistent with the numerical derivatives it predicts. This dual-focus acts as a powerful guide, helping the model converge on the correct symbolic form by grounding the "math" in the observed "physics."
The DIV-diff Metric
To address the limitations of trajectory-based evaluation, the authors proposed the Divergence Difference (DIV-diff) metric. Traditional benchmarks often test if a model can recreate a single path. However, if the starting point changes slightly, a model that "overfit" to one path may fail.
DIV-diff instead calculates the "source" or "sink" strength (divergence) across a grid of points in the variable space. By evaluating the entire vector field rather than a single trajectory, DIV-diff provides a holistic view of the system's dynamics, making the evaluation independent of specific starting points and more representative of the model's true understanding of the system.
Experimental Setup
The model was evaluated using two primary sources:
- ODEBench: A comprehensive benchmark containing 63 different ODE systems (1D to 4D), including the Lorenz attractor and SIR infection models.
- Anesthesia Dataset: A real-world application tracking physiological indicators (heart rate, blood pressure) and drug dosages (Propofol) to predict the Bispectral Index (BIS), a measure of anesthesia depth.
Key Insights and Results
Performance and Generalization
DDOT demonstrated significant improvements over existing state-of-the-art models like ODEFormer:
- Reconstruction Accuracy: DDOT achieved a 4.58% absolute improvement in $P_{R^2 > 0.9}$, a metric indicating how often the model produces a near-perfect fit to the symbolic equation.
- Generalization: When tested on unseen starting points, DDOT showed a 1.62% improvement over baselines, suggesting it learns the underlying dynamics rather than just memorizing paths.
- Global Dynamics: The model reduced the error in the DIV-diff metric by 3.55%, confirming its superior ability to capture the global vector field.
Robustness and Real-World Application
One of the most critical findings was DDOT's robustness to noise. By learning broader dynamics via the dual-decoder, the model remains stable even when input data is imperfect. In the anesthesia case study, DDOT successfully derived interpretable equations linking drug dosage to patient vitals, showcasing its potential as a tool for clinical decision support where interpretability is paramount.
Limitations and Future Work
Despite its successes, DDOT faces challenges common in the field of symbolic regression. Its accuracy tends to decrease as systems become more complex (3D and 4D) or chaotic (e.g., the Lorenz system). In chaotic regimes, the model occasionally identifies equations that are "structurally similar" but not exact matches, highlighting the inherent difficulty of modeling chaos.
Future research will focus on scaling the model to handle higher-dimensional systems and expanding the library of mathematical operators to include more complex functions beyond basic arithmetic and trigonometry.
Summary updated