No region of attraction
Training an RL policy maximises a return. It does not tell you which initial states the closed loop actually brings to the goal.
Under review
Learning Maximal Lyapunov Functions for Deep Reinforcement Learning-based Controllers on Matrix Lie Groups
1New Jersey Institute of Technology, Newark, NJ, USA · 2Digital Futures and KTH Royal Institute of Technology, Stockholm, Sweden
In short. We train deep RL controllers that steer a rotation or a rigid-body pose to any goal by working directly on the geometry of the group, so one trained policy serves every goal. For such a controller we then learn the cost it accumulates on its way to the goal and read off a set of starting states from which it reaches the goal. When an actuator turns out to be weaker, stronger or misaligned, we recompute that set for the same controller in hours, without retraining it.
Training an RL policy maximises a return. It does not tell you which initial states the closed loop actually brings to the goal.
A reaction wheel is mounted a few degrees off, a thruster delivers 25 percent less than commanded. The same policy now runs a different closed loop.
Rolling the policy out shows convergence at the states you tried. A region checked before the fault can still look fine on samples while its Lyapunov conditions fail.
Orientations and poses do not live in a vector space: they form matrix Lie groups such as SO(3) and SE(3). Treating them as vectors brings singularities and double covers, and a policy that takes the state and the goal separately must learn every goal anew.
A two-dimensional toy closed loop with a saturated controller. The colour is the cost the controller accumulates before it reaches the goal: finite exactly on the region of attraction, infinite outside. That accumulated cost is a maximal Lyapunov function. Change the actuator and compare the region you certified before (dashed) with the one that holds now. Click anywhere to launch a trajectory.
Illustration only: a planar system chosen for clarity, not one of the systems in the paper.
Part one gives a single closed loop on the error. Subtracting the network output at the goal makes the goal a fixed point, and a test on the linearisation keeps the loops where it is locally exponentially stable.
The undiscounted sum of squared distances to the goal is a maximal Lyapunov function. It obeys a one-step equation, so a network learns it from single transitions: no long rollouts, no partial differential equation. Near the goal, the exact quadratic term from the linearisation takes over.
When a gain error or misalignment is identified, the closed loop changes but the policy does not. The function and its level are recomputed for the new loop within hours, and tell you whether the deployed controller still covers the states you care about.
Each column is one trained policy with one actuator error. Height: the region's share of the reference region computed from the accumulated cost by simulation.
The regions assume each commanded step is carried out exactly. So we run the trained policies on simulated vehicles in MuJoCo, through low-level controllers that track each step, from initial errors drawn inside the estimated regions.
A calibration pass shows a reaction wheel tilted by a few degrees. Recompute the attitude envelope of the learned controller on the ground and decide whether to upload a new policy.
A thruster loses effectiveness. Know from which poses the vehicle still docks, before sending it back down.
A maximal Lyapunov function learned from one-step data, on any matrix Lie group, for a policy trained by any RL algorithm.
git clone https://github.com/gradslab/maxlyap_lie_rl.git && cd maxlyap_lie_rl
bash reproduce.sh setup # two virtual environments
bash reproduce.sh tables # every table, figure and number of the paper, checked against the paper
bash reproduce.sh all # everything from scratch: policies, functions, searches, vehicles
@unpublished{tariq2026maximal,
title = {Learning Maximal {L}yapunov Functions for Deep Reinforcement
Learning-based Controllers on Matrix {L}ie Groups},
author = {Hamza Tariq and Matthieu Barreau and Adeel Akhtar},
note = {Under review},
year = {2026}
}