Skip to main content
QUICK REVIEW

[Paper Review] Sim and Real: Better Together

Shirli Di Castro Shashua, Dotan Di Castro|arXiv (Cornell University)|Oct 1, 2021
Simulation Techniques and ApplicationsDecision Sciences5 citations
TL;DR

This paper proposes a novel reinforcement learning framework that simultaneously trains agents using both simulation and real-world data by maintaining separate replay buffers for each environment and decoupling data collection from optimization rates. The method improves sim-to-real transfer by balancing high-throughput simulation with high-fidelity real-world feedback, achieving superior sample efficiency and performance on a robotic manipulation task with a 25% success rate improvement over standard sim-to-real baselines.

ABSTRACT

Simulation is used extensively in autonomous systems, particularly in robotic manipulation. By far, the most common approach is to train a controller in simulation, and then use it as an initial starting point for the real system. We demonstrate how to learn simultaneously from both simulation and interaction with the real environment. We propose an algorithm for balancing the large number of samples from the high throughput but less accurate simulation and the low-throughput, high-fidelity and costly samples from the real environment. We achieve that by maintaining a replay buffer for each environment the agent interacts with. We analyze such multi-environment interaction theoretically, and provide convergence properties, through a novel theoretical replay buffer analysis. We demonstrate the efficacy of our method on a sim-to-real environment.

Motivation & Objective

  • To address the reality gap in sim-to-real reinforcement learning by enabling joint training on simulation and real-world data.
  • To overcome the imbalance between high-throughput simulation and low-throughput, high-fidelity real-world data collection.
  • To develop a method that decouples data collection rates from optimization rates for improved sample efficiency and policy convergence.
  • To provide a theoretical analysis of multi-environment replay buffer dynamics, including Markovity and induced probability measures.
  • To empirically validate the method on a robotic manipulation task with realistic friction discrepancies between sim and real environments.

Proposed method

  • The agent interacts with K environments (e.g., sim and real) and stores transitions in separate replay buffers for each.
  • A sampling mechanism selects transitions from each replay buffer with a probability βj, decoupled from the data collection rate qi.
  • The method uses off-policy algorithms (linear actor-critic and DDPG variants) to optimize policies using mixed replay buffer samples.
  • Importance sampling principles are applied to correct for distributional shifts between simulation and real data.
  • Separate replay buffers prevent degradation from high-volume, low-fidelity simulation data during optimization.
  • Theoretical analysis establishes asymptotic convergence under the proposed multi-environment replay setup.

Experimental results

Research questions

  • RQ1Can joint learning from simulation and real-world data improve policy performance compared to standard sim-to-real transfer?
  • RQ2How can the imbalance between high-throughput simulation and low-throughput real-world data be effectively managed during training?
  • RQ3What is the theoretical convergence behavior of a reinforcement learning agent trained on multiple distinct environments with separate replay buffers?
  • RQ4Does decoupling data collection from optimization rates improve sample efficiency and policy generalization in sim-to-real settings?
  • RQ5To what extent can real-world data correct for simulation inaccuracies, such as incorrect friction parameters?

Key findings

  • The proposed method achieved a 25% higher success rate in the real environment compared to standard sim-to-real fine-tuning under identical training conditions.
  • Using separate replay buffers for simulation and real data significantly outperformed a shared replay buffer, which suffered from data imbalance and performance degradation.
  • Theoretical analysis confirmed asymptotic convergence of the proposed algorithm under the multi-environment replay setting, with explicit characterization of the induced probability measure and Markov properties.
  • The method demonstrated robustness to simulation inaccuracies, particularly in friction parameters, where the real environment corrected for a 2.0–2.2 friction range in simulation that otherwise led to failure.
  • The decoupling of data collection and optimization rates enabled effective use of real-world data without requiring excessive real-world rollouts.
  • Empirical results showed that even with a 100x higher data collection rate in simulation, the method achieved superior real-world performance by prioritizing high-fidelity real data during optimization.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.