NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Decoupled Safety Layers for Modular Reinforcement Learning

This direction is merged into another direction: safe exploration. Its last version stays readable and citable here.

Version 1 of 1129 papers166 conceptsfrozen 2026-10-04

In traditional reinforcement learning (RL), safety is often treated as a component of the reward function. We penalize an agent for crashing or violating a constraint, hoping it learns to avoid those behaviors while seeking goals. However, this "entangled" approach creates a fundamental tension: the agent must fail repeatedly to learn what is dangerous, and the resulting policy is often over-conservative or brittle when the environment changes.

A growing body of research proposes a different architecture: decoupling safety from task performance. Instead of baking safety into the agent's internal logic, researchers are developing modular "safety layers," "shields," or "guardrails" that sit between the agent and the environment.

The Guardrail Intuition

Imagine a student driver (the RL agent) and an instructor with a dual-control brake (the safety layer). The student focuses entirely on navigating to a destination (the reward). The instructor doesn't care about the destination; they only care about preventing a collision. If the student attempts a dangerous turn, the instructor intervenes, overrides the action, and projects it back into a "safe" space.

This modularity is the core mechanism in frameworks like MBHI by Yunkun Xu and colleagues, where a "Blocker" imitates human judgment to foresee and intercept catastrophic failures before they happen Look Before You Leap: Safe Model-Based Reinforcement Learning with Human Intervention. By separating these concerns, the agent can explore aggressively within a "safe bubble" maintained by the external layer.

Interception and Projection

How does a safety layer actually modify an agent's behavior? The most common mechanism is action projection. When an agent selects an action, the safety layer evaluates it against a model of the environment's physics or constraints. If the action is deemed risky, the layer solves a small optimization problem to find the "closest" safe action to the agent's original intent.

Yize Chen and the team behind SAVER demonstrated this in power grid management, using a "safety projection layer" to ensure voltage stays within bounds regardless of the RL agent's suggestions SAVER: Safe Learning-Based Controller for Real-Time Voltage Regulation. Similarly, Zhehua Zhou introduced GenSafe, a plug-and-play enhancer that uses a simplified map of environmental risks to provide immediate action correction without altering the underlying policy GenSafe: A Generalizable Safety Enhancer for Safe Reinforcement Learning Algorithms Based on Reduced Order Markov Decision Process Model.

Formalizing the Shield

To make these layers reliable, researchers often draw from control theory, specifically Control Barrier Functions (CBFs) and Reachability Analysis. These mathematical tools define a "safe set" of states from which the system can always recover.

This approach isn't limited to robotics. In the realm of Large Language Models, Pengyuan Li and IBM researchers developed OneShield, which decouples risk detection from policy enforcement to allow for flexible, model-agnostic guardrails OneShield - the Next Generation of LLM Guardrails.

Why Modularity Wins

The primary advantage of decoupling is transferability. In an entangled system, if you change the safety constraints (e.g., a robot moves from a wide hallway to a narrow one), you must retrain the entire agent. In a decoupled system, you simply swap or update the safety layer.

Yousef Emam and Magnus Egerstedt demonstrated that agents trained with modular task-safety separation achieve significantly higher success rates when moved to novel environments with different obstacle layouts Safe Model-Based Reinforcement Learning Using Robust Control Barrier Functions. Because the agent's "value function" only cares about the task, it remains valid even as the "safety barrier" changes.

Furthermore, this separation allows for heterogeneous learning. We can use a high-capacity neural network for the complex task policy while using a verifiable, symbolic model for the safety shield, as seen in the SPICE framework by Greg Anderson Guiding Safe Exploration with Weakest Preconditions. This gives us the best of both worlds: the power of deep learning and the guarantees of formal methods.

Papers in this version

Showing 60 of 129 papers.

History & citationVersion 1 · 2026-10-04

Merged into another direction · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_decoupled_safety_layers_for_modular_rein_c5aa7f79,
  title = {Decoupled Safety Layers for Modular Reinforcement Learning},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/decoupled-safety-layers-for-modular-reinforcement-learning/rdr_c5aa7f7961ec465fa7ecfed18269f10f},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-28},
}

This exact version (version 1, frozen text):

@misc{lacuna_decoupled_safety_layers_for_modular_rein_c5aa7f79_v1,
  title = {Decoupled Safety Layers for Modular Reinforcement Learning},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/decoupled-safety-layers-for-modular-reinforcement-learning/rdr_c5aa7f7961ec465fa7ecfed18269f10f/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-28},
}