Decoupling Safety from Optimization in Autonomous Systems

20 concepts18 papers1 proposal

When designing controllers for autonomous systems—whether they are self-driving cars merging onto a highway, drones navigating tight spaces, or power grids balancing transient loads—engineers face a fundamental conflict between long-term foresight and immediate safety.

To maximize efficiency, a system must plan over a long time horizon. However, solving a long-horizon optimization problem that simultaneously accounts for complex, non-linear safety constraints (such as avoiding every dynamic obstacle) is computationally expensive. In high-speed scenarios, this computational latency is dangerous: if a trajectory planner takes seconds to compute an optimal path, the system cannot react to sudden hazards.

To resolve this, a powerful architectural paradigm has emerged: decoupling safety enforcement from performance optimization. By separating the control problem into a hierarchical, two-layer architecture, systems can achieve real-time responsiveness alongside long-term optimality.


The Computational Bottleneck of Joint Optimization

To understand why decoupling works, consider the traditional approach of solving a fully constrained optimal control problem, such as Model Predictive Control (MPC). In this setup, a single controller attempts to find a sequence of control inputs that minimizes a cost function (e.g., fuel consumption or travel time) while strictly satisfying safety boundaries at every time step.

As highlighted by Wei Xiao et al. in Bridging the Gap between Optimal Trajectory Planning and Safety-Critical Control with Applications to Autonomous Vehicles, incorporating non-linear safety constraints directly into long-horizon trajectory optimization introduces severe computational delays, sometimes on the order of multiple seconds. For high-speed autonomous operations, this latency is unacceptable.

By separating the problem into a two-stage architecture, the high-level layer can solve an unconstrained or loosely constrained optimization problem over a long horizon, while a low-level layer handles immediate safety constraints. This separation reduces computational latency down to sub-centisecond control cycles, allowing systems to maintain near-optimal performance while strictly meeting real-time execution deadlines.


The Two-Layer Architecture: Plan Globally, Filter Locally

In a decoupled architecture, the control task is split between two distinct layers operating at different frequencies and horizons:

[ High-Level Performance Layer ]  --> Generates nominal, long-term plan (u_nom)
                                             |
                                             v
[ Low-Level Safety Filter ]       --> Minimally modifies u_nom to guarantee safety (u*)
                                             |
                                             v
                                  [ Physical System / Plant ]
  1. The High-Level Performance Layer: This layer focuses entirely on achieving the system's long-term goals—such as minimizing energy, maximizing speed, or following a user's spatial intent. Because it is freed from enforcing strict, high-frequency safety constraints, it can use complex methods like deep reinforcement learning, non-linear optimization, or even direct human input.
  2. The Low-Level Safety Filter: This layer operates at a much higher frequency over a short horizon. It acts as a "safety wrapper" or supervisor. It receives the nominal control signal ($u_{nom}$) from the high-level layer and evaluates whether executing it would violate safety boundaries. If the nominal signal is safe, the filter passes it through unchanged. If it is unsafe, the filter minimally modifies it to the closest safe action ($u^*$).

This division of labor is highly versatile. For instance, Jesse Paterson et al. demonstrate in Improving Usability, Efficiency, and Safety of UAV Path Planning through a Virtual Reality Interface how this architecture allows a human operator to draw abstract 3D flight paths in virtual reality. The high-level layer captures the user's spatial intent, while a low-level control layer manages the physical constraints and stability of the aircraft, shielding the user from low-level flight dynamics.


Why It Works: The Mechanics of Safety Filtering

The core mathematical mechanism that makes the low-level safety filter both fast and rigorous is the Control Barrier Function (CBF), typically implemented via a Quadratic Program (QP).

Instead of predicting the system's entire future trajectory over a long horizon, a CBF evaluates the system's current state and defines a set of admissible control inputs that prevent the system from ever leaving a predefined "safe invariant set." Mathematically, it maps complex state constraints (like "do not collide with the car ahead") directly into instantaneous constraints on the control inputs (like "do not accelerate past $a_{max}$").

At each time step, the safety filter solves a simple optimization problem:

$$\min_{u} \| u - u_{nom} \|^2$$ $$\text{subject to } \text{CBF constraints}$$

Because this optimization problem is a Quadratic Program with linear constraints, it can be solved analytically or via highly optimized numerical solvers in microseconds.

Wei Xiao et al. leverage this in Decentralized Optimal Control in Multi-lane Merging for Connected and Automated Vehicles, where an analytical optimal controller minimizes travel time and fuel consumption, while a secondary CBF layer maps collision-avoidance constraints onto acceleration limits. Similarly, the authors of Decentralized Time and Energy-Optimal Control of Connected and Automated Vehicles in a Roundabout use an analytical unconstrained optimal control stage to calculate an ideal path, paired with a real-time CBF tracking stage to guarantee collision avoidance without requiring heavy centralized computing.

This concept is extended to complex geometric environments by Minnan Zhou et al. in Control Strategies for Pursuit-Evasion Under Occlusion Using Visibility and Safety Barrier Functions. They combine a high-level kinodynamic planner that anticipates future occlusions with a low-level QP filter that modifies control signals to strictly satisfy visibility and collision constraints, handling non-smooth environmental geometry in real time.


Robustness to High-Level Failures and Uncertainty

