Manuscript Offprint
arXiv:2611.12643Simulation-aided Reinforcement Learning with Control Variates
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Reinforcement Learning (RL) algorithms often rely on data collected from a target environment, which can be expensive and noisy. Although simulators can generate large amounts of additional data, standard simulation mixing approaches—which directly combine simulated and real experience—can degrade performance due to simulator inaccuracies, especially when they bias the solution away from the optimal policy. We propose a conservative simulation-aided learning method based on control variates, where simulated data is used solely to reduce variance in the learning process rather than directly shaping the learning target. We develop our approach for Policy-Evaluation, which is a fundamental building block of RL algorithms. Then we combine it within the actor-critic framework towards policy improvement, as well as extend it towards offline RL scenarios. Experiments on multiple MuJoCo benchmark tasks demonstrate improvements over standard simulation mixing approaches, highlighting control variates as an effective tool for simulation-aided reinforcement learning. Code is available at https://github.com/OmerHemo/Simulation-Aided-Reinforcement-Learning-with-Control-Variates.
1 Introduction
Reinforcement Learning [RL, 28] has had remarkable success on a variety of complex sequential decision problems. Nonetheless, those successes are mostly confined to settings in which almost unlimited data are available, oftentimes coming from “perfect” simulators of the decision process of interest, such as in videogames [33] or reasoning tasks [14]. In many practical scenarios instead, simulators are available, or they can be developed, but they are not “perfect”. They typically cannot match the complexity of the real environment, for which they only provide a biased, approximate surrogate. This bias generates a gap between what we can learn in simulation and what we would like to achieve in the real world. Mitigating this gap is the focus of a large body of work on sim-to-real adaptation [43, 51, 29, 4, 1, 30, 9, 36, 5, 49, 50, 54, 53].
Differently from previous works, here we are not interested in training robust policies in simulation for zero-shot transfer to the real world [4], nor into exploiting real world data to improve the simulator and reduce its inherent bias [49]. Instead, we embrace the simulator bias to tackle an orthogonal research question: Can we exploit biased but abundant data coming from an “imperfect” simulator in combination with real-world experience to improve the real-world performance?
A representative domain to reason about the setting is as follows. We may want to train a navigation policy for a quadruped robot while interacting online with the physical world. While processing the real-world experience on our computing infrastructure, we can draw additional data from a simulator of the robot, which runs at a substantially higher frequency. While the simulator differs from the physical environment in some key parameters, such as friction, gravity, contact forces, the effect of
40th Conference on Neural Information Processing Systems (NeurIPS 2026).
simulated actions may be correlated with the effect of the same action in the real world, meaning that the biased simulated data may carry some useful information to improve the real-world policy.
We formalize this setting as simulation-aided reinforcement learning, in which the real environment and the simulator are represented by Markov decision processes (MDPs) with identical specifications except for their transition model. A naïve approach [8, 25] to this setting, which we refer to as sim-mixing, is to just feed our RL base algorithm with a mixture of the simulated and real data and to forget about the bias. This has been proved to work surprisingly well in practice, especially when the mixing parameter is carefully tuned [8], often improving the variance relative to training on real only. However, sim-mixing is bound to fail when the bias in simulated transitions is severe. An approach to tackle the bias is to use importance sampling (IS) [38], in which the probability of the simulated transitions is reweighted to match the distribution of samples from the real environment. While this results in unbiased estimates, the additional variance introduced by the weighting can grow large [16, 32], possibly erasing all the benefits from exploiting the simulated data.
In this paper, we consider a control variates approach to simulation-aided RL. In a plain statistical setting, let a quantity of interest we aim to estimate. A control variate [CV, 38] is a random variable , with known expectation , that is correlated to . The CV allows us to rephrase the initial estimation problem on the random variable , which is unbiased, with provable statistical benefits [2]. In our setting, stands for the quantity of interest in the real environment, is the same quantity in simulation, for which the expectation can be obtained by drawing large number of simulated samples. With this interpretation, we develop a family of CV solutions to various simulation-aided RL settings. We corroborate the proposed CV approach both theoretically and empirically, showing that it often combines the unbiasedness of IS with the low variance of sim-mixing, while consistently outperforming or matching training on real data only, even when the bias of the simulator is severe. Specifically, our contributions are:
- We formally define the simulation-aided RL problem.
- We propose a control variates approach to policy evaluation in the introduced setting, for which we analyze theoretical and practical benefits.
- We show how improved policy evaluation can be integrated in online and offline RL algorithms, such as Soft Actor Critic [15] and Conservative Q-Learning [20].
- We conduct an experimental campaign on several tasks from the MuJoCo suite, where we show that our CV approach matches or outperforms alternative methods for the simulation-aided RL setting, including standard sim and real mixing schemes [8], PAR [26], and VGDF [55].
2.1 Estimation with Biased Data
Let a random variable distributed with , and let a function of for which we aim to estimate the expectation . In a typical statistical setting, we have access to a set of measurements , where are i.i.d. realizations of . The Monte Carlo (MC) estimator of is then given by . It is well-known that , implying that may encompass a high error when is small. In such settings, to reduce the variance of the estimate, one may turn to additional information coming from biased data.
Importance sampling. In some scenarios, we may access a large set of measurements from the same function on realizations that are sampled i.i.d. from a distribution instead of the target distribution . A direct MC approach on these measurements would result in a biased estimate approaching with . The importance sampling (IS) estimator accounts for the distribution shift by computing , where is the importance weight. The resulting estimate is unbiased and its variance is smaller than an MC estimator when and are similar distributions [38].
Control variates. In other scenarios, we may access an additional set of measurements from a function on realizations sampled i.i.d. from , for which we know the expectation . The function is often called a control variate [CV, 38]. We can define a control variate estimator where , such that the information from the control variate is exploited to adjust the MC estimate of with a parameter . It is easy to see that the estimator is unbiased, while the variance of a point-estimate is given by . The latter shows that the variance of the estimate can be reduced whenever the measurements from and are highly correlated (i.e., is large). Notably, the variance depends on , which can be tuned to minimize it as , resulting in the point-estimate with variance , so the variance reduction grows with the absolute correlation .
2.2 Markov Decision Processes
A Markov Decision Process [MDP, 41] models sequential decision problems. An MDP is defined as , where is the state space, is the action space, is the transition model, is the reward, is the initial state distribution, and is the discount factor. A policy describes the decision strategy of an agent interacting with the MDP according to the following protocol. First, a state is drawn. Then, for every step , the agent observes , takes an action , and collects a reward , while the process transitions to the next state . This induces a distribution over the state-action pairs visited by , from which the data are collected, which we denote by , and a corresponding distribution over transitions .
The quality of a decision policy in a given state can be measured through the value function and the state-action value function, defined respectively as
in which the expectation is taken over actions and state transitions , where the exponential discount ensures the sum remains finite. Reinforcement Learning [RL, 28] is a paradigm to solve MDPs from sampled interactions, i.e., without knowledge of the MDP specification. Solving the MDP refers to two classical problems. One is called policy evaluation, in which the goal is to estimate the value or of a given policy . The other is policy optimization, where the goal is to learn a policy , which is called the optimal policy.
3 Problem Setting
In this paper, we consider a pair of MDPs
with the same specification of but possibly different transition models. The MDP represents the real environment, i.e., the environment of interest in which we aim to solve typical policy evaluation and optimization problems. Differently from the usual setting, here we may access an additional environment that simulates the real environment with some approximation error.
Simulation-aided RL is concerned with the problem of evaluating or optimizing a policy by combining the information from the real environment and the simulator . Our problem falls within the broader off-dynamics RL setting [10], which encompasses any transfer between MDPs with mismatched dynamics; our emphasis is on using simulation data to aid each policy update step in the real environment. Clearly, the setting is trivial whenever in distribution: Any RL algorithm treating simulated samples as real-world samples would be approximately optimal. The following result makes the latter statement precise.
Theorem 3.1 (Lemma 10.12, [28]). Let a given policy and let the stationary state distribution induced by in . It holds
In this paper, we are especially interested in problems in which is large, which means the simulated samples shall be handled with care. In the following sections, we first focus on the problem of policy evaluation. We describe common approaches and corresponding pitfalls, as well as a method to address them. Then, we show how the proposed policy evaluation solution can bring ripple benefits to policy optimization.
4 Simulation-aided Policy Evaluation
Here we study the problem of policy evaluation in the simulation-aided RL setting. Let be the policy of which we aim to estimate the value in . We are provided with a dataset taken with the policy in . With this dataset, we aim to estimate within a class of parametric models , where . Typically, this is done by minimizing the squared temporal-difference (TD) error [46, 47], i.e.,
with . To improve stability, it is common to employ a target network , which is a delayed copy of the current estimator . In particular, , where the target parameters are updated more slowly than , typically via an exponential moving average for some . The use of such slowly updated target networks is known to significantly stabilize temporal-difference learning [34, 23, 11]. Therefore, in practice , with .
While the problem of minimizing the squared TD error for policy evaluation is well-understood [7], here we are interested in studying whether a superior estimate can be obtained by exploiting an additional dataset of transitions taken with the policy in .
4.1 Common Approaches and Their Pitfalls
Simulator-mixing approaches [8, 25] combine data from simulations and real to minimize the objective: . One can also control simulator bias by using a weighting coefficient to get , as it is done in [8]. We refer to this weighted objective as regular sim-mixing and denote the resulting Q-estimation method by Reg-Qmix; it serves as our main mixing baseline throughout the paper. If we recall the TD error (1), we can see that, for every , we are comparing with biased targets. Importance sampling [38] can correct the bias of the expectation as . This ratio can explode in some settings. For instance, if both the transition models are deterministic, e.g., , , then the IS ratio tends to zero or infinity.
4.2 Policy Evaluation with Control Variates
An alternative approach to address the bias is through control variates (CV, see Section 2). In the case of the TD error in Eq. 1, the underlying random variable is the transition tuple , and the corresponding function is the temporal-difference error .
We define the real TD error and simulated Bellman error [3, 33] as:
Then, we can write the CV objective
(2) where is the IS density ratio . Applying IS to the pair is better than on the triplet , since the distributions and are necessarily closer than the non-marginalized and .
Empirical Loss. To compute (2), we use the datasets and . In addition, we construct an auxiliary dataset by taking each pair from , resetting the simulator to state , and executing action to generate . For stochastic simulators, we collect independent next-state samples for each pair.
For example, in the MuJoCo simulator, the state consists of the robot's joint positions and velocities, which are also the inputs provided to the learned policy . Resetting the simulator to a specified configuration of joint positions and velocities is therefore straightforward. This capability is also available in many other physics simulators, such as NVIDIA Isaac Sim [37] and PyBullet [6].
4.3 Analysis of the Gradient of the Empirical CV Loss
Since our goal is to optimize using gradient-based methods, we study the bias and variance of the resulting gradient estimators. Throughout, is fixed and gradients treat the target as a constant, as in any TD method with a target network. As is standard in covariate-shift analyses [e.g., 2, 45, 12, 24], we assume access to the density ratio w. The gradient of the empirical CV loss is
where , , and uses the average of over the available simulated next states ( for , one for ). Its behaviour is governed by the expected real and simulated gradients at a state-action pair,
together with the transition noise and the variance of the importance-weighted term,
the simulator counterpart of (same expression with ) and the simulator value mismatch
We can characterize the bias and variance of the CV loss gradient estimator as follows.
Theorem 4.1 (Gradient bias and variance). Assume access to the density ratio w and let the samples in and be drawn independently. For every and :
(i) , which is the gradient of the TD objective (1);
(ii) , with evaluated at ;
(iii) for the variance minimizer ;
(iv) , with for all .
Proof. See Appendix A.2.
Theorem 4.1 has four parts. Part (i) shows that the estimator of the CV gradient is unbiased. Part (ii) reports an exact expression of the variance. Setting recovers real-only TD, whose variance has two sources: the randomness of the real next state and which state-action pairs happen to be in . Because simulated next states are drawn independently of real ones, the simulator cannot reduce , it acts on only. There, is exactly the classical control-variate variance of Sec. 2 with and : The simulator's expected Bellman gradient is a control variate for the real one. The last two terms are the price of estimating and the simulator expectation from finitely many samples, and vanish in the abundant-simulation regime . Part (iii) shows that, with a well-chosen , the CV gradient reduces the variance of real-only TD when . Part (iv) ties this gain to simulator quality: removes state-action variance at rate and pays for the simulator value mismatch at rate . This is the key difference from sim-mixing. By Theorem 3.1, a mismatched simulator biases the sim-mixing solution. Here, the mismatch enters only the variance, scaled by and controlled by .
4.4 Practical Implementation of the CV Method
After the theoretical analysis of the CV loss we now look into deriving a fully practical algorithm to optimize the objective (2). We summarize its main steps in Algorithm 1, which we refer to as CV-Qmix in the remainder of the paper.
In cases where we do not have access to , it can be estimated using a subset of . A large body of works have shown that this can be done in practice by training a classifier (e.g., [31]) where .
The classifier is trained by minimizing the cross-entropy .
In addition, we observe that the CV loss in Eq. 2 can become unstable when state-action pairs that appear predominantly in the real dataset are overfit by the value function , leading to excessively negative contributions in the first expecta-
tion. To mitigate this issue, we apply zero masking, to samples with large importance weights, effectively excluding simulator samples for which . The masked loss:
Importantly, the estimator is still unbiased (Apx. A.3) and, since the mask is a function of only, Theorem 4.1 holds verbatim for the masked estimator, with and the simulator terms multiplied by . The mask also controls the importance-sampling term: Since , for the mask computed with the true we get , whereas without masking it can be arbitrarily large when the two state-action distributions overlap poorly.
We tune the mixing coefficient using the control variate formulation at the loss level rather than at the gradient level, as a cheap scalar surrogate of the in Theorem 4.1(iii). We find this approach to be effective for gating simulated data. When updating the target network , we also update according to: .
5 Simulation-aided Policy Optimization
After analyzing the policy evaluation problem, we now shift the focus to policy optimization in simulation-aided RL. In this setting, we consider a class of parametric policies , where . The typical goal is to learn a policy
from sampled interactions with the MDP . The interactions may come online by querying the MDP with a policy of our choice, or offline, in which data are gathered beforehand by running one or multiple policies in the MDP.
Algorithm 1 CV-Qmix
1: Input: 2: 3: Classifier 4: Learning rate 5: Batch size 6: EMA decay rates 7: Initialize: 8: 9: Compute 10: for to 11: 12: Compute from (4) 13: Update 14: Update 15: Update 16: end for 17: Return
In modern algorithms, the optimization of the objective (5) is typically done by iterative gradient ascent updates over the current policy parameters or the current value parameters , from which the policy parameters are recovered later. In both settings, the policy evaluation step is crucial to either estimate the policy gradient [44, 15] or as the main target of the optimization [33, 20].
In the simulation-aided setting, we further access transitions coming from an imperfect simulator , which we may use to improve the gradient estimates at each step. Especially, we aim to test whether our simulation-aided policy evaluation method can bring benefits to the corresponding policy optimization problem as well. We detail below how to incorporate Algorithm 1 as a policy evaluation building block in common actor-critic algorithms for the online and offline settings, respectively.
5.1 Online Policy Optimization
For the online setting, we use Soft Actor-Critic [SAC, 15] as a representative approach, although our Q estimation method can be easily incorporated in other popular algorithms, such as PPO [44] or TD3 [11]. To extend SAC to the simulation-aided setting, we just need to incorporate our Q estimation procedure in the critic update step and an additional sampling routine to collect fresh data from with the current policy at each iteration. Crucially, SAC makes use of entropy regularization, so that we need to substitute in Algorithm 1 the standard TD error (1) with a soft Bellman error where the target is entropy-regularized with some ,
5.2 Offline Policy Optimization
Collecting data online with the current policy is often impractical in safety-critical and expensive domains, such as robotic manipulation or autonomous driving. In those settings, one would rather collect the data once and then iterate on the fixed dataset to learn a good policy. In the simulation-aided setting, we assume to have a pre-collected dataset from both the environment and its simulator . Similarly as in the previous section, we want to extend popular offline RL algorithms with our Q estimation procedure. Here we chose Conservative Q-Learning [CQL, 20] as a representative example. Extending our method to the offline setting introduces two additional challenges. First, if the real and simulated datasets, and , are collected under different policies, then the induced state-action distributions and may have limited overlap. As a result, the masking mechanism and density ratio term (Eq. 4) may discard a large portion of the data.
The high-overlap condition is naturally satisfied when both datasets are generated by the same behavior policy. While this coupling is straightforward to enforce in the online setting, it is more challenging offline, where real-world data may be collected under an unknown policy. In our current formulation, we assume access to the behavior policy. A practical instance of this setting arises when the behavior policy is trained in simulation and then used to collect real-world data.
When incorporating simulated data into CQL, a second challenge arises from dataset imbalance. In particular, when the amount of simulated data is much larger than the real dataset (), the CQL regularization term can be dominated by simulated transitions, effectively under-regularizing the real data. To address this issue, we apply CQL regularization separately to the simulated and real datasets.
6 Experimental Results
We evaluate our method on standard MuJoCo continuous-control benchmarks [52], and on a custom MuJoCo robotics task, Puck Sliding, inspired by [39] (see Appendix G for details). To simulate the sim-to-real gap, we construct distinct real and simulated environments by perturbing physical parameters such as gravity, contact friction, joint damping, body part lengths, and actuator strength.
Baselines. In all of the domains, we evaluate our approach, CV-Qmix, against several baselines. The most relevant are Reg-Qmix, a standard approach to mix sim and real data without correction (see Sec. 4.1), closely inspired by [8], and Real, which is a standard TD critic operating on real data only, corresponding to CV-Qmix with . While these are policy evaluation methods, in policy optimization experiments we use the same algorithms' names to refer to actor-critic methods in which the critic is implemented by CV-Qmix, Reg-Qmix, Real, respectively. The actor-critic backbone is

