Robots trained in simulation are usually made robust by domain randomization: during training, the simulator's physical parameters (masses, friction, motor strength, delays) are resampled every episode, so the policy cannot overfit to one wrong model and has a chance of working on the real machine without fine-tuning. What randomization does not give is a hard guarantee. The policy is rewarded for staying safe, but nothing stops it from commanding a torque the motor cannot deliver, or a foot force that makes the foot slip, when the real robot's physics differs from simulation. The standard fix is a safety filter, a small computation between policy and motors that moves any unsafe action back to a safe one. Recent optimization proxies make such filters fast. These are neural networks trained to output solutions of constrained problems, paired with cheap correction steps that restore exact feasibility. They share one assumption: the constraint is perfectly known. On a robot, the constraint depends on exactly the physical parameters that randomization admits we do not know.
We propose a safety filter that is honest about this uncertainty and has a constant, predictable runtime. A recurrent network reads the recent state history and outputs a belief over the robot's physical parameters. We draw $K$ plausible parameter settings from that belief. An action counts as safe only if it satisfies the constraints under all $K$ of them. A second network predicts a point well inside this "safe for all plausible physics" set. The policy's action is then pulled toward that interior point by a fixed number of halving steps, which takes the same time on every control cycle. The novelty is the combination. The filter's constraint set shrinks or grows with the robot's evolving estimate of its own physics. It never calls an iterative solver whose runtime varies. And we test it where both properties matter: zero-shot transfer under randomized dynamics at control rates up to 1 kHz.
Core Claim
The feasibility-restoring step we build on is Bisection Projection. Efficient Bisection Projection trains an "interior point" network to predict a point deep inside the feasible set, using a loss that pushes the point toward the set's Chebyshev center, the point farthest from any boundary. Any infeasible prediction is then moved along the straight line toward that interior point by binary search, which needs only a yes/no membership test. The paper reports 100% feasibility and, for example, about 0.016 s versus about 400 s for iterative projection on QCQP problems. Because the method needs only a membership test, it extends naturally to uncertain physics: the robust set is an intersection of $K$ constraint sets, and testing membership of an intersection just means testing each set, which parallelizes across a GPU or SIMD lanes. Formally, with $a$ the action, $s$ the state, $h$ the observation history, $g$ the physical constraint function, and $\theta_1,\dots,\theta_K$ samples from the learned belief $q_\phi(\theta \mid h)$, the filter enforces
$$ \mathcal{A}_K(s,h) = \{\, a : g(a; s, \theta_k) \le 0 \ \text{for } k = 1,\dots,K \,\}. $$
Given the interior point $a_0 = \mathrm{IP}_\psi(s,h)$ and the policy's action $\hat a$, $D$ bisection steps along the segment from $a_0$ to $\hat a$ return a certified member of $\mathcal{A}_K$. The result lies within $2^{-D}\lVert \hat a - a_0 \rVert$ of the boundary crossing on that segment, since each step halves the search interval. The worst-case filter cost is therefore exactly one forward pass plus $D \cdot K$ constraint evaluations, and it is known before deployment.
The empirical claim has three parts. The recurrent belief narrows over time, so $\mathcal{A}_K$ is much less conservative than tightening the constraints for the entire randomization range. The true physical parameters stay inside the belief often enough that real constraint violations stay near zero. And the filter's worst-case latency is a small, fixed fraction of the control period. The first part is the one most likely to fail, and our baselines are built to expose it.
Research Program
The work has four pieces.
The belief and interior-point networks. In simulation, the true parameters are known during training, so both networks can be supervised directly. The belief network is a recurrent encoder trained to cover the true $\theta$. We calibrate it for coverage rather than accuracy, because an overconfident belief is the main way the filter becomes unsafe. We motivate recurrence with the finding in Sim-to-Real Transfer of Robotic Control with Dynamics Randomization that an LSTM policy implicitly identifies the dynamics from history. On a real Fetch arm it reached 0.89 puck-pushing success, against 0.67 for a feedforward policy with randomization and 0.51 without. That paper puts the identification inside the policy and enforces nothing. We move identification into the filter's constraint set, so it controls what counts as safe rather than only what is rewarded. The interior-point network is trained with the Chebyshev-center-style loss of Bisection Projection, but on the robust set $\mathcal{A}_K$.
A fallback for a bad interior point. Its predicted point is not guaranteed to lie inside $\mathcal{A}_K$, and a state shift makes this more likely. So we check $a_0$ with the same membership test. If it fails, the filter outputs a pre-designed backup action, such as braking thrust or holding joint positions. Our key reliability metric is how often this fallback fires. Gap 3 in the literature is exactly whether such interior points survive a deforming feasible set, and no prior work has measured this.
Policy training with the filter in the loop. We treat the filter as part of the environment rather than differentiating through it. Safe Reinforcement Learning using Action Projection shows that differentiating through a projection with the implicit function theorem costs 3–12x more training compute. It also shows that the "action aliasing" problem, where many unsafe actions map to the same boundary point, flattens the learning signal. Its remedy is a penalty critic that learns the cumulative cost of filter interventions, and we reuse it. Bisection along a ray still aliases, since every action on one ray beyond the boundary maps to the same point, so this remedy is needed rather than optional.
The constraints themselves. We choose constraints that are not simple boxes, because clipping already handles boxes. For fingertip or foot contact, a friction cone whose width depends on the unknown friction coefficient. For motors, a torque–speed envelope that depends on motor gain and supply voltage. For a quadrotor, a one-step barrier condition requiring that the predicted next state stay outside obstacles, where the prediction depends on mass, drag, and thrust gain. The same program trains in Isaac Gym, which runs thousands of randomized environments on one GPU, up to 700K steps per second on Ant. That throughput makes it affordable to evaluate $K$ scenarios per step during training.
Baselines
Naive reference point. A recurrent policy trained with domain randomization and no filter, in the style of Peng et al. On Fetch puck pushing this reached 0.89 real-world success. It tells us how many violations randomization alone produces.
Soft-penalty randomization. The same policy with constraint violations added to the reward through a tuned Lagrange multiplier. It gets the same number of environment steps and the same hyperparameter search budget as our method. Beating both of these means matching their task return while cutting real and held-out-simulation violations to near zero.
Strongest safety baseline. Differentiable Robust Model Predictive Control (DT-MPC) runs a tube-based model-predictive controller, a planner that re-solves a constrained trajectory problem every step and keeps the system inside an uncertainty "tube." It adapts its safety margins online by gradient descent. The paper reports 76% success on quadrotor navigation through 30 obstacles, against 14% for the non-adaptive tube controller, and a drop in 6-DOF arm safety violations from 56% to 10%. It is the strongest competitor because it adapts to uncertainty and enforces constraints, but it keeps an iterative solver in the loop. We run it on its own quadrotor and arm tasks, with our randomization ranges added and the same disturbance model. Beating it means at least 76% quadrotor success and at most 10% arm violations, with a worst-case per-step filter latency at least ten times below DT-MPC's measured 99.9th-percentile solve time on identical hardware.
Iterative feasibility-seeking filter. FSNet embeds an iterative violation-minimization step, warm-started from the network's prediction, inside the network. It reports near-zero violations on IEEE 30- and 118-bus AC optimal power flow and speedups of 30x to 3,000x over IPOPT and OSQP. We give it the same robust set $\mathcal{A}_K$, so the comparison isolates fixed-depth bisection against variable-iteration minimization.
Ablations. Four ablations isolate the key ingredient. Nominal-parameter bisection uses a single nominal $\theta$ and tests whether being aware of the physics matters at all. Worst-case-tightened bisection draws its scenarios from the full randomization range with no history, and tests whether the history-conditioned belief is doing any work. Oracle-parameter bisection uses the true $\theta$ and gives an upper bound on how much the uncertainty costs in performance. An exact nonlinear projection onto $\mathcal{A}_K$ serves as the optimality reference, ignoring latency.
Why not just…?
Why not just add large penalties for violations and rely on randomization? Penalties make violations less likely but never impossible. FSNet reports that penalty-trained networks leave nonzero hard-constraint violations. Safe Reinforcement Learning using Action Projection shows that intervention-only signals give flat critics. Our soft-penalty baseline measures this directly on hardware-relevant constraints.
Why not just tighten the constraints by the worst case over the whole randomization range and project? This is the real threat. It is simpler, needs no belief network, and is safe whenever the real robot lies inside the range. The answer depends on how conservative it is. The literature notes that overly broad randomization already makes policies timid. And Uncertainty Injection found that set-based robust optimization can underperform even an unoptimized full-power strategy on D2D interference networks. On MIMO downlink, its sample-based alternative reached 8.03 Mbps against 5.41 Mbps for geometric programming. The worst-case-tightened ablation settles the question. If it matches our task return at equal violations, the history-conditioned belief is not worth its complexity, and we would report the simpler filter as the recommendation.
Why not just run an adaptive robust MPC like DT-MPC? If its solve time fits the control period, it may be the better controller. Its runtime varies with the problem, though, and the timing jitter of iterative solvers in high-rate loops is itself unstudied (Gap 2). We therefore compare task success and the full latency distribution, including the tail, rather than the mean alone.
Why not just use FSNet-style iterative correction? It may find better actions than bisection. FSNet notes that it sometimes finds better local minima than traditional solvers. Its iteration count, however, grows exactly when the problem shifts. Measuring its worst-case latency and optimality gap on the same robust set settles which trade-off wins at each control rate.
Proposed Experiments
Simulation. We use three simulated task families: the quadrotor and 6-DOF arm tasks from DT-MPC, a friction-cone-constrained quadruped trotting task in Isaac Gym, and TriFinger cube reorientation. Each is evaluated on in-range randomized parameters and on held-out out-of-range parameters. Metrics are task success or return, per-step and per-episode violation rates, belief coverage (the fraction of steps where the true $\theta$ satisfies all sampled constraints), fallback frequency, and filter latency at the median, the 99.9th percentile, and the maximum. Latency is measured on the embedded CPU class that runs the physical controller.
Hardware. For zero-shot real transfer we use the cloud-hosted Real Robot Challenge TriFinger platform. Its 1 kHz control rate gives a 1 ms budget that makes fixed latency a real requirement. We add physical payload changes to the manipulated object, analogous to the chip-packet test of Peng et al., where the LSTM held 0.91 ± 0.04 success. No reported TriFinger constraint-violation result was found on Lacuna, so the naive and penalty baselines will establish that reference point.
Decisive checks. We run three. First, whether our filter beats worst-case tightening on task return at equal violations on out-of-range parameters. Second, whether belief coverage stays above the rate needed to keep real violations near zero. Third, whether the maximum filter latency on TriFinger stays under a fixed fraction of the 1 ms period while DT-MPC's and FSNet's tails exceed it.
References
- Efficient Bisection Projection to Ensure Neural-Network Solution Feasibility for Optimization over General Set
- Sim-to-Real Transfer of Robotic Control with Dynamics Randomization
- Safe Reinforcement Learning using Action Projection: Safeguard the Policy or the Environment?
- Isaac Gym: High Performance GPU Based Physics Simulation For Robot Learning
- Differentiable Robust Model Predictive Control
- FSNet: Feasibility-Seeking Neural Network for Constrained Optimization with Guarantees
- Uncertainty Injection: A Deep Learning Method for Robust Optimization
- Real Robot Challenge: A Robotics Competition in the Cloud