betaFeedback

WorksPhysics and Astronomy

From Flow-Box Invariants to Global Conservation Laws: Machine Learning-Assisted Detection of Singularities and Near-Integrability

Abstract

Conservation laws reveal invariant structure in dynamical systems and constrain their evolution to lower-dimensional level sets. Locally, however, per the flow-box theorem, every dd-dimensional system generically admits d−1d-1 functionally independent conservation laws near a regular point even though, generically, only a few such laws persist globally. Data-driven methods typically learn conservation laws on a prescribed region of phase space from which training samples are drawn, leaving their behavior beyond that region unresolved. We formulate this local-to-global continuation problem and develop an {expanding-domain neural deflation} framework that tracks the number of independent conservation laws over nested domains. The method recovers the expected d−1d-1 local invariants and detects their successive breakdown as the domain expands, relaxing to the expected global conservation law limit. It distinguishes the local invariants (associated with Frobenius integrability) from persistent global structure and shows that the domain scale over which additional laws survive reflects proximity to Liouville integrability. Pointwise losses can localize isolated obstructions, whereas in more complicated dynamics the breakdown of our loss functions is gradual and spatially diffuse. The framework thus provides a data-driven approach for studying the persistence and breakdown of (so-far-learned) conservation laws across phase space.

Introduction

Conservation laws play a central role in the analysis of dynamical systems [1]. By restricting trajectories to invariant level sets, they reduce the effective dimension of the dynamics, reveal hidden geometric structure, and provide important information about long-time behavior. In Hamiltonian mechanics, the existence of sufficiently many independent first integrals in involution underlies Liouville integrability [2]. For systems arising from variational principles, continuous symmetries give rise to conserved quantities through Noether’s theorem [3, 4].

When the governing equations and their structure are known, conservation laws may sometimes be derived analytically. For complex systems, however, such derivations can be challenging, and the number of independent conservation laws may not be known in advance. This has motivated the recent development of data-driven approaches for discovering conserved quantities from trajectories, vector-field evaluations, symmetries, or the geometry of invariant level sets [5, 6, 7, 8, 9]. Methods aimed specifically at recovering a complete set of functionally independent conservation laws (for Hamiltonian systems) include, among others, neural deflation [10] and its trajectory-based extension [11].

Existing data-driven methods typically formulate conservation-law discovery on a prescribed domain of phase space [6, 8, 10, 11]. This restriction arises naturally because training requires samples from the phase space, which are typically drawn from a distribution with compact support. Consequently, the learned conservation laws are identified only on the region representatively covered by the training distribution. Unless this region coincides with the entire phase space — which is particularly challenging computationally, especially as the number of degrees of freedom increases— the recovered quantities should therefore be regarded as local conservation laws and need not extend globally. Moreover, learning conservation laws on a single prescribed domain does not reveal how they persist or break down as the domain is enlarged. In particular, it does not identify the scales at which individual conservation laws cease to exist, nor the geometric or dynamical obstructions responsible for their loss.

This dependence on the domain is essential because conservation laws have fundamentally different local and global characters. Indeed, near any regular point of a dd-dimensional dynamical system, the flow-box theorem (also called the rectification or straightening theorem) guarantees the existence of d−1d-1 functionally independent local conservation laws [12]. This conclusion requires neither a Hamiltonian structure nor global integrability. Thus, even a system with no nontrivial global conservation law possesses the maximal number of independent conservation laws in a sufficiently small neighborhood of every regular point.

Local existence is therefore universal and, by itself, does not distinguish an integrable system from a non-integrable one. The more informative question is how the locally available conservation laws behave as the region of interest expands. Some may persist over increasingly large domains and ultimately extend to global conservation laws. Others may cease to admit a smooth or single-valued continuation, lose functional independence, or break down when the domain encounters an equilibrium, a singular set, a recurrence or a more subtle global obstruction. From this perspective, as the box of phase space under consideration is expanded, the transition from local to global conservation laws is reflected in the successive loss of the invariants initially (meaning: in the neighborhood of a regular point) guaranteed by the flow-box theorem.

This observation motivates the central problem considered in this paper:

The remainder of the paper is organized as follows. Section II introduces local and global conservation laws, functional independence, and the flow-box theorem, and then formulates the local-to-global continuation problem. Section III presents neural deflation and explains how it is applied over a nested family of expanding domains, with the associated losses serving as indicators of the persistence and breakdown of local conservation laws (possibly in the form of singularities). Section IV reports numerical experiments on elementary dynamical systems and Hamiltonian benchmarks in integrable, near-integrable, and non-integrable regimes. The paper concludes with a discussion of the capabilities, limitations, and possible extensions of the proposed framework.

Background and motivation

Local and global conservation laws and their functional independence

Consider a dd-dimensional dynamical system, not necessarily Hamiltonian, on an open phase space Ω⊂Rd\Omega\subset\mathbb{R}^{d}

dxdt=f(x),f:Ω→Rd.(1)\frac{d\mathbf{x}}{dt}=\mathbf{f}(\mathbf{x}),\quad\mathbf{f}:\Omega\to\mathbb{R}^{d}. \tag*{(1)}

A function I:U→RI:U\to\mathbb{R}, defined on an open subset U⊂ΩU\subset\Omega, is called a local conservation law if it is constant along every trajectory segment contained in UU. More precisely, for any solution x(t)\mathbf{x}(t) of Eq. (1) and any time interval JJ such that x(t)∈U\mathbf{x}(t)\in U for all t∈Jt\in J,

I(x(t))≡constant,t∈J.(2)I(\mathbf{x}(t))\equiv\text{constant},\qquad t\in J. \tag*{(2)}

If II is continuously differentiable, this condition is equivalent, by the chain rule, to the vanishing of its Lie derivative along f\mathbf{f}:

LfI(x):=f(x)⋅∇I(x)=0,∀x∈U.(3)\mathcal{L}_{\mathbf{f}}I(\mathbf{x}):=\mathbf{f}(\mathbf{x})\cdot\nabla I(\mathbf{x})=0,\qquad\forall\mathbf{x}\in U. \tag*{(3)}

When U=ΩU=\Omega, II is called a global conservation law.

A collection of local conservation laws, I1,…,Ik:U→RI_{1},\ldots,I_{k}:U\to\mathbb{R}, is said to be functionally independent on UU if the map

I:=(I1,…,Ik):U→Rk\mathbf{I}:=(I_{1},\ldots,I_{k}):U\to\mathbb{R}^{k}

has full rank almost everywhere on UU, namely,

rank⁡DI(x)=k,a.e. x∈U,(4)\operatorname{rank}D\mathbf{I}(\mathbf{x})=k,\qquad\text{a.e. }\mathbf{x}\in U, \tag*{(4)}

where

DI(x)=[∂Ii∂xj]1≤i≤k, 1≤j≤dD\mathbf{I}(\mathbf{x})=\left[\frac{\partial I_i}{\partial x_j}\right]_{1\le i\le k,\,1\le j\le d}

is the k×dk \times d Jacobian of I\mathbf{I} at x\mathbf{x}. Equivalently, the gradients ∇I1(x),…,∇Ik(x)\nabla I_1(\mathbf{x}),\ldots,\nabla I_k(\mathbf{x}) are linearly independent at (almost) every point of UU.

A point x∈U\mathbf{x}\in U is called a regular point of the vector field if f(x)≠0\mathbf{f}(\mathbf{x})\ne0. By Eq. (3), the gradient of every conservation law at a regular point is orthogonal to f(x)\mathbf{f}(\mathbf{x}). Therefore, at most d−1d-1 conservation laws can be functionally independent in a neighborhood of a regular point.

The flow-box theorem and local conservation laws

The following classical result shows that the upper bound of d−1d-1 is always attained locally near a regular point.

Theorem 1 (Flow-box theorem [12]). Let Ω⊂Rd be open, let f∈C1(Ω;Rd), and suppose that f(x0)≠0 for some x0∈Ω. Then there exist an open neighborhood U⊂Ω of x0, an open set V⊂Rd, and a C1-diffeomorphism\Omega\subset\mathbb{R}^d\text{ be open, let }\mathbf{f}\in C^1(\Omega;\mathbb{R}^d)\text{, and suppose that }\mathbf{f}(\mathbf{x}_0)\ne0\text{ for some }\mathbf{x}_0\in\Omega\text{. Then there exist an open neighborhood }U\subset\Omega\text{ of }\mathbf{x}_0\text{, an open set }V\subset\mathbb{R}^d\text{, and a }C^1\text{-diffeomorphism}

Φ:U→V,Φ(x)=(y1(x),…,yd(x)),\Phi:U\to V,\qquad\Phi(\mathbf{x})=(y_1(\mathbf{x}),\ldots,y_d(\mathbf{x})),

such that

DΦ(x)f(x)=e1,x∈U,(5)D\Phi(\mathbf{x})\mathbf{f}(\mathbf{x})=\mathbf{e}_1,\qquad\mathbf{x}\in U, \tag*{(5)}

where e1=(1,0,…,0)T\mathbf{e}_1=(1,0,\ldots,0)^{\mathsf{T}}. Equivalently, in the coordinates (y1,…,yd)(y_1,\ldots,y_d), the system (1) takes the form

dy1dt=1,dyidt=0,i=2,…,d.(6)\frac{d y_1}{d t}=1,\qquad\frac{d y_i}{d t}=0,\qquad i=2,\ldots,d. \tag*{(6)}

The flow-box theorem may be viewed as the rank-one case of the Frobenius theorem [12]: wherever f≠0\mathbf{f}\ne0, the vector field spans a one-dimensional distribution; since every one-dimensional distribution is automatically involutive, the Frobenius theorem implies that it is locally integrable. The flow-box theorem gives the corresponding coordinate representation, i.e., the vector field is straightened into ∂/∂y1\partial/\partial y_1 and the trajectories become coordinate lines in the y1y_1-direction.

The implication for conservation laws follows almost trivially. Define

Ii(x):=yi+1(x),i=1,…,d−1.(7)I_i(\mathbf{x}):=y_{i+1}(\mathbf{x}),\qquad i=1,\ldots,d-1. \tag*{(7)}

Equation (6) gives

ddtIi(x(t))=dyi+1dt=0,\frac{d}{dt} I_i(\mathbf{x}(t)) = \frac{d y_{i+1}}{dt} = 0,

so each IiI_i is a local conservation law on UU. Moreover, because Φ\Phi is a diffeomorphism, the gradients

∇I1(x),…,∇Id−1(x)\nabla I_1(\mathbf{x}), \ldots, \nabla I_{d-1}(\mathbf{x})

are linearly independent throughout UU. Thus, every dd-dimensional dynamical system admits d−1d-1 functionally independent conservation laws in a sufficiently small neighborhood of any regular point.

Note that the existence of d−1d-1 conservation laws on a small neighborhood does not imply that the system is globally integrable or that it possesses any nontrivial global conservation law. These local invariants simply arise from the universal geometry of a nonvanishing vector field and such local features cannot be used to indicate any further special global structure of the dynamical system.

The local-to-global continuation problem

Consequently, the flow-box theorem resolves the local existence question, yet does not determine how far the resulting conservation laws can be continued. For various reasons, a local invariant may fail to extend smoothly to a larger domain. Moreover, even when several conservation laws can each be continued, their gradients may cease to remain linearly independent throughout the enlarged domain.

To formulate this problem (namely the one of continuation of conservation laws from local to global), let {Ur}r∈R\{U_r\}_{r\in\mathbb{R}} be a nested family of connected open subsets of Ω\Omega, indexed by a scale parameter rr, such that

Ur1⊆Ur2whenever r1≤r2.(8)U_{r_1} \subseteq U_{r_2} \qquad\text{whenever } r_1 \le r_2. \tag*{(8)}

The domains may, for example, be expanding rectangular boxes or, in a Hamiltonian system, energy sublevel sets.

