techlist.io

Sim To Real Transfer

2 posts

OpenAI2017-03-312 min readCurated summary

Spam detection in the physical world

# Spam Detection in the Physical World OpenAI reports building what it calls the first Spam-detecting AI trained entirely in simulation and deployed on a physical robot. The approach addresses the costly data collection that bottlenecks robotic perception, using domain randomization to let a model trained only on synthetic images transfer to real-world scenes without retraining. ## The Data Bottleneck in Robotics - Deep learning robotic systems require hundreds of thousands of images to train perception alone, which is expensive to collect. - Simulated data is cheap to generate, but the gap between simulation and reality usually forces teams to retrain models from scratch on physical data. ## Domain Randomization for Sim-to-Real Transfer - Domain randomization is an existing technique that OpenAI applied to cluttered scenes. - The method randomly varies colors, textures, lighting conditions, and camera settings across simulated scenes. - The resulting variability is enough for a neural network to generalize to reality rather than overfitting to the simulator's appearance. - Each generated frame contains Spam, often partially hidden among distractor objects. The Spam model comes from the YCB object dataset. ## The Detection Model - The detector is a neural network based on the VGG16 architecture. - It predicts the precise 3-D location of Spam in an image. - Despite being trained only on simulated scenes, it detects Spam in real images, including when unfamiliar distractor items are arranged in random configurations. ## Future Work - The team plans to extend the system to phishing detection. - They also intend to defend against adversarial Spam, meaning inputs deliberately designed to fool the detector. The core takeaway is that randomizing the visual properties of simulated environments can produce perception models that work on physical hardware with no real-world training data.

OpenAI2016-10-102 min readCurated summary

Transfer from simulation to real world through learning deep inverse dynamics model

Simulation is often the safer and cheaper place to develop robot control policies, but a policy that works in simulation frequently fails on a physical robot. The overall sequence of states the policy produces in simulation often still makes sense in the real world, even when the exact controls do not. The paper exploits this by keeping the simulated state trajectory and learning a real-world mapping from desired states to actions. In experiments, this approach outperforms baselines built for simulation-to-real model discrepancy, including output error control and Gaussian dynamics adaptation. ## The Simulation-to-Real Gap - Simulated control policies come from planning, optimization, or reinforcement learning, which often needs far more data than is practical to collect on hardware. - Mismatches in friction, contact, mass, and geometry cause simulated controls to fail on real robots. - The high-level path the robot takes through states often remains valid even when the low-level controls do not. ## Inverse Dynamics Approach - At each time step, the simulated policy proposes an action, and the simulator predicts the resulting next state or states. - Rather than executing the simulated action, the robot uses a learned deep inverse dynamics model to find the real-world action that is most likely to reach that predicted next state. - The inverse model maps (current state, desired next state) to an action, so it compensates for the real system's differences from the simulator. ## Data Collection for Learning the Model - The authors note that a deep model is only as good as its training data, so data collection is central to the method. - They propose a procedure for collecting real-world data that incrementally refines the inverse dynamics model. ## Experimental Comparison - The approach is evaluated against output error control and Gaussian dynamics adaptation, two existing methods for handling model discrepancy. - According to the abstract, the method compares favorably with these baselines.