arXiv:2609.39888cs.LGSep 2026

Manuscript Offprint

arXiv:2609.39888

Markovian Dynamics Enforcer: Feasibility Preserving Correction on Learned Dynamics Manifolds

Kevin Yu, Tao Guo, Constantinos Antoniou, Panagiotis Angeloudis

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

Abstract

Neural trajectory predictors can reach low prediction error while violating dynamics, actuator limits, or state constraints, especially when controls are unobserved and dynamics are partially specified. We introduce the Markovian Dynamics Enforcer (MaDE) 1^{1}, a time-invariant post-hoc operator mapping state-transition proposals onto a learned feasible dynamics manifold, trained on feasible states without ground-truth controls. For each transition it infers a control and recomputes the state through a completion model of known physics plus a learned residual. It then corrects that control by gradient-based inequality reduction, so inequality satisfaction is best-effort within an iteration budget. Since every correction iterate re-enters the completion model, the returned state is dynamically consistent by construction relative to that model and the supplied previous-state anchor. MaDE drives dynamics residuals to essentially zero on fully specified simulated systems, and on an underspecified system leaves a smaller true-dynamics residual than the baselines. Designed to attach to arbitrary predictors, the frozen operator is evaluated downstream of recurrent, structured state-space, and transformer predictors. On recorded vehicle trajectories the one-step residual against a kinematic bicycle model is 0.0071 to 0.0072 for MaDE and 0.1703 to 0.1714 for raw predictors. MaDE raises average displacement error by a factor of 1.57 to 1.83.

1 Introduction

Neural trajectory models are increasingly used in physical-system pipelines for vehicle trajectory reconstruction, simulation, and behavioural forecasting. In these settings, predicted trajectories do not suffice as merely statistical outputs, since they are consumed by downstream modules that implicitly assume physical admissibility. A trajectory may achieve low prediction error while still violating actuator limits, state constraints, or basic dynamical consistency (Figure 1), making it unreliable for physical interpretation, safety analysis, or control-aware reasoning.

This mismatch arises because modern neural predictors are typically optimised for predictive accuracy rather than feasibility. Existing approaches partially address the problem by embedding optimisation layers [Amos and Kolter, 2017, Agrawal et al., 2019], incorporating physics priors [Raissi et al., 2019, Karniadakis et al., 2021], or learning structured dynamical models [Chen et al., 2018, Rackauckas et al., 2020, Yin et al., 2021]. However, these approaches often require retraining the predictor itself, assume analytically specified dynamics, or tightly couple feasibility enforcement to the upstream sequence architecture. In many practical settings, the available physics is incomplete and controls are unobserved.

We introduce Markovian Dynamics Enforcer (MaDE), a differentiable downstream correction operator for neural trajectory predictions. An inverse dynamics model infers latent controls from

*Correspondence to: k.qu23@imperial.ac.uk

1^{1}Code available at https://github.com/tsl-imperial/MaDE

Preprint.

adjacent states, and a known-physics model augmented with a learned residual uses those controls to recompute the state. A correction stage then adjusts the inferred controls by gradient descent on a violation objective for explicit state and control bounds, while remaining on the learned dynamics manifold. The resulting operator is Markovian, time-invariant, and deterministic, and is designed to attach downstream of arbitrary predictors without retraining them. Dynamics consistency holds by construction relative to the learned completion operator and the supplied previous-state anchor, and asserts nothing about validity against the true data-generating system. Inequality satisfaction by the correction stage is best-effort and limited to a fixed iteration budget.

This work makes the following contributions. We define a post-hoc feasibility-enforcement problem for neural trajectory proposals under partially specified controlled dynamics and unobserved controls. For that problem we instantiate a completion-correction operator whose completion function is a learned controlled dynamics manifold rather than a fully specified analytical equality map. Its correction is posed in physically typed control space from state-only data. We evaluate the operator in two settings, reporting every method's dynamics residuals and inequality violations as measured. On a simulation ladder from fully specified to underspecified dynamics, the operator preserves learned dynamics consistency and improves fidelity over direct-mapping and learned-projection baselines. Downstream of three independently trained neural trajectory predictors on recorded vehicle trajectories, the frozen operator lowers the known-model dynamics residual at an accuracy cost we quantify. Its effect on the inequality violation rate is reported separately from that residual.

Figure

Figure 1: Schematic of MaDE. MaDE improves the dynamical consistency of trajectory predictions at a cost in accuracy.