For each such domain, let ν(U)\nu(U) denote the maximum number of functionally independent C1C^1 conservation laws defined on UU. By definition, ν(U)≤d−1\nu(U) \le d-1. Moreover, since the domains are nested,

ν(Ur2)≤ν(Ur1),r1≤r2.(9)\nu(U_{r_2}) \le\nu(U_{r_1}), \qquad r_1 \le r_2. \tag*{(9)}

If the domains are centered at a regular point x0x_0, the flow-box theorem gives

ν(Ur)=d−1\nu(U_r)=d-1

for all sufficiently small rr. As rr increases, the value of ν(Ur)\nu(U_r) may decrease. Each decrease marks the “failure” of at least one of the initially available local conservation laws to extend over the enlarged domain.

Because a family of conservation laws admits nonunique representations, the intrinsic quantity of interest is the number ν(Ur)\nu(U_r) of functionally independent conservation laws, rather than any particular choice of representatives. Indeed, if

I=(I1,…,Ik)\mathbf{I}=(I_1,\ldots,I_k)

is a functionally independent family and F:Rk→RkF:\mathbb{R}^k\to\mathbb{R}^k is a local diffeomorphism, then F∘IF\circ\mathbf{I} defines another family with the same level-set structure. Consequently, the loss of a conservation law as the domain expands refers to a decrease in the number of functionally independent conservation laws, rather than the disappearance of a particular representative.

The local-to-global continuation problem considered in this paper consists therefore of determining, or approximating, the function r↦ν(Ur)r\mapsto\nu(U_r), and of investigating the mechanisms responsible for its decreases. In particular, after fixing a reference point in phase space, we seek to answer the following questions:

  1. How many functionally independent conservation laws exist on each domain UrU_r?

  1. At what domain sizes does this number decrease, and can these critical domain sizes be interpreted in terms of the underlying system dynamics?

  1. Can the region in which a conservation law first fails be identified from its pointwise conservation or independence residual?

  1. How many and which of the conservation laws available locally persist over the full phase-space region of interest and therefore represent global structure?

Our primary construction begins with domains centered at a regular point, where the flow-box theorem supplies a precise local benchmark. We also consider domains centered at equilibria, particularly energy sublevel sets in Hamiltonian systems. In that setting, the flow-box theorem does not apply at the center, and the number of conservation laws present on small domains depends on additional structure of the system.

Determining ν(Ur)\nu(U_r) analytically is generally difficult, especially when the vector field is available only through data or when the loss of a conservation law is caused by complicated global dynamics or multiple singularities. This motivates a data-driven approach to the local-to-global continuation problem: To reiterate our approach in context, we first review existing methods for conservation-law discovery, with particular attention to their ability to recover multiple functionally independent invariants and to the phase-space domains on which they operate.

Before delving into the techniques utilized in the present work, it is worthwhile to acknowledge that a growing literature has developed data-driven methods for discovering conservation laws from trajectory observations, vector-field evaluations, or known differential equations. Early sparse-regression approaches searched for conserved quantities within prescribed function libraries [18]. Wetzel et al. [5] used interpretable Siamese neural networks to identify symmetry invariants and conserved quantities from pairs of related observations. Liu and Tegmark [6] instead exploited the geometry and intrinsic dimension of trajectory data to infer the number of conserved quantities. Ha and Jeong [7] trained a neural network on grouped observations sharing the same invariant values, while Arora et al. [19] proposed a model-agnostic approach for jointly learning first integrals and the underlying dynamics from trajectories.

Several methods formulate conservation-law discovery geometrically. Lu et al. [9] combined optimal transport with manifold learning to identify both the number and values of conserved quantities without requiring an explicit dynamical model or accurate time information. More recently, Belyshev et al. [20] combined representation learning with topological analysis to characterize spaces of conservation laws in classical and quantum examples. Oellerich and Emelianenko [21] developed a limited-data framework based on the stability of singular vectors to recover the number and symbolic form of conservation laws, with an emphasis on biological and chemical systems. Mebratie et al. [22] introduced an alternative trajectory-based formulation using indeterminate kernel ridge regression. Their kernel construction reduces data and computational requirements and directly produces explicit expressions, although the main formulation targets a single conservation law.

When the governing differential equations are explicitly available, the conservation condition can be imposed directly through the directional derivative of a candidate invariant. Liu et al. [8] trained neural representations of multiple conservation laws and introduced a numerical procedure for assessing their functional independence. The Sparse Invariant Detector of Liu et al. [23] searches a prescribed basis for sparse, interpretable invariants and has recovered previously unknown conservation laws in applications with known governing equations and candidate features. Neural deflation [10] takes a sequential approach: after each conservation law is learned, the objective for the next candidate is deflated to prevent functional dependence on the preceding laws. This construction is designed to recover a complete family of functionally independent conservation laws and, in its original Hamiltonian formulation, also enforces pairwise involution. Its trajectory-based extension replaces direct access to the vector field with a learned Hamiltonian model [11].

These methods differ in their data requirements, representations, and ability to recover explicit or multiple independent invariants. Nevertheless, to the best of our knowledge, they all formulate conservation-law discovery on a fixed dataset or a prescribed region of phase space. They do not distinguish conservation laws that exist only locally from those that extend globally, nor do they study how the number of independent conservation laws changes as the sampled domain is expanded. The present work addresses this distinction (and the concomitant variation of the number of conservation laws) by applying neural deflation over nested domains and tracking the persistence and breakdown of the learned conservation laws.

Neural Deflation over Expanding Domains

We now develop a numerical framework for approximating the local-to-global continuation problem formulated in § 2. The method builds on neural deflation [10, 11], which sequentially learns functionally independent conservation laws by modifying the loss used to train each new candidate. In contrast to the original Hamiltonian formulation, we omit pairwise involution constraints while retaining functional independence through the gradient-based deflation factor introduced below. This factor penalizes candidates whose gradients become linearly dependent on those of previously learned conservation laws. Our objective is therefore to recover a maximal family of independent conservation laws on each domain, rather than a maximal family in involution. This distinction allows us to target the full set of d−1d - 1 local invariants predicted by the flow-box theorem, which need not be mutually in involution. The method applies to a general autonomous dynamical system (1) without assuming a Hamiltonian or Poisson structure.

We first describe the discovery of conservation laws on a single prescribed domain. We then apply this fixed-domain procedure to a nested family of expanding domains and use the resulting losses to estimate the function r↦ν(Ur)r \mapsto\nu(U_r).

Learning a conservation law on a fixed domain

Let U⊂ΩU \subset\Omega be a prescribed domain. We assume that the vector field f(x)\mathbf{f}(\mathbf{x}) can be evaluated at sampled points in Ω\Omega, either directly from the governing equations or through available vector-field data. We draw Ntr∈Z+N_{\mathrm{tr}} \in\mathbb{Z}^{+} and Nval∈Z+N_{\mathrm{val}} \in\mathbb{Z}^{+} points, forming training and validation sets TU\mathcal{T}_U and VU\mathcal{V}_U, respectively, from a probability distribution (typically uniform) supported on UU:

TU={x(n)}n=1Ntr,VU={x(n)}n=1Nval.\mathcal{T}_U = \left\{ \mathbf{x}^{(n)} \right\}_{n=1}^{N_{\mathrm{tr}}}, \qquad\mathcal{V}_U = \left\{ \mathbf{x}^{(n)} \right\}_{n=1}^{N_{\mathrm{val}}}.

A candidate conservation law is represented by a scalar-valued neural network

I(x;θ):U→R,I(\mathbf{x};\theta): U \to\mathbb{R},

where θ\theta denotes the trainable parameters. Its spatial gradient ∇I(x;θ)\nabla I(\mathbf{x};\theta) is computed by automatic differentiation [24]. The conservation condition [Eq. (3)] is

f(x)⋅∇I(x;θ)=0.\mathbf{f}(\mathbf{x}) \cdot\nabla I(\mathbf{x};\theta) = 0.

To remove the arbitrary scaling of both the vector field and the candidate conservation law, we introduce the normalized vectors

f^(x):=f(x)∥f(x)∥2,∇I^(x;θ):=∇I(x;θ)∥∇I(x;θ)∥2,(10)\widehat{\mathbf{f}}(\mathbf{x}) := \frac{\mathbf{f}(\mathbf{x})}{\lVert\mathbf{f}(\mathbf{x}) \rVert_2}, \qquad\widehat{\nabla I}(\mathbf{x};\theta) := \frac{\nabla I(\mathbf{x};\theta)}{\lVert\nabla I(\mathbf{x};\theta) \rVert_2}, \tag*{(10)}

and define the pointwise conservation loss as

ℓcons[I;x]:=∣f^(x)⋅∇I^(x)∣2.(11)\ell_{\mathrm{cons}}[I;\mathbf{x}] := \left\lvert\widehat{\mathbf{f}}(\mathbf{x}) \cdot\widehat{\nabla I}(\mathbf{x}) \right\rvert^2. \tag*{(11)}

Equivalently, away from equilibria and critical points of II,

ℓcons[I;x]=∣f(x)⋅∇I(x)∣2∥f(x)∥22∥∇I(x)∥22.(12)\ell_{\mathrm{cons}}[I;\mathbf{x}] = \frac{\left\lvert\mathbf{f}(\mathbf{x}) \cdot\nabla I(\mathbf{x}) \right\rvert^2}{\lVert\mathbf{f}(\mathbf{x}) \rVert_2^2 \lVert\nabla I(\mathbf{x}) \rVert_2^2}. \tag*{(12)}

Thus, ℓcons[I;x]\ell_{\mathrm{cons}}[I;\mathbf{x}] is the squared cosine of the angle between the vector field and the gradient of II. It vanishes precisely when the vector field is tangent to the level set of II at x\mathbf{x}. The normalization makes the loss invariant under nonzero rescalings of both f\mathbf{f} and II and, in particular, prevents the loss from being minimized merely by shrinking the magnitude of the network output.

The first candidate conservation law I1(⋅;θ1)I_1(\cdot;\theta_1) is trained by minimizing the empirical conservation loss

L1(θ1;TU):=1∣TU∣∑x∈TUℓcons[I1(⋅;θ1);x].(13)\mathcal{L}_1(\theta_1;T_U) := \frac{1}{\lvert T_U\rvert}\sum_{\mathbf{x}\in T_U}\ell_{\mathrm{cons}}[I_1(\cdot;\theta_1);\mathbf{x}]. \tag*{(13)}

Let θ1∗\theta_1^* denote the trained parameters. A small validation loss indicates that I1(⋅;θ1∗)I_1(\cdot;\theta_1^*) approximately satisfies the conservation equation over UU. This loss alone, however, cannot be used to learn a complete family of conserved quantities since after one conservation law has been identified, subsequent networks may simply learn functions of the same invariant.

Functional independence through neural deflation

To prevent such redundancy, we employ neural deflation, which penalizes the functional dependence of each new candidate on previously learned conservation laws. Specifically, suppose that K−1K-1 candidate conservation laws

I1(⋅;θ1∗),…,IK−1(⋅;θK−1∗)I_1(\cdot;\theta_1^*),\ldots,I_{K-1}(\cdot;\theta_{K-1}^*)

have already been learned on a fixed domain UU. We then train the next candidate IK(⋅;θK)I_K(\cdot;\theta_K) by optimizing only θK\theta_K, while keeping the parameters θ1∗,…,θK−1∗\theta_1^*,\ldots,\theta_{K-1}^* fixed. The previously learned functions therefore remain unchanged during this training stage, and their spatial gradients are used to assess the functional independence of the new candidate.

At each point x∈U\mathbf{x}\in U, define the linear subspace spanned by the normalized gradients previously learned:

