Faster Gröbner bases for Lie derivatives of ODE systems via monomial orderings

Mariya Bessonov, Ilia Ilmer, Tatiana Konstantinova, Alexey Ovchinnikov, Gleb Pogudin, Pedro Soto · DOI

Abstract

Symbolic computation for systems of differential equations is often computationally expensive. Many practical differential models have a form of polynomial or rational ODE system with specified outputs. A basic symbolic approach to analyze these models is to compute and then symbolically process the polynomial system obtained by sufficiently many Lie derivatives of the output functions with respect to the vector field given by the ODE system. In this paper, we present a method for speeding up Gröbner basis computation for such a class of polynomial systems by using specific monomial ordering, including weights for the variables, coming from the structure of the ODE model. We provide empirical results that show improvement across different symbolic computing frameworks and apply the method to speed up structural identifiability analysis of ODE models.

The Computational Bottleneck in ODE Modeling

In fields like mathematical biology and pharmacokinetics, researchers use Ordinary Differential Equation (ODE) systems to model complex phenomena. A critical question in these fields is structural identifiability: can we actually determine the internal parameters of the model (such as infection rates or drug clearance) just by observing the available outputs?

To answer this, mathematicians use "Lie derivatives"—repeatedly differentiating the output equations until they form a system of polynomial equations. The standard tool for solving these systems is the Gröbner basis computation. However, even for relatively small models, this process is a notorious computational bottleneck. It frequently consumes hundreds of gigabytes of RAM and runs for weeks without finishing, effectively stalling the progress of model validation.

Methods: A Weighted Monomial Ordering Strategy

The authors propose a novel weighted monomial ordering strategy to bypass these limitations. In standard Gröbner basis algorithms (like F4), the order in which the computer processes terms (monomials) determines the speed. Most software defaults to "total-degree-reverse-lexicographic" (tdeg) ordering. The authors' innovation is to assign weights to variables based on the ODE's underlying structure:

  1. The "Level" Concept: They define the "level" of a variable as the minimum number of Lie derivatives required for that variable to appear in the output equations.
  2. Weight Assignment:
    • State variables: $Weight(x_i) = Level(x_i) + 1$.
  3. Parameters: Usually assigned a weight of 1, unless they only appear at the highest level of differentiation.
  4. Integration: This weighted ordering is plugged into the F4 algorithm. By prioritizing variables "closer" to the output, the algorithm avoids redundant computations.

Key Insights: Breaking the "Zero-Reduction" Bottleneck

The F4 algorithm often spends the majority of its time on "reductions to zero"—computations that ultimately yield no new information. The authors found that their weighted ordering spreads out the "formal degrees" of the polynomials, steering the algorithm to work on simpler, more informative pairs first. This structure-aware heuristic leverages the "closeness" of a variable to the observed data, mimicking how a human might naturally solve a system of equations by starting with variables most directly linked to known outputs.

Table showing how weights significantly reduce the number of pairs selected and zero reductions across various models.

Empirical Results and Performance

The method was evaluated using a suite of benchmark ODE models, including COVID-19 transmission models, NF-$\kappa$B signaling, and pharmacokinetics. The empirical results across major symbolic computation frameworks like Maple and Magma were striking:

  • Massive Speedups: For "COVID Model 1," computation time dropped from 377 minutes to just 1 minute (a 327x speedup).
  • Memory Efficiency: The same COVID model saw memory usage plummet from 15.3 GB to 0.3 GB.
  • Enabling the Impossible: Several models (like "COVID Model 2" and certain "Pharmacokinetics" models) that previously crashed or failed to finish due to memory limits were solved successfully for the first time using the weighted approach.
Performance comparison showing time and memory improvements, including cases where the weighted ordering enabled solutions for previously intractable models.

Limitations and Future Outlook

While the heuristic is powerful, it is not a universal "silver bullet." In one specific case (an SIR model with a forcing term), the weighted ordering actually increased runtime, though memory usage still decreased. This suggests that while the method is highly effective for the majority of structural identifiability problems, a more nuanced, automated rule for choosing weights could be developed in future work. Currently, the paper provides strong empirical evidence and a logical rationale, but a formal theoretical proof explaining exactly why these weights optimize the F4 algorithm's selection strategy remains an open challenge.

Summary updated

BibTeX
@misc{bessonov2022faster,
  author = {Mariya Bessonov and Ilia Ilmer and Tatiana Konstantinova and Alexey Ovchinnikov and Gleb Pogudin and Pedro Soto},
  title = {{Faster Gröbner bases for Lie derivatives of ODE systems via monomial orderings}},
  year = {2022},
  eprint = {2202.06297},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2202.06297},
}
Figure