VaRONet: Neural Operator for Hamiltonian Systems
- VaRONet is a neural operator architecture that uses a variational LSTM seq-to-seq framework to predict complete phase-space trajectories from discretized potential functions.
- The model bypasses traditional step-based integration, reducing cumulative error and achieving accuracy competitive with RK4, TraONet, and MambONet across varied potentials.
- Its design leverages latent variable reparameterization and dual LSTM decoders to capture complex dynamics, ensuring robust performance even on nearly discontinuous potentials.
VaRONet is a neural operator architecture introduced within the Neural Hamilton framework to directly learn the mapping from a potential function to Hamiltonian system trajectories, without explicitly solving Hamilton’s equations via numerical time integration. It adapts a variational LSTM sequence-to-sequence ("seq-to-seq") model to the operator-learning setting, enabling the prediction of entire phase-space trajectories for a given discretized potential. Designed to prevent the cumulative error propagation typical of step-based integrators, VaRONet demonstrates state-of-the-art accuracy competitive with the fourth-order Runge–Kutta (RK4) algorithm and advanced neural operators such as MambONet and TraONet, across a diverse range of physical systems and potential classes (Kim et al., 2024).
1. Operator-Learning Formulation
VaRONet is formulated within an operator-learning perspective for classical Hamiltonian systems. For an -degree-of-freedom system governed by
the operator of interest maps a potential (assumed -smooth) to a trajectory over :
Instead of learning a timestep-based generator or an equation solver, VaRONet directly learns a parameterized neural surrogate 0 that approximates 1, predicting the full trajectory at once for arbitrary potentials.
2. Model Architecture
VaRONet adapts the Variational Autoencoder with LSTM decoder (VAE-LSTM) scheme to the operator-learning paradigm. The architecture comprises several key stages:
- Encoder-Branch (Input Discretization):
- The potential 2 is sampled on 3 equally spaced points in 4, forming a vector 5.
- A feedforward network 6 with four hidden layers of 512 units each processes 7 into a feature vector 8.
- Variational Bottleneck:
- Two subnetworks 9 produce mean and log-variance:
0
The latent variable is sampled with reparameterization:
1
Latent-to-Decoder State Initialization:
- Two MLPs 2 map 3 to initial hidden states:
4
Dual LSTM Decoders ("Trunk"):
- Time points 5, matching the sampling of 6, are used as input sequences.
- Two separate 4-layer LSTMs (512 hidden units each) are initialized with 7 and output sequences 8.
- Output Projection:
- Linear decoder heads project each LSTM output state to the scalar position 9 and momentum 0 at time 1.
The data flow can be summarized as: 03
3. Mathematical Foundations and Training Objective
The neural operator 2 is optimized to approximate the mapping
3
with the following components:
- Encoder/Latent:
4
5
- Dual Decoder Recursion:
6
7
- Loss Function:
8
where 9 for best results on the standard dataset.
Notably, VaRONet does not implement explicit Hamiltonian or energy-conservation constraints; physicality emerges through empirical correspondence on large training sets.
4. Training Protocol and Data Generation
Potential Generation:
- Potentials are defined on 0, baseline 1.
- The number of Gaussian random field (GRF) control points, 2, is sampled per potential.
- Each GRF uses a squared-exponential kernel with length scale 3, values are normalized to 4.
- Points are interpolated with a clamped cubic B-spline (degree 3, endpoints 5) to guarantee 6 smoothness.
Trajectory Labeling:
- Trajectories are generated by numerically solving 7 with fine-step ODE integrators (e.g., RK4).
- Output is resampled via cubic Hermite spline at 8 uniform time points.
Dataset Splits:
- "Standard": 10,000 potentials; "Extended": 100,000 potentials; 80/20 train/validation, with a 4,000-instance held-out test set.
Optimization:
- AdamW optimizer, 9, batch size 100.
- Learning rate: ExpHyperbolicLR (warmup/slow decay), initial 0, infimum 1.
- Hyperparameters: LSTM decoder 4 layers × 512 units, encoder 4 layers × 512 units, latent dimension 2, 3, 250 epochs, metrics averaged over 5 seeds.
5. Quantitative Evaluation and Comparative Results
Test-Set Accuracy (MSE on 100 time-points):
| Model | Standard (4) | Extended (5) |
|---|---|---|
| RK4 | 6 | 7 |
| DeepONet | 8 | 9 |
| TraONet | 0 | 1 |
| VaRONet | 2 | 3 |
| MambONet | 4 | 5 |
Computational Efficiency (single-threaded, per potential):
| Model | Time (s) |
|---|---|
| RK4 | 6 |
| DeepONet | 7 |
| TraONet | 8 |
| VaRONet | 9 |
| MambONet | 0 |
Physically Relevant Potentials (1 with 2 training):
| Potential | RK4 | DeepONet | TraONet | VaRONet | MambONet |
|---|---|---|---|---|---|
| SHO | 3 | 4 | 5 | 6 | 7 |
| Double-well | 8 | 9 | 0 | 1 | 2 |
| Morse | 3 | 4 | 5 | 6 | 7 |
| MFF (C⁰) | 8 | 9 | 0 | 1 | 2 |
| SMFF (≈C²) | 3 | 4 | 5 | 6 | 7 |
Ablation / Sensitivity:
- Increasing dataset size improves accuracy: TraONet reaches 8 loss at 9 potentials, rivaling MambONet on 00 potentials.
- VaRONet exhibits higher variance in loss, especially for non-smooth potentials, relative to TraONet or MambONet.
6. Error Propagation and Physical Consistency
VaRONet diverges from traditional integrators by predicting all timepoints in parallel, removing stepwise dependency and eliminating the primary pathway for error accumulation. In contrast to the iterative nature of RK4 and similar algorithms, which propagate local errors forward in time causing drift, VaRONet conditions its prediction solely on the input potential and sampled latent, so a local mistake at time 01 does not corrupt future steps. This architecture leads to notably lower cumulative trajectory error and robust performance, even on nearly discontinuous potentials. VaRONet does not impose explicit energy or Hamiltonian constraints; rather, empirical conservation emerges through successful operator learning over large datasets.
7. Significance and Position Within the Field
VaRONet represents a significant advancement in neural operator learning for dynamical systems governed by Hamiltonian mechanics. Its variational-LSTM sequence-to-sequence construction enables it to capture variability in physical responses and generalize to out-of-distribution potentials. While not as fast as fully feedforward alternatives (e.g., TraONet), nor matching the hybrid Mamba operator (MambONet) in all metrics, VaRONet occupies a distinct position by delivering near-RK4 accuracy and high expressivity with only 02 training instances. Detailed implementation resources, including data generation and reproducible training recipes, are made available in the corresponding code repository (Kim et al., 2024).