Project 1 Figure AnalysisðŠķ
Figure 1 - Training CurveðŠķ

Figure 1 Analysis
Take-Home Message
The training curve exhibits rapid initial descent followed by periodic spikes.
ð Key Insights
-
Early descent reflects the network's ability to quickly learn qualitative features rather than exact parameterization. This is followed with alternating regions of rapid descent, indicating constraint violations.
-
Spikes reflect transient conflicts between trajectory fitting and antisymmetric structure in the learned generator. This corresponds to the network re-learning its antisymmetric generator structure.
-
Interestingly, the spike amplitude remains approximately constant over training.
â Failure Modes
- Constraint interference
Figure 2 - Position TrajectoryðŠķ

Figure 2 Analysis
The position component of the predicted trajectory \(q_\theta(t)\) (green curve) and the ground truth trajectory \(q(t)\) (red dashed curve).
Note the use of canonical coordinates \(q(t)=x(t)\) and \(p(t)=\dot{x}(t)\), corresponding to the phase space of a one-dimensional harmonic oscillator. Parameters are normalized so that the mass and sprink constant are implicitly absorbed into the natural frequency \(\omega\).
Figure 3 - Hamiltonian EvolutionðŠķ

Figure 3 Analysis
The Hamiltonian generator evaluated along the predicted trajectory:
Take-Home Message
The learned dynamics produce a vector field increasingly tangent to the contours of \(H\). From this emerges conservation enforced by the learned structure rather than just numeric accuracy.
ð Key Insight
Three Regions:
1. Sharp initial drop corresponds to the model discovering an approximate invariant.
2. The small "bump" corresponds to rebalancing between the trajectory and structure losses.
3. The final approximately flat region corresponds to near-stationary energy error.
Figure 4 - Phase Space Trajectory: Flow vs. VectorsðŠķ
| Hamiltonian Streamlines | Hamiltonian Vector Field |
|---|---|
![]() |
![]() |
Figure 4 Analysis
- Left: The analytic flow (blue streamlines) shows the global topology of the conservation law.
- Right: The vector field (quiver plot) shows the local direction of the symplectic flow generated by the ground-truth Hamiltonian generator.
Take-Home Message
-
Analytic flow fields (red curve) comes from (normalized) Hamilton's equations:
\[ \begin{align} \dot{q}(t) &= p(t) \\ \dot{p}(t) &= -\omega^2 q(t) \end{align} \] -
Learned PINN-trajectory (green curve) comes from the learned dynamics.
Aside on Variable Convention
-
The predicted state in dynamical systems and PINNs is typically denoted as \(\mathbf{z_\theta}(t) = [q_\theta(t), p_\theta(t)]^T\).
-
Using \(\mathbf{z_\theta}\) (bold for vector) is considered best practice.

