betaFeedback

WorksComputer Science

Calibration-risk routing for controlled world-model adaptation

Abstract

Model-based reinforcement learning (MBRL) can exploit simulated experience, but a simulator-to-target shift creates a model-selection problem: correcting the simulator and fitting the target directly can each fail under limited target data. We introduce the Model-Corrected World Model (MC-WM), which separates initial target data into disjoint fit, selection, and calibration partitions and deploys the family with lower standardized calibration risk. A learned confidence signal and deterministic validity predicates weight one-step imagined policy updates without rewriting physical rewards. We evaluate 540 unique reported run cells across three controlled Multi-Joint dynamics with Contact (MuJoCo) shifts; one exact-routing cell was repeated after a pre-deployment artifact gate, giving 541 completed executions.

Code: https://github.com/erzhu419/MC-WM

abstract: Model-based reinforcement learning (MBRL) can exploit simulated experience, but a simulator-to-target shift creates a model-selection problem: correcting the simulator and fitting the target directly can each fail under limited target data. We introduce the Model-Corrected World Model (MC-WM), which separates initial target data into disjoint fit, selection, and calibration partitions and deploys the family with lower standardized calibration risk. A learned confidence signal and deterministic validity predicates weight one-step imagined policy updates without rewriting physical rewards. We evaluate 540 unique reported run cells across three controlled Multi-Joint dynamics with Contact (MuJoCo) shifts; one exact-routing cell was repeated after a pre-deployment artifact gate, giving 541 completed executions. In a fresh ten-seed confirmation, MC-WM exceeds target Soft Actor-Critic (SAC) return by 1925.7 [715.6, 3322.3], 1184.5 [724.5, 1752.7], and 133.4 [67.6, 197.9] on Ant actuator, HalfCheetah gravity, and Walker friction, respectively, while reducing violations in all three. It also exceeds matched Domain Adaptation with Rewards from Classifiers (DARC) return in every environment, but its return differences from direct target Model-Based Policy Optimization (MBPO) remain unresolved. The selector chooses direct target models for all Ant and gravity runs and residual models for all Walker runs. Automatic routing exactly reproduces its selected forced arm in all 30 paired checks and improves Ant return over the unselected arm by 1529.9 [426.9, 2833.1]; gravity and Walker return and all route-level violation differences remain unresolved. A separate sparse-versus-dense study finds fewer residual parameters but no resolved endpoint advantage. The evidence supports calibrated model-family choice and bounded trust mechanisms, not universal residual or symbolic superiority.

Introduction

Simulation can supply control data without exposing a target system to every exploratory action. Dynamics randomization and rapid adaptation use this advantage to train reinforcement learning (RL) policies that tolerate or identify dynamics variation (Peng et al., 2017; Kumar et al., 2021). MBRL instead fits a predictive model and improves the policy with imagined transitions. Under a simulator-to-target dynamics shift, however, either reusing the simulator model or fitting a target model from limited data can fail. Policy optimization can then exploit errors that were rare under the model-fitting distribution.

Probabilistic ensembles represent model uncertainty [5], and short branched rollouts limit compounding error (Janner et al., 2019), but neither decides whether simulator correction or direct target modeling is better for a particular shift. Model fitting must also account for the state-action distribution induced by policy learning (Ross & Bagnell, 2012). This leaves two coupled questions: which target-model family should be deployed, and how strongly should each imagined transition influence policy learning?

We study these questions in MC-WM. MC-WM fits two candidates from the same initial target data: a residual correction to a frozen simulator ensemble and a direct target ensemble. A disjoint calibration partition measures standardized joint state-and-reward error and fixes the lower-risk family for the run. Direct-candidate fitting uses an isolated random stream, so model-family selection cannot change downstream policy or replay initialization merely by consuming random numbers. The deployed model then produces one-step imagined transitions whose policy-critic losses are weighted by a learned confidence signal and deterministic validity predicates. On the residual route, the state correction combines a locked sparse component with a masked neural remainder; the support, coefficients, calibration errors, routing decision, filter behavior, and target access are exported for every run.

The paper makes three contributions. First, it defines calibration-risk routing between residual and direct target world models using disjoint fit, selection, and calibration partitions. Second, it provides an exact routing counterfactual: automatic, forced-residual, and forced-direct arms fit identical candidates under matched random streams, and the automatic arm must exactly reproduce its selected forced arm. Third, it evaluates the complete method and its limits through 540 unique reported run cells from 541 completed executions: a fresh ten-seed main comparison on three controlled dynamics shifts and morphologies, the routing counterfactual, a source-identical predecessor mechanism matrix, and a matched sparse-versus-dense residual study. The evidence is deliberately bounded to target MuJoCo simulators. It does not imply physical sim-to-real transfer, stable symbolic discovery across seeds, reduced total target access, or a safety guarantee.

Related Work

Adaptation across dynamics. Visual domain randomization trains perception networks across randomized rendering conditions (Tobin et al., 2017); dynamics randomization trains control policies across randomized physics (Peng et al., 2017). Rapid Motor Adaptation (RMA) infers an environment representation online (Kumar et al., 2021). DARC estimates a source-to-target reward correction from state-action and transition domain classifiers [6]. Hybrid Offline-and-Online RL with dynamics gaps (H2O+) combines limited offline target data with online simulator interaction (Niu et al., 2023). MC-WM differs by fitting explicit residual and direct target world-model candidates, selecting between them on held-out transition risk, and weighting model-generated policy updates. DARC is included under the same target-training and held-out evaluation contract as the other main methods.

Residual world-model adaptation is the closest model class. Lanier et al. (2025) adapt visual latent world models using offline, reward-unlabelled target data and latent-state dynamics residuals. MC-WM uses reward-labelled online target data and observation-space increments, places a locked sparse component and masked neural remainder on the residual route, and allows calibration risk to reject that route in favor of a direct target ensemble. These are architectural and protocol differences; they do not establish dominance across the distinct visual-control and state-control settings.

World models and policy optimization. Probabilistic Ensembles with Trajectory Sampling (PETS) represents predictive uncertainty with probabilistic dynamics ensembles [5]. MBPO limits model bias with short rollouts branched from real data (Janner et al., 2019). Dreamer learns behaviors through latent imagination (Hafner et al., 2019). Temporal Difference Learning for Model Predictive Control (TD-MPC) combines latent dynamics with a terminal value estimate for planning (Hansen et al., 2022). MC-WM uses one-step rollouts so that the experiment primarily tests target-model choice, correction, and weighting rather than long-horizon compounding.

Structured residuals and constrained updates. Sparse Identification of Nonlinear Dynamics (SINDy) estimates sparse dynamics from a prescribed feature library [3]. MC-WM applies its sparse-regression principle to target-minus-simulator state increments, but the sparse branch is evaluated as a capacity and inspectability choice rather than assumed to improve control. Policy learning is based on SAC (Haarnoja et al., 2018). The project-specific three-critic pessimistic actor is related to ensemble methods such as Randomized Ensembled Double Q-Learning (REDQ), but is not a REDQ implementation [4]. Constrained Policy Optimization optimizes an expected-cost constraint [1], whereas Inverse Constrained Reinforcement Learning infers constraints from demonstrations [2]. MC-WM’s predicates are narrower: they screen imagined transitions and do not constrain the executed target policy.

Method

Problem Setting

We use observed-state Markov decision process (MDP) approximations for the simulator and target, Mℓ=(S,A,Pℓ,ρℓ,γ,p0)\mathcal{M}_{\ell} = (\mathcal{S}, \mathcal{A}, P_{\ell}, \rho_{\ell}, \gamma, p_{0}) indexed by ℓ∈{S,T}\ell\in\{\mathrm{S}, \mathrm{T}\}. They share the state space S\mathcal{S}, action space A\mathcal{A}, policy-return discount γ∈[0,1)\gamma\in[0,1), and initial-state distribution p0p_{0}, but may differ in the transition kernel PℓP_{\ell} and expected one-step reward ρℓ\rho_{\ell}. The target objective is

JMT(πϕ)=EMT,πϕ[∑t=0∞γtrt],(1)J_{\mathrm{M}_{\mathrm{T}}}(\pi_{\phi}) = \mathbb{E}_{\mathrm{M}_{\mathrm{T}},\pi_{\phi}}\left[\sum_{t=0}^{\infty}\gamma^{t}r_{t}\right], \tag*{(1)}

where πϕ\pi_{\phi} is the policy with parameters ϕ\phi and rtr_{t} is the observed target reward, with zero rewards after episode termination. Equation (1) defines the discounted task objective; training uses the entropy-regularized, violation-aware surrogate in § 3.5, and evaluation reports undiscounted episode return. Observed state, action, and termination at time tt are st∈Rnss_{t} \in\mathbb{R}^{n_{s}}, at∈Rnaa_{t} \in\mathbb{R}^{n_{a}}, and κt∈{0,1}\kappa_{t} \in\{0,1\}; xt=[st;at]x_{t} = [s_{t};a_{t}] is the state-action input. The simulator dataset is DS\mathcal{D}_{\mathrm{S}}, and the initial target dataset is DT0\mathcal{D}_{\mathrm{T}}^{0}. Appendix § 10 gives the complete one-symbol–one-meaning ledger.

