---
title: 'HenonNet Modules: Symplectic Neural Maps'
url: https://www.emergentmind.com/topics/henonnet-modules
type: topic
---

# HenonNet Modules: Symplectic Neural Maps

HenonNet modules are specialized neural network building blocks designed to construct structure-preserving, symplectic maps for applications in Hamiltonian dynamics and plasma physics. At their core, these modules implement neural parameterizations of canonical transformations, enabling the approximation of complex dynamical flows—most notably for toroidal magnetic field-line Poincaré maps—while guaranteeing strict preservation of physical invariants such as magnetic flux and phase-space volume. This class of networks is also extensible to time-adaptive and non-autonomous Hamiltonian systems, leveraging their compositional symplectic architecture for provable universal approximation in the separable case [2007.04496][2509.20212]. 

## 1. Foundations: Symplectic Henon Map as Module

A HenonNet module is rooted in the construction of canonical, symplectic maps inspired by the classical Henon map. For $n$ degrees of freedom, a phase space vector is $(q,p)\in\mathbb R^n\times\mathbb R^n$. Each module is parameterized by:
- A scalar-valued “potential” function $V:\mathbb R^n \to \mathbb R$ realized as a feed-forward neural network.
- A constant shift vector $\eta \in \mathbb R^n$.

The module acts as:
\[
H[V,\eta](q,p) = (Q, P), \;\; Q = p + \eta,\;\; P = -q + \nabla_p V(p).
\]
This map is canonically symplectic, preserving the $\sum dq^i \wedge dp^i$ form, and can be shown to originate from a Type-II generating function, guaranteeing exact conservation of invariants such as magnetic flux in Hamiltonian flows [2007.04496].

## 2. Neural Parameterization and Architectural Layering

Each potential $V$ in a Henon module is implemented by a single-hidden-layer neural network:
\[
V(p) = W^{(2)}\phi\left(W^{(1)}p + b^{(1)}\right) + b^{(2)}
\]
with $M$ hidden units and a nonlinearity $\phi$ (commonly $\tanh$). The parameter count per module is $(n+2)M + 1$ for $n$ degrees of freedom.

A **Henon layer** consists of four successive applications of $H[V,\eta]$:
\[
L[V,\eta] = H[V,\eta} \circ H[V,\eta} \circ H[V,\eta} \circ H[V,\eta}
\]
ensuring that $L[0,0]=\mathrm{id}$ (identity), which stabilizes network initialization and preserves symplecticity under arbitrary parameter settings.

A **HenonNet** is then constructed by stacking $N$ such layers:
\[
\mathcal H(q,p) = L[V_N, \eta_N] \circ ... \circ L[V_1, \eta_1](q,p)
\]
yielding a universal symplectic approximator (by Turaev’s theorem) for any canonical map on $(q, p)$ [2007.04496].

## 3. Time-Adaptive and Non-autonomous Extensions

*Time-adaptive HenonNets* (T-HenonNets) introduce explicit dependence on the integration step $h$:
\[
\mathcal H_{V,\eta}(h; p, q) =
\left(
h\,\nabla V(p) - q,\;\; p + \eta
\right)
\]
and stack these in layers, preserving symplecticity for each $h$ [2509.20212]. The input to the network includes both $(p, q)$ and $h$.

*Non-autonomous HenonNets* (NAT-HenonNets) extend this to explicitly time-dependent potentials:
\[
V_i: \mathbb R \times \mathbb R^d \to \mathbb R
\]
with time-advanced at each sub-shear, enabling modeling of systems with explicit time dependence. However, networks based on this principle are intrinsically limited to separable Hamiltonians; non-separable ($p,q$-coupled) Hamiltonians cannot, in general, be represented by compositions of such shears due to intrinsic Taylor expansion constraints [2509.20212].

## 4. Training Methodology and Loss Structures

HenonNets are commonly trained via supervised regression to data generated by high-order symplectic or Runge-Kutta integrators. The MSE loss is:
\[
\mathcal L(\{W_k, \eta_k\}) = \frac{1}{N}\sum_i \|\mathcal H[\{V_k[W_k],\eta_k\}](x_i) - y_i\|^2
\]
where $(x_i, y_i)$ pairs are typically sampled from phase space and advanced using a reference field-line or Hamiltonian integrator. Owing to structure preservation by construction, no additional regularization on symplecticity is required; optional $L_2$ weight decay may be used for parameter regularization [2007.04496][2509.20212].

## 5. Theoretical Guarantees: Universal Approximation and Limitations

T-HenonNets satisfy a universal approximation theorem: for any $C^{r+1}$ separable Hamiltonian flow, there exists an $m$-layer T-HenonNet approximator with error $O(1/m)$ on compact sets, provided sufficiently expressive potentials (i.e., activation satisfies the $r$-finite property) [2509.20212]. In the non-separable case, networks constructed from composition of these modules cannot represent coupling terms because all maps inherently lack mixed $(p, q)$ derivatives other than those allowed by separable ansatz.

## 6. Implementation: Pseudocode, Hyperparameters, and Empirical Results

A typical T-HenonNet forward pass, with $m$ layers and four sub-shears per layer:
```python
def T_HenonNet_forward(x, h):
    for i in range(m):
        for k in range(4):
            g = grad_Vi(p)   # ∇V_i at current p
            p, q = h * g - q, p + eta_i
    return p, q
```
For non-autonomous variants, the state is augmented with $t$, which is advanced each sub-shear.

Typical architectural parameters for $\text{dim}=1$ (pendulum): $m=8$, hidden size $H=16$, yielding $\sim400$ total parameters. Training batch sizes of 400–2000 and epochs up to $20,000$ are used to achieve convergence on stiff systems.

Numerical experiments confirm that both fixed-step and time-adaptive HenonNets achieve phase error $\sim 10^{-3}$ and negligible energy drift on the mathematical pendulum after 100 steps; however, failure manifests rapidly for non-separable test problems, directly illustrating the architectural expressivity limitations [2509.20212].

## 7. Significance and Practical Applications

HenonNet modules provide exactly symplectic, structure-preserving neural maps for learning or emulating complex dynamical systems, notably field-line Poincaré maps in toroidal magnetic configurations [2007.04496]. Their use of compositional, trainable canonical maps offers computational speedup—evaluating tens of times faster than classical integrators—and ensures preservation of critical invariants. In plasma physics, this enables fast, data-driven modeling of field topology and confinement properties, including mimicking sticky chaotic regions near magnetic islands via neural invariant manifolds. A plausible implication is that such models could offer new approaches to magnetic confinement design that extend beyond traditional KAM torus-based methods.

The modular framework established by HenonNet layers—potential network, canonical shift, intrinsic flux preservation, and learnable composition—forms a blueprint for symplectic neural integration schemes applicable wherever physics-informed, structure-preserving dynamics are required [2007.04496][2509.20212].

Source: https://www.emergentmind.com/topics/henonnet-modules