A robot trained in simulation usually fails on real hardware because the simulator's physics are slightly wrong. The standard fix, domain randomization, trains one policy on many simulators whose frictions, masses and delays are drawn at random, hoping reality looks like one more random draw. This has a cost. One policy must work under every draw at once, so it learns timid, hedged behavior, and in tasks where the only reward is final success it may never succeed often enough to learn at all.
We propose a different arrangement. Split the randomization range into slices. Train a small library of specialist policies, each on a narrow slice, where it is easier to stumble onto success. In simulation, where the physics parameters are known, measure how every specialist would fare under every slice. At deployment, pick the action at each step whose worst plausible outcome, across the physics the robot might be in, is best among all specialists. The selection rule is generalized policy improvement, a known way to combine a library of policies so the result is at least as good as each member. Here it is turned to vary over physics, not only over reward.
Core Claim
Generalized policy improvement (GPI) takes base policies $\pi_1,\dots,\pi_n$ with known action values $Q^{\pi_i}$ and acts by $\arg\max_a \max_i Q^{\pi_i}(s,a)$. It is guaranteed to do no worse than any single base policy. The usual tool for computing these values across tasks is successor features. These record the expected discounted sum of task-relevant features $\phi(s,a)$ a policy will accumulate, written $\psi^\pi(s,a)$, so that the value for any reward $r=\phi^\top w$ is just $\psi^\pi(s,a)^\top w$.
Every GPI result in the file assumes the physics are fixed and only the reward weights $w$ change. This holds for constrained bounds (Constrained GPI for Zero-Shot Transfer in Reinforcement Learning), ensemble pessimism (Generalized policy improvement for efficient and robust multi-objective reinforcement learning), model lookahead (Multi-Step Generalized Policy Improvement by Leveraging Approximate Models), divergence-corrected composition (Entropic Policy Composition with Generalized Policy Improvement and Divergence Correction) and behavior bases (Constructing an Optimal Behavior Basis for the Option Keyboard, Proto Successor Measure). The divergence-correction paper names non-stationary dynamics as an open problem.
We make the successor features depend explicitly on the physics parameters $\xi$, written $\psi^{\pi_i}(s,a,\xi)$. The simulator knows $\xi$ during training, so these quantities can be learned there. At deployment, $\xi$ is unknown and is replaced by a belief $b_t$ estimated from the robot's recent history. The deployed rule is
$$a_t=\arg\max_a\ \max_i\ \mathrm{CVaR}^{\alpha}_{\xi\sim b_t}\big[\psi^{\pi_i}(s_t,a,\xi)^\top w\big],$$
where $\mathrm{CVaR}^{\alpha}$ is the mean of the worst $\alpha$ fraction of outcomes under the belief and $w$ encodes the task.
We claim three things. First, this rule is less conservative than a single wide-randomization policy at equal robustness, because specialists can be precise within their slice. Second, it eases sparse-reward exploration. Success found by one specialist in an easy slice becomes usable in hard slices whenever that specialist's measured value there is high, so the library's coverage of success grows faster than any one wide-randomization learner's. We call this cross-slice success propagation. Third, because the values are linear in $w$, new sparse tasks built from the same success indicators transfer without retraining, which a single randomized policy cannot do.
The per-step GPI guarantee holds exactly for each fixed $\xi$. The guarantee we can hope to prove under an unknown $\xi$ is weaker. If the true $\xi$ lies in the belief's support and the uncertainty is "rectangular" (adversarial per step), the robust rule does no worse than the best specialist's worst-case value. Proving or refuting this bound, and measuring how much it loosens when the belief is wrong, is part of the work, not an assumption.
Research Program
The task features $\phi$ are sparse stage indicators: object grasped, object lifted, object at target, object inserted. A sparse task is a weight vector over these indicators. The randomization space covers friction, object mass, damping, actuator latency and controller gains, partitioned into $K$ slices.
Training the library. Each specialist is trained on its slice with a sparse terminal reward and a random network distillation bonus. That bonus rewards visiting states a fixed random network's output is hard to predict, which is the standard curiosity baseline used in Uncertainty-Guided Exploration and Stable Planning for Sparse-Reward Manipulation from Limited Demonstrations.
Learning the cross-physics values. A shared network $\psi(s,a,\xi,i)$ is trained by temporal-difference learning on rollouts of every specialist under parameters sampled from every slice. These rollouts are only for evaluation, so they cost simulator time, not learning instability.
Propagating success. When a specialist first succeeds, its trajectory start states are replayed under other slices, and $\psi$ for the other specialists is updated there. This is the explicit cross-slice propagation step. It echoes the finding that keeping rare successes improves sparse-reward learning by 108% on average (Generalized Policy Improvement Algorithms with Theoretically Supported Sample Reuse). That work reuses successes across time within one task; we reuse them across physics.
Estimating physics at deployment. A belief network is trained in simulation to map a short observation-action history to a distribution over $\xi$. Its outputs are inflated toward the prior when they disagree, to hedge against reality falling outside the randomization range.
Guarding against extrapolation. Two GPI safeguards are reused. Values are clipped with the bounds of Constrained GPI, which fired up to 46% of the time in that paper's novel-task transfers. The lower-confidence ensemble of uGPI handles approximation error. Both are extended so the bounds are computed per $\xi$.
The file's open problems shape the design in two places. Contact discontinuities defeat action transformers, which Reinforced Grounded Action Transformation needs real data to train. We avoid that dependency entirely. State-entropy exploration is easily inflated by unstable physics, the noisy-TV concern raised in Beyond Noisy-TVs and the tension noted around APS. We therefore keep each specialist's exploration inside a narrow slice, where physics-induced spread is small, rather than adding an entropy bonus over the full range.
Baselines
Naive reference. The do-nothing reference is a single SAC policy with a random network distillation bonus, trained at nominal simulator parameters with no randomization and deployed on shifted physics. It tells us how large the transfer gap actually is in our test bed. If this policy is not hurt by the shift, the benchmark is too easy and we widen the shift.
Wide-randomization policy. This is the same learner trained over the full randomization range, with the same total simulator steps as our entire library plus its evaluation rollouts. It is the conventional recipe exemplified by Sim-to-Real: Learning Agile Locomotion For Quadruped Robots. A curriculum variant follows Active Domain Randomization, which adapts which parameters are sampled.
History-conditioned universal policy. This is the strongest competitor, and we have no citation for it in the file. It is one policy trained across the full randomization range that takes the same observation-action history our belief network sees. In principle it can learn whatever adaptive behavior our composition produces. It receives the identical history encoder, the identical simulator budget, and the same hyperparameter search (equal number of trials).
Fixed-physics GPI. This is successor-feature GPI trained under wide randomization while ignoring $\xi$, as in the cited GPI work, with uGPI and CGPI safeguards. It shows whether conditioning on physics matters.
Structured-action and demonstration methods. MAPLE's primitive action space (Augmenting Reinforcement Learning with Behavior Primitives) is used as a shared action space in one condition, applied to every method. In that paper, MAPLE reports 90% average simulated success across eight robosuite tasks versus 19% for atomic-action SAC, and 93% and 83% real success on Stacking and Cleanup. QUEST is the demonstration-based reference (Uncertainty-Guided Exploration and Stable Planning). It reports 62% average zero-shot real success on five Franka tasks versus 32% for the prior best, using ten demonstrations. We report QUEST separately because it uses demonstrations, which our method does not.
Ablations. Three ablations isolate the key ingredient. A per-episode expert selector picks one specialist from the belief and commits to it, removing per-step recombination. Mean aggregation replaces the worst-case aggregate. Setting $K=1$ collapses the library to wide randomization. A fourth ablation disables cross-slice success propagation.
What counts as winning. Beating the strongest baseline means higher success on held-out physics than the history-conditioned universal policy at matched compute, with non-overlapping confidence intervals over at least five seeds. Beating the per-episode selector by a clear margin is what would justify per-step GPI.
Why not just…?
Why not just train one history-conditioned policy with wide randomization? This is the real threat. Such a policy can implicitly identify the physics and adapt, and nothing in the file rules it out. Our proposal has two structural advantages it lacks. Under sparse rewards, a wide-range learner must discover success while the physics keep changing under it, which is exactly where flat learners collapse (19% versus 90% in MAPLE's comparison). Our library also transfers to new weightings of the stage indicators with no retraining. We test both directly. If the universal policy matches us on time-to-first-success and on held-out physics, and only loses on new-task transfer, we will report the method as a task-transfer tool rather than a robustness tool.
Why not just pick the best specialist once per episode? A mixture of experts with an identification step is simpler and avoids any GPI theory. It fails when no single specialist suits the true physics throughout the episode. Examples are physics between slice centers, or stages that need different behavior, such as precise grasping followed by forceful insertion. The per-episode selector ablation measures exactly this. If it ties GPI, per-step composition is unnecessary and we will say so.
Why not just calibrate the simulator with real data? Grounded action transformation does close gaps on dense-reward locomotion (RGAT), but it needs repeated hardware rollouts and struggles with stick-slip contact. Our setting is zero real interaction. The two are complementary, and a calibrated simulator could simply narrow our belief prior.
Why not just add demonstrations, as QUEST does? Demonstrations largely remove the exploration problem but must be collected for each task. QUEST also depends on careful visual calibration and retrains for each task. We treat demonstrations as an orthogonal add-on and compare against QUEST only as a reference point.
Proposed Experiments
Test beds. Experiments use robosuite (Lift, Stack, PickPlace, peg insertion), ManiSkill3 manipulation tasks, and FetchPush and FetchPickAndPlace. All use sparse indicator rewards and no demonstrations, with both atomic and MAPLE-primitive action spaces.
Gap protocol. Training randomizes within a range. Testing uses three regimes: in-range physics, out-of-range physics at 1.5 to 2 times the range, and unmodeled effects such as added latency, gear backlash and a different contact solver setting. The unmodeled condition stands in for the reality gap. A Franka arm deployment on Stack and peg insertion is the final stage if simulation results warrant it.
Metrics. We measure success rate per regime, simulator steps to first success in each slice, zero-shot success on held-out indicator weightings, and the fraction of steps where the selected specialist switches.
Decisive checks. Four results would settle the claims. First, cross-slice propagation should show up as earlier first-success in the hardest slices than either the wide-randomization learner or the library with propagation disabled. Second, on out-of-range and unmodeled physics, worst-case aggregation should degrade more gracefully than mean aggregation and than the universal policy. Third, per-step GPI should beat per-episode selection, most visibly on multi-stage tasks. Fourth, measured regret against an oracle given the true $\xi$ should stay within the bound we derive under rectangular uncertainty. If it does not, we will characterize where the bound breaks.
If none of the first three gaps appears, the honest conclusion is that hidden-physics adaptation is better learned end to end, and that GPI's value here is limited to reward transfer.
References
- Constrained GPI for Zero-Shot Transfer in Reinforcement Learning
- Generalized policy improvement for efficient and robust multi-objective reinforcement learning
- Multi-Step Generalized Policy Improvement by Leveraging Approximate Models
- Entropic Policy Composition with Generalized Policy Improvement and Divergence Correction.
- Constructing an Optimal Behavior Basis for the Option Keyboard
- Proto Successor Measure: Representing the Behavior Space of an RL Agent
- Uncertainty-Guided Exploration and Stable Planning for Sparse-Reward Manipulation from Limited Demonstrations
- Generalized Policy Improvement Algorithms With Theoretically Supported Sample Reuse
- Reinforced Grounded Action Transformation for Sim-to-Real Transfer
- Beyond Noisy-TVs: Noise-Robust Exploration Via Learning Progress Monitoring
- APS: Active Pretraining with Successor Features
- Sim-to-Real: Learning Agile Locomotion For Quadruped Robots
- Active Domain Randomization
- Augmenting Reinforcement Learning with Behavior Primitives for Diverse Manipulation Tasks