Skip to content
Sprint projectJul 28, 2025Germany

Sequential Cascaded Hamiltonian Neural Networks

Ajay Mandyam Rangarajan, Jeyashree Krishnan · Team TheLoneCabbages

Submitted to AI Safety x Physics Grand Challenge. Sprint projects are early-stage work by participants, not Apart Research publications.

Read the report

Report: Sequential Cascaded Hamiltonian Neural Networks

Presentation

Presentation: Sequential Cascaded Hamiltonian Neural Networks

Code (opens in new tab)
Share

Understanding how neural networks can be enhanced to learn physically meaningful representations is fundamental to advancing scientific machine learning and ensuring AI safety in physics-critical applications where unpredictable model behavior can lead to catastrophic failures. We present a novel Sequential Cascaded Hamiltonian Neural Network (SC-HNN) approach that dramatically improves the generalization capabilities of standard neural networks through post-training with energy-conserving constraints. Our method consists of two stages: first training a baseline neural network on trajectory data $(x, t)$, then using automatic differentiation to extract velocities and train a separate Hamiltonian Neural Network that learns the underlying energy function. This approach requires only Hamiltonian structure knowledge (similar to standard HNNs) but operates on trajectory data rather than requiring direct access to phase space coordinates $(x, v)$. Using the harmonic oscillator as our test system, we demonstrate that this cascaded approach achieves comparable long-term stability and energy conservation to direct HNN training while significantly outperforming standalone baseline networks and PINNs. Most remarkably, we find that even when baseline neural networks fail to accurately predict long-term dynamics, their learned trajectory representations provide sufficient data fitting quality that can be leveraged to train separate Hamiltonian networks for improved generalization. The SC-HNN reduces energy variance by over 90\% compared to baseline approaches while maintaining computational efficiency. Our results suggest that standard neural networks may possess inherent physical understanding that can be recovered and enhanced through appropriate post-training procedures, opening new pathways for improving the reliability and physical consistency of learned dynamical systems without requiring physics knowledge during initial training.

Reviews

Judging this Sprint?

Review this project

Your public critique appears on this page without your name. Your private critique is not published; only the Apart team reads it. If you agree below, we share your review with grantmaking.ai (opens in new tab) and the Transformative AI Fund so strong projects can be funded.

Not shown on this page.

Shown on this page, without your name.

Only the Apart team reads this, and funders if you agree below.

Share my name publicly on grantmaking.ai *
Share my private critique with funders *

How rigorous is your physics methodology and how feasible is your approach? Is your theoretical framework sound and your empirical work well-designed? Can your proposed methods be implemented and validated?

How clearly does your work address important AI safety challenges? What is the potential impact on ensuring beneficial AI development? Does your approach offer meaningful insights for AI alignment research?

How novel and creative is your approach to bridging physics and AI safety? Do you introduce new theoretical connections or methodological innovations? What makes your work distinct from existing research?

  1. Excellent and really thorough work!! Well presented and innovative, hats off!

  2. The project introduces and validates a novel method for training Hamiltonian neural networks involving standard neural network training as a preliminary step. The idea is interesting and the results are presented rigorously and clearly. I do have some critiques.

    1) The project leans more towards AI for physics rather than physics for AI safety (however, the report does a good job discussing implications for AI safety).

    2) The energy variance numbers reported in Figure 1 and Table 1 are not consistent.

    3) At 8 pages + appendices, the report exceeds the page limit of 6 pages + appendices.

Cite this project

@misc{rangarajan2025sequential,
  title = {{Sequential Cascaded Hamiltonian Neural Networks}},
  author = {Ajay Mandyam Rangarajan and Jeyashree Krishnan},
  year = {2025},
  month = jul,
  note = {Submitted to AI Safety x Physics Grand Challenge, an Apart Research Sprint},
  howpublished = {\url{https://apartresearch.com/sprints/projects/sequential-cascaded-hamiltonian-neural-networks-4zzi}},
  url = {https://apartresearch.com/sprints/projects/sequential-cascaded-hamiltonian-neural-networks-4zzi}
}

Build something like this at the next Sprint

AI Collusion Research Sprint · Oct 23 - 25, 2026