Pipeline and Calibration-Risk Routing

MC-WM fits two target-model candidates before online policy learning (Figure 1; Algorithm 1 in Appendix § 14.§ 2). The residual candidate M^R\widehat{M}_{\mathrm{R}} corrects a frozen simulator ensemble M^S\widehat{M}_{\mathrm{S}}, whereas the direct candidate M^D\widehat{M}_{\mathrm{D}} fits the same probabilistic ensemble architecture directly to target transitions. An untouched calibration split selects the candidate with lower standardized one-step state-and-reward error. This route is fixed for the run. The deployed model then supplies confidence-weighted one-step transitions for target-domain SAC updates.

MC-WM execution path

Figure 1. MC-WM execution path. Initial target data fit a residual and a direct candidate; a disjoint calibration partition fixes the deployed family. Online target replay refits only the deployed state-and-reward model. Trust weights scale losses rather than physical rewards; a separate violation cost is described in § 3.5.

The initial 10,000 target transitions are split reproducibly into index sets Ifit\mathcal{I}_{\mathrm{fit}}, Isel\mathcal{I}_{\mathrm{sel}}, and Ical\mathcal{I}_{\mathrm{cal}} containing 80%, 10%, and 10% of the rows. The fit split estimates parameters; the selection split chooses sparse features and supplies early stopping for the direct ensemble; neither candidate uses the calibration split during fitting or early stopping. Define the joint one-step target

zi=[si+1−si;ri]∈Rns+1.(2)z_i = [s_{i+1}-s_i;r_i] \in\mathbb{R}^{n_s+1}. \tag*{(2)}

For a dataset sample ii, si+1s_{i+1} denotes its observed successor, not the next row of a shuffled dataset. For candidate m∈{R,D}\mathrm{m} \in\{\mathrm{R},\mathrm{D}\}, let z^i(m)\widehat{z}_{i}^{(\mathrm{m})} be its deterministic ensemble-mean prediction and let σk\sigma_k be the standard deviation of coordinate kk of ziz_i on Ifit\mathcal{I}_{\mathrm{fit}}, replaced by one when it is at most 10−610^{-6}. The registered routing risk is

Rm=[1∣Ical∣(ns+1)∑i∈Ical∑k=1ns+1(z^i,k(m)−zi,kσk)2]1/2.(3)\mathcal{R}_{\mathrm{m}} = \left[\frac{1}{\lvert\mathcal{I}_{\mathrm{cal}}\rvert(n_s+1)}\sum_{i\in\mathcal{I}_{\mathrm{cal}}}\sum_{k=1}^{n_s+1}\left(\frac{\widehat{z}_{i,k}^{(\mathrm{m})}-z_{i,k}}{\sigma_k}\right)^2\right]^{1/2}. \tag*{(3)}

Equation (3) evaluates the target in Equation (2) after coordinate standardization. MC-WM deploys