A major advantage of this decoupled architecture is its inherent fault tolerance. Because the safety filter is mathematically independent of the performance layer, the system remains safe even if the high-level planner fails, encounters a software bug, or receives corrupted data.

In Distributed bilayered control for transient frequency safety and system stability in power grids, Jorge Cortes et al. show that a two-layer distributed control strategy keeps power grid frequencies safe during disturbances even if the predictive optimization component receives inaccurate data or fails to compute a solution entirely. The fast, real-time safety layer simply overrides or supplements the slower planning process.

This decoupling is equally valuable when filtering uninterpretable or black-box planners, such as deep neural networks:


Multi-Horizon Planning and Dynamic Environments

When navigating dynamic environments, the safety filter can be paired with predictive methods to prevent the system from becoming "trapped" by its own short-sightedness.

As Junwoo Jang demonstrates in Social Zone as a Barrier Function for Socially-Compliant Robot Navigation, combining a short-horizon safety filter with a longer-horizon trajectory planner (like MPC) ensures computational efficiency while maintaining robustness against the inherent uncertainty of human movement. The long-term planner charts a socially compliant path, while the high-frequency safety filter acts as an immediate safeguard for the robot's social zone.

Similarly, Alejandro Gonzalez-Garcia shows in Safe Motion Planning and Control Using Predictive and Adaptive Barrier Methods for Autonomous Surface Vessels that separating long-term trajectory planning from high-frequency safety filtering allows autonomous surface vessels to navigate narrow canals. By using a predictive solver for trajectory generation and a reactive High-Order CBF filter for motor commands, the system avoids the prohibitive computational cost of continuous non-linear optimization while maintaining strict safety guarantees.

In A Barrier-Certified Optimal Coordination Framework for Connected and Automated Vehicles, Andreas A. Malikopoulos formalizes this into a three-layer control hierarchy. By isolating the optimization of efficiency from the enforcement of safety constraints, the system coordinates vehicles through signal-free intersections, ensuring safety reactively even when physical forces like aerodynamic drag cause vehicles to deviate from their idealized paths.


Beyond Trajectories: Resource and Parameter Optimization

The utility of decoupling safety from optimization extends beyond spatial path planning into resource management and online system tuning.

Opportunistic Intermittent Control

In resource-constrained systems, computing control inputs at every single clock cycle is wasteful. Chao Huang et al. introduce a framework in Opportunistic Intermittent Control with Safety Guarantees for Autonomous Systems where a high-level decision layer determines whether to skip control computation and actuation to save energy. Meanwhile, a lower-level safety monitor ensures the system never exits a pre-defined safe state space, reducing computation by up to 60% without compromising safety.

Similarly, Pio Ong et al. show in Hierarchical Event-Triggered Systems: Safe Learning of Quasi-Optimal Deadline Policies that a hierarchical structure can decouple safety guarantees from resource optimization objectives. A lower layer ensures system stability, allowing a higher layer to focus entirely on learning optimal "deadlines" for control updates to minimize communication and power consumption.

Safe Parameter Tuning

When a controller's parameters need to be tuned online to adapt to changing environments, the tuning process itself can risk instability.

[ High-Level Black-Box Optimizer ]  --> Iteratively adjusts controller parameters
                                               ^
                                               | Evaluates performance
                                               |
[ Low-Level Safety Filter (QP/CBF) ] --> Enforces immediate safety constraints
                                               |
                                               v
                                    [ Physical System ]

To solve this, Ke Li et al. propose the CBF-SB2O framework in Optimal Parameter Adaptation for Safety-Critical Control via Safe Barrier Bayesian Optimization. This architecture uses a nested control loop: a higher-level black-box optimizer iteratively adjusts the controller's parameters based on performance, while a lower-level quadratic program handles immediate safety filtering via control barrier functions. This ensures a 100% safety record during the active learning and optimization process.

Summary

By separating the complex problem of optimal control into a high-level performance layer and a low-level safety filter, modern autonomous systems bypass the computational bottlenecks of traditional constrained optimization. The high-level layer is free to use advanced planning, learning, or human input over long horizons, while the low-level filter leverages the mathematical efficiency of Control Barrier Functions to guarantee safety in real time.

Key Foundational Work

Bridging the Gap between Optimal Trajectory Planning and Safety-Critical Control with Applications to Autonomous Vehicles (2020) — contributed 2 concept elements to this direction.
Distributed bilayered control for transient frequency safety and system stability in power grids (2019) — contributed 1 concept elements to this direction.
Decentralized Optimal Control in Multi-lane Merging for Connected and Automated Vehicles (2020) — contributed 1 concept elements to this direction.
History & citationVersion 1 · 2026-10-04

Current · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_hierarchical_control_architecture_safety_95da0c0c,
  title = {hierarchical control architecture (safety-filtered optimal control)},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/hierarchical-control-architecture-safety-filtered-optimal-control/rdr_95da0c0c182142b8b4697c39424e6899},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-12-01},
}

This exact version (version 1, frozen text):

@misc{lacuna_hierarchical_control_architecture_safety_95da0c0c_v1,
  title = {hierarchical control architecture (safety-filtered optimal control)},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/hierarchical-control-architecture-safety-filtered-optimal-control/rdr_95da0c0c182142b8b4697c39424e6899/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-12-01},
}
About

These directions overlap with this one through shared papers.

See something wrong? Report a mistake