Figure 1: Simulation-aided policy evaluation on the Humanoid task. Simulation parameters (gravity tilt and magnitude) are perturbed relative to the real environment. Left: Normalized Q-value error of each mixing method as a function of the real-data budget. Middle: Effect of on CV-Qmix, including the adaptive choice of . Right: Effect of on Reg-Qmix. In all plots, the real-only estimator is shown for reference. Curves show the mean and shaded regions std over 10 seeds.
SAC [15] for online policy optimization and CQL [20] for offline policy optimization. In online policy optimization, we further compare against PAR [26] and VGDF [55], two strong baselines from the ODRL benchmark [27] (see Section 7 for details on how they work).
Experiments. We first evaluate CV-Qmix on policy evaluation, the task it is designed to address, against Reg-Qmix and Real (Section 6.1, Figure 1). We further ablate the CV coefficient of CV-Qmix and the mixing coefficient of Reg-Qmix (Figure 1 center, right). We then test whether these gains carry over to online and offline policy optimization (Section 6.2, Figure 2 3). Throughout, we vary the sim gap, i.e., how far the simulator's dynamics parameters are shifted from those of : a larger gap corresponds to a larger shift and therefore a more biased simulator (exact values in Apx C.3). Additional results on robustness to increasing sim gaps and on the values of the adaptive are reported in Apx. B and D.
6.1 Policy Evaluation Experiments
We evaluate on the MuJoCo Humanoid task, where uses the default dynamics and perturbs the gravity magnitude and tilt (Appendix C.3). We report the normalized Q-value error: the mean absolute error between the Monte Carlo Q-values predicted by the methods and ground-truth Q-values, after min-max normalizing both by the range of the ground-truth returns. To obtain ground-truth values, we construct a test set of state-action pairs and estimate the Q-value of each pair under the evaluation policy by averaging the returns of 10 rollouts from in .
Figure 1 (left) shows that CV-Qmix outperforms the real-only estimator at every real-data budget. At the smallest budget, Reg-Qmix attains the lowest error, but CV-Qmix overtakes it beyond roughly 2,000 samples and, unlike Reg-Qmix, keeps improving and plateaus at a lower error as real data grows. The Reg-Qmix ablation (right) shows why naive mixing falls short. A high simulated-data ratio () reduces error when real data is scarce but plateaus above the real-only baseline, whereas a low ratio () tracks the baseline closely: more simulated data trades variance for bias. In contrast, CV-Qmix uses simulated data to reduce the variance of the real-data estimator while correcting for the simulator's bias. As Theorem 4.1 shows, the variance is quadratic in and therefore minimized at an intermediate value. In this experiment, performs best (middle), and the adaptive estimate of (Section 4.4) comes close to this best fixed value.
6.2 Policy Optimization Experiments
We evaluate how improved policy evaluation can benefit policy optimization, both online and offline, in variety of MuJoCo domains, Ant, Walker, Hopper, and Puck Sliding.
Online policy optimization. Figure 2 shows the results. In this experiment, all policies are pretrained in simulation with SAC, and then fine-tuned using both simulated and real data (except the Real baseline) with SAC equipped with the corresponding critic. The simulator and real environment differ in their dynamics parameters at three gap levels (small, medium, and large; see Appendix C.3 for dynamics shift details). The plots report the performance of the fine-tuning stage. As we can see, CV-Qmix performs better or on par with the most competitive baseline across all the gap levels, with the benefit of CV-Qmix approach increasing with larger sim gaps. On Ant, CV-Qmix is comparable