m⋆={D,RD<RR,R,otherwise,M^T=M^m⋆.(4)m^\star= \begin{cases} \mathrm{D}, & \mathcal{R}_{\mathrm{D}} < \mathcal{R}_{\mathrm{R}},\\ \mathrm{R}, & \text{otherwise}, \end{cases} \qquad \widehat{M}_{\mathrm{T}} = \widehat{M}_{m^\star}. \tag*{(4)}

Thus a tie retains the residual candidate. After Equation (4) fixes the route, all initial target rows enter online replay. No validation episode or test trajectory participates in this model-family decision.

Each probabilistic ensemble contains K=5K = 5 multilayer perceptron (MLP) members. Every MLP has three 200-unit sigmoid linear unit (SiLU) hidden layers and predicts a Gaussian mean and diagonal variance for state increment and reward. Input and target normalizers are fixed at the candidate’s initial fit. On the direct route, M^D\widehat{M}_{\mathrm{D}} is warm-start refit every 1,000 online target steps on at most 50,000 replay transitions. On the residual route, the correction described next is refit at the same frequency and replay cap while M^S\widehat{M}_{\mathrm{S}} remains frozen.

Direct-candidate fitting uses a dedicated random stream derived from the seed, preserving subsequent policy, replay, and optimizer initialization. Automatic and forced-route arms fit both candidates in the same order and intervene only on deployment in Equation (4). The automatic arm must exactly reproduce its selected forced arm; Appendix § 12.§ 1 details this isolation and matching test.

Locked-Support Residual Candidate

Let u^S(x)\widehat{u}_{\mathrm{S}}(x) and ρ^S(x)\widehat{\rho}_{\mathrm{S}}(x) denote the frozen simulator ensemble’s mean state-increment and reward predictions. For target transition ii, the state correction target is

yiΔs=si+1−si−u^S(xi).(5)y_i^{\Delta s} = s_{i+1} - s_i - \widehat{u}_{\mathrm{S}}(x_i). \tag*{(5)}

Equation (5) removes the simulator-predicted increment from the observed target increment. The residual candidate predicts

s^t+1(R)=st+u^S(xt)+Δ^s(xt).(6)\widehat{s}_{t+1}^{(\mathrm{R})} = s_t + \widehat{u}_{\mathrm{S}}(x_t) + \widehat{\Delta}_s(x_t). \tag*{(6)}
r^t(R)=ρ^S(xt)+Δ^r,ζ(xt).(7)\widehat{r}_t^{(\mathrm{R})} = \widehat{\rho}_{\mathrm{S}}(x_t) + \widehat{\Delta}_{r,\zeta}(x_t). \tag*{(7)}

Equations (6) and (7) define the residual candidate’s state and reward predictions, respectively, where Δ^r,ζ\widehat{\Delta}_{r,\zeta} is a one-hidden-layer, 64-unit rectified linear unit (ReLU) reward correction with parameters ζ\zeta. The additive state correction is

Δ^s(x)=BΘ~(x)+gψ(μ⊙Θ~(x)).(8)\widehat{\Delta}_s(x) = B\widetilde{\Theta}(x) + g_\psi\left(\mu\odot\widetilde{\Theta}(x)\right). \tag*{(8)}

Equation (8) defines the complete state correction. Here, F\mathcal{F} is the candidate feature set with a fixed evaluation order, Θ(x)\Theta(x) evaluates its features as a vector, Θ~(x)∈Rp\widetilde{\Theta}(x) \in\mathbb{R}^{p} is its root-mean-square-scaled deployed subset, B∈Rns×pB \in\mathbb{R}^{n_s \times p} is the sparse coefficient matrix, μ∈{0,1}p\mu\in\{0,1\}^{p} marks features active in at least one state coordinate, gψg_\psi is the masked neural remainder, and ⊙\odot is elementwise multiplication. The remainder has one 32-unit SiLU hidden layer and a zero-initialized output layer. It therefore starts at zero and cannot consume a feature outside the reported support.

A degree-two polynomial library supplies the base features. Sequentially thresholded least squares (STLSQ) uses fixed ridge and threshold values; deterministic additions must pass a selection-partition mean squared error (MSE) gate and a coefficient screen. The accepted feature order and support are then locked. Online residual refits update coefficients, the masked neural remainder, reward, and eligible termination heads without adding features, and weight rows by proximity to recent policy states. Appendix § 14.§ 1 gives the selection gate in Equation (17), the refit weight in Equation (18), and the termination prediction in Equation (19).

Confidence and Predicate Weights

For target sample ii, define the deployed-model state error ei=ns−1∥s^i+1−si+1∥22e_i = n_s^{-1}\lVert\widehat{s}_{i+1} - s_{i+1}\rVert_2^2. Let τe\tau_e be an positive exponential moving average of the batch median error, initialized at 10−310^{-3} and updated with weight 0.10.1 on the new median (floored at 10−810^{-8}), and ci=(1+ei/τe)−1c_i = (1 + e_i/\tau_e)^{-1}. MC-WM fits a nonpositive log-confidence critic QξΔQ^\Delta_\xi. Its ensemble signature σens(s,a)∈R≥0ns+1\sigma_{\mathrm{ens}}(s,a) \in\mathbb{R}_{\geq0}^{n_s+1} is deviation of the direct target ensemble on the direct route and of the frozen simulator ensemble on the residual route. The regression target is

qitgt=log⁡max⁡(ci,10−8)+γΔ(1−κi)QξˉΔ(si+1,ai+1det,σens(si+1,ai+1det)),(9)q_i^{\mathrm{tgt}}=\log\max(c_i,10^{-8})+\gamma_{\Delta}(1-\kappa_i)Q_{\bar{\xi}}^{\Delta}\left(s_{i+1},a_{i+1}^{\mathrm{det}},\boldsymbol{\sigma}_{\mathrm{ens}}\left(s_{i+1},a_{i+1}^{\mathrm{det}}\right)\right), \tag*{(9)}

where ai+1deta_{i+1}^{\mathrm{det}} is the current policy’s deterministic action (the squashed Gaussian mean) at si+1s_{i+1}, ξ\xi is the confidence-critic parameter vector, ξˉ\bar{\xi} denotes its Polyak-averaged target parameters, and γΔ=0.5\gamma_{\Delta}=0.5 is distinct from the policy discount. The imagined transition weight is

wiΔ=exp⁡(QξˉΔ(si,ai,σens(si,ai)))∈(0,1].(10)w_i^{\Delta}=\exp\left(Q_{\bar{\xi}}^{\Delta}\left(s_i,a_i,\boldsymbol{\sigma}_{\mathrm{ens}}(s_i,a_i)\right)\right)\in(0,1]. \tag*{(10)}

Equation (9) trains the critic, while Equation (10) converts its nonpositive output to a weight. This value is a learned ranking signal, not a calibrated probability.

The deterministic predicate set CC contains broad morphology-specific representation, transition-magnitude, and reward-range checks. The Walker set additionally rejects non-finite predictions. The HalfCheetah and Walker experiments use nonempty sets; the Ant environment uses an empty set. For imagined transition ii, the indicator χi\chi_i is one only when every configured predicate passes. The final trust weight is

wi=wiΔχi,(11)w_i=w_i^{\Delta}\chi_i, \tag*{(11)}

and rows with wi≤0.01w_i\le0.01 are discarded. Predicates remove known invalid predictions but do not constrain target actions.

Violation-Aware Policy Optimization and Checkpoint Selection

Every 250 target steps, the current policy acts from 400 target-replay states, and M^T\widehat{M}_{T} generates one-step transitions. Physical rewards are stored without confidence scaling. A separate binary violation indicator ιi∈{0,1}\iota_i\in\{0,1\} is supplied by target-environment diagnostics for real transitions and by the same environment’s state predicate for imagined transitions. At online step t∈{1,…,Non}t\in\{1,\ldots,N_{\mathrm{on}}\}, replay sampling uses

λv(t)=10max⁡(0,t−0.5Non0.5Non),ritrain=ri−λv(t)ιi.(12)\lambda_{\mathrm{v}}(t)=10\max\left(0,\frac{t-0.5N_{\mathrm{on}}}{0.5N_{\mathrm{on}}}\right),\qquad r_i^{\mathrm{train}}=r_i-\lambda_{\mathrm{v}}(t)\iota_i. \tag*{(12)}

Thus Equation (12) leaves the violation cost at zero through the first half of online training and raises it linearly to 10; the cost is distinct from the trust weight in Equation (11).

Let I\mathcal{I} index a minibatch of size b=256b=256, let QηjQ_{\eta_j} be policy critic j∈{1,2,3}j\in\{1,2,3\} with parameters ηj\eta_j, and let yiQy_i^Q be the SAC target formed with scale-normalized ritrainr_i^{\mathrm{train}}, the minimum of the three target critics, and the entropy-adjusted stochastic next action. The critic loss is

LQ=13b∑j=13∑i∈Iwi(Qηj(si,ai)−yiQ)2+λens1b∑i∈IStd⁡j[Qηj(si,ai)],(13)\mathcal{L}_{Q}=\frac{1}{3b}\sum_{j=1}^{3}\sum_{i\in\mathcal{I}}w_i\left(Q_{\eta_j}(s_i,a_i)-y_i^Q\right)^2+\lambda_{\mathrm{ens}}\frac{1}{b}\sum_{i\in\mathcal{I}}\operatorname{Std}_j\left[Q_{\eta_j}(s_i,a_i)\right], \tag*{(13)}

In Equation (13), wi=1w_i=1 for target transitions, λens=0.01\lambda_{\mathrm{ens}}=0.01, and Std⁡j\operatorname{Std}_j takes the sample standard deviation across the three policy critics. The actor maximizes the critic mean minus two critic standard deviations plus the SAC entropy term, with a 10−310^{-3} behavior-cloning MSE penalty. Policy learners use scale-only running reward normalization.

An initial simulator-to-residual state root mean squared error (RMSE) ratio ϱcal\varrho_{\mathrm{cal}} on Ical\mathcal{I}_{\mathrm{cal}} fixes whether actor updates mix target and imagined states; this actor route is separate from Equation (4). Fixed validation checkpoints may restore an eligible actor before the one-time held-out test, so validation is counted as model-selection access. The exact actor band, restoration inequalities, and complete training procedure appear in Appendix § 14.§ 2.

Experimental Protocol

Controlled Target Domains

Experiments use the MuJoCo physics engine ((Todorov et al., 2012)) through Gymnasium 1.2.0 v5 tasks. Each simulator–target pair preserves the task morphology and observation and action dimensions while changing one controlled dynamics factor. The final-confirmation matrix contains three environments, spanning three morphologies and three shift types (Table 1). Appendix § 15 gives the exact physics, reward, and termination transformations. We call the held-out member of each pair the target; these are simulator-to-simulator experiments, not physical sim-to-real deployments.

NameBase taskSimulator → target dynamicsCounted violation
Ant actuatorAnt-v58 active → actions 4–7 disabled∣vx∣>1.5|v_x| > 1.5 or rear-wall hit
GravityHalfCheetah-v5vertical gravity −19.62→−9.81-19.62 \rightarrow-9.81qz>0.2q_z > 0.2
Friction WalkerWalker2d-v5friction factor 0.3→1.00.3 \rightarrow1.0s(0)>1.25s^{(0)} > 1.25

Table 1. Controlled simulator-to-target environments. Each reported constraint is identical in the simulator and target member of a pair.

The task coordinates are qzq_z, HalfCheetah’s root vertical generalized coordinate at observation index 0; vxv_x, Ant’s forward velocity at index 13; and s(0)s^{(0)}, Walker’s root-height observation. The HalfCheetah coordinate is zero-centered, not absolute torso height. Gravity is in m s−2^{-2}.

The Gravity and Friction Walker thresholds apply continuous quadratic reward penalties, whereas the Ant environment combines a quadratic velocity penalty with termination when the world-frame base position is below −3-3 along the first horizontal coordinate. A violation is counted at each penalized step and at a wall termination. Counts are therefore comparable only within an environment and are never pooled across constraint definitions.

The Ant construction is inspired by the Ant-Broken constraint-transfer setting of Anwar et al. [2], but it is not a reproduction. It uses a 27-dimensional Gymnasium-v5 observation, four disabled actuator channels, a project-specific radial reward, and a shared velocity cap. The deterministic predicate set used by MC-WM does not contain an Ant-specific predicate in the reported protocol; Ant violations remain environment outcomes and training costs rather than predicate-filter events.

Candidate Freezing and Main Comparators

The final candidate was fixed before the confirmation endpoints were read. A registered seven-seed development screen replaced the predecessor’s indirect state-error-gap route with the calibration risk in Equation (3). A subsequent implementation audit found that fitting the direct candidate had consumed the global random stream before policy initialization. We corrected this causal confound by isolating the component random stream as described in § 3.2, froze the corrected source, and discarded the affected confirmation endpoints from the submission evidence. The final ten-seed bank was then sampled separately. It excludes all 40 seeds registered by the preceding development and confirmation studies. Development outcomes are used only for algorithm selection; all main performance claims use the fresh, random-stream-isolated confirmation matrix.

The main matrix contains the frozen calibration-routed MC-WM candidate in Algorithm 1 and five controls. Residual MC-WM core retains the sparse-plus-neural residual, confidence critic, and policy-aware refitting, but fixes residual deployment and removes adaptive update routing, the violation cost, and validation-based checkpoint restoration. Direct target MBPO fits the same probabilistic world-model architecture directly to target transitions and uses one-step rollouts. Target SAC learns from target transitions without a learned world model. Our matched-protocol DARC implementation uses the published additive state-action and state-action-next-state classifiers, 32-unit hidden layers, unit Gaussian input noise, and starts reward correction after 4,000 online updates (Eyselein et al. (2020)). The warmup is scaled to our 40,000-step online phase and is not presented as a reproduction of DARC’s original longer schedule. Raw simulator SAC learns for 50,000 interactions in the uncorrected simulator and receives no target-domain training transition. All SAC-labelled methods use the same project-specific policy backbone described in § 3.5; “SAC” does not denote an otherwise unchanged reference implementation.

The primary comparisons are candidate versus residual MC-WM core and direct target MBPO. They test whether calibrated family selection improves over a fixed residual and whether simulator correction improves over direct target modeling. Target SAC, DARC, and raw simulator SAC are secondary controls for model-free target learning, classifier-based adaptation, and zero-targettraining transfer, respectively. Every method is run for ten independently trained seeds on all three environments, giving 3×6×10=1803 \times6 \times10 = 180 confirmation runs from one frozen source tree.

Training and Evaluation Access

Table 2 separates interactions that can change model or policy parameters from target validation and final testing. Each adaptive method receives 10,000 initial target transitions and 40,000 online target transitions. Candidate and residual runs also use 50,000 simulator transitions to fit the frozen source model. DARC uses 10,000 initial and 40,000 online simulator transitions. Direct target MBPO and target SAC use no simulator training transition. Raw simulator SAC instead uses 50,000 simulator transitions and zero target training transitions.

Table 2: Registered per-seed environment access. Episode lengths determine the realized validation and test transition counts, which are recorded in the interaction ledger.

MethodSimulator trainTarget trainValidationFinal test
Calibration-routed MC-WM50,00050,0008 × 5 episodes20 episodes
Residual MC-WM core50,00050,0008 × 5 episodes20 episodes
Direct target MBPO / target SAC050,0008 × 5 episodes20 episodes
DARC50,00050,0008 × 5 episodes20 episodes
Raw simulator SAC50,00008 × 5 episodes20 episodes

Table 2. Registered per-seed environment access. Episode lengths determine the realized validation and test transition counts, which are recorded in the interaction ledger.

Whenever a method receives an initial simulator or target dataset, each action coordinate is sampled independently and uniformly within the environment’s action bounds using a dataset-specific seed. Online loops index interactions from t=1t = 1: actions are sampled from the same uniform distribution for t<2,000t < 2{,}000 (steps 1–1,999), and from the stochastic policy beginning at t=2,000t = 2{,}000. DARC applies this online cutoff simultaneously in its simulator and target streams; raw simulator SAC applies it only in the simulator. These random-action transitions are included in the training budgets in Table 2.

Validation uses seeds 10,000–10,004 for five episodes at each of eight checkpoints. Adaptive methods are evaluated every 5,000 online steps; raw simulator SAC is evaluated every 6,250 simulator steps so that it has the same number of validation calls over its 50,000-step budget. The one-shot final test uses seeds 20,000–20,019 for 20 episodes. An episode has at most 1,000 steps, so an adaptive run can access at most 110,000 target transitions: 50,000 for training, 40,000 for validation, and 20,000 for final testing. Early terminations reduce the realized count.

Validation data never enter gradient updates. They are nevertheless model-selection access: the candidate and its exact routing variants can restore a registered actor checkpoint from the validation trajectory. We therefore report training, validation, test, and total target access separately and do not describe the 50,000-transition training budget as total target access. Figure 3 in Appendix § 13 reports realized access by environment and method. Learning curves use cumulative target training plus validation interactions on the horizontal axis, which permits the registered method-specific checkpoint grids without treating simulator steps as target access.

Figure 3. Actual target access by method and environment. Bars show cross-seed means for training, validation, and final-test transitions; error bars show the 20,000-resample percentile-bootstrap 95% CI of mean total access.

Registered Counterfactual and Ablations

The exact routing study reuses the 30 final-candidate cells and adds 60 forced controls. All arms fit both candidates with equal non-routing arguments and frozen pre-deployment diagnostics; the automatic arm must exactly reproduce the metric stream and sanitized summary of its selected forced arm. The registered contrast is automatic routing minus the unselected alternative. Separate 3×8×10=2403 \times8 \times10 = 240 predecessor-mechanism and 3×2×10=603 \times2 \times10 = 60 fixed-route sparse-versus-dense matrices test component and residual-backed claims. Appendices § 12.§ 1, § 12.§ 2, and § 12.§ 3 give the respective interventions and matching rules.

Endpoints, Diagnostics, and Statistics

The statistical unit is one independently trained seed. For each environment and method, we report undiscounted episode return and counted violations, aggregated as the mean and sample standard deviation (SD) of seed-level 20-episode test means. Pre-registered paired comparisons subtract outcomes within the same environment and training seed and use a 20,000-resample percentile-bootstrap 95% confidence interval (CI) for the cross-seed mean. The main study uses candidate minus control. The routing study reports both candidate minus each forced arm and, as its causal contrast, automatic routing minus the forced alternative selected per seed. The mechanism matrix uses ablation minus predecessor, and the sparse-versus-dense study uses dense minus sparse. We label a direction only when its CI excludes zero, report every favorable, unfavorable, and unresolved comparison, and make no unregistered family-wise claim. Returns are not pooled across environments because their reward scales differ.

Each final-candidate run additionally reports the selected world-model family, both calibration risks, active and deployed sparse-support sizes, cross-seed support Jaccard overlap, confidence weights, and predicate rejection rate. The confidence diagnostic uses the first 1,000 stored target-replay transitions at the final model fit, and rejection rates aggregate imagined-rollout checks. The sparse-versus-dense study also reports calibration transition error and trainable state-residual parameters for both backends. These diagnostics test route consistency, quantify model fit and capacity, and distinguish inspection of one fitted symbolic correction from stability of that correction across seeds. No support-stability claim is inferred from equation export alone; Appendix § 11 gives the fixed display rule.

The four matrices contain 540 unique reported cells from 541 completed executions. Aggregation rejects provenance, seed, budget, evaluation, or artifact drift, and generates every table and figure from validated artifacts. Appendix § 16 gives the matrix ledger, replacement execution, frozen identities, and generation command.

Results

Held-Out Main Comparison

Table 3 reports the one-shot held-out outcomes for the six methods. Figure 2 in Appendix § 13 shows validation trajectories against cumulative target access. These trajectories can trigger candidate checkpoint restoration; held-out test episodes remain disjoint from that decision.

MethodAnt actuator: Return ↑\uparrowAnt actuator: Violations ↓\downarrowHalfCheetah gravity: Return ↑\uparrowHalfCheetah gravity: Violations ↓\downarrowWalker friction: Return ↑\uparrowWalker friction: Violations ↓\downarrow
Calibration-routed MC-WM4084.9±2105.94084.9 \pm2105.91.39±1.191.39 \pm1.194954.8±488.64954.8 \pm488.60.20±0.400.20 \pm0.40394.6±68.4394.6 \pm68.40.31±0.090.31 \pm0.09
MC-WM core1361.7±527.61361.7 \pm527.61.38±1.481.38 \pm1.484609.9±602.04609.9 \pm602.02.48±5.312.48 \pm5.31434.4±247.8434.4 \pm247.824.98±59.2424.98 \pm59.24
Direct target MBPO4011.5±3346.24011.5 \pm3346.21.26±1.321.26 \pm1.324827.5±1043.24827.5 \pm1043.20.66±0.890.66 \pm0.89350.7±100.7350.7 \pm100.723.59±21.4523.59 \pm21.45
Target SAC2159.2±461.12159.2 \pm461.13.95±1.633.95 \pm1.633770.3±644.43770.3 \pm644.49.52±10.249.52 \pm10.24261.2±98.8261.2 \pm98.87.16±8.197.16 \pm8.19
DARC1862.2±534.71862.2 \pm534.71.80±2.381.80 \pm2.381268.6±528.11268.6 \pm528.144.23±26.0344.23 \pm26.03252.5±138.0252.5 \pm138.017.26±19.0317.26 \pm19.03
Raw simulator SAC1588.6±416.21588.6 \pm416.20.41±0.350.41 \pm0.351088.8±834.01088.8 \pm834.09.86±5.269.86 \pm5.26408.8±279.9408.8 \pm279.933.12±68.5433.12 \pm68.54

Table 3. Held-out target-domain outcomes over ten independently trained seeds (mean ±\pm sample SD). Higher return and fewer violations are better. Test seeds are fixed across methods; target training, validation, and test access are reported separately in Appendix § 13.

Figure 2. Validation return and violations against cumulative target access. Lines are ten-seed means and bands are 20,000-resample percentile-bootstrap 95% confidence intervals for the cross-seed mean. The horizontal coordinate includes target training plus cumulative validation interactions. Validation outcomes do not enter gradient updates, but the registered candidate may use its validation trajectory for checkpoint restoration.

Relative to target SAC, calibration-routed MC-WM increases return on Ant by 1925.7 [715.6, 3222.3], on HalfCheetah gravity by 1184.5 [724.5, 1752.7], and on Walker friction by 133.4 [67.6, 197.9]. The paired violation differences are −2.56 [−3.74, −1.45], −9.32 [−15.79, −3.71], and −6.85 [−11.84, −2.25], respectively; all three favor MC-WM. Candidate return also exceeds DARC in every environment. DARC violation differences favor MC-WM on gravity and Walker and are unresolved on Ant.

Direct target MBPO is the strongest model-based comparator. Its return interval against the candidate includes zero in all three environments: Ant 73.4 [−1947.6, 1569.0], gravity 127.3 [−398.3, 731.5], and Walker 43.9 [−32.2, 120.4]. On Walker, however, MC-WM reduces violations by −23.29 [−36.18, −11.21]. Compared with fixed residual MC-WM core, the candidate improves Ant return by 2723.2 [1502.9, 4056.3]; gravity and Walker return differences are unresolved, while Walker violations favor the candidate. Against raw simulator SAC, the candidate improves Ant and gravity return but incurs more Ant violations; Walker return is unresolved and Walker violations favor the candidate. These contrasts rule out a claim of dominance on every endpoint.

Exact Routing Counterfactual

The calibration criterion selects the direct target family in all ten Ant and all ten gravity runs, and the residual family in all ten Walker runs (Table 4). Every automatic run exactly matches its selected forced arm, establishing that the override itself does not perturb the selected training trajectory. The causal contrast therefore compares automatic routing with the unselected forced alternative under matched random streams.

EnvironmentSelected R/DExact matchReturn difference (95% CI)Violation difference (95% CI)
Ant actuator0/1010/101529.9 [426.9, 2833.1]0.72 [-0.05, 1.60]
HalfCheetah gravity0/1010/10188.0 [-178.7, 591.7]0.08 [-0.11, 0.37]
Walker friction10/010/10-21.2 [-56.0, 8.7]-0.04 [-0.19, 0.06]

Table 4. Exact route intervention over ten paired seeds. Selected R/D is the automatic residual/direct count; exact match compares the complete metric stream with the selected forced arm. Differences are automatic routing minus the unselected forced alternative, so positive return and negative violations favor the selector.

The automatic-minus-alternative return differences are 1529.9 [426.9, 2833.1] on Ant, 188.0 [−178.7, 591.7] on gravity, and −21.2 [−56.0, 8.7] on Walker. The corresponding violation differences are 0.72 [−0.05, 1.60], 0.08 [−0.11, 0.37], and −0.04 [−0.19, 0.06]. Ant supplies a resolved route-return benefit; gravity and Walker return effects and all route-level violation effects are unresolved.

Mechanisms, Capacity, and Inspectability

The studies in Appendix § 12 distinguish predecessor mechanisms from the final selector. The predecessor matrix supports validation checkpoint restoration on Ant and Walker, avoiding a fixed residual route on Ant, and a return–violation tradeoff from the violation cost; separate confidence and predicate removals remain unresolved. The fixed-route sparse comparison resolves no control endpoint, but uses fewer state-residual parameters in every environment while calibration risk favors different backends by environment. Auditability records show low cross-seed support overlap despite per-run equation export. Appendix Tables 6, 7, and 8 report the complete contrasts and diagnostics. The exported sparse-coordinate corrections in Equations (14), (15), and (16) make this per-run inspectability concrete; they are not governing laws shared across seeds.

Discussion

The strongest result is model-family choice rather than residual modeling alone. Calibration risk routes Ant and gravity to direct target models and Walker to residual models. Exact selected-arm equality rules out an independent override effect; Ant shows a return benefit with no resolved route harm elsewhere. The main matrix also favors MC-W over target SAC and matched DARC, but return relative to direct target MBPO remains unresolved. The supported claim is therefore calibrated choice under these shifts, not universal routing or model-based dominance.

The predecessor matrix supports checkpoint restoration, Ant fixed-route avoidance, and a violation-cost tradeoff, but not separate universal effects of confidence or predicates. Sparse residuals use fewer parameters and export per-run equations, yet show no endpoint advantage, mixed calibration error, and low cross-seed support overlap. Inspectability holds; stable structural discovery and sparse control superiority do not.

Limitations

The evidence covers three controlled MuJoCo shifts, not physical sim-to-real transfer or within-task route switching. DARC is the only external adaptation method under the identical access contract. Every adaptive method receives 50,000 target training interactions plus validation and test access, and the candidate may use validation for actor restoration; reduced total access and one-shot adaptation are not established. Confidence and predicates are empirical weights, not uncertainty bounds or safety guarantees. The Ant observation omits absolute planar position, although its radial reward and wall termination depend on that position. Its observation-space MDP is therefore an approximation: identical model inputs can have different rewards or wall outcomes, limiting the reward and termination heads. Broader shifts, matched adaptation baselines, and physical evaluation remain necessary.

Artificial Intelligence Use Statement

Artificial intelligence (AI) assistance through OpenAI Codex was used for literature and citation checks, feedback on method and experiment design, implementation audits and code editing, experiment orchestration, statistical aggregation, result interpretation, and manuscript drafting. The authors selected the research questions and frozen protocol, approved the changes, and reviewed the source metadata, mathematical statements, code, and reported artifacts. No large language model was called inside the reported training or evaluation runs, generated an experimental outcome, or selected which completed test results to report. The authors take responsibility for the final text, claims, code, and artifacts.

Ethics Statement

The study uses simulated control environments and does not involve human participants, personal data, animals, or physical-robot deployment. Confidence and predicate weights are empirical model-learning mechanisms and are not a formal safety guarantee.

Reproducibility Statement

§ 4 defines the environment shifts, comparators, interaction accounting, seeds, and statistical procedure. Appendix § 14 lists the main hyperparameters, and Appendix § 16 identifies the frozen source and the single command that regenerates the validated submission outputs. The anonymous supplemental archive contains source code, environment definitions, per-seed endpoint values, validation curves, target-access ledgers, symbolic supports, figure source data, sanitized per-run manifests and metrics, and the regeneration scripts. The manifests preserve experimental provenance but replace the machine-local run directory and Git revision; checkpoints are excluded because no reported result requires them. The public code repository is https://github.com/erzhu419/MC-WM.

Complete Notation Ledger

Table 5 fixes one meaning for every nonstandard symbol used in the manuscript. Standard arithmetic operators retain their usual meaning. Indices are fixed as follows: tt is interaction time, ii is a data sample, i′i' is an auxiliary sample in a normalization, kk is a joint prediction-output coordinate (1≤k≤ns+11 \le k \le n_s + 1), jj is a policy critic (1≤j≤31 \le j \le3), mm is a zero-based state coordinate (0≤m<ns0 \le m < n_s), nn is a zero-based action coordinate (0≤n<na0 \le n < n_a), uu is a validation-checkpoint index, mm is a candidate world-model family, and ℓ\ell is a domain. Generic ss, aa, and xx omit the interaction index; s′s' denotes a successor state. Hats denote predictions, and the superscript (R)(\mathrm{R}) restricts a prediction to the residual candidate. Parameters retain the same roles: ϕ\phi for the policy, ψ\psi for the neural state remainder, ζ\zeta for the reward correction, ν\nu for the termination head, ξ\xi for the confidence critic, and ηj\eta_j for policy critic jj; ξ~\tilde{\xi} is the confidence target’s parameter vector. R\mathbb{R} denotes the real numbers, ∥⋅∥2\lVert\cdot\rVert_2 the Euclidean norm, ⊙\odot elementwise multiplication, ∣Ical∣\lvert\mathcal{I}_{\mathrm{cal}}\rvert set cardinality, ∣⋅∣\lvert\cdot\rvert on scalars absolute value, and I[⋅]\mathbb{I}[\cdot] the Boolean indicator.

SymbolUnique meaning
SS; A\mathcal{A}state space; action space
Mℓ\mathcal{M}_{\ell}domain MDP, with ℓ∈{S,T}\ell\in\{S, T\} denoting simulator or target
PℓP_{\ell}; ρℓ\rho_{\ell}transition kernel; expected one-step reward in domain ℓ\ell
γ\gamma; p0p_0policy-return discount; initial-state distribution
πϕ\pi_{\phi}policy with parameter vector ϕ\phi
JM(π)J_{\mathcal{M}}(\pi)discounted return of policy π\pi in MDP M\mathcal{M}
E\mathbb{E}expectation under the subscripted process
sts_t; ata_t; rtr_t; κt\kappa_tobserved state; action; observed reward; observed termination indicator at time tt
s(m)s^{(m)}; a(n)a^{(n)}coordinate mm of a generic state; coordinate nn of a generic action
xt=[st;at]x_t = [s_t; a_t]concatenated state-action input
nsn_s; nan_a; ppstate dimension; action dimension; deployed feature count
DS\mathcal{D}_S; DT\mathcal{D}_T; DT0\mathcal{D}^{0}_Tsimulator training dataset; target training dataset; initial target dataset available before online interaction
Ifit\mathcal{I}_{\mathrm{fit}}; Isel\mathcal{I}_{\mathrm{sel}}; Ical\mathcal{I}_{\mathrm{cal}}initial target fit; feature-selection and early-stopping; calibration index set
M^S\widehat{\mathcal{M}}_S; M^R\widehat{\mathcal{M}}_R; M^D\widehat{\mathcal{M}}_D; M^T\widehat{\mathcal{M}}_Tfrozen simulator model; residual candidate; direct target candidate; deployed target model
ziz_i; z^i(m)\widehat{z}_i^{(m)}joint state-increment and reward target; its prediction from candidate family m\mathbf{m}
ςk\varsigma_kfit-partition scale for joint-target coordinate kk
m\mathbf{m}; m⋆\mathbf{m}^{\star}candidate world-model family; deployed family
Rm\mathcal{R}_{\mathbf{m}}standardized calibration transition risk for family m\mathbf{m}
u^S(x)\widehat{u}_S(x); ρ^S(x)\widehat{\rho}_S(x)simulator state-increment; reward prediction
Δ^s(x)\widehat{\Delta}_s(x); Δ^r,ζ(x)\widehat{\Delta}_{r,\zeta}(x)target state; reward correction, with reward parameters ζ\zeta
Δ^s,sp(m)(s,a)\widehat{\Delta}^{(m)}_{s,\mathrm{sp}}(s,a)coordinate mm of the reported sparse state-correction branch
p^ν(s,a,s′)\widehat{p}_{\nu}(s,a,s')termination probability with parameters ν\nu
s^t+1\widehat{s}_{t+1}; r^t\widehat{r}_t; κ^t\widehat{\kappa}_tdeployed-model state; reward; termination prediction
yiΔsy_i^{\Delta_s}target state-correction regression target for sample ii
F\mathcal{F}; Θ(x)\Theta(x); Θ~(x)\widetilde{\Theta}(x)candidate feature set with fixed evaluation order; its unscaled evaluation vector; scaled deployed feature vector
BB; μ\musparse state-correction coefficient matrix; binary feature-support mask
gψg_{\psi}masked neural state remainder with parameters ψ\psi
ff; Lsel\mathcal{L}_{\mathrm{sel}}; ϵfeat\epsilon_{\mathrm{feat}}candidate feature; selection loss; required selection improvement
ωi\omega_i; did_i; hdh_dpolicy-visitation refit weight; root mean squared standardized Euclidean distance to eight neighbors; positive distance bandwidth
eie_i; τe\tau_e; cic_istate prediction MSE; running median-error scale; one-step confidence target
σens(s,a)\boldsymbol{\sigma}_{\mathrm{ens}}(s,a)coordinatewise state-increment and reward standard deviation from the route-specific uncertainty ensemble
QξˉΔQ^{\Delta}_{\bar{\xi}}; QξˉΔQ^{\Delta}_{\bar{\xi}}log-confidence critic; Polyak-averaged target critic
ai+1deta^{\mathrm{det}}_{i+1}deterministic action of the current policy at sample ii’s successor
γΔ\gamma^{\Delta}; qitgtq_i^{\mathrm{tgt}}confidence discount; confidence regression target
wiΔw_i^{\Delta}imagined-transition confidence weight
CC; χi\chi_ideterministic predicate set; binary predicate-pass indicator
wiw_ifinal policy-critic loss weight for transition ii
I\mathcal{I}; bbpolicy-optimization minibatch index set; its size
QηjQ_{\eta_j}; yiQy_i^Qpolicy critic jj with parameters ηj\eta_j; standard SAC target
LQ\mathcal{L}_Q; λens\lambda_{\mathrm{ens}}weighted policy-critic loss; critic-disagreement coefficient
ιi\iota_i; λV(t)\lambda_V(t); ritrainr_i^{\mathrm{train}}binary violation indicator; online violation cost; reward consumed by policy training

Table 5. Complete mathematical notation.

SymbolUnique meaning
ϱcal\varrho_{\mathrm{cal}}initial simulator-to-residual state RMSE ratio on the calibration partition
G‾u\overline{G}_u; V‾u\overline{V}_umean undiscounted validation return; mean validation violations per episode at checkpoint uu
G‾peak\overline{G}_{\mathrm{peak}}; G‾final\overline{G}_{\mathrm{final}}peak; final-checkpoint mean undiscounted validation return
KK; NonN_{\mathrm{on}}member count in either probabilistic world-model ensemble; online target-training budget
qzq_z; vxv_xHalfCheetah root vertical generalized coordinate; Ant forward velocity

Auditability Diagnostics

Table 6 reports diagnostics from the ten complete MC-WM runs in each environment. Support and state-error columns describe the residual candidate even when the direct family is deployed: the initial fit on Ant and gravity, and the final residual refit on Walker. SINDy MSE and additive MSE are unstandardized state-correction errors on that fit’s calibration partition; the error 95th percentile is the Euclidean norm of the additive state error, not the standardized joint routing risk in Equation (3). The support Jaccard statistic compares active coordinate-feature pairs between every pair of training seeds. Low overlap is evidence against cross-seed structural stability; it does not prevent a run’s locked equation and coefficients from being inspected. Confidence is evaluated on the fixed target-replay prefix defined in § 4; the rejection rate aggregates every predicate check made during imagined rollouts.

EnvironmentActive coeff.Support overlapSINDy MSEAdditive MSEError 95th pct.Mean confidenceReject rate
Ant, actuator failure228.9 (50.5)0.24 [0.19, 0.30]0.34 (0.04)0.21 (0.06)4.32 (0.73)0.23 (0.08)0.0% (0.0)
HalfCheetah, soft gravity271.2 (58.9)0.26 [0.16, 0.37]0.98 (0.94)0.40 (0.05)5.24 (0.32)0.27 (0.02)35.1% (8.4)
Walker2d, friction210.5 (30.2)0.20 [0.15, 0.26]2.53 (1.07)0.56 (0.20)6.22 (1.01)0.26 (0.04)55.9% (4.5)

Table 6. Per-run model diagnostics aggregated across training seeds. Parentheses contain cross-seed SD unless a range is shown.

Equations (14), (15), and (16) give the complete, untruncated representative coordinate corrections selected by the fixed rule below. They report only BΘ^\widehat{B\Theta}, not the neural remainder in Equation (8):

Ant, actuator failure (support-medoid seed 952414860).

Δ^s,sp(9)(s,a)=−0.138a(6)(14)\widehat{\Delta}^{(9)}_{s,\mathrm{sp}}(s,a)=-0.138a^{(6)} \tag*{(14)}

HalfCheetah, soft gravity (support-medoid seed 952414860).

Δ^s,sp(7)(s,a)=−0.128s(0)s(1)(15)\widehat{\Delta}^{(7)}_{s,\mathrm{sp}}(s,a)=-0.128s^{(0)}s^{(1)} \tag*{(15)}

Walker2d, friction (support-medoid seed 295539546).

Δ^s,sp(9)(s,a)=−8.6+7.04s(0)−9.02s(1)+2.04s(2)+0.943s(3)−1.07s(5)+4.2s(9)−0.0474s(15)−0.0382s(16)+3.74s(0)s(1)−0.143s(0)s(2)+0.399s(0)s(5)−2.22s(0)s(9)+0.033s(0)s(15)+0.0574s(0)s(16)−0.44s(1)s(3)s(6)+1.65s(0)s(3)s(6)(16)\begin{aligned} \widehat{\Delta}^{(9)}_{s,\mathrm{sp}}(s,a)={}&-8.6+7.04s^{(0)}-9.02s^{(1)}+2.04s^{(2)}\\ &+0.943s^{(3)}-1.07s^{(5)}+4.2s^{(9)}-0.0474s^{(15)}\\ &-0.0382s^{(16)}+3.74s^{(0)}s^{(1)}-0.143s^{(0)}s^{(2)}+0.399s^{(0)}s^{(5)}\\ &-2.22s^{(0)}s^{(9)}+0.033s^{(0)}s^{(15)}+0.0574s^{(0)}s^{(16)}-0.44s^{(1)}s^{(3)}s^{(6)}\\ &+1.65s^{(0)}s^{(3)}s^{(6)} \tag*{(16)} \end{aligned}

The supplemental auditability directory contains full_symbolic_support.json, which stores every active term and coefficient for all thirty final-candidate runs.

For display only, the representative seed maximizes mean support Jaccard to the other nine seeds. Within that run, the fixed rule prefers nonempty coordinates with at most eight terms, then orders them by cross-seed coordinate support Jaccard, fewer terms, and output label. This rule does not affect model fitting, route selection, or endpoint analysis.

Registered Mechanism and Residual Studies

Exact routing counterfactual

On the fresh confirmation seeds, all three arms execute the same residual and direct-target candidate fitting code with matched data, initialization, and isolated component random streams. Direct-candidate fitting saves and restores the global NumPy and PyTorch random states, including visible accelerators; its dedicated stream is derived deterministically from the training seed. The automatic arm deploys the lower-risk family; the controls force residual or direct deployment only after both risks have been recorded. Violation costs, trust filters, actor updates, termination treatment, and checkpoint restoration are identical. The analyzer requires equal non-routing arguments and diagnostics frozen before deployment; mutable online residual-refit diagnostics are excluded. For each seed, the automatic arm must also have a byte-identical metric stream and equal summary, after removing two route-label fields, to the forced arm for its selected family.

Predecessor mechanism matrix

A source-identical 3×8×103 \times8 \times10 matrix starts from the frozen gap-routed predecessor and removes model-family routing, confidence weighting, deterministic predicates, the violation cost, validation checkpoint restoration, or the sparse state branch. A seventh control removes both routing and the sparse branch, allowing a fixed-residual sparse contrast. This matrix tests the predecessor; it is not relabelled as an ablation of the final calibration-risk selector.

EnvironmentAblationReturn difference (95% CI)Violation difference (95% CI)
Ant actuatorNo checkpoint selection-428.8 [-650.1, -212.8]-0.01 [-0.32, 0.33]
Ant actuatorNo confidence weighting593.8 [-2024.7, 3881.6]2.28 [-0.38, 6.29]
Ant actuatorFixed residual route-2231.8 [-4461.5, -871.3]-0.50 [-1.18, 0.17]
Ant actuatorFixed residual route, neural only-2302.4 [-4409.3, -901.8]-0.57 [-1.23, 0.02]
Ant actuatorNo predicate filtering-162.2 [-2178.5, 1960.5]1.43 [-0.72, 4.96]
Ant actuatorNo sparse branch0.0 [0.0, 0.0]0.00 [0.00, 0.00]
Ant actuatorNo violation cost1560.0 [-960.7, 4793.5]17.02 [0.83, 46.07]
HalfCheetah gravityNo checkpoint selection57.1 [-0.0, 171.3]0.17 [0.00, 0.52]
HalfCheetah gravityNo confidence weighting-150.6 [-809.6, 685.1]-0.15 [-0.93, 0.52]
HalfCheetah gravityFixed residual route-202.1 [-477.8, 0.0]-0.25 [-0.62, 0.00]
HalfCheetah gravityFixed residual route, neural only-232.2 [-703.1, 287.4]0.08 [-0.77, 0.77]
HalfCheetah gravityNo predicate filtering-332.9 [-888.4, 230.9]0.17 [-0.79, 1.09]
HalfCheetah gravityNo sparse branch-175.0 [-599.0, 316.5]-0.06 [-0.88, 0.64]
HalfCheetah gravityNo violation cost89.2 [-197.2, 411.0]2.55 [-0.17, 6.33]
Walker frictionNo checkpoint selection-84.2 [-158.8, -24.9]-0.78 [-2.32, 0.01]
Walker frictionNo confidence weighting-11.3 [-87.1, 71.5]-0.76 [-2.30, 0.03]
Walker frictionFixed residual route0.0 [0.0, 0.0]0.00 [0.00, 0.00]
Walker frictionFixed residual route, neural only-26.6 [-188.1, 150.9]-0.68 [-2.24, 0.13]
Walker frictionNo predicate filtering-6.2 [-173.7, 167.1]-0.69 [-2.15, 0.07]
Walker frictionNo sparse branch-37.9 [-193.7, 135.6]-0.69 [-2.24, 0.12]
Walker frictionNo violation cost58.6 [6.7, 118.9]0.12 [0.03, 0.24]

Table 7. Paired component matrix for the frozen gap-routed predecessor. Differences are ablation minus predecessor; negative return therefore favors the predecessor, while negative violations favor the ablation. This matrix is not a source-identical ablation of the final calibration-risk selector.

Sparse versus dense state residual

A fresh 3×2×103 \times2 \times10 matrix compares the sparse additive residual plus masked neural remainder with a two-hidden-layer dense neural residual. Both arms force residual deployment and match target access, source-model data, reward and termination heads, trust filters, policy updates, and evaluation. The dense arm uses standardized raw state-action inputs and performs no feature discovery or symbolic regression. Primary endpoints are return and violations; calibration transition error and state-residual parameter count are secondary.

EnvironmentReturn difference (95% CI)Violation difference (95% CI)Calibration-risk difference (95% CI)State-parameter difference (95% CI)Classification
Ant actuator29.7 [-546.1, 652.8]-0.04 [-0.81, 0.72]0.629 [0.485, 0.796]1414 [1396, 1431]Unresolved
HalfCheetah gravity156.3 [-192.8, 506.9]0.66 [-0.24, 2.18]-0.103 [-0.170, -0.047]1347 [1308, 1401]Unresolved
Walker friction45.4 [-56.3, 147.4]0.33 [-0.08, 0.99]-0.007 [-0.010, -0.004]1386 [1337, 1440]Unresolved

Table 8. Paired dense-minus-sparse residual comparison under fixed residual deployment. Calibration risk is standardized transition error, and state parameters count trainable parameters in the state-correction branch.

Target-Access Ledger and Learning Curves

Figure 3 separates target training, validation, and final test interactions. Figure 2 plots validation return against cumulative target access through that checkpoint; its horizontal axis therefore includes validation interactions. The registered candidate does not use validation outcomes for gradient updates, but it can use them to select the actor evaluated at the final test.

Implementation Details

Table 9 lists the fixed calibration-routed candidate settings.

ComponentParameterValue
Simulator ensemblemembers / hidden layers / width5/3/200
Simulator ensemblebatch size / learning rate256/10−310^{-3}
Residual splitfit / selection / calibration0.8/0.1/0.1
Model-family routemetric / tie rulestandardized joint RMSE / residual
Sparse regressionridge / threshold0.05/0.05
Feature discoverybudget / minimum gain100/10−510^{-5}
Neural remainderhidden width / learning rate32/10−310^{-3}
Reward and termination headshidden width64
Online deployed-model refitfrequency / maximum rows1,000/50,000
Imagined datahorizon / batch / frequency1/400/250
Target / imagined replay capacitytransitions100,000/50,000
Confidence critichidden width / γΔ\gamma_\Delta128/0.5
Policy learnercritics / hidden width3/256
Policy learnerγ\gamma / learning rate0.99/(3×10−43 \times10^{-4})
Policy learnerpessimism / disagreement coefficient−2.0-2.0/0.01
Online explorationuniform-action cutofft<2,000t < 2{,}000
Actor routemixed-update calibration band[2.0,4.5)[2.0, 4.5)
Mixed actorsynthetic trust power / update interval0.5/4 critic updates
Standard actorupdate interval2 critic updates
Violation coststart / final value0.5Non0.5N_{\mathrm{on}}/10
Validation actor selectionviolation budget / return retention1.0/0.8

Table 9. Fixed MC-WM hyperparameters used by every calibration-routed candidate run.

Residual fitting details

STLSQ alternates ridge regression and coefficient thresholding, both set to 0.05. An additional deterministic orthogonal feature ff is accepted only when

Lsel(F∪{f})<Lsel(F)−ϵfeat,ϵfeat=10−5,(17)\mathcal{L}_{\mathrm{sel}}(\mathcal{F} \cup\{f\}) < \mathcal{L}_{\mathrm{sel}}(\mathcal{F}) - \epsilon_{\mathrm{feat}}, \qquad\epsilon_{\mathrm{feat}} = 10^{-5}, \tag*{(17)}

where an admitted ff is appended to the fixed feature order, and Lsel\mathcal{L}_{\mathrm{sel}} is the selection-partition MSE after refitting on Ifit\mathcal{I}_{\mathrm{fit}}. Before this gate, an orthogonal candidate is discarded when its largest estimated absolute coefficient exceeds 5. This is a local stability screen, not a bound on the complete coefficient matrix. The feature budget is p≤100p \le100; Equation (17) is the only selection-loss acceptance rule.

After discovery, the feature order and support mask μ\mu are locked. Residual-route refits update BB, gψg_{\psi}, and the reward and termination heads without adding features. The latest 10,000 state-action pairs form the policy reference bank; the distance calculation uses a reproducible 8,000-row subsample when the bank is larger. For refit sample ii, let did_i be the square root of the mean squared standardized Euclidean distance to its eight nearest retained reference points (with 10−810^{-8} added inside the square root), and let hdh_d be the median of these distances plus 10−610^{-6}. Its refit weight is

ωi=0.1+0.9exp⁡(−di/hd)max⁡i′exp⁡(−di′/hd).(18)\omega_i = 0.1 + 0.9 \frac{\exp(-d_i/h_d)}{\max_{i'} \exp(-d_{i'}/h_d)}. \tag*{(18)}

The index i′i' ranges over the refit samples. Equation (18) weights the sparse and neural state losses; it is not an importance ratio or a value-error bound.

A separate 64-unit ReLU classifier estimates target termination probability p^ν(s,a,s′)\hat{p}_{\nu}(s,a,s'). The deployed termination prediction is

κ^t=1[p^ν(st,at,s^t+1)≥0.5],(19)\hat{\kappa}_{t} = \mathbb{1}\left[\hat{p}_{\nu}(s_{t},a_{t},\hat{s}_{t+1}) \ge0.5\right], \tag*{(19)}

where ν\nu denotes classifier parameters and 1[⋅]\mathbb{1}[\cdot] is the indicator function. The initially fitted head is carried onto either route; residual-route refits update it. Equation (19) is consumed only when the observed target-replay termination rate exceeds 2%, avoiding an effectively unidentified rare-event classifier.

Actor routing, checkpoint selection, and complete procedure

The initial state-only calibration ratio ϱcal\varrho_{\mathrm{cal}} divides the frozen simulator state RMSE by the residual candidate state RMSE on Ical\mathcal{I}_{\mathrm{cal}}. When 2≤ϱcal<4.52 \le\varrho_{\mathrm{cal}} < 4.5, actor updates use equal numbers of target and imagined states; imagined actor samples carry weight (wi)1/2(w_i)^{1/2}, and the actor updates after every four critic updates. Outside this band, target and imagined replay use the standard separate SAC updates.

At each 5,000-step checkpoint, five fixed validation episodes yield mean undiscounted return G‾u\overline{G}_{u} and mean violations per episode V‾u\overline{V}_{u}. MC-WM tracks the highest-return actor satisfying V‾u≤1\overline{V}_{u} \le1. Before the one-time test, that actor replaces the final actor only if either (i) final validation return is below the peak by more than 0.2max⁡(∣G‾peak∣,1)0.2\max(|\overline{G}_{\mathrm{peak}}|,1) and the tracked actor has higher return, or (ii) final validation violations exceed one and the tracked return is at least the final return minus 0.2max⁡(∣G‾final∣,1)0.2\max(|\overline{G}_{\mathrm{final}}|,1). Here G‾peak=max⁡uG‾u\overline{G}_{\mathrm{peak}} = \max_{u}\overline{G}_{u} is the maximum over all validation checkpoints, including ineligible ones, and G‾final\overline{G}_{\mathrm{final}} is the final-checkpoint mean. The critics and world model are not selected. Final testing uses 20 fixed seeds disjoint from training and validation, exactly once after any actor restoration.

Algorithm 1 Calibration-routed MC-WM training and held-out testing

Require: simulator data DS\mathcal{D}_{S}, initial target data DT0\mathcal{D}_{T}^{0}, online target budget NonN_{\mathrm{on}}

  1. Fit and freeze the simulator ensemble M^S\widehat{M}_{S}

  2. Split DT0\mathcal{D}_{T}^{0} into Ifit\mathcal{I}_{\mathrm{fit}}, Isel\mathcal{I}_{\mathrm{sel}}, and Ical\mathcal{I}_{\mathrm{cal}}

  3. Fit M^R\widehat{M}_{R} and fit M^D\widehat{M}_{D} in an isolated component random stream

  4. Compute RR\mathcal{R}_{R}, RD\mathcal{R}_{D}, and ϱcal\varrho_{\mathrm{cal}}; fix m⋆m^{\star} and the actor-update route

  5. Lock residual feature order and support μ\mu; initialize target replay, imagined replay, πϕ\pi_{\phi}, and QξΔQ_{\xi}^{\Delta}

  6. Fit QξΔQ_{\xi}^{\Delta} on initial target-replay prediction errors

  7. for t=1,…,Nont = 1,\ldots,N_{\mathrm{on}} do

  8. &nbsp;&nbsp;&nbsp;&nbsp;Execute one target action and append the observed transition

  9. &nbsp;&nbsp;&nbsp;&nbsp;if tt is a 1,000-step model-refit point then

  10. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Warm-start refit only the deployed state-and-reward model

  11. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Update QξΔQ_{\xi}^{\Delta} from target-replay prediction errors

  12. &nbsp;&nbsp;&nbsp;&nbsp;end if

  13. &nbsp;&nbsp;&nbsp;&nbsp;if tt is a 250-step imagination point then

  14. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Generate one-step transitions from M^T\widehat{M}_{T}

  15. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Compute w^i\widehat{w}_{i}, χi\chi_{i}, wiw_{i}, and lil_{i}; retain rows with wi>0.01w_{i} > 0.01

  16. &nbsp;&nbsp;&nbsp;&nbsp;end if

  17. &nbsp;&nbsp;&nbsp;&nbsp;Apply λν(t)\lambda_{\nu}(t) and update SAC using the fixed actor route

  18. &nbsp;&nbsp;&nbsp;&nbsp;if tt is a 5,000-step validation point then

  19. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Record G‾u\overline{G}_{u} and V‾u\overline{V}_{u}; update the best eligible actor checkpoint

  20. &nbsp;&nbsp;&nbsp;&nbsp;end if

  21. end for

  22. Apply the registered trajectory restoration rule, then evaluate once on held-out test seeds

Direct target MBPO. This comparator fits the same five-member, three-layer, width-200 probabilistic ensemble directly to target transitions. It uses the same policy learner, one-step rollout size and frequency, and target and imagined replay capacities as MC-WM, but has no simulator pretraining, residual, confidence weight, or predicate. The ensemble fits for at most 100 epochs initially and is refit every 1,000 online steps for at most 20 epochs on at most 50,000 target transitions; both stages use a 10% internal holdout and early stopping.

Dense neural residual control. The frozen simulator receives a dense state-correction network with two width-64 ReLU hidden layers. Raw state-action inputs and state-correction targets are standardized from the initial fit partition; the disjoint selection partition supplies early stopping, and the calibration partition remains untouched. Adam uses learning rate 10−310^{-3}, weight decay 10−410^{-4}, and batch size 256. The reward and termination heads, policy-aware refit weights, trust filters, policy learner, and target-access schedule are identical to the sparse fixed-route arm. The dense arm performs no feature discovery and exports no symbolic coefficients.

Matched DARC implementation. The DARC comparator uses two binary domain classifiers. The first receives (st,at)(s_t,a_t); the second has an additive state-action logit and a conditional next-state logit for (st,at,st+1)(s_t,a_t,s_{t+1}). Each hidden layer has width 32 and classifier inputs receive Gaussian noise with SD 1.0. Source rewards are adjusted by the difference between target-versus-source transition and state-action logits. Classifiers train from the same 50,000 source and 50,000 target training interactions available under the matched protocol. The 4,000-step correction warmup is disclosed because it differs from the original long-horizon schedule.

Exact Environment Transformations

All modifications below are applied identically to training, validation, and test instances of the corresponding domain. In the HalfCheetah gravity environment, the simulator’s vertical gravity is set to −19.62 m s−2-19.62\ \mathrm{m\ s^{-2}} and the target retains the MuJoCo default −9.81 m s−2-9.81\ \mathrm{m\ s^{-2}}. Both members continue the episode when qz>0.2q_z > 0.2 and subtract 10[max⁡(0,qz−0.2)]210[\max(0,q_z-0.2)]^2 from the standard HalfCheetah reward.

For Friction Walker, every sliding, torsional, and rolling geom-friction coefficient is multiplied by 0.3 in the simulator; the target retains the default coefficients. Both domains subtract 10[max⁡(0,s(0)−1.25)]210[\max(0,s^{(0)}-1.25)]^2 from the standard Walker2d reward, where s(0)s^{(0)} is the root-height observation.

For Ant actuator failure, target actions 4–7 are set to zero before the physics step; the simulator applies all eight actions. Both domains retain the standard Ant health termination, add a rear-wall termination when the world-frame base position falls below −3-3 along the first horizontal coordinate, and set the wall-step reward to zero. Away from the wall, the project-specific reward is planar Euclidean distance from the origin plus 1, minus 0.5 times the squared norm of the applied action. The soft cap further subtracts [max⁡(0,∣vx∣−1.5)]2[\max(0,|v_x|-1.5)]^2. Thus disabled target channels incur no control cost after they are zeroed. The reported Ant method has an empty deterministic predicate set; these environment rewards and terminations still apply.

Reproducibility and Frozen Source

The final main matrix and exact forced-route controls record source-tree identity:

939a71c718b4f8d2296a41c5c43cd8323e84fdedfd7ce374104d05ae420af9c0.

The predecessor mechanism matrix records:

66eb8a36ee482d3a22000b8302c91c8da4ac5914f59bbd14e9182f581f028a8e.

The sparse-versus-dense study records:

06e1d3eea255e83c7be769e364ebc59a2e63a4ee1feb473a81ecec24bf52853c.

Git revisions are withheld during double-blind review; later manuscript and packaging changes leave these experimental methods unchanged. One Ant forced-residual routing cell (seed 9764684671) replaces task t88897 with t89031 after three pre-deployment diagnostics failed equality across nodes. The replacement used identical source, arguments, method, and seed on the candidate’s node and passed the exact gate. It was registered before completion or inspection of aggregated endpoints. The ledger contains 540 unique cells from 541 executions: 180 main comparisons, 60 additional route controls, 240 predecessor cells, and 60 sparse-versus-dense cells; reused candidates count once. The archive includes anonymized frozen sources, runnable code, sanitized per-run JavaScript Object Notation (JSON) and JSON Lines (JSONL) artifacts, figure source data, and per-run arguments, dependencies, seeds, metrics, and interaction ledgers. Run experiments / build_submission_outputs.sh to regenerate assets from complete protocol-matched seed sets. No external language-model service is used by any reported matrix.

References

  1. [1]Joshua Achiam, David Held, Aviv Tamar, and Pieter Abbeel. Constrained policy optimization. arXiv preprint arXiv:1705.10528, 2017. URL https://arxiv.org/abs/1705.10528v1.
  2. [2]Usman Anwar, Shehryar Malik, Alireza Aghasi, and Ali Ahmed. Inverse constrained reinforcement learning. arXiv preprint arXiv:2011.09999, 2020. URL https://arxiv.org/abs/2011.09999v3.
  3. [3]Steven L. Brunton, Joshua L. Proctor, and J. Nathan Kutz. Discovering governing equations from data: Sparse identification of nonlinear dynamical systems. arXiv preprint arXiv:1509.03580, 2015. URL https://arxiv.org/abs/1509.03580v1.
  4. [4]Xinyue Chen, Che Wang, Zijian Zhou, and Keith Ross. Randomized ensembled double Q-learning: Learning fast without a model. arXiv preprint arXiv:2101.05982, 2021. URL https://arxiv.org/abs/2101.05982v2.
  5. [5]Kurtland Chua, Roberto Calandra, Rowan McAllister, and Sergey Levine. Deep reinforcement learning in a handful of trials using probabilistic dynamics models. arXiv preprint arXiv:1805.12114, 2018. URL https://arxiv.org/abs/1805.12114v2.
  6. [6]Benjamin Eysenbach, Shreyas Chaudhari, Swapnil Asawa, Sergey Levine, and Ruslan Salakhutdinov. Off-dynamics reinforcement learning: Training for transfer with domain classifiers. arXiv preprint arXiv:2006.13916, 2020. URL https://arxiv.org/abs/2006.13916v2.

Paper details

vlnc:W_nwyts5gg
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Codex

View statement
Looking for related papers…
Contents