SK−1(x):=span⁡{∇I1^(x;θ1∗),…,∇IK−1^(x;θK−1∗)}⊂Rd.(14)S_{K-1}(\mathbf{x}) := \operatorname{span}\left\{\widehat{\nabla I_1}(\mathbf{x};\theta_1^*),\ldots,\widehat{\nabla I_{K-1}}(\mathbf{x};\theta_{K-1}^*)\right\}\subset\mathbb{R}^{d}. \tag*{(14)}

The component of the new gradient that is orthogonal to this subspace is

pK(x;θK):=Proj⁡SK−1(x)⊥∇IK^(x;θK),(15)\mathbf{p}_K(\mathbf{x};\theta_K) := \operatorname{Proj}_{S_{K-1}(\mathbf{x})^\perp}\widehat{\nabla I_K}(\mathbf{x};\theta_K), \tag*{(15)}

where Proj⁡V:Rd→Rd\operatorname{Proj}_{V}: \mathbb{R}^{d} \to\mathbb{R}^{d} denotes the projection onto the subspace V⊆RdV \subseteq\mathbb{R}^{d}. We use the squared norm ∥pK∥\|\mathbf{p}_{K}\| as a pointwise independence factor:

ℓind,K[IK(⋅;θK);x]:=∥pK(x;θK)∥22.(16)\ell_{\mathrm{ind},K}[I_{K}(\cdot;\theta_{K});\mathbf{x}] := \|\mathbf{p}_{K}(\mathbf{x};\theta_{K})\|_{2}^{2}. \tag*{(16)}

Because the candidate gradient is normalized, it’s clear that 0≤ℓind,K≤10 \leq\ell_{\mathrm{ind},K} \leq1. Moreover,

ℓind,K(x;θK)=0\ell_{\mathrm{ind},K}(\mathbf{x};\theta_{K}) = 0

if and only if the gradient of IKI_{K} lies in the span of the previous gradients at x\mathbf{x}. In particular, if IKI_{K} is locally a smooth function of the previously learned conservation laws, then its independence factor vanishes.

For K≥2K \geq2, define the pointwise deflated loss by

ℓdefl,K[IK(⋅;θK);x]:=ℓcons[IK(⋅;θK);x]∣ℓind,K[IK(⋅;θK);x]∣α,(17)\ell_{\mathrm{defl},K}[I_{K}(\cdot;\theta_{K});\mathbf{x}] := \frac{\ell_{\mathrm{cons}}[I_{K}(\cdot;\theta_{K});\mathbf{x}]}{\left|\ell_{\mathrm{ind},K}[I_{K}(\cdot;\theta_{K});\mathbf{x}]\right|^{\alpha}}, \tag*{(17)}

where α>0\alpha> 0 is a tunable deflation parameter. The numerator enforces the conservation condition, whereas the denominator penalizes functional dependence on the previously learned conservation laws. In particular, ℓind,K[IK(⋅;θK);x]\ell_{\mathrm{ind},K}[I_{K}(\cdot;\theta_{K});\mathbf{x}] vanishes when ∇IK(x;θK)\nabla I_{K}(\mathbf{x};\theta_{K}) lies in the span of the preceding gradients, causing the pointwise deflated loss to become singular. This prevents the new candidate from reproducing a nonlinear function of the previously discovered conservation laws. The exponent α\alpha controls the strength of the penalty near such dependent configurations.

The KKth network is trained by minimizing the empirical deflated loss over the training set:

LK(θK;TU):=1∣TU∣∑x∈TUℓdefl,K[IK(⋅;θK);x].(18)\mathcal{L}_{K}(\theta_{K};T_{U}) := \frac{1}{|T_{U}|}\sum_{\mathbf{x}\in T_{U}} \ell_{\mathrm{defl},K}[I_{K}(\cdot;\theta_{K});\mathbf{x}]. \tag*{(18)}

In the original neural deflation method for Hamiltonian systems, the numerator also contains pairwise involution losses between the new candidate and the previously learned conservation laws [10]. We omit these terms here. For a general vector field, there need not be a canonical Poisson bracket, and our objective is to recover a maximal family of functionally independent conservation laws rather than a family of first integrals in involution.

As in the original neural deflation framework [10], a notable property of the proposed loss is its consistency in the infinite-sample limit. In this limit, the empirical average over the training set is replaced by an expectation with respect to a probability measure on the domain UU. The following theorem summarizes this property.

Theorem 2 (Consistency of neural deflation). Assume that {Ik(⋅;θk∗)}k=1K−1\{I_k(\cdot;\theta_k^*)\}_{k=1}^{K-1} is a set of K−1K-1 functionally independent conservation laws on U⊂RdU \subset\mathbb{R}^d, where θk∗∈Rp\theta_k^* \in\mathbb{R}^p denotes the p∈Z+p \in\mathbb{Z}^+ learned parameters after training. Let μ\mu be a probability measure on UU that is mutually absolutely continuous with respect to the Lebesgue measure on UU. For a candidate IK(⋅;θK)I_K(\cdot;\theta_K), define the population deflated loss

LKμ(θK):=Ex∼μ[ℓcons[IK(⋅;θK);x]ℓind,K[IK(⋅;θK);x]α],(19)\mathcal{L}^{\mu}_K(\theta_K) := \mathbb{E}_{\mathbf{x}\sim\mu}\left[\frac{\ell_{\mathrm{cons}}[I_K(\cdot;\theta_K);\mathbf{x}]}{\ell_{\mathrm{ind},K}[I_K(\cdot;\theta_K);\mathbf{x}]^\alpha}\right], \tag*{(19)}

where α>0\alpha> 0 and the integrand is interpreted as infinite whenever ℓind,K[IK(⋅;θK);x]=0\ell_{\mathrm{ind},K}[I_K(\cdot;\theta_K);\mathbf{x}] = 0. Then LKμ(θK∗)=0\mathcal{L}^{\mu}_K(\theta_K^*) = 0 if and only if

  • IK(⋅;θK∗)I_K(\cdot;\theta_K^*) is a conservation law, and

  • {Ik(⋅;θk∗)}k=1K\{I_k(\cdot;\theta_k^*)\}_{k=1}^{K} is functionally independent μ\mu-almost everywhere on UU.

The proof is a straightforward adaptation of the argument for the original neural deflation method and is deferred to Appendix A for completeness.

Estimating the number of conservation laws

For a fixed domain UU, we train the networks sequentially: I1I_1, I2I_2, …,Id−1\ldots,I_{d-1}. Because a dd-dimensional system admits at most d−1d-1 functionally independent (local) conservation laws, it is sufficient to consider at most d−1d-1 networks. After training the KKth network, we evaluate its deflated loss and conservation loss on the independent validation set:

Ldefl,Kval(U):=1∣VU∣∑x∈VUℓdefl,K[IK(⋅;θK∗);x].(20)\mathcal{L}^{\mathrm{val}}_{\mathrm{defl},K}(U) := \frac{1}{|\mathcal{V}_U|}\sum_{\mathbf{x}\in\mathcal{V}_U}\ell_{\mathrm{defl},K}[I_K(\cdot;\theta_K^*);\mathbf{x}]. \tag*{(20)}
Lcons,Kval(U):=1∣VU∣∑x∈VUℓcons[IK(⋅;θK∗);x].(21)\mathcal{L}^{\mathrm{val}}_{\mathrm{cons},K}(U) := \frac{1}{|\mathcal{V}_U|}\sum_{\mathbf{x}\in\mathcal{V}_U}\ell_{\mathrm{cons}}[I_K(\cdot;\theta_K^*);\mathbf{x}]. \tag*{(21)}

For K=1K=1, the deflated loss is understood to be the conservation loss in (13).

If UU supports at least KK independent conservation laws, the first KK validation losses are expected to remain near the baseline optimization and approximation error. Once the method attempts to learn more independent conservation laws than the domain supports, the conservation and independence requirements become incompatible, and a pronounced increase in the validation loss is expected. We therefore estimate the number of independent conservation laws by the index preceding the first significant loss increase:

ν^(U)=K−1 if a significant increase first occurs at index K.(22)\widehat{\nu}(U)=K-1 \text{ if a significant increase first occurs at index } K. \tag*{(22)}

Rather than assuming a universal absolute threshold, we examine both the magnitude of the losses and their separation across successive values of KK. These will be illustrated along with numerical experiments in Section IV.

Continuation over expanding domains

We now apply the neural deflation procedure to a nested family

Ur1⊂Ur2⊂⋯⊂UrM,r1<r2<⋯<rM.U_{r_1} \subset U_{r_2} \subset\cdots\subset U_{r_M}, \qquad r_1 < r_2 < \cdots< r_M.

For each rmr_m, separate training and validation samples are drawn from UrmU_{r_m}, and the sequence of neural conservation laws is learned on that domain. This produces an estimate ν^(Urm)\widehat{\nu}(U_{r_m}) for every domain size. Typical choices include

  • rectangular domains centered at a prescribed point x0\mathbf{x}_0,

Ur=x0+(−r,r)d;(23)U_r = \mathbf{x}_0 + (-r,r)^d; \tag*{(23)}
  • energy sublevel sets in Hamiltonian examples,

Ur={x∈D:H(x)<r}.(24)U_r = \{ \mathbf{x} \in D : H(\mathbf{x}) < r \}. \tag*{(24)}

The first construction allows the domain to grow from either a regular point or an equilibrium. The second respects the geometry of the Hamiltonian and is useful when the continuation is naturally parameterized by energy.

At every fixed value of rr, the method learns conservation laws only on UrU_r. These learned quantities should therefore be regarded as local conservation laws on that domain unless UrU_r covers the entire phase-space region under consideration. The local-to-global information is obtained from the variation of r↦ν^(Ur)r \mapsto\widehat{\nu}(U_r) over the nested family.

When the domains shrink to a regular point as r→0r \to0, Theorem 1 predicts

ν^(Ur)≈d−1\widehat{\nu}(U_r) \approx d - 1

for sufficiently small rr. A decrease in ν^(Ur)\widehat{\nu}(U_r) as rr grows indicates that at least one of the conservation laws supported on smaller domains cannot be extended as part of an independent family over the enlarged region. Although numerical persistence alone does not provide a mathematically rigorous statement about the global validity of a conservation law, it does provide evidence that a candidate local law, which continues to be approximately recovered over all tested domains, may be a global law.

Average, maximal, and pointwise diagnostics

The estimated number ν^(Ur)\widehat{\nu}(U_r) detects whether a loss of conservation laws has occurred, but it does not by itself reveal where the obstruction is located and/or possibly its nature. To investigate the spatial structure of a breakdown, we inspect the pointwise conservation and deflated losses over the domain.

Specifically, to localize a potential obstruction, we visualize the pointwise fields

x↦ℓcons[IK,r(⋅;θK,r∗);x],x↦ℓdefl,K[IK,r(⋅;θK,r∗);x],\mathbf{x} \mapsto\ell_{\mathrm{cons}}\left[I_{K,r}(\cdot;\theta_{K,r}^{*});\mathbf{x}\right], \qquad\mathbf{x} \mapsto\ell_{\mathrm{defl},K}\left[I_{K,r}(\cdot;\theta_{K,r}^{*});\mathbf{x}\right],

either throughout the domain UrU_r or on selected lower-dimensional slices. Regions of large conservation loss indicate that the candidate function fails to remain constant along the vector field. Regions of small independence factor indicate that its gradient becomes nearly dependent on the previously learned gradients. The deflated loss combines these two effects, so it is sometimes useful to inspect each quantity separately when interpreting a breakdown.

In some cases the interpretation of breakdown is simple since the high-loss region may concentrate near an equilibrium or another isolated singularity, thereby localizing the obstruction to continuation. In more complicated scenarios (e.g., when a recurrence arises along an oscillatory trajectory), the method may still sharply identify the critical value of rr at which a conservation law is lost, while failing to resolve the specific location on the corresponding “rr-shell” where the breakdown occurs.

Summary of the expanding-domain procedure

