A reinforcement learning (RL) agent learning to navigate a robot is often wrapped in a safety shield: a filter that sits between the policy and the motors and overrides any action predicted to lead toward a collision. Shields keep training safe. They also create a problem that roboticists have known for decades under another name. A shield that pushes the robot away from obstacles while the policy pulls it toward the goal is an artificial potential field, a controller in which the robot slides down a virtual energy landscape with the goal as a valley and obstacles as hills. Potential fields get stuck wherever the pull and push cancel, for example inside a U-shaped wall or in front of a narrow door. Shielded RL agents freeze in the same places, and they waste their exploration budget there.
We propose that the shield itself should resolve these deadlocks. When it must correct an action, it should redirect the action along the boundary of the safe region instead of only pushing it backward, and it should commit to one direction of travel in a way that noisy real sensors cannot flip back and forth. The claim is narrow and testable. Most shield-induced freezing in cluttered navigation comes from two things: the absence of a tangential component in the correction, and sign chattering in that component caused by sensor noise. A shield that adds a committed tangential component should cut stall time and environment steps-to-competence substantially, with no increase in safety violations, and the gain should grow as sensor noise grows.
Why this gap exists
Four bodies of work each hold part of the answer and miss the rest. Shield-based safe RL (Shields for Safe Reinforcement Learning, Alshiekh et al.) and its perception-driven descendant Sim-to-Lab-to-Real block or override unsafe actions. The latter learns a Hamilton-Jacobi reachability safety value from ego-vision and hands control to a backup policy when that value crosses a threshold. It reaches about 76.7% success and 86.7% safety on a physical quadruped. The file reports that its backup policy freezes or cycles around concave obstacles and that its threshold needs careful manual tuning. That evidence motivates this proposal: the shield prevents collisions but has no notion of force cancellation. SOOPER falls back to a safe prior whenever uncertainty rises and achieves zero training violations. The same structure means U-shaped obstacles trigger repeated retreats, and sensor dropouts inflate uncertainty and trigger premature fallbacks.
The potential-field literature has the missing ingredient but not the setting. ROAM rotates the robot's velocity into the tangent space of obstacle boundaries, so the only equilibria left are unstable saddle points. No Minima, No Collisions embeds this kind of modulation into a control barrier function quadratic program (a per-timestep optimization that keeps the robot inside a safe set). It reports 100% success on concave traps where a standard barrier-function filter scores 0%. Both supply our method's core geometric idea. Both assume clean analytic geometry: star-shaped obstacle decompositions or surface geodesics. Neither learns. The hybrid potential-field/wall-follower escapes traps by switching into wall-following using hit/leave points, which is essentially a classical Bug algorithm. Its switch is either hand-written or behavior-cloned from 1,800 demonstrations, and the file notes sensitivity to perception noise at hit/leave detection on hardware.
The closest prior work is Escaping Offline Pessimism. It proves that purely gradient-based shaping makes "parking" at the safety boundary inevitable, and it adds a rotational term $W\nabla U$ with skew-symmetric $W$ to make the agent orbit the boundary. That paper motivates our tangential correction and constrains it in two ways it acknowledges itself. It works through reward shaping, so it does not change what the shield executes during training. It also assumes a noise-free uncertainty oracle and a fixed $W$, which is underdetermined above two dimensions. We move the rotation into the shield, choose the tangent from the policy's own intent instead of a fixed matrix, and handle noise explicitly.
Core Mechanism
Let $h(o)$ be a learned safety value computed from the current observation $o$, positive when safe, trained as in Sim-to-Lab-to-Real. Let $n = \nabla_x h / \|\nabla_x h\|$ be its normalized gradient with respect to robot position, estimated as an ensemble mean and averaged over a short time window. Given the policy's proposed velocity $a$, a standard barrier-style shield removes the component of $a$ that heads too fast toward lower safety. We call this projection $\Pi(a)$. Our shield adds a tangential term:
$$a_{\text{sh}} = \Pi(a) + \beta\, \mathbb{1}[\text{intervening}]\; t, \qquad t = \begin{cases} P_T a / \|P_T a\| & \text{if } \|P_T a\| > \delta \\ \sigma\, t_{\text{prev}} & \text{otherwise.}\end{cases}$$
Here $P_T = I - nn^\top$ projects onto the tangent plane of the safety boundary, $\beta$ is the circulation speed, $\delta$ is a small threshold, and $\sigma \in \{-1, +1\}$ is a stored commitment bit. Taking the tangent from the policy's own proposal removes the high-dimensional ambiguity raised in Escaping Offline Pessimism: the circulation direction follows what the agent wanted to do. The ambiguity returns only when $\|P_T a\| \approx 0$, meaning the proposed action points straight into the obstacle. That is exactly the condition for a potential-field local minimum. In that case, and only then, the shield falls back on the committed direction.
The commitment bit is where sensor noise enters. Under LiDAR range noise and dropouts, $P_T a$ near a symmetric trap has a random sign at every step. An uncommitted shield chatters left-right and stays in place, so noise turns a saddle point back into an effective trap. We hold $\sigma$ fixed until a leave condition fires: the robot's distance to the goal drops below its value at the "hit" point, or the safety value's gradient direction has rotated by more than a set angle. This borrows the hit/leave logic of the hybrid wall-follower. It applies that logic to learned safety-value level sets instead of raw wall detections, and only inside the shield's correction, not as a separate control mode.
The initial value of $\sigma$ is the one place learning adds something beyond the Bug algorithm. We train a small head on the shield's own logged escapes to predict which direction reaches the goal sooner. It is trained on data the RL agent already collects, with no demonstrations.
Research Program
The first stage is diagnostic and must succeed before the method is worth building. We instrument existing shields, namely the Sim-to-Lab-to-Real-style value-threshold backup, a barrier-function projection shield, and a SOOPER-style prior fallback, and measure where training time goes. The main measurement is stall fraction: the share of training steps in which the robot is not at the goal, is moving below a speed threshold, and is under shield intervention. We sweep sensor noise models of the kind documented in Pokle et al. (range noise, beam dropout, latency) from zero upward. The hypothesis predicts two things. Stall time should concentrate in concave and narrow-passage geometry, and it should rise with noise even when collision counts do not. If stall fraction is small or unrelated to geometry, the premise is wrong and we stop.
The second stage builds the circulating shield on top of the best of these shields and trains Soft Actor-Critic agents behind it. The third stage tests whether improvements in exploration efficiency carry over to deployment under realistic noise, including a hardware run on a small ground robot in a BARN-style cardboard course if simulation results warrant it.
Baselines
The naive reference point is an unshielded Soft Actor-Critic agent with collision penalties, trained under the same sensor noise randomization. This is the setup behind the BARN Challenge's DRL-VO entry, which ranked first in simulation (score 0.2415) and then succeeded in only 2 of 9 physical trials (BARN Challenge). It anchors the safety-violation and sim-to-real comparisons.
The strongest competitor on this question is a reimplemented Sim-to-Lab-to-Real shield: a learned reachability safety value, a backup policy, and a threshold-triggered switch. It is the only prior method in the file that combines a learned shield, safe exploration, and real-sensor deployment, and its reported 76.7% success and 86.7% safety are our hardware reference. We do not expect our hardware setup to match theirs exactly, so the fair comparison is our reimplementation running on the same simulator, noise models, network sizes, environment-step budget, and threshold-tuning budget as our method. Beating it means lower stall fraction and fewer environment steps to reach a fixed success rate on BARN worlds, at equal or lower in-training violations. A gain in success rate with more violations does not count.
The strongest geometric competitor is onM-MCBF-QP from No Minima, No Collisions used as the shield, with obstacle geometry estimated online from the same noisy LiDAR. Its reported 100% concave-trap success was obtained with clean geometry. Running it on perceived geometry tests whether our learned, noise-tolerant tangent beats an analytic tangent once perception is imperfect. We also include SOOPER (Safe Exploration via Policy Priors) as the strongest zero-violation exploration method, with a hand-designed conservative prior.
Two ablations isolate the key ingredients. The first is a tangential shield with no commitment bit, which recomputes the sign every step. It tests whether noise-induced chattering is the mechanism. The second keeps the commitment bit but chooses its initial value randomly instead of with the learned head. It tests whether learning contributes anything beyond Bug-style hysteresis. All methods get the same hyperparameter-search budget, measured in training runs.
Why not just…?
Why not just add random dithering to the shield's output to knock the robot off saddle points? ROAM itself turns minima into unstable saddles that rely on small perturbations to escape, and the file notes that structured disturbances can stabilize such saddles. Zero-mean dithering inside a deep symmetric pocket mostly produces jitter, because the expected tangential displacement is zero. It is still cheap and plausible, so we include a tuned-dither shield as an extra baseline. If it matches the uncommitted tangential ablation, the useful part of our method is the commitment, and we will report that.
Why not just run a global planner on an occupancy map and let it steer the agent out of traps? This is the most serious threat. Global anchoring is how Pokle et al. beat the ROS navigation stack (84% vs 66% on unseen maps), and a classical hierarchical stack won the physical BARN finals 8 of 9 (BARN Challenge). A planner, however, needs a map that is partly wrong under noise. The file's reachability-pruning concern applies directly: a narrow passage misread as blocked is permanently discarded. Our target is the in-training exploration of a learning agent, before such a map exists. We will run a planner-anchored agent, an incrementally mapped A* planner supplying waypoints to the same shielded policy, with the same noise. If it matches our method on stall fraction and sample efficiency, the honest conclusion is that circulation is only worth it in mapless or map-unreliable regimes, and we will scope the claim accordingly.
Why not just use Lagrangian constrained RL and let the agent learn to avoid traps? Lagrangian methods converged three to five times slower than reachability-pruned methods in Feasible Reachable Policy Iteration. They also allow violations during training, and they suffer from the safety paradox described in Feasible Dual Policy Iteration, where getting safer starves the agent of the data it needs to estimate safety. A SAC-Lagrangian agent with matched budget is included so this can be checked directly instead of assumed.
Why not just use the hybrid potential-field/wall-follower switch? Its rule-based switch is close to our commitment logic, and we say so. The differences are that ours operates on a learned safety value instead of raw wall detection, sits inside a shield that a learning agent explores behind, and needs no demonstrations. We run its rule-based switch as a shield variant. If it matches us, the contribution reduces to showing that Bug-style switching transfers to learned shields, which is still useful but smaller.
Proposed Experiments
The main benchmark is the 300 BARN Gazebo worlds (BARN Challenge), which are full of narrow passages, plus Safety-Gymnasium Point and Car goal tasks (Safety Gymnasium) with added concave hazard layouts. We use the corrected LiDAR sensor and inject range noise, dropout, and latency at five levels. Training is held out by BARN difficulty level, and we test on the hardest third.
The metrics are stall fraction during training, environment steps to reach 70% success, cumulative training violations, final success rate, and time to goal. All are reported with confidence intervals over at least five seeds.
The decisive check is a two-factor result. The gap between our shield and the uncommitted tangential ablation should be near zero at zero noise and grow with noise. The gap between our shield and the reachability-threshold baseline should appear mainly in concave and narrow-passage worlds, not open ones. If both patterns appear without an increase in violations, the claim holds. If the commitment adds nothing under noise, or the planner-anchored baseline erases the gain, the paper becomes a negative result about where shield deadlocks actually come from. That result would still be worth publishing given the diagnostic stage.
A hardware run on a BARN-style cardboard course, comparing our shield to the reimplemented Sim-to-Lab-to-Real shield over equal trial counts, is the final transfer check. We report it only as supporting evidence because the number of trials will be small.
References
- Shields for Safe Reinforcement Learning
- Safe Reinforcement Learning via Shielding
- Sim-to-Lab-to-Real: Safe reinforcement learning with shielding and generalization guarantees
- Safe Exploration via Policy Priors
- Avoidance of Concave Obstacles Through Rotation of Nonlinear Dynamics
- No Minima, No Collisions: Combining Modulation and Control Barrier Function Strategies for Feasible Dynamical Collision Avoidance
- Escaping Local Minima: Hybrid Artificial Potential Field with Wall-Follower for Decentralized Multi-Robot Navigation
- Escaping Offline Pessimism: Vector-Field Reward Shaping for Safe Frontier Exploration
- Deep Local Trajectory Replanning and Control for Robot Navigation
- Autonomous Ground Navigation in Highly Constrained Spaces: Lessons learned from The BARN Challenge at ICRA 2022
- Feasible Reachable Policy Iteration
- Breaking Safety Paradox with Feasible Dual Policy Iteration
- Safety Gymnasium: A Unified Safe Reinforcement Learning Benchmark