Figure 2: Policy finetuning with biased simulation data mixing. Comparing CV-Qmix (ours) and Reg-Qmix to other off-dynamics methods on Ant and Walker2D tasks across different simulation to real gaps. The policies were pre-trained on the simulation and then transferred to the real environment for fine-tuning with mixed simulation and real data. Each plot shows the mean ± std of 5 seeds.
to other baselines at small and medium gap levels, but on the large gap it clearly outperforms all the baselines, with the margin growing with the gap. On Walker2D, the methods are comparable at small and medium gaps, while at a large gap Reg-Qmix and PAR degrade and CV-Qmix remains the best together with VGDF. These results are consistent with bias correction becoming important as the gap grows. It is interesting to take a closer look at ODRL baselines. PAR closely tracks Reg-Qmix: both train on mixed data, and PAR's reward penalty does not remove the bias of simulated TD targets. VGDF avoids this bias, by filtering out simulation samples, but filtering too much simulated samples costs sample efficiency.
In figure 3 (left), we test whether simulated data enables more policy updates, performing more updates per real interaction. uses the default MuJoCo dynamics and uses perturbed dynamics (Appendix C.3). Figure 3 compares Reg-Qmix and CV-Qmix (ours) against standard SAC (Real), which uses only real samples. Both mixing methods outperform the baseline, but Reg-Qmix plateaus earlier and has higher variance. We attribute the higher variance to the instability of jointly minimizing the real and simulated expectations (Sec. 4.1), which is sensitive to the real data collected during training; CV-Qmix reduces the variance of the real expectation, giving more stable optimization. We attribute the earlier plateau and lower asymptotic performance of Reg-Qmix to simulator bias, which can lead the policy toward actions that are suboptimal in the real environment.
Offline policy optimization. In the offline setting (Figure 3, right), we first train a behavioral policy in the simulator with SAC until it plateaus, then use it to collect and , with substantially more simulated than real data (Appendix C.1). We run CQL with a CV-Qmix, Reg-Qmix, and real only critic with those data. Since offline policies cannot be evaluated by interacting with the real environment during training, early stopping and model selection are difficult [22, 21]; we therefore report performance averaged over the last 50k of 200k update steps, summarized as box plots. CV-Qmix outperforms both Reg-Qmix and real-only training on the Hopper and Sliding tasks. These results highlight a further advantage of CV-Qmix in the offline setting: by reducing the variance of the learning process (most visibly on Hopper), it makes performance less sensitive to the choice of stopping point, which matters when early stopping and model selection are difficult.
7 Related Work
Off-dynamics RL. Our setting falls within off-dynamics RL [10], where a source and a target MDP differ only in their transition dynamics, and access to the target is limited while the source is cheap to query. Existing methods handle the dynamics mismatch per transition, by correcting, penalizing, or discarding source samples: DARC [10] corrects source rewards using domain classifiers, PAR [26] penalizes them by the representation mismatch across domains, and VGDF [55] discards source transitions whose value targets disagree with those expected under the target dynamics, a criterion

