arXiv:2610.31585cs.LGOct 2026

Manuscript Offprint

arXiv:2610.31585

Action Learning for Scientific Simulations

Sarah Liaw, Yuanqi Du, Yilun Du

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Understanding and controlling how systems evolve is central to science and engineering, where many problems require reasoning about complete trajectories. Existing approaches typically learn local dynamics or generate trajectories, but objectives constructed from individual transitions can miss dependencies across time, while generative models do not necessarily provide a tractable objective for evaluating and optimizing arbitrary paths. We study action learning, the problem of recovering a stochastic action from trajectory observations, yielding a common objective for reasoning about dynamical systems. We introduce LEAP (Learned Energy on Action Paths), which anchors the unknown action to a tractable reference process and learns the remaining correction by comparing observed trajectories with reference trajectories. This construction yields a differentiable objective on path space that can capture both local dynamical structure and nonadditive dependencies across time. Once learned, the same action can be flexibly reused for path ranking and inference, mechanism steering, constrained optimization and sampling. Across stochastic physical systems, many-body orbital dynamics and molecular simulations, LEAP recovers underlying dynamics, captures dependencies across time and enables transfer across inference objectives and physical conditions. We show that action learning is a promising framework for turning trajectory observations into reusable objectives for scientific inference and control.

1 FROM TRAJECTORY SAMPLES TO PATH INFERENCE

Figure

(a) Local dynamics learning. One-step transition laws induce a likelihood over complete trajectories.

Figure

(b) Action learning. LEAP learns relative path costs from complete trajectory comparisons.

Figure 1: Local dynamics learning versus action learning. Local models learn short-range transition laws that induce a path likelihood, whereas LEAP learns an action from complete trajectories while retaining structured local dynamics when appropriate.

Understanding how systems move between states requires reasoning about the trajectories that connect them. In molecular dynamics, two conformations may be connected by several transition routes that visit different intermediate configurations (Bolhuis et al., 2002; Shaw et al., 2010); in robotics, agents act through sequences of decisions (Kalakrishnan et al., 2011; Janner et al., 2022). In these settings, the object of interest is often the trajectory itself: which paths realize a transition, which mechanisms are plausible and which paths remain likely under perturbations or constraints.

Answering these questions requires reasoning about complete paths. To infer representative transitions or impose new preferences, we need an objective that assigns probabilities or costs to trajectories. When the dynamics are known, stochastic action functionals provide such an objective.

∗^{*}Correspondence to sliaw@g.harvard.edu.

In statistical physics and stochastic control, actions such as the Onsager–Machlup functional, Freidlin–Wentzell rate functional and path integral control costs define probabilities or costs on path space (Onsager & Machlup, 1953; Freidlin & Wentzell, 2012; Kappen, 2005; Adib, 2007). Once the action is available, we can use it for downstream tasks like constrained inference and sampling.

In many applications, however, we do not know the action. Instead, we observe trajectories from simulations or experiments, such as molecular dynamics, sequences of state transitions, policy rollouts or logs of stochastic processes (Lindorff-Larsen et al., 2011; Shaw et al., 2010; Glielmo et al., 2021). Classical trajectory inference methods typically assume a known action, while learned methods predict local dynamics, learn representations or generate trajectories directly (Chen et al., 2019; Li et al., 2020; Song et al., 2021; Jing et al., 2024b). These objects are useful, but they do not directly give the reusable path objective needed for downstream trajectory inference. We therefore call the task of recovering an evaluable action from trajectory samples action learning.

Existing learned methods often model dynamics locally by fitting one-step transition laws and using the resulting local model to evaluate complete trajectories (Chua et al., 2018). This requirement can become restrictive when trajectories are selected by global events, e.g., successful transitions or task-level constraints. A local predictor trained on such data estimates the one-step conditionals of the selected process, which can differ from the underlying dynamics. Errors in local transition log-likelihoods can also accumulate along a path and then distort the induced optimization landscape. Since path-level quantities do not have to decompose into independent local decisions, optimizing locally plausible segments can still produce a poor local minimum; Fig. 1 shows this distinction.

We propose LEAP (Learned Energy on Action Paths), a framework for learning a stochastic action directly from trajectory samples. LEAP treats the action itself as the learning target, rather than a local predictor or trajectory generator. It anchors the unknown action to a tractable reference process and learns the remaining correction from complete trajectories, yielding an evaluable objective on path space. In structured settings, this correction recovers changes in the underlying dynamics; more generally, it can capture nonadditive interactions across transitions. Once learned, the action can be reused with preferences that were not specified during training. For example, a reward for visiting an intermediate basin can favor a different transition route, while a geometric penalty can discourage paths outside admissible regions, in both cases without retraining the learned action.

Our approach applies broadly to trajectories from dynamical systems, including molecular simulations, stochastic physical systems and logged sequential processes (Shaw et al., 2010; Kalakrishnan et al., 2011; Janner et al., 2022). We evaluate LEAP across controlled physical systems, a 31-body orbital benchmark with 186-dimensional states and an alanine dipeptide molecular benchmarks. These experiments test physical recovery, nonadditive dependence across time and reuse across inference objectives, with the double well and orbital systems providing exact actions for evaluation.

Our contributions are as follows: (i) we formulate action learning as learning a reusable objective directly on complete trajectories; (ii) we introduce LEAP, which learns a stochastic action by comparing observed trajectories with samples from a tractable reference process; (iii) we establish theoretical guarantees for recovering the action and show that dependencies across time can result in trajectory objectives that cannot be represented by sums of local transition costs; and (iv) we demonstrate recovery of underlying physical dynamics from terminally selected trajectories, modeling of nonadditive dependencies in many-body systems, and reuse of a fixed learned action across molecular inference tasks and physical conditions.

References (44)