The complete procedure can be summarized as follows:

  1. Choose a nested family of domains {Urm}m=1M\{U_{r_m}\}_{m=1}^{M}.

  1. For each domain UrmU_{r_m}, draw independent training and validation samples and evaluate the vector field at these points.

  1. Train the first neural conservation law using the normalized conservation loss (13).

  1. Holding all previously trained networks fixed, sequentially train additional candidates using the deflated loss (18).

  1. Identify the first candidate whose validation loss exhibits a pronounced increase, and use the preceding index to estimate ν^(Urm)\hat{\nu}(U_{r_m}).

  1. Compare the results across domain sizes to detect decreases in ν^(Ur)\hat{\nu}(U_r) and, whenever possible, localize the corresponding obstruction.

Numerical experiments

We now apply the expanding-domain neural deflation framework to a collection of dynamical systems of increasing complexity. We begin with elementary two- and three-dimensional examples for which the local and global conservation laws are known analytically. We then consider the Hénon–Heiles system in both integrable and non-integrable regimes, followed by the non-integrable double pendulum system.

For each system, we specify a nested family of training domains {Ur}\{U_r\} and apply neural deflation independently on each domain. We use the validation conservation and deflated losses to estimate the number of conservation laws supported on UrU_r. When a loss increases, we additionally examine its pointwise values to determine whether the corresponding obstruction can be localized/identified within the domain.

Network architecture and training setup

Unless otherwise stated, we use the following common training setup. Each candidate conservation law Ik(x;θk)I_k(\mathbf{x};\theta_k) is represented by a fully connected neural network with four hidden layers of width 64. The SiLU activation function [25], SiLU⁡(z)=z/(1+e−z)\operatorname{SiLU}(z) = z/(1+e^{-z}), is applied after each hidden linear layer, while the output layer is linear and scalar-valued. All weight matrices are initialized using Xavier uniform initialization [26], and all biases are initialized to zero.

For each domain Ur⊂RdU_r \subset\mathbb{R}^d, we independently sample a training set TUr\mathcal{T}_{U_r} and a validation set VUr\mathcal{V}_{U_r}, each consisting of 50,000 points drawn uniformly from UrU_r. The network gradients with respect to the phase variables are evaluated using automatic differentiation. Each candidate network is trained for 1000 epochs using the Adam optimizer [27] with learning rate 10−310^{-3} and a batch size of 32. The deflation exponent is set to α=1\alpha= 1 in all experiments; however, the results are fairly robust to this choice. For example, α=0.5\alpha= 0.5 yields qualitatively similar results.

We report both the conservation loss and the deflated loss on the validation set. Their averages measure the overall validity of a candidate law on UrU_r, while their maximal and pointwise values are used to detect localized failures. Since the training and validation points are sampled from continuous distributions, isolated equilibria and other sets of Lebesgue measure zero are not sampled exactly. The empirical losses therefore assess conservation and functional independence in an almost-everywhere sense, consistent with Theorem 2.

Elementary two- and three-dimensional systems

We begin with four elementary systems for which the relevant local and global conservation laws are known analytically. These examples test whether neural deflation can recover the local conservation laws predicted by the flow-box theorem, detect their loss as the domain expands, and distinguish a genuine obstruction to continuation from an equilibrium across which a global conservation law remains well defined.

Example 1 (2D node). Consider

{x˙=x,y˙=y.(25)\begin{cases} \dot{x} = x, \\ \dot{y} = y. \tag*{(25)} \end{cases}

This system has no nonconstant global conservation law on R2\mathbb{R}^2. However, on any simply connected domain U⊂R2∖{(0,0)}U \subset\mathbb{R}^2 \setminus\{(0,0)\}, a local conservation law can be expressed as a smooth function of the polar angle. In particular, on a box centered at (2,0)(2,0) that does not reach the origin,

I(x,y)=yx(26)I(x,y) = \frac{y}{x} \tag*{(26)}

is a smooth local conservation law.

Example 2 (3D degenerate node). Consider

{x˙=x,y˙=y,z˙=0.(27)\begin{cases} \dot{x}=x,\\ \dot{y}=y,\\ \dot{z}=0. \tag*{(27)} \end{cases}

The system has the global conservation law

I1(x,y,z)=z.(28)I_{1}(x,y,z)=z. \tag*{(28)}

Away from the equilibrium line

E={(0,0,z):z∈R},\mathcal{E}=\{(0,0,z):z\in\mathbb{R}\},

it also admits an additional local conservation law. In particular, on a box centered at (2,0,0)(2,0,0) that does not intersect E\mathcal{E},

I2(x,y,z)=yx(29)I_{2}(x,y,z)=\frac{y}{x} \tag*{(29)}

is functionally independent of I1I_{1}.

Example 3 (2D center). Consider

{x˙=y,y˙=−x.(30)\begin{cases} \dot{x}=y,\\ \dot{y}=-x. \tag*{(30)} \end{cases}

The system has the global conservation law (energy)

I(x,y)=x2+y2.(31)I(x,y)=x^{2}+y^{2}. \tag*{(31)}

Although the origin is an equilibrium and a critical point of II, the conservation law extends smoothly across it.

Example 4 (3D degenerate center). Consider

{x˙=y,y˙=−x,z˙=0.(32)\begin{cases} \dot{x}=y,\\ \dot{y}=-x,\\ \dot{z}=0. \tag*{(32)} \end{cases}

This system has two globally defined conservation laws,

I1(x,y,z)=x2+y2,I2(x,y,z)=z.(33)I_{1}(x,y,z)=x^{2}+y^{2},\qquad I_{2}(x,y,z)=z. \tag*{(33)}

Their gradients are independent away from the equilibrium line E={(0,0,z):z∈R}\mathcal{E}=\{(0,0,z):z\in\mathbb{R}\} and hence independent almost everywhere.

For these examples, let

x0(2)=(2,0),x0(3)=(2,0,0),\mathbf{x}_0^{(2)}=(2,0), \qquad\mathbf{x}_0^{(3)}=(2,0,0),

and define the expanding boxes

Ur(d):=x0(d)+[−r,r]d,d∈{2,3}.(34)U_r^{(d)} := \mathbf{x}_0^{(d)} + [-r,r]^d, \qquad d \in\{2,3\}. \tag*{(34)}

The two-dimensional systems are trained on Ur(2)U_r^{(2)}, while the three-dimensional systems are trained on Ur(3)U_r^{(3)}. We consider

r∈{1.5,1.9,2.1,2.5},r \in\{1.5,1.9,2.1,2.5\},

which samples the domains immediately before and after the critical value r=2r=2. At this value, Ur(2)U_r^{(2)} first reaches the origin, whereas Ur(3)U_r^{(3)} first intersects the equilibrium line E\mathcal{E}.

For the 2D node (Example 1), the box Ur(2)U_r^{(2)} supports one local conservation law as long as r<2r<2. Figure 1 shows the pointwise conservation loss of the learned candidate. For r=1.5r=1.5 and r=1.9r=1.9, the loss remains small throughout the domain, consistent with the existence of the local conservation law y/xy/x. Once the box expands past the critical value r=2r=2 and it now contains the origin, a pronounced high-loss region appears near (0,0)(0,0). This indicates that the local conservation law cannot be continued over the enlarged domain and correctly identifies the origin as the obstruction.

Figure 1. Pointwise conservation loss for the 2D node (Example 1) on Ur(2)=[2−r,2+r]×[−r,r]U_r^{(2)} = [2-r,2+r] \times[-r,r], with r=1.5,1.9,2.1,2.5r = 1.5,1.9,2.1,2.5 from left to right. The loss remains small for r<2r < 2 but jumps at the origin once r>2r > 2, where the local conservation law y/xy/x can no longer be continued smoothly.

For the 3D degenerate node (Example 2), the box Ur(3)U_r^{(3)} supports two independent conservation laws for r<2r<2: the global law zz and an additional local law, such as y/xy/x. Figure 2 shows the corresponding pointwise deflated losses on the slice z=0z=0. For r=1.5r=1.5 and r=1.9r=1.9, both losses remain small. Once the box expands past r=2r=2 and intersects the equilibrium line, the loss for the first law remains small, while the deflated loss for the second develops a sharp increase near (x,y)=(0,0)(x,y)=(0,0). Thus, the global law persists, whereas the additional local law breaks down, reducing the number of independent conservation laws from two to one.

Figure 2. Pointwise losses for the 3D degenerate node (Example 2) on the slice z=0z=0 of Ur(3)=[2−r,2+r]×[−r,r]2U_r^{(3)}=[2-r,2+r]\times[-r,r]^2, with r=1.5,1.9,2.1,2.5r=1.5,1.9,2.1,2.5 from left to right. Panels (a)–(d) show the conservation loss, equivalently the deflated loss, for I1I_1, while panels (e)–(h) show the deflated loss for I2I_2. The first conservation law persists for all rr, whereas the loss for the second jumps near the equilibrium line once r>2r>2.

In contrast to the 2D node, the equilibrium at the origin does not obstruct the conservation law of the 2D center (Example 3). Figure 3 shows the pointwise conservation loss of the learned candidate. The loss remains small for r=1.5r=1.5 and r=1.9r=1.9 and continues to remain small after the box expands past r=2r=2 and contains the origin. This is consistent with the fact that x2+y2x^2+y^2 is a global conservation law that extends smoothly across the equilibrium.

Figure 3. Pointwise conservation loss for the 2D center (Example 3) on Ur(2)=[2−r,2+r]×[−r,r]U_r^{(2)} = [2-r,2+r] \times[-r,r], with r=1.5,1.9,2.1,2.5r = 1.5,1.9,2.1,2.5 from left to right. Unlike the 2D node, the conservation law x2+y2x^2+y^2 persists after the domain contains the origin.

The same distinction appears in three dimensions. For the 3D degenerate center (Example 4), both x2+y2x^2+y^2 and zz are globally defined, and neither conservation law is lost when the box intersects the equilibrium line. Figure 4 shows the pointwise deflated losses on the slice z=0z = 0. For all tested values of rr, both learned candidates retain small losses.

Figure 4. Pointwise losses for the 3D degenerate center (Example 4) on the slice z=0z=0 of Ur(3)=[2−r,2+r]×[−r,r]2U_{r}^{(3)}=[2-r,2+r]\times[-r,r]^2, with r=1.5,1.9,2.1,2.5r=1.5,1.9,2.1,2.5 from left to right. Panels (a)–(d) show the conservation loss, equivalently the deflated loss, for I1I_1, while panels (e)–(h) show the deflated loss for I2I_2. Unlike the 3D degenerate node, both conservation laws persist after the box intersects the equilibrium line.

Together, the node and center examples distinguish two different effects of an equilibrium set. For the 2D node, the angular conservation law cannot be continued across the origin, whereas the energy of the 2D center remains globally defined despite having a critical point there. The same contrast persists in three dimensions, where the global law zz survives in both degenerate systems, yet the second law breaks down for the degenerate node and persists for the degenerate center. Neural deflation therefore detects a genuine loss of a conservation law while explicitly distinguishing it from the vanishing of the gradient of an otherwise valid invariant.

Hénon–Heiles system

We next consider the Hénon–Heiles system [28, 29], a four-dimensional (two-degree-of-freedom) Hamiltonian system. We express its Hamiltonian in the following normalized form

Hε(x,y,px,py)=12(px2+py2)+12(x2+y2)+x2y−εy3,(35)H_\varepsilon(x,y,p_x,p_y)=\frac{1}{2}(p_x^2+p_y^2)+\frac{1}{2}(x^2+y^2)+x^2y-\varepsilon y^3, \tag*{(35)}

where ε\varepsilon is a free parameter. Throughout this subsection, we consider the parameter range ε≥−1/3\varepsilon\ge-1/3. The corresponding Hamiltonian equations of motion are

x˙=px,y˙=py,p˙x=−x−2xy,p˙y=−y−x2+3εy2.(36)\begin{aligned} \dot{x} &= p_x,\\ \dot{y} &= p_y,\\ \dot{p}_x &= -x-2xy,\\ \dot{p}_y &= -y-x^2+3\varepsilon y^2. \tag*{(36)} \end{aligned}

The Hamiltonian HεH_\varepsilon is a global conservation law for every ε\varepsilon. Within the parameter range considered here, the system is known to be Liouville integrable only when ε=−1/3\varepsilon=-1/3. In this case, it admits two functionally independent global conservation laws in involution, one of which is H−1/3H_{-1/3}. For ε>−1/3\varepsilon>-1/3, the system is non-integrable, and the Hamiltonian is the only global conservation law.

We study the system using two families of expanding domains. The first consists of rectangular boxes centered at the regular point (1,1,0,0)(1,1,0,0), allowing us to recover the three local conservation laws predicted by the flow-box theorem and track their subsequent decrease. The second consists of energy sublevel sets growing from the equilibrium at the origin, allowing us to examine how the persistence of a second conservation law depends on the distance of ε\varepsilon from the integrable value ε=−1/3\varepsilon=-1/3.

Rectangular boxes growing from a regular point

We begin from the regular point (1,1,0,0)(1,1,0,0) and consider the expanding boxes

Urrec=(1,1,0,0)+[−r,r]4.(37)U_r^{\mathrm{rec}}=(1,1,0,0)+[-r,r]^4. \tag*{(37)}

For sufficiently small rr, the flow-box theorem predicts three functionally independent local conservation laws. We therefore train three candidates sequentially and examine their domain-averaged deflated losses as rr increases.

Figure 5 shows that all three candidates have small losses of comparable magnitude before the box reaches the origin. At the critical value r=1r=1, the box first intersects the equilibrium (0,0,0,0)(0,0,0,0), where the vector field vanishes and the flow-box description ceases to apply. Correspondingly, the loss of the third candidate increases, indicating that the number of recovered conservation laws decreases from three to fewer than three. This first transition occurs in both the integrable and non-integrable cases and is essentially independent of ε\varepsilon.

Figure 5. Domain-averaged deflated losses of the three learned candidates for the Hénon–Heiles system on the expanding boxes Urrec=(1,1,0,0)+[−r,r]4U_r^{\mathrm{rec}} = (1,1,0,0) + [-r,r]^4. Panels (a)–(f) correspond to ε=−1/3,−0.3,−0.2,−0.1,0,\varepsilon= -1/3,-0.3,-0.2,-0.1,0, and 0.10.1, respectively. Three conservation laws are recovered before the box reaches the equilibrium at r=1r = 1, after which the third is lost. The two remaining laws persist for the integrable case ε=−1/3\varepsilon= -1/3. For ε=−0.3\varepsilon= -0.3 and ε=−0.2\varepsilon= -0.2, no clear loss of the second candidate is observed over the tested range of rr, while a pronounced separation between the first and second losses emerges from ε=−0.1\varepsilon= -0.1 onward.

Figure 6 examines the first transition in the number of learned conservation laws for the integrable case ε=−1/3\varepsilon=-1/3 and the non-integrable case ε=−0.2\varepsilon=-0.2. We plot the pointwise deflated loss of the third candidate I3I_3 on the pxp_x–pyp_y slice x=y=1−rx=y=1-r of the boundary of UrrecU_r^{\mathrm{rec}}. At r=0.9r=0.9, the boundary has not yet reached the origin, and the loss remains small for both values of ε\varepsilon. At r=1r=1, the boundary first contains the equilibrium (0,0,0,0)(0,0,0,0), and the loss increases sharply. Thus, independently of integrability, the flow-box regime breaks down when the expanding box reaches the equilibrium, reducing the number of recovered conservation laws from three to two.

Figure 6. Pointwise deflated loss of the third learned conservation law I3I_3 for the Hénon–Heiles system on the pxp_x–pyp_y slice x=y=1−rx=y=1-r of the boundary of UrecU^{\mathrm{rec}}. Panels (a) and (b) correspond to ε=−1/3\varepsilon=-1/3 with r=0.9r=0.9 and r=1.0r=1.0, respectively, while panels (c) and (d) show the corresponding results for ε=−0.2\varepsilon=-0.2. For both parameter values, the loss is small at r=0.9r=0.9 but increases sharply at r=1r=1, when the boundary first reaches the equilibrium at the origin, marking the breakdown of the third local conservation law.

Beyond the initial transition at r=1r=1, the behavior depends strongly on ε\varepsilon. In the integrable case ε=−1/3\varepsilon=-1/3, the two remaining losses stay small as the box continues to expand, consistent with the existence of two independent global conservation laws in involution; see Figure 5(a).

For the nearby non-integrable cases ε=−0.3\varepsilon=-0.3 and ε=−0.2\varepsilon=-0.2, the second candidate also maintains a small loss throughout the tested range of box sizes; see Figure 5(b)–(Figure 5c). Thus, although these systems are not globally integrable, the present experiment does not numerically resolve the eventual breakdown of the second conservation law. We do note here in passing that for some intermediate box sizes in case (c) a nontrivial difference between the first and second conservation law loss appears, yet we cannot use this as a systematic enough indication of the loss of integrability (given that this disparity decreases for even larger boxes). A clear qualitative change first appears at ε=−0.1\varepsilon=-0.1; see Figure 5(d). As the box expands, the loss of the second candidate increases substantially, whereas the first candidate, corresponding to the Hamiltonian, remains accurate. This separation becomes even more pronounced for ε=0\varepsilon=0 and ε=0.1\varepsilon=0.1; see Figure 5(e)–(Figure 5f). Accordingly, we can definitively infer the non-integrability of the cases in panels (d)–(f), although once again this is not a sharp enough criterion to operate as a precise detector of integrability, to

the best of our understanding.

These results suggest that the second conservation law persists over increasingly large domains as ε\varepsilon approaches the integrable value −1/3-1/3. For ε=−0.3\varepsilon=-0.3 and ε=−0.2\varepsilon=-0.2, its breakdown, if detectable by the present method, may occur only beyond the range of box sizes considered here.

Energy sublevel sets growing from the origin

We next expand the training domain outward from the equilibrium at the origin, using energy sublevel sets rather than rectangular boxes. Since the full energy sublevel set need not be bounded, we restrict attention to its bounded connected component containing the origin. Specifically, for ε∈[−1/3,0]\varepsilon\in[-1/3,0] and an energy level h>0h>0, let Uhen(ε)U_h^{\mathrm{en}}(\varepsilon) denote this component of

{(x,y,px,py):Hε(x,y,px,py)≤h}.(38)\left\{(x,y,p_x,p_y): H_\varepsilon(x,y,p_x,p_y) \le h\right\}. \tag*{(38)}

The first hyperbolic equilibria are

(±34ε+12,−12,0,0),(39)\left(\pm\sqrt{\frac{3}{4}\varepsilon+\frac{1}{2}},-\frac{1}{2},0,0\right), \tag*{(39)}

with energy

hesc(ε)=1+ε8.(40)h_{\mathrm{esc}}(\varepsilon)=\frac{1+\varepsilon}{8}. \tag*{(40)}

This defines the escape threshold, below which the connected component containing the origin remains bounded.

To compare different values of ε\varepsilon on a common scale, we parameterize the energy level by

h=r(1+ε),0≤r≤18.(41)h=r(1+\varepsilon),\qquad0\le r\le\frac{1}{8}. \tag*{(41)}

For each ε\varepsilon, choosing rr specifies the energy level h=r(1+ε)h=r(1+\varepsilon), whose level set defines the boundary of the corresponding bounded training domain Ur(1+ε)en(ε)U_{r(1+\varepsilon)}^{\mathrm{en}}(\varepsilon). As rr increases, this domain expands toward the escape threshold, which corresponds to r=1/8r=1/8 independently of ε\varepsilon. Thus, the horizontal axis labeled rr in Figure 7 represents normalized energy rather than the energy itself. Samples are drawn uniformly from Ur(1+ε)en(ε)U_{r(1+\varepsilon)}^{\mathrm{en}}(\varepsilon).

Figure 7. Domain-averaged deflated losses of the three learned candidates for the Hénon–Heiles system on the energy sublevel sets Ur(1+ε)en(ε)U^{\mathrm{en}}_{r(1+\varepsilon)}(\varepsilon) growing from the origin. Panels (a)–(i) correspond to ε=−1/3,−0.3,−0.27,−0.25,−0.24,−0.21,−0.2,−0.1\varepsilon=-1/3,-0.3,-0.27,-0.25,-0.24,-0.21,-0.2,-0.1, and 00, respectively. The horizontal axis is the normalized energy parameter rr, with energy level h=r(1+ε)h=r(1+\varepsilon). Two candidates persist throughout the tested range in the integrable case. The breakdown of the second candidate first becomes visible at ε=−0.25\varepsilon=-0.25 and occurs at progressively smaller values of rr as ε\varepsilon moves away from −1/3-1/3; by ε=−0.1\varepsilon=-0.1, it is lost from the smallest tested domain.

Because every such domain contains the equilibrium at the origin, the flow-box theorem does not predict three independent conservation laws. Indeed, the third candidate has a large deflated loss from the outset. The main question is therefore how long a second low-loss candidate persists as the energy domain expands.

Figure 7 shows the domain-averaged deflated losses for nine values of ε\varepsilon. In the integrable case ε=−1/3\varepsilon= -1/3, the first two candidates retain small losses throughout the tested range, consistent with the existence of two independent global conservation laws in involution. The same numerical behavior remains visible for the nearby non-integrable cases ε=−0.3\varepsilon= -0.3 and ε=−0.27\varepsilon= -0.27: although no second global conservation law exists, its eventual breakdown is not resolved over the tested energy range. I.e., similarly to the case of the rectangular boxes of Figure 5, the energy sublevels are unable to sharply detect the loss of integrability near the integrable case of ε=−1/3\varepsilon= -1/3.

A clear loss of the second candidate first becomes visible at ε=−0.25\varepsilon= -0.25, where its deflated loss begins to increase at larger values of rr. As ε\varepsilon moves farther from the integrable value −1/3-1/3, this increase occurs at progressively smaller normalized energy levels. This trend is evident for ε=−0.24,−0.21\varepsilon= -0.24, -0.21, and −0.2-0.2. By ε=−0.1\varepsilon= -0.1, the second candidate already has a large loss at the smallest tested domains, so only the Hamiltonian is recovered from the outset. The same behavior persists at ε=0\varepsilon= 0.

These results suggest that proximity to the integrable limit controls the numerical persistence of the second candidate. Near ε=−1/3\varepsilon= -1/3, it remains accurate over a large range of energy sublevel sets; farther away, it breaks down on increasingly smaller domains. Since this loss can occur well before r=1/8r = 1/8, it is not simply caused by the energy contour reaching the first hyperbolic equilibrium. While the latter could have been an appealing threshold for the identification of loss of integrability and the loss of the associated second conservation law, such an interpretable scenario has not been verified by our numerical computations.

The two domain-expansion strategies reveal complementary aspects of the Hénon–Heiles dynamics. Rectangular boxes growing from a regular point initially recover the three local conservation laws predicted by the flow-box theorem and then track their successive failure. Energy sublevel sets growing from the equilibrium contain no three-law flow-box regime, but more directly reveal how the persistence of a second candidate depends on proximity to the integrable limit.

Conservation loss near the integrable limit

The numerical results of the previous subsection show that the second candidate conservation law persists over larger domains as ε\varepsilon approaches the integrable limit. For the Hénon–Heiles system, we find that this dependence can be compared directly with the residual of an explicit invariant of the integrable system.

To begin, write

Hϵ=H⋆+μP,μ=ϵ+13,P=−y3,(42)H_{\epsilon}=H_{\star}+\mu P,\qquad\mu=\epsilon+\frac{1}{3},\qquad P=-y^{3}, \tag*{(42)}

where H⋆=H−1/3H_{\star}=H_{-1/3} is the integrable Hamiltonian. For convenience in the calculations, we use the standard canonical coordinates q±=y±xq_{\pm}=y\pm x, p±=12(py±px)p_{\pm}=\frac{1}{2}(p_y\pm p_x) so that

H⋆=A++A−,A±=p±2+W(q±),(43)H_{\star}=A_{+}+A_{-},\qquad A_{\pm}=p_{\pm}^{2}+W(q_{\pm}), \tag*{(43)}

where W(q)=14q2+16q3W(q)=\frac{1}{4}q^{2}+\frac{1}{6}q^{3}. It is straightforward to show that the difference

D=A+−A−D=A_{+}-A_{-}

provides a second integral that is functionally independent of H⋆H_{\star} almost everywhere.

Now, to connect to neural deflation, use {D,H⋆}=0\{D,H_{\star}\}=0 and ∂D/∂py=px\partial D/\partial p_y=p_x so that

fϵ⋅∇D={D,Hϵ}=μ{D,P}=3μy2px.(44)\mathbf{f}_{\epsilon}\cdot\nabla D=\{D,H_{\epsilon}\}=\mu\{D,P\}=3\mu y^{2}p_x. \tag*{(44)}

Thus, the normalized conservation loss in Equation (11) can be expressed as

ℓcons[D;z]=9μ2y4px2∥fϵ(z)∥22∥∇D(z)∥22.(45)\ell_{\mathrm{cons}}[D;z]=\frac{9\mu^{2}y^{4}p_x^{2}}{\lVert\mathbf{f}_{\epsilon}(z)\rVert_{2}^{2}\lVert\nabla D(z)\rVert_{2}^{2}}. \tag*{(45)}

Here we take norms and gradients in the original coordinates z=(x,y,px,py)z=(x,y,p_x,p_y). For the deflation exponent α=1\alpha=1 used in the previous experiments, substituting I1=HεI_1=H_\varepsilon gives

ℓdefl,2[D;z]=9μ2y4px2Qε(z).(46)\ell_{\mathrm{defl},2}[D;z]=\frac{9\mu^2y^4p_x^2}{Q_\varepsilon(z)}. \tag*{(46)}

where

Qε=∥∇Hε∥22∥∇D∥22−(∇Hε⋅∇D)2.(47)Q_\varepsilon=\lVert\nabla H_\varepsilon\rVert_2^2\lVert\nabla D\rVert_2^2-(\nabla H_\varepsilon\cdot\nabla D)^2. \tag*{(47)}

follows from (46)∥fε∥2=∥∇Hε∥2\lVert\mathbf{f}_\varepsilon\rVert_2=\lVert\nabla H_\varepsilon\rVert_2 and Equation (17), and holds wherever Qε>0Q_\varepsilon>0.

For U=Ur(1+ε)en(ε)U=U^{\mathrm{en}}_{r(1+\varepsilon)}(\varepsilon), let ⟨⋅⟩U\langle\cdot\rangle_U denote the uniform domain average and define

Λ(r;ε)=⟨9y4px2Qε(z)⟩U,LD(r;ε)=μ2Λ(r;ε).(48)\Lambda(r;\varepsilon)=\left\langle\frac{9y^4p_x^2}{Q_\varepsilon(z)}\right\rangle_U,\qquad\mathcal{L}_D(r;\varepsilon)=\mu^2\Lambda(r;\varepsilon). \tag*{(48)}

Here LD\mathcal{L}_D is the domain-averaged deflated loss of the explicit second integral DD. To compute the averages, we use Monte Carlo sampling on the energy sublevel sets Ur(1+ε)en(ε)U^{\mathrm{en}}_{r(1+\varepsilon)}(\varepsilon) with ε∈{−0.30,−0.27,−0.25,−0.24,−0.21,−0.20,−0.10,0}\varepsilon\in\{-0.30,-0.27,-0.25,-0.24,-0.21,-0.20,-0.10,0\} and r=0.01,0.02,…,0.12r=0.01,0.02,\ldots,0.12. For each pair (ε,r)(\varepsilon,r), we drew 10510^5 samples uniformly from the bounded component containing the origin and evaluated the integrand in Equation (48). The reported value of Λ(r;ε)\Lambda(r;\varepsilon) is the mean of three independent Monte Carlo realizations.

Figure 8 displays one such set of computations across the pairs (ε,r)(\varepsilon,r), revealing that Λ(r;ε)\Lambda(r;\varepsilon) depends much more strongly on the domain size than on ε\varepsilon. Through r=0.1r=0.1, its variation across the tested values of ε\varepsilon is less than a factor of 1.5, while it increases by about an order of magnitude between r=0.02r=0.02 and r=0.12r=0.12. Since LD=μ2Λ\mathcal{L}_D=\mu^2\Lambda with μ=ε+1/3\mu=\varepsilon+1/3, the growth of the loss with rr is governed mainly by Λ\Lambda, whereas its separation across ε\varepsilon is governed mainly by μ2\mu^2, which changes by a factor of 100 between ε=−0.30\varepsilon=-0.30 and ε=0\varepsilon=0.

Figure 8. Dependence of Λ(r;ϵ)\Lambda(r;\epsilon) on the normalized energy rr for the Hénon–Heiles system. At fixed rr, the variation with ϵ\epsilon is modest, while Λ\Lambda increases substantially as the energy domain expands.

With I1=HεI_1=H_\varepsilon, LD\mathcal{L}_D provides an explicit benchmark for the second-candidate deflated loss, obtained by evaluating the fixed observable DD inherited from the integrable system. Over the tested parameter range, the increase of this benchmark with domain size and distance from the integrable limit qualitatively parallels the behavior of the learned second candidate in Figure 7. This qualitative agreement is consistent with interpreting the learned persistence as a manifestation of near-integrable structure.

We consider a complementary study in Appendix B, where we use a trajectory-based measure of the near-integrability to track the drift of an invariant of the integrable system along perturbed trajectories. We obtain a finite-time conservation defect of order O(μ2)O(\mu^2), and include this calculation as an exploratory comparison with the domain-averaged analysis above.

Double pendulum

Lastly, we consider a planar double pendulum. Let m1m_1 and m2m_2 denote the two masses, l1l_1 and l2l_2 the lengths of the two pendulum arms, and gg the gravitational acceleration. For simplicity we consider equal masses and equal lengths and choose dimensionless units such that

m1=m2=l1=l2=g=1.m_1 = m_2 = l_1 = l_2 = g = 1.

The angular positions of the two arms are denoted by θ1\theta_1 and θ2\theta_2, and their angular velocities by ω1=θ˙1\omega_1 = \dot{\theta}_1 and ω2=θ˙2\omega_2 = \dot{\theta}_2. We also write

Δ=θ1−θ2\Delta= \theta_1 - \theta_2

for their relative angle. In the state variables (θ1,θ2,ω1,ω2)(\theta_1,\theta_2,\omega_1,\omega_2), the equations of motion are

θ˙1=ω1,θ˙2=ω2,ω˙1=−3sin⁡θ1−sin⁡(θ1−2θ2)−2sin⁡Δ(ω22+ω12cos⁡Δ)3−cos⁡(2Δ),ω˙2=2sin⁡Δ(2ω12+2cos⁡θ1+ω22cos⁡Δ)3−cos⁡(2Δ).(49)\begin{aligned} \dot{\theta}_1 &= \omega_1,\\ \dot{\theta}_2 &= \omega_2,\\ \dot{\omega}_1 &= \frac{-3\sin\theta_1-\sin(\theta_1-2\theta_2)-2\sin\Delta\left(\omega_2^2+\omega_1^2\cos\Delta\right)}{3-\cos(2\Delta)},\\ \dot{\omega}_2 &= \frac{2\sin\Delta\left(2\omega_1^2+2\cos\theta_1+\omega_2^2\cos\Delta\right)}{3-\cos(2\Delta)}. \tag*{(49)} \end{aligned}

The system is Hamiltonian and consequently has the global conservation law

Hdp=ω12+12ω22+ω1ω2cos⁡Δ−2cos⁡θ1−cos⁡θ2.(50)H_{\mathrm{dp}} = \omega_1^2 + \frac{1}{2}\omega_2^2 + \omega_1\omega_2\cos\Delta- 2\cos\theta_1 - \cos\theta_2. \tag*{(50)}

The four equilibria

(0,0,0,0),(0,π,0,0),(π,0,0,0),(π,π,0,0)(0,0,0,0), \qquad(0,\pi,0,0), \qquad(\pi,0,0,0), \qquad(\pi,\pi,0,0)

have energies −3-3, −1-1, 11, and 33, respectively. The origin is the stable equilibrium, while the first separatrix is associated with the saddle energy Hdp=−1H_{\mathrm{dp}}=-1. Unlike the integrable Hénon–Heiles case considered above, the double pendulum is non-integrable and possesses only one global conservation law, namely the energy.

As before, we use two families of expanding training domains. We first grow rectangular boxes from a regular point and track the successive loss of the three local conservation laws predicted by the flow-box theorem. We then grow energy sublevel sets directly from the stable equilibrium and examine the gradual loss of a second numerically recovered candidate.

Rectangular boxes growing from a regular point

We center the rectangular domains at x0=(0,0,0.2,0)\mathbf{x}_0=(0,0,0.2,0) and define

Urrec=[−r,r]×[−r,r]×[0.2−r,0.2+r]×[−r,r].(51)U_r^{\mathrm{rec}}=[-r,r]\times[-r,r]\times[0.2-r,0.2+r]\times[-r,r]. \tag*{(51)}

The first critical radius is

r1=0.2,(52)r_1=0.2, \tag*{(52)}

at which the box first contains the stable equilibrium at the origin.

A second distinguished radius occurs when the box first intersects the separatrix associated with the saddle energy −1-1. The largest energy attained in UrrecU_r^{\mathrm{rec}} is

Hmax⁡(r)=(0.2+r)2+12r2+(0.2+r)r−3cos⁡r.(53)H_{\max}(r)=(0.2+r)^2+\frac{1}{2}r^2+(0.2+r)r-3\cos r. \tag*{(53)}

Consequently, the second critical radius is determined by Hmax⁡(r2)=−1H_{\max}(r_2)=-1, giving

r2≈0.6325.(54)r_2\approx0.6325. \tag*{(54)}

Figure 9 shows the domain-averaged deflated losses of the three learned candidates as the box expands. The loss of I1I_1, which is associated with the Hamiltonian, remains much smaller than those of the other candidates, but it nevertheless increases with rr. Since the Hamiltonian is a global conservation law on every domain considered, this increase is attributable to numerical effects, including finite sampling, optimization error, and the increasing difficulty of representing the law accurately on a larger domain. We therefore regard the loss of I1I_1 as a numerical loss floor against which the other candidates are compared.

Figure 9. Domain-averaged deflated losses of the three learned candidates for the double pendulum on the expanding boxes UrrecU_r^{\mathrm{rec}} centered at x0=(0,0,0.2,0)\mathbf{x}_0=(0,0,0.2,0). The vertical dashed lines mark r1=0.2r_1=0.2, when the box first contains the stable equilibrium, and r2≈0.6325r_2\approx0.6325, when it first intersects the separatrix of the saddle energy −1-1. The third candidate is lost before r1r_1, while the second remains accurate through r2r_2 and then gradually breaks down.

Relative to this loss floor, the third candidate begins to rapidly deteriorate before the box approaches the equilibrium at r1=0.2r_1=0.2. This does not contradict the flow-box theorem. The theorem guarantees three independent local conservation laws only on some sufficiently small neighborhood of the regular center point; it certainly does not imply that these laws extend throughout every larger box that avoids an equilibrium. Such an extension requires the one-dimensional orbit foliation inside the entire box to admit three globally defined, single-valued, smooth coordinates transverse to the flow. This global flow-box structure can fail before an equilibrium enters the domain, for example when the same trajectory passes through the box in multiple disconnected segments or intersects a transverse section more than once. The observed increase of the loss of I3I_3 before r1r_1 therefore indicates that the three-law local representation is no longer resolved on the whole box, although the numerical experiment does not sharply locate the precise obstruction. Indeed, while from an interpretation perspective, such an identification of the obstruction would be desirable, our numerical experiments did not point to a specific interpretable condition thereof.

The second candidate remains close to the numerical loss floor through r1r_1 and up to approximately the separatrix radius r2≈0.6325r_2\approx0.6325. Beyond r2r_2, its loss separates gradually from that of I1I_1 and continues to increase as the box expands. Thus, the experiment exhibits an overall transition from three recovered laws to two and eventually to one. The first transition occurs before the box reaches the stable equilibrium, while the second becomes more clearly discernible once the box intersects the separatrix. Neither transition is sharply localized, although that of the I3I_3 appears to be considerably sharper than that of I2I_2.

Energy sublevel sets growing from the origin

We next grow the training domain directly from the stable equilibrium at the origin. For an energy level h>−3h > -3, let UhenU_h^{\mathrm{en}} denote the connected component containing the origin of the sublevel set

Uhen={(θ1,θ2,ω1,ω2):Hdp(θ1,θ2,ω1,ω2)≤h}.(55)U_h^{\mathrm{en}} = \left\{(\theta_1,\theta_2,\omega_1,\omega_2) : H_{\mathrm{dp}}(\theta_1,\theta_2,\omega_1,\omega_2) \le h\right\}. \tag*{(55)}

Samples are drawn uniformly from UhenU_h^{\mathrm{en}}.

Because every energy sublevel set contains the equilibrium at the origin, the flow-box theorem does not predict three independent conservation laws in this experiment. Correspondingly, the third candidate has a large conservation loss from the smallest energy level considered.

Figure 10 shows the domain-averaged conservation losses as the energy level hh increases. For each candidate and each value of hh, the plotted loss is the smallest value obtained over five independent training runs, which reduces the influence of unsuccessful optimization runs. The first candidate, associated with the (existence of) Hamiltonian, retains the smallest loss throughout the experiment. The second candidate initially has a somewhat larger but still comparable loss. As the energy sublevel set expands, however, its loss gradually separates from that of the first law and continues to increase.

Thus, two conservation laws are numerically resolved on the smallest energy domains, but only the Hamiltonian remains accurate on larger ones. The gradual separation of the first and second losses indicates the breakdown of the second candidate, signaling the loss of Liouville integrability—in line with our theoretical expectations—but it does not identify a sharp energy level at which this breakdown occurs.

To examine whether the gradual loss of the second candidate can be localized in phase space, we compare its pointwise conservation loss with the Smaller Alignment Index (SALI), a standard indicator for distinguishing regular and chaotic trajectories [30]. Given two initially independent deviation vectors v1\mathbf{v}_1 and v2\mathbf{v}_2 evolved along a trajectory and normalized to v^1\widehat{\mathbf{v}}_1 and v^2\widehat{\mathbf{v}}_2, the index is defined by

SALI⁡(t)=min⁡{∥v^1(t)+v^2(t)∥,∥v^1(t)−v^2(t)∥}.(56)\operatorname{SALI}(t) = \min\left\{\left\lVert\widehat{\mathbf{v}}_1(t) + \widehat{\mathbf{v}}_2(t)\right\rVert,\left\lVert\widehat{\mathbf{v}}_1(t) - \widehat{\mathbf{v}}_2(t)\right\rVert\right\}. \tag*{(56)}

For a chaotic trajectory, the two deviation vectors align or anti-align with the dominant unstable direction, and the SALI rapidly approaches zero. For a regular trajectory, it typically remains away from zero. Thus, small SALI values indicate chaotic motion, whereas larger values indicate regular motion. When log⁡10SALI\log_{10}\mathrm{SALI} is displayed, more negative values correspond to stronger evidence of chaos, e.g., blue regions in panels (a) and (d) of Figure 11.

SALI maps and pointwise conservation losses for the double pendulum at $E=-2.2$ and $E=-2.0$, with panels showing SALI and conservation loss for two trials

Figure 11. SALI maps and pointwise conservation losses of the second conservation law for the double pendulum at E=−2.2E=-2.2 (top row) and E=−2.0E=-2.0 (bottom row). In each row, the first panel shows the SALI on the Poincaré section, while the second and third show conservation losses from two independent training runs. The SALI structures do not consistently align with regions of large loss, and the loss patterns vary between runs.

Figure 10. Domain-averaged conservation losses of the learned candidates for the double pendulum on the expanding energy sublevel sets UhenU_h^{\mathrm{en}}. The third candidate has a large loss from the outset because every domain contains the equilibrium. The energy candidate remains accurate, while the loss of the second candidate increases gradually as the energy level grows, indicating a transition from two numerically recovered conservation laws to one.

We evaluate the SALI on the Poincaré section

Σh={(θ1,θ2,ω1,ω2):θ2=0, ω2>0, Hdp=h}.(57)\Sigma_h = \left\{(\theta_1,\theta_2,\omega_1,\omega_2) : \theta_2 = 0,\ \omega_2 > 0,\ H_{\mathrm{dp}} = h\right\}. \tag*{(57)}

Figure 11 compares the resulting SALI maps with the pointwise conservation loss of the second learned candidate for several independent training runs. Although the SALI maps reveal increasingly complicated regular and chaotic structures as the energy increases, these structures do not show a consistent spatial correspondence with the conservation-loss fields. In particular, regions of relatively large SALI do not systematically coincide with regions of large conservation loss, and the low-SALI chaotic structures are not consistently reproduced by the loss fields. Moreover, the detailed conservation-loss patterns vary between independent training runs. Accordingly, despite the conceptual appeal of such a putative connection between the chaos emergence and the additional conservation loss failure, such a connection is not brought forth by our data.

The comparison therefore does not identify a sharp dynamical boundary across which the second conservation law fails. Instead, the domain-averaged results indicate a gradual deterioration of the second candidate as the energy sublevel set expands. Neural deflation detects the eventual reduction from two numerically resolved conservation laws to the single global energy, but the breakdown cannot be sharply localized using SALI (at least not at the resolution of our investigation here), leaving room for further mathematical and computational investigation.

Conclusion and Future Work

We formulated conservation-law discovery as a local-to-global continuation problem. Although a dd-dimensional dynamical system admits d−1d-1 independent conservation laws near every regular point, only a subset of these laws may extend over larger regions of phase space. To study this transition, we applied neural deflation over a nested family of expanding domains and used the resulting validation losses to estimate how the number of independent conservation laws changes with domain size.

The numerical experiments show that the framework recovers the local laws predicted by theory and detects their successive breakdown as the domain expands, interpolating in this way between the d−1d-1 local count of the Frobenius integrability (and the flow-box theorem) and the asymptotic number for integrable (bearing d/2d/2 conservation laws in involution) or non-integrable systems. In the elementary systems considered, pointwise losses sharply identified when a local law is obstructed by an equilibrium while distinguishing global laws that extend across the same singular set. For the Hénon–Heiles system, the persistence scale of the second candidate differentiates integrable, near-integrable, and non-integrable regimes. Nevertheless, the neural deflation technique considered could not be used as a sharp detector for integrability; rather, it illustrated the desired change of behavior near the integrable limit. For the double pendulum, the losses revealed a gradual reduction to the global energy law, but the breakdown was not found to be sharply localized and it did not correlate directly with the SALI structure (and the associated chaoticity emergence). These examples demonstrate that the loss of a conservation law may arise either through a localized obstruction or through a more diffuse change across phase space.

The proposed diagnostics remain numerical. Their interpretation depends on approximation, sampling, and optimization errors, so candidate losses must be compared with an empirical loss floor (e.g., Hamiltonian) rather than a universal threshold. Moreover, persistence over the tested domains does not by itself prove that a learned law extends globally, and pointwise loss patterns may vary across independent training runs.

Future work will focus on improving the reliability and resolution of the expanding domain, the continuation procedure through adaptive sampling, and more systematic uncertainty estimates across training runs. A complementary theoretical direction is to relate decreases in the number of conservation laws to geometric properties of the orbit foliation and to specific dynamical obstructions. Additionally, understanding how the findings considered herein generalize to higherdimensional systems (i.e., ones with more degrees of freedom) would be a relevant and worthwhile avenue for future exploration. Such developments could turn expanding-domain conservation-law discovery into a more quantitative tool for probing global structure in nonlinear dynamical systems.

Acknowledgments

J.A. acknowledges support from NSF grant PHY-2316622. I.G.K. acknowledges support from the U.S. Department of Energy. P.G.K. acknowledges support from NSF grant PHY-2408988 and the Simons Foundation (SFI-MPS-SFM-00011048). This research was partly conducted while P.G.K. was visiting the Okinawa Institute of Science and Technology (OIST) through the Theoretical Sciences Visiting Program (TSVP), the University of Sydney through the visitor program of the Sydney Mathematical Research Institute (SMRI), and the Department of Mechanical Engineering at Seoul National University through a Fulbright Fellowship. Their support is gratefully acknowledged. W.Z. acknowledges support from NSF grants DMS-2502900 and DMS-2540370 and AFOSR grant FA9550-25-1-0079.

J.A.: Conceptualization, Methodology, Formal analysis, Software, Writing – review & editing.

I.G.K.: Conceptualization, Methodology, Formal analysis, Writing – review & editing.

P.G.K.: Conceptualization, Methodology, Formal analysis, Writing – review & editing.

W.Z.: Conceptualization, Methodology, Formal analysis, Software, Writing – original draft, Writing – review & editing.

Data Availability Statement

No external datasets were used in this study. The code used to generate the numerical results is openly available on GitHub at https://github.com/mrzw731/local-deflation.

Proof of Theorem 2

Proof. The integrand in (19) is nonnegative. Therefore, LKμ(θK∗)=0\mathcal{L}^{\mu}_{K}(\theta^{*}_{K})=0 if and only if, outside a set of zero μ\mu-measure,

ℓcons[IK(⋅;θK∗);x]=0,(58)\ell_{\mathrm{cons}}[I_{K}(\cdot;\theta^{*}_{K});\mathbf{x}]=0, \tag*{(58)}
ℓind,K(x;θK∗)>0.(59)\ell_{\mathrm{ind},K}(\mathbf{x};\theta^{*}_{K})>0. \tag*{(59)}

(58) is equivalent to

f(x)⋅∇IK(x;θK∗)=0,\mathbf{f}(\mathbf{x})\cdot\nabla I_{K}(\mathbf{x};\theta^{*}_{K})=0,

so IK(⋅;θK∗)I_{K}(\cdot;\theta^{*}_{K}) is a conservation law. By the definition of the independence factor, (A2) holds if and only if ∇IK(x;θK∗)\nabla I_{K}(\mathbf{x};\theta^{*}_{K}) has a nonzero component orthogonal to the span of

∇I1(x;θ1∗),…,∇IK−1(x;θK−1∗).\nabla I_{1}(\mathbf{x};\theta^{*}_{1}),\ldots,\nabla I_{K-1}(\mathbf{x};\theta^{*}_{K-1}).

This is equivalent to

rank⁡D(I1,…,IK)(x)=K\operatorname{rank}D(I_{1},\ldots,I_{K})(\mathbf{x})=K

for μ\mu-almost every x∈U\mathbf{x}\in U.

Conversely, if IK(⋅;θK∗)I_{K}(\cdot;\theta^{*}_{K}) is a conservation law and the full collection is functionally independent almost everywhere, then the numerator in (19) vanishes and the denominator is positive almost everywhere. Hence the integrand vanishes μ\mu-almost everywhere, and LKμ(θK∗)=0\mathcal{L}^{\mu}_{K}(\theta^{*}_{K})=0.

Finite-time conservation defect

For the integrable Hamiltonian (43), consider

F=2(A+2+A−2)=H∗2+D2.(60)F=2(A_{+}^{2}+A_{-}^{2})=H_{*}^{2}+D^{2}. \tag*{(60)}

Its Poisson bracket with H∗H_{*} vanishes, and

G:={F,P}=12y2(A+p++A−p−).(61)G:=\{F,P\}=12y^{2}(A_{+}p_{+}+A_{-}p_{-}). \tag*{(61)}

Let Φμt\Phi_{\mu}^{t} and Φ∗t\Phi_{*}^{t} denote the flows of HεH_{\varepsilon} and H∗H_{*}, respectively. For a fixed time TT, define

C2(z0;μ,T)=∫0T(ddtF(Φμtz0))2 dt,(62)C_{2}(z_{0};\mu,T)=\int_{0}^{T}\left(\frac{d}{dt}F(\Phi_{\mu}^{t}z_{0})\right)^{2}\,dt, \tag*{(62)}
g(z0;T)=∫0TG2(Φ∗tz0) dt.(63)g(z_{0};T)=\int_{0}^{T}G^{2}(\Phi_{*}^{t}z_{0})\,dt. \tag*{(63)}

The squared residual accumulates without cancellation between positive and negative drift. Since {F,Hε}=μG\{F,H_{\varepsilon}\}=\mu G,

C2(z0;μ,T)=μ2∫0TG2(Φμtz0) dt.(64)C_2(z_0;\mu,T)=\mu^2\int_0^T G^2(\Phi_\mu^t z_0)\,\mathrm{d}t. \tag*{(64)}

Theorem 3. Let Z\mathcal{Z} be compact and T>0T>0. Assume that the unperturbed trajectories from Z\mathcal{Z} exist on [0,T][0,T]. There are constants μ0,C>0\mu_0,C>0, depending on Z\mathcal{Z} and TT, such that the perturbed trajectories also exist on [0,T][0,T] and

sup⁡z0∈Z∣C2(z0;μ,T)−μ2g(z0;T)∣≤C∣μ∣3(65)\sup_{z_0\in\mathcal{Z}}\left|C_2(z_0;\mu,T)-\mu^2g(z_0;T)\right|\le C|\mu|^3 \tag*{(65)}

for ∣μ∣<μ0|\mu|<\mu_0.

Proof. The unperturbed trajectory segments form a compact set. Choose a compact ball N\mathcal{N} containing this set in its interior. Continuous dependence on the initial condition and parameter gives μ0>0\mu_0>0 such that zμ(t)=Φ⋆tz0z_\mu(t)=\Phi_\star^t z_0 remains in N\mathcal{N} for z0∈Zz_0\in\mathcal{Z}, 0≤t≤T0\le t\le T, and ∣μ∣<μ0|\mu|<\mu_0. Let L>0L>0 be a Lipschitz constant for XH⋆X_{H_\star} on N\mathcal{N}, M=sup⁡N∥XP∥2M=\sup_{\mathcal{N}}\|X_P\|_2, and L2L_2 a Lipschitz constant for G2G^2. Writing ζ(t)=Φ⋆tz0\zeta(t)=\Phi_\star^t z_0, the integral equations give

∥zμ(t)−ζ(t)∥2≤L∫0t∥zμ(s)−ζ(s)∥2 ds+∣μ∣Mt.\|z_\mu(t)-\zeta(t)\|_2\le L\int_0^t\|z_\mu(s)-\zeta(s)\|_2\,\mathrm{d}s+|\mu|Mt.

Grönwall’s inequality yields

sup⁡0≤t≤T∥zμ(t)−ζ(t)∥2≤C1∣μ∣,C1=M(eLT−1)L.(66)\sup_{0\le t\le T}\|z_\mu(t)-\zeta(t)\|_2\le C_1|\mu|,\qquad C_1=\frac{M(e^{LT}-1)}{L}. \tag*{(66)}

Using (B5) and (B4),

∣C2−μ2g∣≤μ2L2∫0T∥zμ(t)−ζ(t)∥2 dt≤TL2C1∣μ∣3.\begin{aligned} |C_2-\mu^2g|\le\mu^2L_2\int_0^T\|z_\mu(t)-\zeta(t)\|_2\,\mathrm{d}t \\ &\le TL_2C_1|\mu|^3. \end{aligned}

The constants are uniform over Z\mathcal{Z}.

On subsets where g≥g0>0g\ge g_0>0, the estimate also gives

log⁡10C2=2log⁡10∣μ∣+log⁡10g+O(∣μ∣).(67)\log_{10}C_2=2\log_{10}|\mu|+\log_{10}g+O(|\mu|). \tag*{(67)}

The time TT is fixed throughout this estimate. For Figure 12, the initial conditions lie on {y=0, py>0}∩{H⋆=E}\{y=0,\ p_y>0\}\cap\{H_\star=E\}, parameterized by

Finite-time conservation defect of $F$ on the section $\{y=0,\ p_y>0\}\cap\{H_\star=0.04\}$

Figure 12. Finite-time conservation defect of FF on the section {y=0, py>0}∩{H⋆=0.04}\{y = 0,\ p_y > 0\} \cap\{H_\star= 0.04\}, with T=100T = 100. The panels correspond to ε=−0.330,−0.300,−0.250,−0.200\varepsilon= -0.330,-0.300,-0.250,-0.200 from top left to bottom right. Colors show log⁡10C2\log_{10} C_2 on the perturbed flow, with a separate color scale in each panel. White curves are contours of log⁡10(μ2g)\log_{10}(\mu^2 g) computed from the integrable flow. Black curves mark saddle-level contours of gg.

py,0=2E−x02−px,02,D={x02+px,02<2E}.(68)p_{y,0}=\sqrt{2E-x_0^2-p_{x,0}^2},\qquad\mathcal{D}=\{x_0^2+p_{x,0}^2<2E\}. \tag*{(68)}

Here E=0.04<1/12E = 0.04 < 1/12. Since P=0P = 0 on the section, these initial conditions also have energy EE for every perturbed Hamiltonian. The displayed calculations use Störmer–Verlet with step size h=0.02h = 0.02 and T=100T = 100, centered differences for F˙\dot{F}, and trapezoidal quadrature for the integrals. The initial grid is uniform in (x0,px,0)(x_0,p_{x,0}).

White curves show contours of log⁡10(μ2g)\log_{10}(\mu^2g) at levels 2log⁡10∣μ∣+Vi2\log_{10}|\mu|+V_i, using the same ViV_i in every panel. Black curves are level sets of gg through its numerically identified saddle points on D\mathcal{D}. The low-defect regions move relative to the fixed predictor contours as ε\varepsilon increases. These contours describe the finite-time variation of the chosen observable FF and help to visualize where the finite-time drift of the second integral is small or large across the chosen Poincaré section.

References

  1. [1]H. Goldstein, C. P. Poole, and J. L. Safko, Classical Mechanics, 3rd ed. (Addison-Wesley, San Francisco, CA, 2002).
  2. [2]V. I. Arnold, Mathematical methods of classical mechanics, Vol. 60 (Springer, 1989).
  3. [3]E. Noether, Invariante variationsprobleme, in Gesammelte abhandlungen-collected papers (Springer, 1983) pp. 231–239.DOI
  4. [4]P. J. Olver, Applications of Lie groups to differential equations, Vol. 107 (Springer Science & Business Media, 1993).
  5. [5]S. J. Wetzel, R. G. Melko, J. Scott, M. Panju, and V. Ganesh, Discovering symmetry invariants and conserved quantities by interpreting siamese neural networks, Physical Review Research 2, 033499 (2020).DOI
  6. [6]Z. Liu and M. Tegmark, Machine learning conservation laws from trajectories, Physical Review Letters 126, 180604 (2021).DOI
  7. [7]S. Ha and H. Jeong, Discovering invariants via machine learning, Physical Review Research 3, L042035 (2021).DOI
  8. [8]Z. Liu, V. Madhavan, and M. Tegmark, Machine learning conservation laws from differential equations, Physical Review E 106, 045307 (2022).DOI
  9. [9]P. Y. Lu, R. Dangovski, and M. Soljačić, Discovering conservation laws using optimal transport and manifold learning, Nature Communications 14, 4744 (2023).DOI
  10. [10]W. Zhu, H.-K. Zhang, and P. Kevrekidis, Machine learning of independent conservation laws through neural deflation, Physical Review E 108, L022301 (2023).DOI
  11. [11]S. Chen, P. G. Kevrekidis, H.-K. Zhang, and W. Zhu, Data-driven discovery of conservation laws from trajectories via neural deflation, Communications in Nonlinear Science and Numerical Simulation 143, 108563 (2025).arxiv.org/abs/2410.05445
  12. [12]J. M. Lee, Introduction to Smooth Manifolds, Graduate Texts in Mathematics, Vol. 218 (Springer, New York, 2003).
  13. [18]E. Kaiser, J. N. Kutz, and S. L. Brunton, Discovering conservation laws from data for control, in 2018 IEEE Conference on Decision and Control (CDC) (IEEE, 2018) pp. 6415–6421.arxiv.org/abs/1811.00961
  14. [19]S. Arora, A. Bihlo, R. Brecht, and P. Holba, Model-agnostic machine learning of conservation laws from data, arXiv preprint arXiv:2301.07503 (2023).arxiv.org/abs/2301.07503
  15. [20]A. Belyshev, A. Kovrigin, and A. Ustyuzhanin, Beyond dynamics: Learning to discover conservation principles, Machine Learning: Science and Technology 5, 025055 (2024).DOI
  16. [21]T. Oellerich and M. Emelianenko, Towards robust data-driven automated recovery of symbolic conservation laws from limited data, Machine Learning: Science and Technology 5, 035035 (2024).arxiv.org/abs/2403.04889
  17. [22]M. A. Mebratіe, R. Nather, G. F. von Rudorff, and W. M. Seiler, Machine learning conservation laws of dynamical systems, Physical Review E 111, 025305 (2025).arxiv.org/abs/2405.20857
  18. [23]Z. Liu, P. O. Sturm, S. Bharadwaj, S. J. Silva, and M. Tegmark, Interpretable conservation laws as sparse invariants, Physical Review E 109, L023301 (2024).DOI
  19. [24]A. G. Baydin, B. A. Pearlmutter, A. A. Radul, and J. M. Siskind, Automatic differentiation in machine learning: a survey, Journal of machine learning research 18, 1 (2018).
  20. [25]S. Elfwing, E. Uchibe, and K. Doya, Sigmoid-weighted linear units for neural network function approximation in reinforcement learning, Neural networks 107, 3 (2018).DOI
  21. [26]X. Glorot and Y. Bengio, Understanding the difficulty of training deep feedforward neural networks, in Proceedings of the thirteenth international conference on artificial intelligence and statistics (JMLR Workshop and Conference Proceedings, 2010) pp. 249–256.
  22. [27]D. P. Kingma and J. Ba, Adam: A method for stochastic optimization, in International Conference on Learning Representations (ICLR) (2015).arxiv.org/abs/1412.6980
  23. [28]M. Hénon and C. Heiles, The applicability of the third integral of motion: some numerical experi- ments, Astronomical Journal 69, 73 (1964).DOI
  24. [29]A. P. Fordy, The Hénon-Heiles system revisited, Physica D: Nonlinear Phenomena 52, 204 (1991).DOI
  25. [30]C. Skokos, C. Antonopoulos, T. C. Bountis, and M. N. Vrahatis, Detecting order and chaos in Hamiltonian systems by the SALI method, Journal of Physics A: Mathematical and General 37, 6269 (2004).

Paper details

vlnc:W_mvduc8q5
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Physics and Astronomy

Not recorded for this paper

View statement
Looking for related papers…
Contents