Figure 3: Policy optimization with mixed simulated data on Hopper and Puck Sliding. Simulator parameters (gravity, friction, and body part lengths) are perturbed relative to the real environment. The plots on the left show online optimization (mean ± std over 10 seeds), while the plots on the right show offline optimization (box plots over 10 seeds).
closely related to our term. In contrast, we use simulation data to aid each policy update in the real environment: rather than discarding simulated samples or modifying their rewards, we exploit their correlation with real ones and correct their bias at the policy-evaluation level, through a control-variate formulation of the TD loss (1). We compare against PAR and VGDF in Section 6.
Control variates in RL. Control variates (CV) are a standard variance-reduction tool in RL, e.g., baselines and action-dependent critics in policy-gradient methods [13]. In off-policy evaluation, the doubly robust (DR) estimator [17] combines importance-weighted returns with a learned value model as a CV. DR is designed to debias off-policy data, while we debias off-dynamics data. Moreover, DR applies the CV directly to the policy-evaluation objective, while we apply it to the squared TD error. Statistically, our approach is closer to prediction-powered inference [2], which combines many biased model predictions with a few ground-truth samples to obtain unbiased, lower-variance estimates; here, simulated transitions play the role of the biased predictions.
8 Conclusion
In this paper, we introduced the simulation-aided reinforcement learning and a control variates approach that exploits biased simulator data to reduce variance without negatively biasing the performance on the real environment. Applying control variates to the squared TD error with a stable importance-sampling correction enables seamless integration into both online and offline actor-critic methods. Theory shows that variance reduction improves as the simulator more closely matches the real dynamics. Experiments on MuJoCo tasks demonstrate improved sample efficiency and robustness over standard simulation mixing, especially large under dynamics mismatch.
Notably, our approach is entirely focused on policy evaluation, which is then incorporated into policy optimization algorithms as a building block. Future works may extend our control variates approach to the policy gradient estimate, bringing variance reduction in both the actor-critic components. Another future direction may consider a similar control variates solution to the model-based RL approach, in which we aim to estimate the transition dynamics of the real environment by exploiting information coming from multiple biased simulators.
Finally, our approach requires resetting the simulator to visited real states, and therefore does not directly apply in partially observable settings where the real states cannot be fully accessed [18, 48]. One natural resolution is to adapt our method to such settings by constructing an estimator that predicts the state from partial observations, in the spirit of [40, 42, 35], and to then reset the simulator according to this state-estimation. Curiously, [19] show that training such a predictor over the simulator enables to perform well on real partially-observable environments. While this is only one possible extension, it will be interesting to explore other alternative directions.
Acknowledgments
OH and KYL acknowledge support from the Israel Science Foundation (grant No. 3109/24), and were also partially supported by the Israel PBC-VATAT. IS, MM and AT were funded by the European Union (ERC, Bayes-RL, 101041250). Views and opinions expressed are however those of the author(s) only and do not necessarily reflect those of the European Union or the European Research Council Executive Agency (ERCEA). Neither the European Union nor the granting authority can be held responsible for them.
References
[1] Ilge Akkaya, Marcin Andrychowicz, Maciek Chociej, Mateusz Litwin, Bob McGrew, Arthur Petron, Alex Paino, Matthias Plappert, Glenn Powell, Raphael Ribas, et al. Solving Rubik's cube with a robot hand. arXiv preprint arXiv:1910.07113, 2019.
[2] Anastasios N. Angelopoulos, Stephen Bates, Clara Fannjiang, Michael I. Jordan, and Tijana Znic. Prediction-powered inference. Science, 382(6671):669–674, 2023.
[3] Leemon Baird. Residual algorithms: Reinforcement learning with function approximation. In International Conference on Machine Learning, 1995.
[4] Yevgen Chebotar, Ankur Handa, Viktor Makoviychuk, Miles Macklin, Jan Issac, Nathan Ratliff, and Dieter Fox. Closing the sim-to-real loop: Adapting simulation randomization with real world experience. In International Conference on Robotics and Automation, 2019.
[5] Xiaoyu Chen, Jiachen Hu, Chi Jin, Lihong Li, and Liwei Wang. Understanding domain randomization for sim-to-real transfer. In International Conference on Learning Representations, 2022.
[6] Erwin Coumans and Yunfei Bai. PyBullet, a Python module for physics simulation for games, robotics and machine learning. https://github.com/bulletphysics/bullet3, 2016.
[7] Christoph Dann, Gerhard Neumann, and Jan Peters. Policy evaluation with temporal differences: A survey and comparison. Journal of Machine Learning Research, 15:809–883, 2014.
[8] Shirli Di-Castro, Dotan Di Castro, and Shie Mannor. Sim and real: Better together. In Advances in Neural Information Processing Systems, 2021.
[9] Yuqing Du, Olivia Watkins, Trevor Darrell, Pieter Abbeel, and Deepak Pathak. Auto-tuned sim-to-real transfer. In International Conference on Robotics and Automation, 2021.
[10] Benjamin Eysenbach, Swapnil Asawa, Shreyas Chaudhari, Sergey Levine, and Ruslan Salakhutdinov. Off-dynamics reinforcement learning: Training for transfer with domain classifiers. In International Conference on Learning Representations, 2021.
[11] Scott Fujimoto, Herke van Hoof, and David Meger. Addressing function approximation error in actor-critic methods. In International Conference on Machine Learning, 2018.
[12] Davit Gogolashvili, Matteo Zecchin, Motonobu Kanagawa, Marios Kountouris, and Maurizio Filippone. When is importance weighting correction needed for covariate shift adaptation? arXiv preprint arXiv:2303.04020, 2023.
[13] Shixiang Gu, Timothy Lillicrap, Zoubin Ghahramani, Richard E. Turner, and Sergey Levine. Q-Prop: Sample-efficient policy gradient with an off-policy critic. In International Conference on Learning Representations, 2017.
[14] Daya Guo, Dejian Yang, Haowei Zhang, Junxiao Song, Ruoyu Zhang, Runxin Xu, Qihao Zhu, Shirong Ma, Peiyi Wang, Xiao Bi, et al. DeepSeek-R1 incentivizes reasoning in LLMs through reinforcement learning. Nature, 645(8081):633–638, 2025.
[15] Tuomas Haarnoja, Aurick Zhou, Pieter Abbeel, and Sergey Levine. Soft actor-critic: Off-policy maximum entropy deep reinforcement learning with a stochastic actor. In International Conference on Machine Learning, 2018.
[16] Jiawei Huang and Nan Jiang. From importance sampling to doubly robust policy gradient. In International Conference on Machine Learning, 2020.
[17] Nan Jiang and Lihong Li. Doubly robust off-policy value evaluation for reinforcement learning. In International Conference on Machine Learning, 2016.
[18] Leslie Pack Kaelbling, Michael L. Littman, and Anthony R. Cassandra. Planning and acting in partially observable stochastic domains. Artificial Intelligence, 101(1–2):99–134, 1998.
[19] Ashish Kumar, Zipeng Fu, Deepak Pathak, and Jitendra Malik. RMA: Rapid motor adaptation for legged robots. In Robotics: Science and Systems, 2021.
[20] Aviral Kumar, Aurick Zhou, George Tucker, and Sergey Levine. Conservative Q-learning for offline reinforcement learning. In Advances in Neural Information Processing Systems, 2020.
[21] Tom Le Paine, Cosmin Paduraru, Andrea Michi, Caglar Gulcehre, Konrad Zolna, Alexander Novikov, Ziyu Wang, and Nando de Freitas. Hyperparameter selection for offline reinforcement learning. arXiv preprint arXiv:2007.09055, 2020.
[22] Sergey Levine, Aviral Kumar, George Tucker, and Justin Fu. Offline reinforcement learning: Tutorial, review, and perspectives on open problems. arXiv preprint arXiv:2005.01643, 2020.
[23] Timothy P. Lillicrap, Jonathan J. Hunt, Alexander Pritzel, Nicolas Heess, Tom Erez, Yuval Tassa, David Silver, and Daan Wierstra. Continuous control with deep reinforcement learning. In International Conference on Learning Representations, 2016.
[24] Ren-Rui Liu, Jun Fan, Lei Shi, and Zheng-Chu Guo. Unbounded density ratio estimation and its application to covariate shift adaptation. arXiv preprint arXiv:2603.29725, 2026.
[25] Wenxing Liu, Hanlin Niu, Wei Pan, Guido Herrmann, and Joaquin Carrasco. Sim-and-real reinforcement learning for manipulation: A consensus-based approach. In International Conference on Robotics and Automation, 2023.
[26] Jiafei Lyu, Chenjia Bai, Jingwen Yang, Zongqing Lu, and Xiu Li. Cross-domain policy adaptation by capturing representation mismatch. In International Conference on Machine Learning, 2024.
[27] Jiafei Lyu, Kang Xu, Jiacheng Xu, Mengbei Yan, Jingwen Yang, Zongzhang Zhang, Chenjia Bai, Zongqing Lu, and Xiu Li. ODRL: A benchmark for off-dynamics reinforcement learning. In Advances in Neural Information Processing Systems, 2024.
[28] Shie Mannor, Yishay Mansour, and Aviv Tamar. Reinforcement Learning: Foundations. Cambridge University Press, 2026.
[29] Jan Matas, Stephen James, and Andrew J. Davison. Sim-to-real reinforcement learning for deformable object manipulation. In Conference on Robot Learning, 2018.
[30] Bhairav Mehta, Manfred Diaz, Florian Golemo, Christopher J. Pal, and Liam Paull. Active domain randomization. In Conference on Robot Learning, 2019.
[31] Aditya Menon and Cheng Soon Ong. Linking losses for density ratio and class-probability estimation. In International Conference on Machine Learning, 2016.
[32] Alberto Maria Metelli, Matteo Papini, Nico Montali, and Marcello Restelli. Importance sampling techniques for policy optimization. Journal of Machine Learning Research, 21:1–75, 2020.
[33] Volodymyr Mnih, Koray Kavukcuoglu, David Silver, Alex Graves, Ioannis Antonoglou, Daan Wierstra, and Martin Riedmiller. Playing Atari with deep reinforcement learning. arXiv preprint arXiv:1312.5602, 2013.
[34] Volodymyr Mnih, Koray Kavukcuoglu, David Silver, Andrei A. Rusu, Joel Veness, Marc G. Bellemare, Alex Graves, Martin Riedmiller, Andreas K. Fidjeland, Georg Ostrovski, et al. Human-level control through deep reinforcement learning. Nature, 518(7540):529–533, 2015.
[35] Robert J. Moss, Anthony Corso, Jef Caers, and Mykel J. Kochenderfer. BetaZero: Belief-state planning for long-horizon POMDPs using learned approximations. Reinforcement Learning Journal, 1:158–181, 2024.
[36] Fabio Muratore, Christian Eilers, Michael Gienger, and Jan Peters. Data-efficient domain randomization with Bayesian optimization. IEEE Robotics and Automation Letters, 6(2): 911–918, 2021.
[37] NVIDIA Corporation. NVIDIA Isaac Sim documentation. https://docs.isaacsim.omniverse.nvidia.com/, 2023. Accessed: 2026-05-06.
[38] Art B. Owen. Monte Carlo theory, methods and examples. https://artowen.su.domains/mc/, 2013.
[39] Matthias Plappert, Marcin Andrychowicz, Alex Ray, Bob McGrew, Bowen Baker, Glenn Powell, Jonas Schneider, Josh Tobin, Maciek Chociej, Peter Welinder, et al. Multi-goal reinforcement learning: Challenging robotics environments and request for research. arXiv preprint arXiv:1802.09464, 2018.
[40] Pascal Poupart and Craig Boutilier. Value-directed belief state approximation for POMDPs. In Conference on Uncertainty in Artificial Intelligence, 2000.
[41] Martin L. Puterman. Markov Decision Processes: Discrete Stochastic Dynamic Programming. John Wiley & Sons, 2014.
[42] Nicholas Roy and Geoffrey J. Gordon. Exponential family PCA for belief compression in POMDPs. In Advances in Neural Information Processing Systems, 2002.
[43] Fereshteh Sadeghi and Sergey Levine. (CAD) RL: Real single-image flight without a single real image. In Robotics: Science and Systems, 2017.
[44] John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. Proximal policy optimization algorithms. arXiv preprint arXiv:1707.06347, 2017.
[45] Masashi Sugiyama, Matthias Krauledat, and Klaus-Robert Müller. Covariate shift adaptation by importance weighted cross validation. Journal of Machine Learning Research, 8:985–1005, 2007.
[46] Richard S. Sutton. Learning to predict by the methods of temporal differences. Machine Learning, 3(1):9–44, 1988.
[47] Richard S. Sutton and Andrew G. Barto. Reinforcement Learning: An Introduction. MIT Press, second edition, 2018.
[48] Sebastian Thrun, Wolfram Burgard, and Dieter Fox. Probabilistic Robotics. MIT Press, 2005.
[49] Gabriele Tiboni, Karol Arndt, and Ville Kyrki. DROPO: Sim-to-real transfer with offline domain randomization. Robotics and Autonomous Systems, 166:104432, 2023.
[50] Gabriele Tiboni, Pascal Klink, Jan Peters, Tatiana Tommasi, Carlo D'Eramo, and Georgia Chalvatzaki. Domain randomization via entropy maximization. In International Conference on Learning Representations, 2024.
[51] Josh Tobin, Rachel Fong, Alex Ray, Jonas Schneider, Wojciech Zaremba, and Pieter Abbeel. Domain randomization for transferring deep neural networks from simulation to the real world. In IEEE/RSJ International Conference on Intelligent Robots and Systems, 2017.
[52] Emanuel Todorov, Tom Erez, and Yuval Tassa. MuJoCo: A physics engine for model-based control. In IEEE/RSJ International Conference on Intelligent Robots and Systems, 2012.
[53] Marcel Torne, Anthony Simeonov, Zechu Li, April Chan, Tao Chen, Abhishek Gupta, and Pulkit Agrawal. Reconciling reality through simulation: A real-to-sim-to-real approach for robust manipulation. In Robotics: Science and Systems, 2024.
[54] Andrew Wagenmaker, Kevin Huang, Liyiming Ke, Kevin Jamieson, and Abhishek Gupta. Overcoming the sim-to-real gap: Leveraging simulation to learn to explore for real-world RL. In Advances in Neural Information Processing Systems, 2024.
[55] Kang Xu, Chenjia Bai, Xiaoteng Ma, Dong Wang, Bin Zhao, Zhen Wang, Xuelong Li, and Wei Li. Cross-domain policy adaptation via value-guided data filtering. In Advances in Neural Information Processing Systems, 2023.
A Proofs
A.1 Proof of Theorem 3.1
To prove the result, we write
(7)
by applying the Bellman equation to both and to obtain (6), by summing and subtracting to obtain (7), by exploiting , , , and stationarity of q to obtain (8), from which the result follows.
A.2 Proof of Theorem 4.1
Proof. Throughout the proof, and the target network are fixed, and all gradients are taken with respect to with treated as a constant. We assume that is absolutely continuous w.r.t. , so that the density ratio is well defined, and that all the second moments appearing below are finite.
Notation. A sample of is , where , and are drawn i.i.d. from , independently of given . A sample of is , where and . In (3), the simulated Bellman error is computed with the empirical average of the simulated next-state values,
and is defined analogously with the single next state (i.e., ). We also denote the expected next-state values as
Preliminary: conditional expectations of the gradients. Since is treated as a constant, , and therefore
Both gradients are linear in the corresponding TD error. Since , and are fixed given , taking conditional expectations in (9) gives
where (11) uses , which holds for every . In particular, (11) also holds for the samples of , i.e., .
Proof of (i). Since the samples within each dataset are i.i.d., by linearity of expectation we write
(13)
by applying the tower property together with (10)–(11) to obtain (12), and the definition of the density ratio to obtain (13) as
The right-hand side does not depend on , hence . Finally, by (9) and the tower property, , which is the gradient of the TD objective (1) with the target network held fixed.
Proof of (ii). We write , where
The vectors , are independent, the are identically distributed, and so are the . Hence, all the cross terms for , for , and vanish, and
where the last equality follows from the definition of . It remains to compute . By the law of total variance,
(15)
where the cross term vanishes since .
For the first term of (15), by (10)–(11) we have and , so that the first term equals , with evaluated at .
For the second term of (15), by (9) and the definition of the TD errors, we write
(16)
Taking the squared norm of (16) and the conditional expectation, we obtain
(18)
where we obtain (17) since and are independent given , so that the cross term vanishes,
and we obtain (18) since is the average of i.i.d. samples of with . Taking the expectation of (18) over , the second term of (15) equals by the definitions of and . Plugging both terms into (15), and then into (14), gives (ii).
Proof of (iii). By expanding the squared norm in the definition of the variance, we have
Plugging it into (ii) and denoting and , we obtain
If , the right-hand side of (19) is a strictly convex quadratic function of . Setting its derivative to zero gives the minimizer , and substituting it back into (19) gives
Setting in (19) gives , the variance of real-only TD. Since , we conclude , with equality if and only if . If instead , then and, by the Cauchy–Schwarz inequality, , so that (19) does not depend on and the claim holds trivially (with ). Finally, the Cauchy–Schwarz inequality also gives , so that (20) is bounded from below by : no choice of reduces the variance below the real transition noise.
Proof of (iv). We write . For any random vectors , applying to and and taking expectations gives . With and , we get
At each , the terms , and are the same in and , so that they cancel in the difference, giving
Then, we write
by exploiting to obtain (23), by (22) and for a scalar to obtain (24), and by for all , together with the definition of , to obtain (25). Plugging (25) into (21) gives (iv).
A.3 Proof of Unbiased Gradients with Masking
Proof. For the masked loss version we have
By definition of the density ratio , we have
Therefore, the simulator terms cancel, yielding
This is exactly the gradient of the squared TD error objective, implying that is an unbiased estimator.

