arXiv:2610.02960cs.LGOct 2026

Manuscript Offprint

arXiv:2610.02960

Dirac-Interconnected Neural Elements: Discovering Modularity in Physical Systems Without Reduction

Reiho Li, Razmik Arman Khosrovian, Takaharu Yaguchi, Hiroaki Yoshimura, Takashi Matsubara

ABSTRACT

Deep learning has shown remarkable success in the data-driven modeling of dynamical systems. Much of its success is attributed not to the flexibility of neural networks but to inductive biases based on physical prior knowledge, such as energy conservation and symplicity. However, existing methods do not fully exploit the fact that real-world physical systems are interconnections of components. Some methods require the interconnection to be known a priori, while others assume the system to be reducible to an ordinary differential equation (ODE) and learn only the reduced ODE, discarding the algebraic constraints imposed by the interconnection. Here, we propose Dirac-interconnected neural elements (DINEs), a neural network model that represents a physical system as a differential-algebraic equation (DAE), whose algebraic constraints are given by a Dirac structure in kernel representation. With DINEs, we simultaneously identify from data the interconnection among the components as a Dirac structure and learn the characteristics of the components as neural networks. This allows us to keep the learned subsystems in unreduced form and isolate or compose them to make a new system without retraining. Moreover, DINEs can handle partially observable systems. Experimental results demonstrate these capabilities on physical systems beyond the reach of existing methods.

1 INTRODUCTION

Deep learning has been successful in a wide range of domains (Bishop & Bishop, 2024; Noor & Ige, 2025), including the data-driven modeling of dynamical systems (Wang et al., 2023; Legaard et al., 2023). Many approaches approximate the dynamics directly from observed trajectories, as in neural ordinary differential equations (Neural ODEs) (Chen et al., 2018). Since such black-box models often exhibit physically inconsistent behavior in long-term predictions, physical prior knowledge has been embedded into models as an inductive bias. In particular, Hamiltonian, constrained Hamiltonian, and port-Hamiltonian neural networks are inspired by energy-based modeling, where an energy function is defined on the state space, and a single vector field is derived from it, ensuring the energetic behavior of the system by construction (Greydanus et al., 2019; Finzi et al., 2020; Matsubara et al., 2020; Desai et al., 2021; Moradi et al., 2026).

However, real-world physical systems are interconnections of components, such as masses, springs, and dampers in mechanical systems, and inductors, capacitors, and resistors in electrical circuits. Their power exchange has often been described by a graphical notation, bond graphs (Paynter, 1961; Karnopp et al., 2012; Tabatabaian, 2021). The model becomes interpretable and its components become reusable if it identifies from observed data this internal structure, namely the characteristics of the components (i.e., their constitutive relations) and the interconnection among them. Beyond prediction, such models also support the identification of physical parameters, diagnosis, and design. Because the interconnection among the components gives rise to algebraic constraints, interconnected systems are in general described by differential-algebraic equations (DAEs) (Duindam et al., 2009; van der Schaft & Jeltsema, 2014). Neural port-Hamiltonian DAEs (N-pHDAEs) (Neary et al.,

*Correspondence to li.reiho.c0@elms.hokudai.ac.jp, matsubara@ist.hokudai.ac.jp

Table 1: Comparison with related methods.

ModelEnsuring Energetic BehaviorIdentifying InterconnectionLearning ConstraintsLearning from Partial Observation
Neural ODEs (Chen et al., 2018)----
HNNs, LNNs, SymODENs, pHNNs †^{\dagger}✓---
OE-pHNNs (Moradi et al., 2026)✓--✓
CHNNs, CLNNs (Finzi et al., 2020)✓-given §^{\S}-
Compositional pHNNs (Neary & Topcu, 2023)✓given--
N-pHDAEs (Neary et al., 2025)✓givengiven-
pH-DAE identification (Hagelaars et al., 2026)✓givengiven✓
Latent ODEs, CT-SUBNET ‡^{\ddagger}--if reducible✓
PoDiNNs (Khosrovian et al., 2025)✓✓if reducible-
DINEs (ours)✓✓✓✓

†^{\dagger} Greydanus et al. (2019); Cranmer et al. (2020); Zhong et al. (2020b;a); Desai et al. (2021). ‡^{\ddagger} Rubanova et al. (2019); Beintema et al. (2023). §^{\S} Available only for holonomic constraints.

  1. and port-Hamiltonian DAE (pH-DAE) identification (Hagelaars et al., 2026) approximate interconnected systems with the interconnection known and fixed in advance. Poisson-Dirac neural networks (PoDiNNs) (Khosrovian et al., 2025) identify the interconnection from observed data, but only in a reduced form. They assume that the system is reducible to an ODE and that all component states are observable, thereby discarding the algebraic constraints and excluding partially observable systems. Table 1 summarizes the comparison: no existing model both learns the interconnection and keeps its algebraic constraints.

Given the above, we propose Dirac-interconnected neural elements (DINEs), a neural network model that represents a physical system as a DAE whose algebraic constraints are given by a Dirac structure in kernel representation (see Figure 1) (Duindam et al., 2009; van der Schaft & Jeltsema, 2014). Our contributions are as follows: (i) By minimizing the DAE residual, DINEs simultaneously learn the interconnection as a Dirac structure and the constitutive relations of the components as neural networks. (ii) Since the system is not reduced to an ODE, DINEs can isolate or compose the learned subsystems without retraining. (iii) DINEs also handle partially observable systems, in which some component states are unobserved. (iv) Experimental results demonstrate these capabilities on physical systems beyond the reach of existing methods.

Figure

Figure 1: Conceptual diagram of DINEs.

References (58)