Domain Randomisation Range Width on CartPole: A Controlled CEM Study of Nominal Cost, Out-of-Range Robustness and Gated Curricula Cobalt-70M Stemma seed corpus https://github.com/mihir-chauhan/research-harness-papers/tree/main/papers/domain-randomisation-range-robustness Abstract—Domain randomisation (DR) trains policies on transfer of a quadruped locomotion policy without it [4]. A dynamics sampled from a range whose width is usually chosen practical question is rarely answered explicitly: how wide by hand. We study, at a deliberately small CPU scale, how the should the randomisation ranges be? Too narrow and the width of that range affects nominal performance and robustness to dynamics shift on CartPole. A 49-parameter MLP is trained policy breaks under shift; too wide and, it is often argued by the cross-entropy method on a batched copy of gymnasium that the policy becomes conservative or fails to learn, so CartPole in which cart mass, pole mass, pole length and force nominal performance suffers (we did not find a source that magnitude are scaled by exp(U (−w, w)); every reported run measures this cost directly). Theory on DR formalises the uses one of 20 fresh seeds and an evaluation protocol written dependence of transfer on the randomisation distribution down before the runs, with shifts up to w = 4. Nominal return sits at the 500-step cap for every width up to w = 3 (498.9 [5], but practitioners still set ranges by hand or adapt at w = 4), so we also measure a continuous nominal state them with real data [6], [7]. cost. Relative to no randomisation (0.024) no width shows a We ask a narrow, falsifiable version of the question in detectable nominal cost, but relative to the best width w = 1.5 a setting cheap enough to run many seeds: on CartPole (0.008) the cost is higher at w = 3 by 0.011 (95% CI [0.004, with a CEM-trained policy, is there a range width beyond 0.019]) and at w = 4 by 0.025 (95% CI [0.014, 0.036]), while return under shifts up to w = 2 stops improving (491.7 at which nominal performance drops faster than robustness w = 1.5, 493.9 at w = 2, 483.9 at w = 4). Return at shifts to shifted dynamics improves? We also compare a simple 3 and 4 keeps improving with training width up to w = 3. A automatic curriculum that widens the range on success, success-gated curriculum capped at w = 1 shows no difference an instance of the curricula surveyed in [8], with fixed from fixed w = 1 (−1.8 (95% CI [−6.9, 3.3])) and is equivalent widths and with simplified ADR-style and EPOpt-style to it within ±25 return units by a paired TOST equivalence test; uncapped it settles at w =2.50, equals fixed w = 1.5 on baselines. shifts up to 2 but has a higher nominal cost. Tuned ADR-style Contributions. (i) A controlled sweep of DR width on and EPOpt-style baselines do not beat fixed DR of similar CartPole with a CEM-trained policy, with a continuous width. In a low-budget regime where fixed w = 3 fails to learn, nominal cost in addition to the capped return, and with the gated curriculum settles at w =0.47 and is not better than in-range and out-of-range robustness reported separately fixed w = 1.5. The results are limited to one task, one learner and one parameterisation of the range. up to shifts of w = 4; (ii) a comparison of fixed widths, Index Terms—domain randomisation, robustness, curricu- a success-gated curriculum (capped and uncapped), an lum, cross-entropy method, CartPole ADR-style and an EPOpt-style baseline, including a low- budget regime in which wide fixed DR is hard to learn; (iii) I. Introduction all of it on fresh seeds with paired intervals and equivalence Domain randomisation trains a policy on many simu- tests. We make no claim beyond this small setting. lated variants of a task so that it tolerates the mismatch II. Related Work to a target system. It was popularised for visual transfer [1] and for dynamics transfer in robot control [2], and it Domain randomisation. Tobin et al. randomise render- was a key ingredient of the dexterous-manipulation system ing to transfer a visual detector to a real robot [1]; Peng et of [3], whose Automatic Domain Randomization widens al. randomise dynamics to transfer a manipulation policy ranges as the policy succeeds. Dynamics randomisation [2]. Xie et al. study sim-to-real transfer for a quadruped is not always needed, however: Xie et al. report direct and find that transfer is possible without dynamics ran- domisation in their case study, which is a reason to ask Cobalt-70M is the codename of an autonomous study, not a person. what randomisation costs [4]. OpenAI et al. introduce Produced by the Stemma autonomous AI research pipeline; the topic Automatic Domain Randomization, which expands the was chosen to cover the field. Every reported number comes from logged runs in the linked repository and every reference was checked ranges when performance at the range boundary is good against arXiv, Crossref, DataCite or OpenAlex. enough [3]; our success-gated curriculum is a much simpler relative of that idea, and our ADR-style baseline is a cap of the first-round design), and uncapped (wmax =1000, simplified boundary-expansion rule in its spirit, not the never reached); ρ = 0 gives an ungated linear schedule. published system. Alghonaim and Johns benchmark visual ADR-style: a range [loi , hii ] on the log-scale of each of the randomisation choices [9]. Chen et al. give a theoretical four parameters, all starting at 0. Half of the environments account of when DR supports sim-to-real transfer [5]. of each iteration are boundary environments in which Robust and adaptive training. EPOpt trains on a one randomly chosen parameter is pinned to one of its model ensemble and focuses on a worst-case fraction of eight boundaries, the others are drawn from the current trajectories [10]; our EPOpt-style baseline applies that ranges. The success of the best candidate on boundary worst-fraction idea to the CEM fitness and is not the environments is buffered per boundary; after two samples published algorithm. Yu et al. combine randomisation the boundary moves out by ∆ if the mean success is with online system identification [11]. Chebotar et al. and at least thi and back in by ∆ if it is at most 0.2. Its DROPO adapt the randomisation distribution using real- reported width train_width_end is the mean absolute world data [6], [7]. boundary. EPOpt-style: fixed width w, but the CEM Curricula. Automatic curriculum learning for deep RL fitness of a candidate is the mean return over its worst is surveyed in [8]. Our curriculum is the simplest member ⌈ϵ · 16⌉ environments instead of over all of them. of that family: a threshold on training success widens a Nominal cost. Because the nominal return saturates at fixed-shape range. We reimplemented all methods in a the cap, we also report cost_nominal: the mean over 500 small CartPole setting; none of the cited methods was steps and 300 nominal episodes of (x/2.4)2 + (ϑ/0.2094)2 run in its original form, and our results say nothing about (position and angle in units of their termination thresh- their performance. olds; at most 2), where steps after the episode has ended count with the maximum value 2. It is 0 for a III. Method perfectly centred, upright pole and lower is better. It is Randomised dynamics. We use a batched numpy an evaluation metric only; no system is trained on it. implementation of the gymnasium CartPole-v1 equa- tions (Euler integration, τ =0.02 s), checked against IV. Experimental Setup gymnasium over 30 steps on a fixed action se- Evaluation. Each trained policy is evaluated on 300 quence (method/check_dynamics.py; logged run in group episodes per level on an RNG stream disjoint from r2_sanity, maximum absolute state difference 3.4 × 10−7 ). training: nominal dynamics and shifts with half-width With nominal parameters θ0 = (mc , mp , ℓ, F ) = (cart w ∈ {0.25, 0.5, 0.75, 1, 1.5, 2, 3, 4}. We report ret_nominal mass, pole mass, pole half-length, force magnitude) the (steps survived, capped at 500) and cost_nominal (Sec- environment parameters are tion III) on nominal dynamics. For shifted dynamics, θi = θ0,i exp(ui ), ui ∼ U (−w, w), i = 1..4, (1) ret_robust is the mean over the six levels up to w = 2 (the primary metric of the first-round design), ret_ood independently per episode, so w is the log-scale half-width the mean at w = 1.5 and 2, and ret_w300 and ret_w400 of the range (w = 0 is the nominal system, w = 1 spans the returns at w = 3 and 4. In-range and out-of-range a factor e±1 ). The return of an episode is the number of robustness are reported separately relative to each run’s steps survived, capped at 500. own final training half-width train_width_end: ret_in is Policy and learner. The policy is a 4-8-1 tanh MLP the mean over the evaluation levels at or below it and (49 parameters) acting through the sign of its output. ret_out the mean over the levels above it (absent when It is trained by the cross-entropy method: 40 candidates that set is empty, e.g. ret_in at w = 0 and ret_out per iteration are drawn from a diagonal Gaussian, each is at w = 4). Because these two level sets depend on the evaluated on the same 16 randomised episodes (common system’s width, systems of different width are compared random numbers), the top 20% are refit as the new mean only through the fixed-level metrics (ret_robust, ret_ood, and standard deviation, for 60 iterations; a decaying noise ret_w300, ret_w400). floor 0.05(1 − t/60) + 0.01 is added to the refit standard Protocol. Evaluation levels, metrics, systems, compar- deviation. The training objective is the number of steps isons and the equivalence margin were written down in survived in every system. experiments/PROTOCOL.md before any reported run. Systems. Fixed uniform DR: fixed w. Success-gated Reported runs use seeds 100–119 (20 seeds), which were curriculum: w starts at 0 and after each iteration is not used in any earlier run or design decision. The updated as sweep covers fixed w ∈ {0, 0.25, 0.5, 1, 1.5, 2, 3, 4} (60 CEM { min(wmax , w + δ) if st ≥ ρ iterations). The curriculum group runs cap wmax = 1 with w← (2) gate ρ ∈ {0.8, 0, 0.5, 0.95} and uncapped with ρ ∈ {0.8, 0}. w otherwise, A low-budget regime (20 iterations, population 20, 8 en- where st is the fraction of that iteration’s sampled envi- vironments per iteration) is run for fixed w ∈ {0, 1, 1.5, 3} ronments on which the best candidate reaches the 500-step and for the gated and ungated uncapped curriculum and cap, δ = 0.05 and ρ = 0.8. We run it with wmax = 1 (the the gated cap-1 curriculum; it was declared because fixed w = 3 failed to learn there in an unlogged debugging run 0.06 on seed 9999. At 20 iterations and step 0.05 the width cannot exceed 1, so the uncapped and the cap-1 gated 0.05 nominal state cost (lower is better) curriculum are the same algorithm there. 0.04 Baseline tuning. The ADR-style and EPOpt-style base- lines were tuned with a stated budget: six configurations 0.03 each (ADR-style: ∆ ∈ {0.05, 0.1, 0.2} × thi ∈ {0.8, 0.95}; 0.02 EPOpt-style: w ∈ {1, 2} × ϵ ∈ {0.1, 0.25, 0.5}), five tuning 0.01 seeds (200–204, disjoint from the reported seeds), selected by mean ret_robust (ties to the first configuration), then 0.00 run once on the reported seeds. The selection (ADR- −0.01 style ∆ = 0.1, thi = 0.8, mean ret_robust 492.3 on the cartpole tuning seeds; EPOpt-style w = 2, ϵ = 0.5, 495.1) is in experiments/tuned.json. No other system was tuned; the Uniform DR w=0 Uniform DR w=0.5 Uniform DR w=1.5 Uniform DR w=3 fixed-width sweep itself is an eight-value search over w for Uniform DR w=0.25 Uniform DR w=1 Uniform DR w=2 Uniform DR w=4 the plain DR baseline. Statistics. All comparisons are paired by seed over the Fig. 1. Nominal state cost versus training width (mean ± std over 20 seeds; lower is better). 20 seeds (method/analyze.py, run through rh run): the mean paired difference with a 95% t interval, the paired t-test p, and for return metrics a two one-sided t-tests 0.019])) and at w = 4 (0.025 (95% CI [0.014, 0.036])) and (TOST) equivalence test with margin 25 return units, i.e. not detectably different at w = 2 (0.002 (95% CI [−0.003, 5% of the 500-step cap. A pair is called equivalent only 0.006])). The seed-to-seed spread of the cost is large at if the TOST p < 0.05; otherwise we write “no difference small widths (std 0.038 at w = 0), so small differences detected” or report the interval. The comparisons were there are not resolved by 20 seeds. declared in advance; a second pass with the fixed-level metrics was added after the first (Section VIII). Robustness to shifted dynamics. ret_robust rises from Scale and evidence. Everything runs on CPU in seconds 394.8 at w = 0 to 471.4 at w = 1 and 491.7 at w = 1.5, per run. The registry holds 596 ok training runs from all 493.9 at w = 2, 492.2 at w = 3 and falls to 483.9 at w = 4. rounds (analysis and sanity rows excluded). Counted by Relative to w = 1.5, w = 2 is higher by 2.2 (95% CI [0.7, distinct arguments and seed there are 586, and counted by 3.6]), w = 3 is not detectably different (0.4 (95% CI [−1.7, distinct (seed, metrics) pairs, so that bit-identical results 2.6])) and w = 4 is lower (−7.8 (95% CI [−14.0, −1.6])). count once, 519; the bit-identical pairs come from the first Since ret_robust only covers levels up to w = 2, it is round and from the identical uncapped and cap-1 gated entirely in-range for w ≥ 2, so its plateau is an in-range curricula in the low-budget regime. Raw per-run outputs, plateau. per-seed width trajectories (results/raw/) and run logs In-range and out-of-range. The in-range mean ret_in that end with the metrics of the run are included in the decreases with width (499.9 at w = 1, 493.9 at w = 2, repository. A first round of runs on seeds 0–4 (groups main, 472.5 at w = 3, 436.4 at w = 4), but this mainly reflects sweep_width, abl_curriculum) remains in the registry; that the level set grows to include harder levels, not a loss its evaluation design was adapted after unrecorded smoke at a fixed level. The fixed levels beyond the training range runs that included seed 1, and it is not reported here. All of the narrower systems show the out-of-range effect: at baselines are reimplemented here. shift w = 3 the return is 134.7 without randomisation, 313.1 at w = 1.5, 350.5 at w = 2 (out of range) and 354.8 V. Results at w = 3 (at the edge of its range); at shift w = 4 it is Nominal return saturates; nominal cost does not. Nom- 93.0, 213.8, 239.4 and 258.6. Against w = 1.5, the w = 2, inal return is at the 500-step cap in every seed for every w = 3 and w = 4 policies are higher at both levels (e.g. width up to w = 3 (500.0 minimum over seeds at w = 3); at w = 3 vs w = 1.5: shift 3 41.8 (95% CI [22.5, 61.1]), only w = 4 falls slightly below it (498.9 ± 2.8, worst seed shift 4 44.8 (95% CI [26.9, 62.8])). The w = 4 policy is 489.5). Return therefore cannot show a nominal cost at not higher than the w = 3 policy at shift 4 in the means most widths, and we use the continuous cost_nominal (250.6 vs 258.6); that pair was not declared in advance (Table I, Figure 1). Its mean falls from 0.024 without and is not tested. Out-of-range return remains far below randomisation to 0.008 at w = 1.5 and then rises to the cap for every width. 0.020 at w = 3 and 0.034 at w = 4. Paired against no Hypotheses. H1 (wide DR beats no randomisation on randomisation, no width has a detectable cost difference shifted dynamics) is supported: w = 1 against w = 0 on (every 95% interval contains 0; at w = 4: 0.010 (95% ret_robust, 76.6 (95% CI [63.5, 89.7]) (paired p =1.9 × CI [−0.014, 0.033])). Paired against the lowest-cost width 10−10 ). H2 (a width beyond which nominal performance w = 1.5, the cost is higher at w = 3 (0.011 (95% CI [0.004, falls while robustness no longer improves) is not met in its TABLE I Fixed uniform DR, width sweep (mean ± std over 20 fresh seeds; return max 500, cost_nominal lower is better). ret_in and ret_out average the evaluation levels at or below, respectively above, the row’s own training width (“–” = empty set), so they average different levels in different rows; bold and underline mark best and second best per column and are not meaningful for those two columns. Method ret_nominal ↑ cost_nominal ↓ ret_robust ↑ ret_in ↑ ret_out ↑ ret_w300 ↑ ret_w400 ↑ n Uniform DR w=0 500.000 ± 0.000 0.024 ± 0.038 394.794 ± 30.029 – 324.550 ± 27.906 134.674 ± 29.532 92.962 ± 20.091 20 Uniform DR w=0.25 500.000 ± 0.000 0.020 ± 0.030 410.190 ± 26.327 500.000 ± 0.000 314.703 ± 27.800 144.796 ± 25.584 96.988 ± 15.891 20 Uniform DR w=0.5 500.000 ± 0.000 0.019 ± 0.023 435.950 ± 20.294 500.000 ± 0.000 316.865 ± 27.941 170.238 ± 30.244 115.251 ± 20.165 20 Uniform DR w=1 500.000 ± 0.000 0.018 ± 0.019 471.429 ± 8.492 499.921 ± 0.172 300.236 ± 22.479 222.385 ± 25.592 149.668 ± 19.422 20 Uniform DR w=1.5 500.000 ± 0.000 0.008 ± 0.005 491.726 ± 2.526 498.946 ± 0.576 327.483 ± 22.030 313.054 ± 28.337 213.768 ± 29.352 20 Uniform DR w=2 500.000 ± 0.000 0.010 ± 0.007 493.885 ± 1.774 493.885 ± 1.774 294.932 ± 19.221 350.477 ± 20.135 239.386 ± 22.753 20 Uniform DR w=3 500.000 ± 0.000 0.020 ± 0.016 492.154 ± 3.741 472.538 ± 6.469 258.611 ± 24.923 354.837 ± 24.883 258.611 ± 24.923 20 Uniform DR w=4 498.903 ± 2.756 0.034 ± 0.024 483.925 ± 13.302 436.367 ± 18.141 – 336.814 ± 38.559 250.574 ± 32.529 20 TABLE II Success-gated curriculum variants (mean ± std over 20 seeds; 2.5 train_width_end is the width at the end of training; “cap 1” = training half-width w wmax = 1). Bold and underline are not meaningful for ret_in, 2.0 ret_out and train_width_end. 1.5 Method train_width_end ↑ cost_nominal ↓ ret_robust ↑ ret_in ↑ ret_out ↑ n Curriculum cap 1, gate 0.5 1.000 ± 0.000 0.017 ± 0.012 470.696 ± 8.599 499.826 ± 0.336 298.210 ± 21.962 20 Curriculum cap 1, gate 0.95 Curriculum uncapped, no gate 1.000 ± 0.000 3.000 ± 0.000 0.013 ± 0.011 0.015 ± 0.013 469.655 ± 10.863 493.758 ± 2.921 499.760 ± 0.400 475.116 ± 5.470 297.411 ± 28.403 258.227 ± 19.148 20 20 1.0 Curriculum cap 1, no gate 1.000 ± 0.000 0.017 ± 0.017 474.984 ± 9.260 499.871 ± 0.227 311.435 ± 25.994 20 Curriculum cap 1 (gate 0.8) 1.000 ± 0.000 0.016 ± 0.013 469.651 ± 9.348 499.770 ± 0.376 296.150 ± 23.882 20 Curriculum uncapped (gate 0.8) 2.505 ± 0.151 0.026 ± 0.012 492.312 ± 2.913 492.312 ± 2.913 286.138 ± 23.411 20 0.5 0.0 original form, a nominal return more than 5% below that 0 10 20 30 40 50 60 of no randomisation, since nominal return stays within CEM iteration 5% at every width. On the continuous cost, no width is detectably worse than no randomisation, but the cost is Fig. 2. Training half-width w of the uncapped gated curriculum higher than at the cost-optimal w = 1.5 for w ≥ 3 while (mean and 95% bootstrap interval over 20 seeds). ret_robust no longer improves (w = 3) or declines (w = 4): a knee exists relative to the best width of the sweep, not TABLE III relative to no randomisation. H3 (the curriculum matches ADR-style and EPOpt-style baselines after tuning (mean ± std wide DR) is addressed in Section VI. over 20 seeds). For the ADR-style row train_width_end is the mean absolute boundary. VI. Ablations and Analysis Method train_width_end ↑ cost_nominal ↓ ret_robust ↑ ret_in ↑ ret_out ↑ n ADR-style (tuned) 2.261 ± 0.108 0.023 ± 0.015 492.576 ± 2.390 492.576 ± 2.390 288.637 ± 18.073 20 Curriculum capped at w = 1 versus fixed w = 1. The EPOpt-style (tuned) 2.000 ± 0.000 0.010 ± 0.010 493.985 ± 1.405 493.985 ± 1.405 299.442 ± 19.835 20 gated curriculum with the first-round cap ends at w = 1 in every seed (Table II). On ret_robust it differs from fixed w = 1 by −1.8 (95% CI [−6.9, 3.3]), equivalent within 25 against exactly 3.0 for the ungated ramp, which is set return units (TOST p =6.2 × 10−9 ); on ret_ood by −5.0 by the step size and the 60 iterations. Compared with (95% CI [−20.2, 10.2]) (TOST p =6.4×10−3 ) and at shifts fixed w = 1.5, the cost-optimal width of the sweep, the 3 and 4 by −3.7 (95% CI [−16.7, 9.4]) and −2.6 (95% uncapped curriculum differs on ret_robust by 0.6 (95% CI CI [−12.1, 6.8]), both equivalent within 25 as well. The [−1.2, 2.4]) (equivalent within 25; TOST p =2.7 × 10−17 ), nominal cost differs by −0.002 (95% CI [−0.013, 0.010]) is higher at shifts 3 and 4 (26.1 (95% CI [8.0, 44.2]) (no equivalence test was declared for the cost). So within and 19.3 (95% CI [3.7, 34.9])) and has a higher nominal the cap, the curriculum is equivalent to fixed w = 1 on cost (0.018 (95% CI [0.012, 0.024])). Compared with the the return metrics; the cap, however, is hand-chosen and ungated uncapped ramp, the gate stops at a smaller width fixed w = 1.5 is better on ret_robust than fixed w = 1 and gives lower returns at shifts 3 and 4 (−24.1 (95% CI (20.3 (95% CI [16.6, 24.0])). [−38.9, −9.2]) and −25.1 (95% CI [−38.8, −11.5])), no Gate. At cap 1, gate 0.8 is lower than the ungated detectable difference on ret_robust (−1.4 (95% CI [−3.4, linear schedule on ret_robust (−5.3 (95% CI [−8.9, −1.7]); 0.6])) and a higher nominal cost (0.012 (95% CI [0.002, still within the 25-unit margin) and at shifts 3 and 4 0.021])). The settled width is a consequence of the step (−16.9 (95% CI [−26.8, −6.9]) and −12.6 (95% CI [−20.1, size, the iteration budget and the gate threshold, not a −5.2])); gates 0.5 and 0.95 show no difference from gate width the curriculum selected as best, so the curriculum 0.8 (ret_robust: −1.0 (95% CI [−3.2, 1.1]) and 0.0 (95% does not remove the need to choose these quantities. CI [−3.8, 3.8])). The gate gave no benefit at cap 1. ADR-style and EPOpt-style baselines. The tuned ADR- Uncapped curriculum. Without a cap the gated cur- style baseline ends with a mean boundary of 2.26, the riculum settles at w =2.50 (std 0.15 over seeds; Figure 2), smallest and the largest of its eight boundaries average or low-budget settings, and in the default setting it has a 0.5 higher nominal cost than the best fixed width. training half-width w 0.4 VII. Paired Comparisons 0.3 Tables V–XII list every declared paired comparison (20 seeds, difference first minus second system, 95% t interval; 0.2 the TOST column is the equivalence p for margin 25 on 0.1 ret_robust). Each row is one analysis run over the 20 seeds, so the column n is 1; bold and underline in these 0.0 tables only mark the largest and second largest value of a 0.0 2.5 5.0 7.5 10.0 12.5 15.0 17.5 column and carry no meaning. ret_out differences between CEM iteration (low budget) systems of different width compare different level sets and should be read through Tables VI, VIII, X and XII instead. Fig. 3. Training half-width of the gated curriculum in the low-budget Values printed as 0.000 are below the printing precision. regime (mean and 95% bootstrap interval over 20 seeds). No correction for multiple comparisons was applied. VIII. Limitations 1.70 and 2.76 per run (Table III). Against fixed w = 1.5 This is a small CPU study: one task (CartPole, with it shows no detectable difference on ret_robust (0.8 (95% a numpy re-implementation of the gymnasium dynamics), CI [−0.7, 2.4])) but a higher nominal cost (0.015 (95% one learner (CEM on a 49-parameter MLP), 20 seeds, and CI [0.007, 0.022])) and higher returns at shifts 3 and 4 methods reimplemented by us. Parameters are randomised (28.3 (95% CI [10.9, 45.8]) and 22.1 (95% CI [9.1, 35.2])); independently with a log-uniform range of a single shared against the uncapped gated curriculum, which settles at width; correlated or per-parameter ranges, observation w =2.50, there is no detectable difference (ret_robust 0.3 noise, partial observability, policies with memory or adap- (95% CI [−1.0, 1.6])). The tuned EPOpt-style baseline tation, Pendulum and locomotion tasks, larger networks (fixed w = 2, ϵ = 0.5) is not different from plain fixed and real hardware were not studied. Nothing here should DR at the same width w = 2 (ret_robust 0.1 (95% CI be extrapolated to locomotion or to other learners. [−0.8, 1.0]), cost 0.000 (95% CI [−0.005, 0.005])); it is The nominal cost is an evaluation metric: the policies higher than fixed w = 1.5 on ret_robust by 2.3 (95% CI are trained to survive, not to minimise it, and a policy [1.2, 3.3]), which the fixed w = 2 sweep entry also shows. trained on a cost objective could behave differently. The Neither added baseline therefore beats fixed DR of similar shifts reach w = 4, so the w = 4 policy has no out-of- width in this setting. range test and the w = 3 policy has one out-of-range A regime where fixed wide DR is hard to learn. With the level. ret_in and ret_out average level sets that depend low budget, fixed w = 3 largely fails to learn (Table IV): on each system’s width and are not comparable between nominal return 328.8 against 488.0 without randomisation, systems of different width; the fixed-level metrics are. and a nominal cost higher by 0.602 (95% CI [0.354, 0.850]). The ADR-style and EPOpt-style baselines are simplified Fixed w = 1.5 is not hard in this regime (ret_robust 435.7 reimplementations tuned over six configurations and five against 383.2). The gate is exercised: the gated curriculum tuning seeds each, not the published methods, and other settles at w =0.47 (std 0.29), the ungated one at exactly tuning budgets could change their ranking. In the low- 1 (Figure 3). Against fixed w = 3 the gated curriculum is budget regime the width cannot exceed 1, so no curriculum much better (ret_robust 114.4 (95% CI [56.3, 172.5])), but is tested at a width at which fixed DR fails; the regime against the fixed width that was not hard, w = 1.5, it is not itself was declared after one unlogged debugging run on better (−28.2 (95% CI [−57.3, 1.0]), and lower at shifts 3 seed 9999 in which fixed w = 3 failed. and 4: −62.3 (95% CI [−84.0, −40.6]) and −43.4 (95% CI The evaluation design is not blind to the first round: [−57.9, −28.8])). Against its ungated counterpart the gate levels up to w = 2 and the sweep range came from shows no detectable difference on ret_robust (−24.4 (95% unrecorded smoke runs that included seed 1 and from the CI [−49.0, 0.1])) and lower returns at shifts 3 and 4 (−25.4 first round’s seeds 0–4, and levels 3 and 4 and the nominal (95% CI [−44.2, −6.6]) and −16.2 (95% CI [−29.0, −3.4])). cost were added in response to the first round’s results. The gate holds the width below that of the ungated ramp, The protocol was fixed before the reported seeds 100–119 but in this regime no curriculum approaches w = 3, so it and tuning seeds 200–204 were run, but design choices is not shown to protect against an unlearnable width. were informed by earlier seeds. A second pass of paired H3 (the curriculum matches wide DR on shifted- statistics on fixed-level metrics was added after the first dynamics return) holds within the cap: at cap 1 the pass because ret_in and ret_out proved not comparable curriculum is equivalent to fixed w = 1 within 25 return across widths; no run was repeated. The equivalence units on ret_robust, ret_ood and the two far levels; it margin of 25 return units is our choice; equivalence is does not show a benefit over fixed DR in the uncapped claimed only within it and only for return metrics, and TABLE IV Low-budget regime (20 iterations, population 20, 8 environments): mean ± std over 20 seeds. Under 20 iterations at step 0.05 the width cannot exceed 1, so the uncapped and the cap-1 gated curriculum rows are identical. ret_in is absent for the seeds in which a system ended at w = 0. Method ret_nominal ↑ cost_nominal ↓ ret_robust ↑ ret_in ↑ ret_out ↑ train_width_end ↑ n Uniform DR w=0 487.956 ± 35.057 0.120 ± 0.154 383.221 ± 53.396 – 316.312 ± 47.960 0.000 ± 0.000 20 Uniform DR w=1.5 468.791 ± 57.704 0.166 ± 0.236 435.695 ± 65.032 453.837 ± 66.506 237.542 ± 43.874 1.500 ± 0.000 20 Uniform DR w=3 328.752 ± 127.019 0.723 ± 0.500 293.072 ± 116.031 275.181 ± 107.094 130.905 ± 32.095 3.000 ± 0.000 20 Uniform DR w=1 461.524 ± 62.506 0.213 ± 0.278 409.092 ± 67.649 452.763 ± 65.754 236.530 ± 61.822 1.000 ± 0.000 20 Curriculum uncapped, no gate 487.980 ± 37.365 0.093 ± 0.175 431.926 ± 51.097 479.504 ± 48.163 244.273 ± 54.942 1.000 ± 0.000 20 Curriculum cap 1 (gate 0.8) 487.352 ± 37.454 0.092 ± 0.167 407.504 ± 47.425 499.576 ± 0.884 296.831 ± 44.397 0.465 ± 0.295 16/20 Curriculum uncapped (gate 0.8) 487.351 ± 37.454 0.092 ± 0.167 407.504 ± 47.425 499.576 ± 0.884 296.831 ± 44.397 0.465 ± 0.295 16/20 TABLE V Paired comparisons within the fixed-width sweep. Method ret_robust_delta ↑ ret_robust_ci_lo ↑ ret_robust_ci_hi ↑ ret_robust_tost_p ↑ ret_out_delta ↑ ret_out_ci_lo ↑ ret_out_ci_hi ↑ cost_nominal_delta ↑ cost_nominal_ci_lo ↑ cost_nominal_ci_hi ↑ n DR w=1.5 vs DR w=1 20.297 16.621 23.974 0.007 27.247 16.884 37.610 -0.010 -0.018 -0.001 1 DR w=1 vs DR w=0 76.635 63.529 89.741 1.000 -24.314 -37.601 -11.027 -0.006 -0.025 0.012 1 DR w=1.5 vs DR w=0 96.932 83.289 110.576 1.000 2.933 -10.953 16.819 -0.016 -0.033 0.001 1 DR w=0.5 vs DR w=0 41.156 28.350 53.963 0.992 -7.685 -20.939 5.570 -0.005 -0.025 0.014 1 DR w=3 vs DR w=0 97.360 83.275 111.445 1.000 -65.939 -81.952 -49.926 -0.004 -0.022 0.013 1 DR w=4 vs DR w=0 89.131 72.417 105.844 1.000 – – – 0.010 -0.014 0.033 1 DR w=2 vs DR w=0 99.091 85.063 113.120 1.000 -29.618 -42.826 -16.411 -0.014 -0.032 0.003 1 DR w=0.25 vs DR w=0 15.395 2.695 28.096 0.065 -9.847 -22.686 2.992 -0.004 -0.015 0.008 1 DR w=2 vs DR w=1.5 2.159 0.748 3.570 0.000 -32.551 -45.570 -19.533 0.002 -0.003 0.006 1 DR w=3 vs DR w=1.5 0.428 -1.720 2.576 0.000 -68.872 -85.297 -52.447 0.011 0.004 0.019 1 DR w=4 vs DR w=1.5 -7.802 -14.032 -1.571 0.000 – – – 0.025 0.014 0.036 1 TABLE VI Fixed-level metrics, fixed-width sweep: paired differences in ret_ood (levels 1.5 and 2) and in the returns at shift 3 and 4. Method ret_ood_delta ↑ ret_ood_ci_lo ↑ ret_ood_ci_hi ↑ ret_w300_delta ↑ ret_w300_ci_lo ↑ ret_w300_ci_hi ↑ ret_w400_delta ↑ ret_w400_ci_lo ↑ ret_w400_ci_hi ↑ n DR w=1.5 vs DR w=1 60.733 49.735 71.731 90.669 78.105 103.233 64.100 54.010 74.190 1 DR w=1.5 vs DR w=0 211.179 191.175 231.182 178.380 161.226 195.534 120.806 107.377 134.236 1 DR w=1 vs DR w=0 150.445 129.896 170.994 87.711 71.647 103.776 56.707 46.199 67.214 1 DR w=2 vs DR w=0 217.663 197.594 237.733 215.803 201.960 229.647 146.424 135.386 157.462 1 DR w=0.5 vs DR w=0 60.145 39.272 81.017 35.564 22.625 48.503 22.290 13.719 30.861 1 DR w=3 vs DR w=0 212.608 192.514 232.703 220.163 206.039 234.287 165.650 151.974 179.325 1 DR w=4 vs DR w=0 191.779 161.485 222.072 202.140 174.015 230.266 157.613 138.068 177.157 1 DR w=2 vs DR w=1.5 6.485 2.254 10.716 37.423 21.206 53.641 25.618 11.644 39.591 1 DR w=3 vs DR w=1.5 1.430 -4.922 7.781 41.784 22.478 61.089 44.843 26.928 62.758 1 DR w=0.25 vs DR w=0 19.016 -4.023 42.055 10.122 -4.023 24.267 4.027 -4.934 12.987 1 DR w=4 vs DR w=1.5 -19.400 -35.387 -3.413 23.761 2.395 45.126 36.806 18.708 54.905 1 TABLE VII Paired comparisons for the curriculum variants (Curr.) and fixed DR (DR). Method ret_robust_delta ↑ ret_robust_ci_lo ↑ ret_robust_ci_hi ↑ ret_robust_tost_p ↑ ret_out_delta ↑ ret_out_ci_lo ↑ ret_out_ci_hi ↑ cost_nominal_delta ↑ cost_nominal_ci_lo ↑ cost_nominal_ci_hi ↑ n Curr. cap 1 (gate 0.8) vs DR w=1 -1.778 -6.906 3.349 0.000 -4.086 -16.955 8.783 -0.002 -0.013 0.010 1 Curr. cap 1 (gate 0.8) vs Curr. cap 1, no gate -5.334 -8.926 -1.742 0.000 -15.285 -24.300 -6.270 -0.001 -0.009 0.008 1 Curr. cap 1 (gate 0.8) vs Curr. cap 1, gate 0.5 -1.045 -3.226 1.136 0.000 -2.060 -7.802 3.682 -0.001 -0.008 0.006 1 Curr. cap 1 (gate 0.8) vs Curr. cap 1, gate 0.95 -0.004 -3.830 3.822 0.000 -1.261 -10.972 8.451 0.003 -0.003 0.009 1 Curr. uncapped (gate 0.8) vs Curr. uncapped, no gate -1.446 -3.446 0.555 0.000 27.912 13.582 42.241 0.012 0.002 0.021 1 Curr. uncapped (gate 0.8) vs DR w=1.5 0.586 -1.220 2.392 0.000 -41.345 -55.898 -26.791 0.018 0.012 0.024 1 no multiplicity correction was applied to the intervals and budget regimes we ran. Simplified ADR-style and EPOpt- tests. style baselines did not beat fixed DR of similar width. These conclusions are specific to this task, learner and IX. Conclusion range parameterisation. On CartPole with a CEM-trained MLP and 20 fresh References seeds, widening the randomisation range raised robustness to shifted dynamics up to about w = 1.5 to 2 on shifts [1] J. Tobin, R. Fong, A. Ray, J. Schneider, W. Zaremba, up to 2, and kept raising return at shifts 3 and 4 up and P. Abbeel, “Domain randomization for transferring deep neural networks from simulation to the real world,” to w = 3. Nominal return is pinned at the cap, so the 2017 IEEE/RSJ International Conference on Intelligent nominal question was re-asked with a continuous cost: no Robots and Systems (IROS), 2017. [Online]. Available: width has a detectable cost relative to no randomisation, https://doi.org/10.1109/IROS.2017.8202133 [2] X. B. Peng, M. Andrychowicz, W. Zaremba, and P. Abbeel, but widths w ≥ 3 cost more than w = 1.5 while robustness “Sim-to-Real Transfer of Robotic Control with Dynamics on shifts up to 2 stops improving, so a knee exists relative Randomization,” 2018 IEEE International Conference on to the best width of the sweep. A success-gated curriculum Robotics and Automation (ICRA), 2018. [Online]. Available: https://doi.org/10.1109/icra.2018.8460528 capped at w = 1 is equivalent to fixed w = 1 within 25 [3] OpenAI, I. Akkaya, M. Andrychowicz, M. Chociej, M. Litwin, return units, but the cap is hand-chosen; uncapped, it B. McGrew, A. Petron, A. Paino, M. Plappert, G. Powell, settles at a width set by its step size, iteration budget R. Ribas, J. Schneider, N. Tezak, J. Tworek, P. Welinder, L. Weng, Q. Yuan, W. Zaremba, and L. Zhang, “Solving Rubik’s and gate, with a higher nominal cost than fixed w = 1.5, Cube with a Robot Hand,” arXiv preprint arXiv:1910.07113, and the gate was not shown to help in either of the two 2019. [Online]. Available: https://arxiv.org/abs/1910.07113 TABLE VIII Fixed-level metrics for the curriculum comparisons. Method ret_ood_delta ↑ ret_ood_ci_lo ↑ ret_ood_ci_hi ↑ ret_w300_delta ↑ ret_w300_ci_lo ↑ ret_w300_ci_hi ↑ ret_w400_delta ↑ ret_w400_ci_lo ↑ ret_w400_ci_hi ↑ n Curr. cap 1 (gate 0.8) vs DR w=1 -5.033 -20.244 10.178 -3.655 -16.711 9.402 -2.625 -12.055 6.804 1 Curr. cap 1 (gate 0.8) vs Curr. cap 1, gate 0.5 -3.021 -9.471 3.428 -1.053 -7.588 5.482 -1.144 -6.030 3.742 1 Curr. cap 1 (gate 0.8) vs Curr. cap 1, no gate -15.799 -26.379 -5.219 -16.895 -26.849 -6.941 -12.646 -20.070 -5.221 1 Curr. cap 1 (gate 0.8) vs Curr. cap 1, gate 0.95 -0.031 -11.452 11.389 -2.491 -12.100 7.118 -2.489 -9.686 4.707 1 Curr. uncapped (gate 0.8) vs Curr. uncapped, no gate -4.383 -10.297 1.532 -24.091 -38.941 -9.240 -25.122 -38.789 -11.456 1 Curr. uncapped (gate 0.8) vs DR w=1.5 1.785 -3.625 7.195 26.119 8.043 44.194 19.337 3.727 34.946 1 TABLE IX Paired comparisons for the ADR-style and EPOpt-style baselines. Method ret_robust_delta ↑ ret_robust_ci_lo ↑ ret_robust_ci_hi ↑ ret_robust_tost_p ↑ ret_out_delta ↑ ret_out_ci_lo ↑ ret_out_ci_hi ↑ cost_nominal_delta ↑ cost_nominal_ci_lo ↑ cost_nominal_ci_hi ↑ n ADR-style (tuned) vs DR w=1.5 0.850 -0.747 2.446 0.000 -38.845 -51.657 -26.033 0.015 0.007 0.022 1 EPOpt-style (tuned) vs DR w=2 0.100 -0.813 1.012 0.000 4.510 -7.042 16.062 0.000 -0.005 0.005 1 ADR-style (tuned) vs Curr. uncapped (gate 0.8) 0.264 -1.043 1.570 0.000 2.499 -8.393 13.391 -0.003 -0.012 0.005 1 EPOpt-style (tuned) vs DR w=1.5 2.259 1.202 3.316 0.000 -28.041 -37.476 -18.606 0.002 -0.004 0.007 1 TABLE X Fixed-level metrics for the baseline comparisons. Method ret_ood_delta ↑ ret_ood_ci_lo ↑ ret_ood_ci_hi ↑ ret_w300_delta ↑ ret_w300_ci_lo ↑ ret_w300_ci_hi ↑ ret_w400_delta ↑ ret_w400_ci_lo ↑ ret_w400_ci_hi ↑ n ADR-style (tuned) vs DR w=1.5 2.595 -2.167 7.358 28.313 10.857 45.768 22.140 9.077 35.204 1 EPOpt-style (tuned) vs DR w=2 0.291 -2.441 3.023 2.771 -9.834 15.375 6.250 -4.554 17.053 1 ADR-style (tuned) vs Curr. uncapped (gate 0.8) 0.810 -3.118 4.738 2.194 -8.819 13.207 2.804 -8.282 13.890 1 EPOpt-style (tuned) vs DR w=1.5 6.776 3.605 9.947 40.194 28.672 51.716 31.867 21.106 42.629 1 TABLE XI Paired comparisons in the low-budget regime. Rows that include the cap-1 and the uncapped gated curriculum coincide. Method ret_robust_delta ↑ ret_robust_ci_lo ↑ ret_robust_ci_hi ↑ ret_robust_tost_p ↑ ret_out_delta ↑ ret_out_ci_lo ↑ ret_out_ci_hi ↑ cost_nominal_delta ↑ cost_nominal_ci_lo ↑ cost_nominal_ci_hi ↑ n Curr. cap 1 (gate 0.8) vs DR w=1 -1.587 -25.399 22.225 0.027 60.301 33.212 87.389 -0.120 -0.239 -0.001 1 Curr. uncapped, no gate vs DR w=3 138.854 81.617 196.091 1.000 113.368 87.330 139.405 -0.630 -0.879 -0.381 1 Curr. uncapped, no gate vs DR w=1.5 -3.769 -34.893 27.356 0.085 6.730 -20.043 33.504 -0.073 -0.190 0.044 1 DR w=1 vs DR w=0 25.871 -4.985 56.726 0.523 -79.782 -104.535 -55.029 0.092 -0.032 0.217 1 Curr. uncapped, no gate vs DR w=1 22.834 -5.727 51.396 0.438 7.743 -19.929 35.415 -0.120 -0.247 0.008 1 Curr. uncapped (gate 0.8) vs Curr. uncapped, no gate -24.422 -48.958 0.114 0.481 52.558 27.623 77.492 -0.000 -0.116 0.115 1 DR w=3 vs DR w=0 -90.149 -148.958 -31.340 0.984 -185.407 -213.100 -157.714 0.602 0.354 0.850 1 DR w=1.5 vs DR w=0 52.474 19.304 85.644 0.950 -78.770 -104.729 -52.811 0.046 -0.070 0.162 1 Curr. cap 1 (gate 0.8) vs DR w=3 114.432 56.350 172.515 0.998 165.926 137.768 194.084 -0.630 -0.877 -0.383 1 Curr. cap 1 (gate 0.8) vs DR w=1.5 -28.190 -57.339 0.959 0.589 59.288 34.278 84.298 -0.074 -0.185 0.038 1 Curr. uncapped (gate 0.8) vs DR w=1 -1.587 -25.399 22.225 0.027 60.301 33.212 87.389 -0.120 -0.239 -0.001 1 Curr. uncapped (gate 0.8) vs DR w=3 114.432 56.350 172.515 0.998 165.926 137.768 194.084 -0.630 -0.877 -0.383 1 Curr. uncapped (gate 0.8) vs DR w=1.5 -28.190 -57.339 0.959 0.589 59.288 34.278 84.298 -0.074 -0.185 0.038 1 [4] Z. Xie, X. Da, M. van de Panne, B. Babich, and A. Garg, “Dynamics Randomization Revisited: A Case Study for Quadrupedal Locomotion,” 2021 IEEE International Confer- ence on Robotics and Automation (ICRA), 2021. [Online]. Available: https://doi.org/10.1109/icra48506.2021.9560837 [5] X. Chen, J. Hu, C. Jin, L. Li, and L. Wang, “Understanding Domain Randomization for Sim-to-real Transfer,” 2021. [Online]. Available: https://doi.org/10.48550/arxiv.2110.03239 [6] Y. Chebotar, A. Handa, V. Makoviychuk, M. Macklin, J. Issac, N. Ratliff, and D. Fox, “Closing the Sim- to-Real Loop: Adapting Simulation Randomization with Real World Experience,” 2019 International Conference on Robotics and Automation (ICRA), 2019. [Online]. Available: https://doi.org/10.1109/icra.2019.8793789 [7] G. Tiboni, K. Arndt, and V. Kyrki, “DROPO: Sim-to-Real Transfer with Offline Domain Randomization,” 2022. [Online]. Available: https://doi.org/10.48550/arxiv.2201.08434 [8] R. Portelas, C. Colas, L. Weng, K. Hofmann, and P.-Y. Oudeyer, “Automatic Curriculum Learning For Deep RL: A Short Survey,” Proceedings of the Twenty-Ninth International Joint Conference on Artificial Intelligence, 2020. [Online]. Available: https://doi.org/10.24963/ijcai.2020/671 [9] R. Alghonaim and E. Johns, “Benchmarking Domain Randomisation for Visual Sim-to-Real Transfer,” 2020. [Online]. Available: https://doi.org/10.48550/arxiv.2011.07112 [10] A. Rajeswaran, S. Ghotra, B. Ravindran, and S. Levine, “EPOpt: Learning Robust Neural Network Policies Using Model Ensembles,” 2016. [Online]. Available: https://doi.org/ 10.48550/arxiv.1610.01283 [11] W. Yu, J. Tan, C. K. Liu, and G. Turk, “Preparing for the Unknown: Learning a Universal Policy with Online System Identification,” Robotics: Science and Systems XIII, 2017. [Online]. Available: https://doi.org/10.15607/rss.2017.xiii.048 TABLE XII Fixed-level metrics in the low-budget regime. Method ret_ood_delta ↑ ret_ood_ci_lo ↑ ret_ood_ci_hi ↑ ret_w300_delta ↑ ret_w300_ci_lo ↑ ret_w300_ci_hi ↑ ret_w400_delta ↑ ret_w400_ci_lo ↑ ret_w400_ci_hi ↑ n Curr. cap 1 (gate 0.8) vs DR w=1 -29.686 -59.881 0.508 -23.728 -40.268 -7.188 -16.941 -29.500 -4.381 1 Curr. uncapped, no gate vs DR w=3 88.836 36.774 140.898 10.673 -18.143 39.489 -5.863 -25.377 13.652 1 DR w=1 vs DR w=0 62.928 28.529 97.326 43.294 23.988 62.601 28.158 16.421 39.895 1 Curr. uncapped, no gate vs DR w=1 15.022 -20.955 50.999 1.694 -22.031 25.419 -0.767 -18.108 16.574 1 Curr. uncapped, no gate vs DR w=1.5 -45.546 -82.966 -8.125 -36.876 -63.313 -10.439 -27.219 -45.899 -8.539 1 DR w=3 vs DR w=0 -10.886 -73.394 51.621 34.315 -1.061 69.691 33.254 12.257 54.251 1 Curr. uncapped (gate 0.8) vs Curr. uncapped, no gate -44.709 -72.138 -17.279 -25.422 -44.241 -6.602 -16.174 -28.967 -3.380 1 DR w=1.5 vs DR w=0 123.495 80.947 166.043 81.864 56.764 106.965 54.610 39.720 69.500 1 Curr. cap 1 (gate 0.8) vs DR w=1.5 -90.254 -127.857 -52.652 -62.298 -83.996 -40.600 -43.392 -57.949 -28.836 1 Curr. cap 1 (gate 0.8) vs DR w=3 44.127 -13.192 101.447 -14.749 -46.114 16.617 -22.036 -42.176 -1.896 1 Curr. uncapped (gate 0.8) vs DR w=1 -29.686 -59.881 0.508 -23.728 -40.268 -7.188 -16.941 -29.500 -4.381 1 Curr. uncapped (gate 0.8) vs DR w=3 44.127 -13.192 101.447 -14.749 -46.114 16.617 -22.036 -42.176 -1.896 1 Curr. uncapped (gate 0.8) vs DR w=1.5 -90.254 -127.857 -52.652 -62.298 -83.996 -40.600 -43.392 -57.949 -28.836 1