Figure 4: Policy optimization robustness to simulation bias. Comparison of data-mixing strategies under increasing dynamics mismatch for Ant and Walker2D tasks. Simulator parameters (friction, joint armature, joint damping) are perturbed relative to the real environment. Showing online optimization (mean ± std over 5 seeds).
B Robustness to Simulation Bias Experiment
We study the behavior of simulation mixing methods across a range of sim-to-real gaps, by progressively increasing the deviation of simulator parameters from the real environment. To this end, we use the online SAC variant in which, for both mixing methods (Reg-Qmix and CV-Qmix), we conservatively perform one policy update per real environment interaction, while incorporating a large number of additional interactions using simulated data.
In these experiments, we additionally evaluate the MuJoCo Ant and Walker2D tasks. For the Ant task, we reduce the motor strength in the real environment to 30% of its default value. In our testing we observed that lowering motor strength of Ant amplifies the effect of dynamics mismatches, making performance degradation under sim-to-real transfer more pronounced, creating a meaningful bias for evaluation.
In this experiment, we vary joint damping, armature, and joint friction to construct simulators with progressively increasing dynamics mismatch relative to (from left to right in Fig. 4). For exact experiments setup details see appendix C.3.
Across both tasks, when is close to , both regular mixing and CV mixing improve policy performance relative to training on real data alone. However, as the dynamics mismatch increases, regular mixing degrades performance, whereas CV mixing remains comparable to the real-only baseline. These results highlight the robustness of CV mixing, which mitigates the introduction of simulator-induced bias that can otherwise destabilize the optimization process.
C Experiments Setup
C.1 Training Hyper-parameters
Table 1: Walker2D and Ant robustness experiment Hyperparameters
| Hyperparameter | Walker2D-v5 | Ant-v5 |
|---|---|---|
| critic learning rate | 0.0003 | 0.0003 |
| policy learning rate | 0.0003 | 0.0003 |
| real step frequency | 1 | 1 |
| batch size real | 128 | 128 |
| batch size sim | 128 | 128 |
| replay buffer size real | 100000 | 100000 |
| replay buffer size sim | 11000000 | 11000000 |
| sim step frequency | 1 | 1 |
| num steps in sim | 10 | 10 |
| critic update frequency | 1 | 1 |
| target network update frequency | 1 | 1 |
| 0.005 | 0.005 | |
| 0.99 | 0.99 | |
| policy update frequency | 2 | 2 |
| policy update steps | 2 | 2 |
| classifier update frequency | 10 | 10 |
| classifier update steps | 10 | 10 |
| classifier learning rate | 0.0003 | 0.0003 |
| classifier batch size | 128 | 128 |
| initial | 0 | 0 |
| decay | 0.001 | 0.001 |
| SAC | 0.05 | 0.2 |
| CV mask | 3.0 | 3.0 |
Table 2: Hopper and Sliding sample efficiency online SAC experiments Hyperparameters
| Hyperparameter | Value |
|---|---|
| critic learning rate | 0.0003 |
| policy learning rate | 0.0003 |
| real step frequency | 10 |
| batch size real | 128 |
| batch size sim | 128 |
| replay buffer size real | 100000 |
| replay buffer size sim | 11000000 |
| sim step frequency | 1 |
| num steps in sim | 1 |
| critic update frequency | 1 |
| target network update frequency | 1 |
| 0.005 | |
| 0.99 | |
| policy update frequency | 2 |
| policy update steps | 2 |
| classifier update frequency | 10 |
| classifier update steps | 10 |
| classifier learning rate | 0.0003 |
| classifier batch size | 128 |
| initial | 0 |
| decay | 0.001 |
| SAC | 0.05 |
| CV mask | 3.0 |
Table 3: Sliding: Behavioral Policy Training in Simulation
| Hyperparameter | Value |
|---|---|
| critic learning rate | 0.0003 |
| policy learning rate | 0.0003 |
| SAC | 0.05 |
| batch size | 128 |
| replay buffer size | 100000 |
| critic update frequency | 1 |
| target network update frequency | 1 |
| 0.005 | |
| 0.99 | |
| policy update frequency | 2 |
| policy update steps | 2 |
| total steps | 300000 |
Table 4: Hopper: Behavioral Policy Training in Simulation
| Hyperparameter | Value |
|---|---|
| critic learning rate | 0.0003 |
| policy learning rate | 0.0003 |
| SAC | 0.2 |
| batch size | 128 |
| replay buffer size | 100000 |
| critic update frequency | 1 |
| target network update frequency | 1 |
| 0.005 | |
| 0.99 | |
| policy update frequency | 2 |
| policy update steps | 2 |
| total steps | 1000000 |
Table 5: Offline CQL Training Hyperparameters
| Hyperparameter | Sliding | Hopper |
|---|---|---|
| critic learning rate | 0.0001 | 0.0001 |
| policy learning rate | 0.0003 | 0.0003 |
| batch size real | 128 | 128 |
| batch size sim | 128 | 128 |
| replay buffer size real | 20000 | 2000 |
| replay buffer size sim | 1000000 | 100000 |
| critic update frequency | 1 | 1 |
| target network update frequency | 1 | 1 |
| 0.005 | 0.005 | |
| 0.99 | 0.99 | |
| policy update frequency | 2 | 2 |
| policy update steps | 2 | 2 |
| classifier subset split | 0.3 | 0.3 |
| classifier training steps | 1000 | 1000 |
| classifier learning rate | 0.0003 | 0.0003 |
| initial | 0 | 0 |
| decay | 0.001 | 0.001 |
| SAC | auto-tune | 0.2 |
| CQL | 0.5 | 0.5 |
| maximum CQL penalty gap | 20 | 20 |
| CV mask | 3.0 | 3.0 |
C.2 Off-Dynamics finetuning benchmark Hyper parameters
Table 6: Real-only (SAC fine-tuning) Hyper-parameters
| Hyperparameter | Walker2D-v5 | Ant-v5 |
|---|---|---|
| critic learning rate | 0.0003 | 0.0003 |
| policy learning rate | 0.0003 | 0.0003 |
| total real env steps | 100000 | 200000 |
| real step frequency | 1 | 1 |
| batch size real | 128 | 128 |
| replay buffer size real | 100000 | 100000 |
| learning starts | 25000 | 5000 |
| critic update frequency | 1 | 1 |
| target network update frequency | 1 | 1 |
| 0.005 | 0.005 | |
| 0.99 | 0.99 | |
| policy update frequency | 2 | 2 |
| policy update steps | 2 | 2 |
| SAC | auto-tuned | 0.2 |
Table 7: CV-Qmix Hyperparameters
| Hyperparameter | Walker2D-v5 | Ant-v5 |
|---|---|---|
| critic learning rate | 0.0003 | 0.0003 |
| policy learning rate | 0.0003 | 0.0003 |
| total update steps | 1000000 | 1000000 |
| real step frequency | 5 | 5 |
| sim step frequency | 1 | 1 |
| num steps in sim | 100 | 100 |
| critic batch size real | 64 | 64 |
| critic batch size sim | 256 | 256 |
| policy batch size real | 128 | 128 |
| policy batch size sim | 64 | 64 |
| replay buffer size real | 100000 | 100000 |
| replay buffer size sim | 1000000 | 1000000 |
| learning starts | 25000 | 5000 |
| critic update frequency | 1 | 1 |
| target network update frequency | 1 | 1 |
| 0.005 | 0.005 | |
| 0.99 | 0.99 | |
| policy update frequency | 2 | 2 |
| policy update steps | 2 | 2 |
| critic grad-norm clip | 50000 | 50000 |
| classifier update frequency | 1 | 1 |
| classifier update steps | 1 | 1 |
| classifier learning rate | 0.0003 | 0.0003 |
| classifier weight decay | 0.2 | 0.2 |
| classifier batch size | 128 | 128 |
| classifier hidden layers / dim | 2 / 256 | 2 / 256 |
| initial | 0 | 0 |
| decay | 0.001 | 0.001 |
| sim importance-ratio clip | [0, 3] | [0, 3] |
| next-action samples | 10 | 10 |
| CV mask | 3.0 | 3.0 |
| SAC | auto-tuned | 0.2 |
Table 8: Reg-Qmix Hyperparameters
| Hyperparameter | Walker2D-v5 | Ant-v5 |
|---|---|---|
| critic learning rate | 0.0003 | 0.0003 |
| policy learning rate | 0.0003 | 0.0003 |
| total update steps | 1000000 | 1000000 |
| real step frequency | 5 | 5 |
| sim step frequency | 1 | 1 |
| num steps in sim | 100 | 100 |
| critic batch size real | 128 | 128 |
| critic batch size sim | 128 | 128 |
| policy batch size real | 128 | 128 |
| policy batch size sim | 64 | 64 |
| replay buffer size real | 100000 | 100000 |
| replay buffer size sim | 1000000 | 1000000 |
| learning starts | 5000 | 5000 |
| critic update frequency | 1 | 1 |
| target network update frequency | 1 | 1 |
| 0.005 | 0.005 | |
| 0.99 | 0.99 | |
| policy update frequency | 2 | 2 |
| policy update steps | 2 | 2 |
| mixing coefficient | 0.5 | 0.5 |
| SAC | auto-tuned | 0.2 |
Table 9: PAR Hyperparameters
| Hyperparameter | Walker2D-v5 | Ant-v5 |
|---|---|---|
| critic learning rate | 0.0003 | 0.0003 |
| policy learning rate | 0.0003 | 0.0003 |
| total update steps | 1000000 | 1000000 |
| real step frequency | 5 | 5 |
| sim step frequency | 1 | 1 |
| num steps in sim | 100 | 100 |
| critic batch size real | 128 | 128 |
| critic batch size sim | 128 | 128 |
| policy batch size real | 64 | 64 |
| policy batch size sim | 64 | 64 |
| replay buffer size real | 100000 | 100000 |
| replay buffer size sim | 1000000 | 1000000 |
| learning starts | 5000 | 5000 |
| critic update frequency | 1 | 1 |
| target network update frequency | 1 | 1 |
| 0.005 | 0.005 | |
| 0.99 | 0.99 | |
| policy update frequency | 2 | 2 |
| policy update steps | 2 | 2 |
| encoder learning rate | 0.0003 | 0.0003 |
| encoder hidden dim | 256 | 256 |
| representation dim () | 256 | 256 |
| encoder update frequency | 200 | 200 |
| encoder update steps | 1 | 1 |
| encoder batch size | 128 | 128 |
| reward penalty coefficient | 1.0 | 1.0 |
| SAC | auto-tuned | 0.2 |
Table 10: VGDF Hyperparameters
| Hyperparameter | Walker2D-v5 | Ant-v5 |
|---|---|---|
| critic learning rate | 0.0003 | 0.0003 |
| policy learning rate | 0.0003 | 0.0003 |
| total update steps | 1000000 | 1000000 |
| real step frequency | 5 | 5 |
| sim step frequency | 1 | 1 |
| num steps in sim | 100 | 100 |
| batch size real | 128 | 128 |
| batch size sim | 128 | 128 |
| policy batch size | 128 | 128 |
| replay buffer size real | 100000 | 100000 |
| replay buffer size sim | 1000000 | 1000000 |
| learning starts | 5000 | 5000 |
| critic update frequency | 1 | 1 |
| target network update frequency | 1 | 1 |
| 0.005 | 0.005 | |
| 0.99 | 0.99 | |
| policy update frequency | 2 | 2 |
| policy update steps | 2 | 2 |
| actor-critic grad-norm clip | 100 | 100 |
| dynamics ensemble size / elites | 7 / 5 | 7 / 5 |
| dynamics hidden dim | 200 | 200 |
| dynamics learning rate | 0.001 | 0.001 |
| dynamics batch size | 256 | 256 |
| dynamics train frequency | 250 | 250 |
| dynamics holdout ratio | 0.1 | 0.1 |
| likelihood gate threshold | 0.75 | 0.75 |
| sim samples before gating | 100000 | 100000 |
| optimistic exploration | True | True |
| SAC | auto-tuned | 0.2 |
C.3 MuJoCo environment setting
Table 11: Hopper Task Parameters
| Parameter | Real | Small Gap | Medium Gap | Large Gap |
|---|---|---|---|---|
| gravity | -9.81 | -8.82 | -7.84 | -6.86 |
| floor friction | 1.0 | 0.8 | 0.8 | 0.7 |
| torso length | 0.2 | 0.24 | 0.24 | 0.26 |
Table 12: Sliding Task Parameters
| Parameter | Real | Sim |
|---|---|---|
| puck damping | 0.2 | 0.24 |
Table 13: Walker2D Finetuning Task Parameters
| Parameter | Sim | Real(Small Gap) | Real(Medium Gap) | Real(Large Gap) |
|---|---|---|---|---|
| gravity tilt (deg) | 0 | 4 | 6 | 8 |
| foot friction | 1.9 | 2.85 | 3.8 | 4.75 |
Table 14: Humanoid Policy Eval Task
| Parameter | Sim | Real |
|---|---|---|
| gravity vector | (0,0,-9.81) | (-3, 0, -8) |
Table 15: Walker2D Robustness Experiment Parameters
| Parameter | Real | Small Gap | Medium Gap | Large Gap |
|---|---|---|---|---|
| joint damping | 1 | 1 | 1.5 | 2 |
| joint friction | 0.7 | 0.6 | 0.5 | 0.4 |
Table 16: Ant Robustness Experiment Parameters
| Parameter | Real | Small Gap | Medium Gap | Large Gap |
|---|---|---|---|---|
| joint armature | 3 | 2.5 | 2 | 1.5 |
| joint damping | 2 | 2 | 1.5 | 1.5 |
| joint friction | 0.4 | 0.5 | 0.8 | 1 |
Table 17: Ant Finetuning Task Parameters
| Parameter | Real | Small Gap | Medium Gap | Large Gap |
|---|---|---|---|---|
| gravity tilt (deg) | 0 | -2.5 | -5 | -30 |
| floor friction | 1.0 | 1.375 | 1.75 | 2.5 |
| ankle motor gear | 150 | 145 | 140 | 130 |
| torso CoM x-offset | 0 | 0.1 | 0.2 | 0.4 |
D Additional Implementation Details
To improve the stability of the practical CV loss (4) We clipped the loss value so it cannot be negative. In our experiments this helps the performance of CV-Qmix.
| Sim Gap | Ant | Walker2D |
|---|---|---|
| Small | ||
| Medium | ||
| Large |
Table 18: values of CV-Qmix by simulation gap in the fine-tuning experiment. For each seed, is averaged over the full training run; values are mean std over 5 seeds.
E The role of in CV-Qmix
The learned adaptive coefficient also exhibited a clear relationship with the simulator mismatch (see table 18). when the simulator is strongly correlated with the real environment, the method assigns it a larger weight, whereas under a large mismatch the simulator contribution is automatically suppressed. This supports the interpretation of as both a diagnostic of real–sim correlation and a soft gating mechanism for simulated information.
F Compute Resources
For all experiments, we used two NVIDIA L40S GPUs. The computational requirements of our method are modest, and the experiments can be run on standard GPUs with as little as 4GB of VRAM. Each experiment reported in the paper required approximately one day to complete.
G Puck Sliding Environment

Figure 5: The environment consists of a two-link robotic arm that moves in the horizontal plane, along with a puck that can slide on the surface. The objective is for the arm to strike the puck so that it reaches a target location on the plane, which is placed far from the robot. The puck, arms joints, target positions are randomized at each episode.