Research
CALOS: Control-Affine Lyapunov On-manifold Safety Layer for Safe Deep Reinforcement Learning for Quadrotors
Deep RL policies can fly quadrotors aggressively, but they come with no guarantee that safety limits, such as how far the vehicle is allowed to tilt, are respected during training or deployment.

- arXiv
- 2609.17758 · Preprint · not peer-reviewed
- Published
- 2026-09-15
- Authors
- Fabrizio Cesareo, Sebastiano Mengozzi, Nicola Mimmo, Andrea Acquaviva
In plain words
Deep RL policies can fly quadrotors aggressively, but they come with no guarantee that safety limits, such as how far the vehicle is allowed to tilt, are respected during training or deployment.
AI summary
Overview
Research area: Safe deep reinforcement learning for robot control, specifically runtime safety filtering for quadrotor attitude control.
Technical level: Intermediate to Advanced. The paper assumes familiarity with reinforcement learning (PPO), quadrotor rigid-body dynamics, and constrained optimization (quadratic programs, KKT conditions), though the core idea can be grasped without following the derivations.
Scope: The paper proposes and evaluates CALOS, a runtime safety layer that fuses tilt-angle limits and a Lyapunov energy-dissipation condition into one small quadratic program that corrects the torque commands of a learned quadrotor policy, tested in NVIDIA Isaac Lab on trajectory-tracking tasks.
What This Paper Is About
Deep RL policies can fly quadrotors aggressively, but they come with no guarantee that safety limits, such as how far the vehicle is allowed to tilt, are respected during training or deployment. The authors build a safety layer that sits between the policy and the motors and adjusts the commanded torque just enough to satisfy attitude limits and a stability (energy-decay) condition at every control step, without changing the learning algorithm itself. The goal is a filter fast enough to run across thousands of parallel simulation environments so that it can be used during training, not only after it.
Key Contributions
-
A single unified constraint program. Four linear inequalities bounding roll and pitch tilt (predictive tilt projection) and one Lyapunov descent inequality are stacked into a single system of m = 5 linear constraints in the three-dimensional torque space, producing a quadratic program whose solution is the minimum-norm correction to the policy's nominal torque.
-
An exact, real-time solver. Because torque is three-dimensional, at most three constraints can be active simultaneously, so the exact optimum is found by enumerating all sum over k=0..3 of C(5,k) = 26 candidate active sets and checking KKT feasibility, selecting the feasible candidate with smallest squared distance to the nominal torque. A cheaper projected variant (CALOS-P) applies the damped pseudo-inverse correction jointly to all five constraints.
-
A learning-algorithm-agnostic design. The layer leaves thrust unmodified to preserve vertical authority and only corrects torque, is transparent to PPO and compatible with any policy-gradient method, and requires no constrained actor updates or backup controller.
-
Evidence that the filter helps rather than hinders learning. Applying the filter during training restricts exploration to safe regions, and the resulting policies retain improved tracking accuracy even when the layer is switched off at test time.
Main Findings
-
Tracking accuracy: On the training Lissajous trajectory (amplitude 1 m, period 5 s), CALOS-P and CALOS-QP reduce mean lateral error by 55–60% relative to an unconstrained PPO baseline. Table I values: PPO 0.157 m, CALOS-P 0.062 m, CALOS-QP 0.069 m.
-
Generalization to unseen references: On a harder Lissajous trajectory (amplitude 1.5 m, 43% higher peak velocity than the training reference) and on a circle of radius 1 m at angular rate 1.777 rad/s, both CALOS variants keep mean lateral error below 0.08 m, while Lyapunov scaling and Cascade exceed the 0.20 m tracking-failure threshold (0.256 m and 0.243 m on the harder Lissajous; 0.569 m and 0.352 m on the circle).
-
Zero violations in nominal conditions: On the training trajectory without an initial offset, CALOS-QP achieves zero roll-violation episodes under the 60-degree limit.
-
Behavior under extreme initial offset: With a large initial position offset never seen in training, CALOS-P violations last at most 3 consecutive steps and occur only during the first simulation steps while the controller corrects the initial error; Lyapunov scaling alone reaches a maximum tilt of 180.0 degrees with violations lasting up to 27 consecutive steps, and PPO reaches 116.9 degrees. CALOS-QP records a maximum roll of 99.9 degrees with at most 9 consecutive steps in violation. (The paper's violation-episode column prints counts in the thousands, such as 4096 for PPO and CALOS-P, although the evaluation is described as 200 episodes.)
-
Safety is internalized: With the safety layer disabled at test time, policies trained with CALOS still show mean lateral error 55–74% lower than PPO — for example 0.062 m (CALOS-P) and 0.067 m (CALOS-QP) versus 0.157 m for PPO on the training trajectory, and 0.043 m and 0.041 m versus 0.165 m on the circle.
-
The feasible set was never empty: Across all agents, trajectories, and offset conditions, the exact QP solver always found a feasible solution; the fallback of applying the uncorrected torque was never triggered.
-
Why sequential methods fail: Multiplicative Lyapunov scaling of the form torque = s times nominal torque with s in [0,1] drives s toward 0 when the Lyapunov function is large, killing torque exactly when maximum recovery authority is needed. Encoding dissipation as a linear inequality instead lets the QP preserve a large component along the recovery direction.
Methodology in Plain English
The safety layer sees the policy's proposed torque and a compact description of the drone's state: which way gravity points in the body frame and how fast the body is rotating. Thrust is passed through untouched.
Two things must hold. First, the drone must not tilt beyond 60 degrees in roll or pitch. Using a one-step prediction of how the gravity direction will evolve, the authors express the future tilt as an affine function of the torque, which turns the attitude limits into four linear inequalities. Second, a Lyapunov function combining tilt error and angular velocity must decrease at a specified rate; since the rotational dynamics are control-affine, this also becomes a single linear inequality in torque.
Both sets of inequalities are stacked, and the layer solves for the torque closest to the policy's proposal that satisfies all five. The exact version enumerates the 26 possible active sets, solves the small KKT system for each, and keeps the best feasible one. If nothing is feasible, the nominal torque is applied and actuators are clamped to physical limits.
For training, everything runs in NVIDIA Isaac Lab on 4096 parallel environments for roughly 10^9 timesteps with PPO from the SKRL library, using a two-layer 64-unit MLP with ELU activations, a 15-dimensional observation, and a reward curriculum that tightens the tracking precision target from 0.50 m to 0.15 m. Six variants are compared — PPO, PTP, Lyapunov scaling, Cascade, CALOS-P, CALOS-QP — over 200 episodes on three trajectories, two of which are never seen during training and are tested with a large initial offset.
Why This Matters
Runtime filters applied during training risk distorting the gradient signal: if the filter overrides the policy too aggressively, the policy learns from actions it never took. CALOS is notable for showing that a well-designed joint filter can improve tracking accuracy, improve data efficiency, and preserve policy quality simultaneously, rather than trading safety against performance.
Real-world applications:
- Delivery and inspection drones operating near buildings or people, where exceeding an attitude limit risks loss of control or collision.
- Indoor and GPS-denied flight, where aggressive recovery maneuvers after large position errors are precisely the moments when attitude limits matter most.
- Safety certification of learned controllers, since a runtime layer with a provable per-step constraint can complement an otherwise unverified neural policy.
- High-throughput training pipelines, where a filter must be cheap enough not to bottleneck thousands of parallel environments.
Industry relevance: The layer is a drop-in module that does not require retraining with a constrained RL formulation, and its enumeration-based solver is small and parallelizable — both attractive properties for teams already running GPU-parallel simulators and wanting a safety wrapper without rewriting their learning stack.
Future Directions
-
Task-aware Lyapunov certificates: The current quadratic certificate drives the vehicle toward zero tilt, which causes unnecessary interventions when the drone legitimately needs to hold a non-zero but feasible attitude to track a reference. A learned certificate that decreases toward the current reference could remove these interventions.
-
Beyond control-affine dynamics: Higher-fidelity models with rotor-speed dynamics or blade-flapping effects break the input-affine assumption CALOS relies on, so extending the formulation is an open problem.
-
Sim-to-real transfer: Validating on physical hardware with domain randomization and data-driven safety filters to handle model uncertainty.
-
Reducing residual violations under large offsets: The authors suggest including high-error initial conditions in the training distribution to further reduce the violations observed under extreme initial position errors.
Target Audience
Robotics researchers and graduate students working on safe RL, learning-based control, and aerial robotics; control engineers interested in combining classical Lyapunov arguments with learned policies; and practitioners deploying learned controllers who need a lightweight, algorithm-agnostic safety wrapper. Readers without a control-theory background can still follow the motivation and experimental results, but the constraint derivations and solver details require comfort with rigid-body dynamics and convex optimization.
Authors’ abstract
Deep Reinforcement Learning has demonstrated remarkable capability in quadrotor control, yet learned policies offer no guarantee of respecting safety constraints during training or deployment. We present CALOS (Control-Affine Lyapunov On-manifold Safety), a runtime safety layer that enforces attitude constraints on a quadrotor without modifying the underlying learning algorithm. CALOS formulates four tilt-angle inequalities and a Lyapunov descent condition as a single…
The full abstract on arXivRelated papers
- OIL: An Object Interaction Layer for Humanoid Whole-Body Control 2026-10-01 · cs.RO · Key terms of the title in common
- MSC: Multi-Stage Caster-aware Control Framework with Uncertainty-Aware NMPC and RL-based Execution Layer 2026-10-12 · cs.RO · Key terms of the title in common
- Projection-Retraction MPPI: Exact Constraint-Manifold Control for Manipulators 2026-08-04 · cs.RO · Key terms of the title in common