Learnable & Interpretable Model Combination in Dynamic Systems Modeling

Tobias Thummerer, Lars Mikelsons · DOI

Abstract

Modern engineering often grapples with the choice between "first-principles" models (FPMs) and data-driven "machine learning models" (MLMs). While Scientific Machine Learning (SciML) aims to bridge this gap, integrating neural networks into physical simulations presents significant mathematical challenges, such as algebraic loops and discontinuous events. This paper introduces HUDA-ODEs, a unified mathematical interface for hybrid dynamical systems, and the Parallel-Sequential-DFT (PSD) topology. The PSD architecture utilizes a learnable connection matrix to automatically determine optimal model combinations while ensuring a loop-free structure. Experimental results on a 2D bouncing ball simulation demonstrate that this framework enables seamless, interpretable, and efficient hybrid modeling.

Introduction

In the domain of physical systems modeling, researchers frequently face a trade-off between the interpretability of first-principles models and the high-dimensional pattern recognition of machine learning. Hybrid modeling seeks to combine these strengths. However, two primary "Open Challenges" persist:

  1. Algebraic Loops: Circular dependencies between sub-models can lead to unsolvable or computationally expensive iterative requirements.
  2. Discontinuous Events: Propagating gradients through discrete state changes (e.g., collisions or switching) is mathematically complex.

To address these, the authors propose a unified framework that standardizes the interface between diverse modeling paradigms.

The HUDA-ODE Interface and PSD Topology

The core of the proposed solution is the HUDA-ODE interface (Hybrid, Universal, Discrete, and Algebraic). This "wrapper" describes dynamical systems by explicitly separating continuous states, discrete states, algebraic outputs, and event-handling mechanisms.

To facilitate the connection of these models, the authors introduce the Parallel-Sequential-DFT (PSD) topology. Unlike static architectures, PSD uses a learnable connection matrix ($W$) to define how sub-models interact.

The PSD topology uses internal nodes and a learnable matrix to combine models without creating algebraic loops.

By enforcing a Block Lower Triangular (BLT) structure on the system's dependency matrix, the PSD topology guarantees the absence of algebraic loops. This allows the optimizer to explore parallel, sequential, or direct feed-through (DFT) configurations during training without risking mathematical instability.

Case Study: The 2D Bouncing Ball

The framework was validated using a 2D bouncing ball simulation where the FPM accounted for gravity and collisions but lacked air friction. A neural network (MLM) was tasked with learning this missing component from a limited dataset (~8 seconds of movement).

Key Insights

  • Interpretability: The learnable connection matrix $W$ provides a window into the model's logic. By visualizing the weights as a heatmap, researchers can identify whether the MLM is acting as a serial correction or a parallel addition.
Heatmap of a learnable weight matrix, illustrating the interpretability of the model's internal connections.
  • The Expressivity Trap: Interestingly, the highly flexible PSD architecture performed worse than a simpler parallel model in low-data scenarios. The added degrees of freedom led the model to learn non-causal correlations, emphasizing that structural priors (like knowing friction is additive) remain crucial when data is sparse.

Conclusion

The HUDA-ODE and PSD framework provides a robust foundation for hybrid modeling. By standardizing the interface for continuous and discrete systems and providing a loop-free, learnable topology, it simplifies the integration of physics and AI. Future work will look toward extending these principles to Differential-Algebraic Equations (DAEs) and improving regularization to prevent overfitting in complex "wildcard" architectures.

Summary updated

BibTeX
@misc{thummerer2024learnable,
  author = {Tobias Thummerer and Lars Mikelsons},
  title = {{Learnable \& Interpretable Model Combination in Dynamic Systems Modeling}},
  year = {2024},
  eprint = {2406.08093},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2406.08093},
}
Figure