Trajectory-Consistent Dropout for Uncertainty Decomposition in Hamiltonian Neural Networks
Stephen J Roberts, Yuki Tachibana
NeurIPS page · OpenReview · Open on the map
Category: Time Series, PDEs & Probabilistic ML › Symplectic Physics Modeling · Type: new method · Keywords: Hamiltonian Neural Networks, Monte Carlo dropout, uncertainty decomposition, trajectory consistency, physics simulation
Areas: AI for Science › Physics-Informed Neural Modeling › Structure-Preserving Neural Operators
Summary
Trajectory-Consistent Dropout (Fixed-mask MC) enables per-trajectory uncertainty decomposition in Hamiltonian Neural Networks by reusing dropout masks across integration steps, improving energy drift and epistemic uncertainty shift.
Explained to a 5-year-old
A computer program learns how things like swinging pendulums move by using a special kind of brain called a Hamiltonian Neural Network. Usually, when the program wants to know how uncertain it is about its predictions, it changes its internal random choices at every tiny step. This can cause the program’s guesses to become inconsistent, like if different parts of the program disagree with each other during the movement. The authors noticed this problem and came up with a new idea: they let the program pick a random mask once and then use the same mask for the entire movement. By keeping the mask unchanged, the program’s predictions stay coherent, which is important for physical simulations. This also allows the program to separate different kinds of uncertainty: some comes from the model itself, and some comes from the exact starting conditions.
Explained to a 5-year-old, longer
A computer program can learn how things move, like a swinging pendulum or a chain of springs, by using a special kind of brain called a Hamiltonian Neural Network. Usually, when the program wants to know how uncertain it is about its predictions, it changes its internal random choices at every tiny step. This can cause the program’s guesses to become inconsistent, like if different parts of the program disagree with each other during the movement. The authors noticed this problem and came up with a new idea: they let the program pick a random mask once and then use the same mask for the entire movement. By keeping the mask unchanged, the program’s predictions stay coherent, which is important for physical simulations. This also allows the program to separate different kinds of uncertainty: some comes from the model itself, and some comes from the exact starting conditions. They tested this idea on simple swinging pendulums, on chains of springs, and on models of magnetic materials. The new method improves how well the program conserves energy during long simulations. It also makes the program better at telling when it is unsure because of its own limitations versus when it is unsure because the starting point was unusual. These improvements help the program be more trustworthy when used in scientific and engineering tasks.
For a technical reader
The method introduces a fixed-mask Monte Carlo dropout scheme that preserves Hamiltonian consistency across integration steps, enabling reliable uncertainty decomposition. By sampling masks from a bank and reusing them per rollout, the approach maintains a coherent Hamiltonian sample, which is essential for symplectic integrators. An additional initial-condition ensemble separates model uncertainty from sensitivity to initial states, providing interpretable uncertainty budgets. Experiments on coupled pendulums, spring chains, and Ising models demonstrate significant reductions in energy drift and stronger shifts toward epistemic uncertainty on out-of-distribution physics.
Problem
Standard Monte Carlo dropout disrupts the per-trajectory interpretation of Hamiltonian Neural Networks because resampling masks inside the integrator leads to inconsistent Hamiltonian samples, making uncertainty decomposition unreliable.
Method
The approach uses a fixed dropout mask per stochastic rollout, sampled from a finite bank and reused throughout the integration path, combined with an initial-condition ensemble to separate model uncertainty from initial-state sensitivity.
Results
Fixed-mask MC reduces mean energy drift by 72% compared to Standard MC and increases the epistemic variance share by 16.9 percentage points on out-of-distribution mass ratios versus 4.2 points for Standard MC, while the decomposition also transfers to spring-chain and Ising dynamics.
Contributions
The paper introduces a trajectory-consistent dropout scheme that preserves Hamiltonian consistency, enables reliable uncertainty decomposition into model and initial-state components, and demonstrates strong improvements on energy drift and epistemic uncertainty shift across multiple physical systems.
Limitations and assumptions
The improvements in point predictions and likelihoods are system-dependent, and the method is demonstrated on synthetic physics simulations rather than real-world data.
Practical relevance
It provides a practical way to obtain physically consistent uncertainty estimates for neural dynamical models in a single training run, aiding reliable deployment in scientific and engineering applications.
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction