techlist.io

OpenAI/Robotics

22 posts

OpenAI2024-07-093 min readCurated summary

OpenAI and Los Alamos National Laboratory announce bioscience research partnership

OpenAI and Los Alamos National Laboratory (LANL) are developing an evaluation study to determine whether multimodal AI models like GPT-4o can safely help scientists perform hands-on laboratory work. The partnership builds on the U.S. public sector's tradition of working with private companies to advance research in health care and bioscience, and it responds to a White House Executive Order that tasks national labs with evaluating frontier AI capabilities, including biological ones. The goal is to advance scientific research while understanding and mitigating biosecurity risks. ### Background and Motivation - OpenAI sees AI as a way to multiply the speed and impact of science. Moderna is using OpenAI technology to build a data-analysis assistant for clinical trials, and Color Health built a GPT-4o copilot to support cancer screening and treatment decisions. - The White House Executive Order on Safe, Secure, and Trustworthy AI directs the U.S. Department of Energy's national labs to help assess frontier models' biological capabilities. - LANL's new AI Risks Technical Assessment Group will lead the laboratory's part of the work. ### The Evaluation Study - The Bioscience Division at LANL and OpenAI are assessing how frontier models such as GPT-4o can help people perform tasks in a physical lab through vision and voice. - The study covers GPT-4o and OpenAI's unreleased real-time voice systems. - It is designed as a controlled experiment in which both experts (PhDs and professionals) and novices perform and troubleshoot a safe protocol of standard lab tasks. These include transformation (introducing foreign genetic material into a host organism), cell culture (maintaining and propagating cells in vitro), and cell separation (such as centrifugation). - These tasks serve as proxies for more complex work that carries dual-use concerns. Researchers will measure how much GPT-4o improves task completion and accuracy, quantifying how much it can upskill both experts and beginners. - The work follows OpenAI's Preparedness Framework for tracking and protecting against model risks, and it aligns with commitments made at the 2024 AI Seoul Summit. ### How This Extends Previous Work - **Wet lab skills:** Earlier evaluations relied on written tasks, which don't capture the practical skill needed for benchwork. Knowing that mass spectrometry is required is much easier than running it correctly on real samples. - **Multiple modalities:** Earlier work centered on GPT-4's text outputs. GPT-4o can take voice and visual input, so a user could show their setup to the model, ask questions aloud, and troubleshoot problems through a camera rather than describing them in writing. ### Looking Ahead The authors describe the study as a first-of-its-kind test of multimodal frontier models in a lab setting. They hope the results will set new standards for AI safety and effectiveness in science, and they emphasize that collaboration between the private and public sectors is needed both to build useful innovations and to keep them safe.

OpenAI2022-06-162 min readCurated summary

Evolution through large models

Evolution through Large Models (ELM) uses large language models trained on code as mutation operators in genetic programming, since their training data includes sequential code changes and so they approximate the edits humans would make. In the main experiment, ELM paired with MAP-Elites produced hundreds of thousands of working Python programs that drive walking robots in the Sodarace domain, none of which the base model had seen during pre-training. Those examples were then used to train a new conditional language model that generates a suitable walker for a given terrain. ## LLMs as Mutation Operators - Genetic programming normally relies on mutation operators that make small, often random, changes to programs. - Code LLMs trained on sequences of commits and modifications can propose changes that resemble what a human developer would write, which makes mutations more effective. - This approach is named evolution through large models (ELM). ## Generating Sodarace Walkers at Scale - ELM is combined with MAP-Elites, a quality-diversity algorithm that keeps a grid of diverse high-performing solutions. - The pipeline produced hundreds of thousands of functional Python programs, each outputting a working ambulating robot in Sodarace. - The base LLM had never encountered this domain in pre-training, so the outputs represent genuinely new artifacts. ## Bootstrapping a Conditional Model from Zero Data - The generated walker programs served as training data for a new conditional language model. - That model learns to output an appropriate walker for a specified terrain. - The method creates training data for a domain where none previously existed. ## Implications for Open-Endedness and Learning - The ability to bootstrap models that produce context-appropriate artifacts in data-less domains bears on open-endedness, deep learning, and reinforcement learning. - The authors present these implications as a starting point for new research directions rather than a finished framework.

OpenAI2019-10-143 min readCurated summary

Solving Rubik’s Cube with a robot hand

# Solving Rubik's Cube with a Robot Hand OpenAI trained a human-like robot hand to solve a Rubik's Cube using neural networks trained entirely in simulation. The approach pairs the reinforcement learning code behind OpenAI Five with a new technique called Automatic Domain Randomization (ADR), which generates progressively harder simulated environments without human tuning. The resulting system transfers to the physical world and handles perturbations it never saw during training, showing that reinforcement learning can solve dexterous physical manipulation problems, not just virtual ones. ## Why Dexterous Manipulation Is Hard - Robotics has long required custom robots for each task, while general-purpose hands have struggled because of their many degrees of freedom. - The team's hardware, a robot hand that has existed for about 15 years, was not new. The novelty was in the software approach. - Solving the cube one-handed is difficult even for children, who take several years to develop the necessary dexterity. ## Training in Simulation with Automatic Domain Randomization - The system uses reinforcement learning in simulation, with Kociemba's algorithm choosing the solution steps. The networks learn the required face rotations and cube flips. - Manually randomizing physics parameters such as friction, elasticity, and dynamics is hard. Too little randomization fails to transfer to the real robot, and too much makes learning difficult. - ADR begins with a single nonrandomized environment. When the network exceeds a performance threshold, the randomization range expands automatically, such as the cube's size, mass, finger friction, or surface materials. The cycle repeats, so training never converges and always stays challenging. - In a block-flipping comparison, ADR initially performed worse than manual randomization on the real robot but eventually roughly doubled the baseline's transfer performance without human tuning. ## Robustness and Emergent Meta-Learning - The ADR-trained system handled perturbations it was never trained on, performing most flips and face rotations under all tested conditions, though not at peak performance. - The authors hypothesize that a memory-augmented network trained on unboundedly varied environments develops meta-learning, learning to adapt its behavior at deployment time. - In simulation, averaged over 10,000 trials, perturbations such as resetting memory, changing dynamics, or breaking a joint caused time-to-success spikes that recovered as the network re-adapted. - Non-negative matrix factorization of the network's memory revealed groups with semantic meaning. For example, the dominant memory group could indicate whether the network was about to spin the cube or rotate the top face clockwise. ## Current Limitations - The system solves a maximally difficult 26-rotation scramble 20% of the time, and a 15-rotation scramble 60% of the time. - Most failures occur during the first few rotations and flips, as the network balances solving with adapting to the physical world. - A dropped cube counts as a failure, though the network can resume solving from any state if the cube is returned to the hand. ## Prototypes Used Along the Way - The team built custom cube prototypes with increasing sensing capabilities, ranging from a locked cube with no internal sensors to a cube with built-in sensors (the Giiker cube), to benchmark progress before tackling a regular cube. - The only modification to the regular cube was cutting a small piece of each center sticker to break rotational symmetry, which allows the vision system to determine orientation. The authors see human-level dexterity as a step toward general-purpose robots. ADR offers a way to train physical-world policies without an accurate model of the real environment, and it removes the need for domain-specific tuning when applying the method to new tasks.

OpenAI2018-11-041 min readCurated summary

Plan online, learn offline: Efficient learning and exploration via model-based control

This paper, from November 2018, proposes plan online, learn offline (POLO), a framework for agents that have an internal model and must keep acting and learning in the world. The core idea is that local model-based trajectory optimization, global value function learning, and exploration support one another. Together they solve complex simulated control tasks, such as humanoid locomotion and dexterous in-hand manipulation, using only about a few minutes of equivalent real-world experience. ### Local Planning Stabilizes Value Learning - Local trajectory optimization can compensate for errors in the learned value function. - Planning in this way stabilizes value function learning and speeds it up. ### Value Functions Extend Planning Beyond Local Solutions - Approximate value functions shorten the horizon the planner must search. - This lets the agent find better policies than local planning alone would produce. ### Coordinated Exploration Under Uncertainty - Trajectory optimization drives temporally coordinated exploration. - The exploration is paired with estimates of uncertainty in the value function approximation. - The authors argue this exploration is essential for fast and stable value function learning.

OpenAI2018-07-294 min readCurated summary

Learning dexterity

# Learning Dexterity: Training a Robot Hand Entirely in Simulation OpenAI's Dactyl system trains a Shadow Dexterous Hand to reorient physical objects using a reinforcement learning policy learned entirely in simulation, with no fine-tuning on the real robot. The core idea is domain randomization: rather than trying to make the simulator physically accurate, the policy is trained across a wide distribution of randomized physical and visual parameters, so that the real world becomes just one more variation it has already seen. The result is a robot that rediscovers human-like grasps and manipulates blocks and other shapes on hardware, reaching up to 46 to 50 consecutive rotations with vision or motion-tracking feedback. ## The Problem - Dexterous manipulation has lagged behind locomotion in robotics, and the Shadow hand has 24 degrees of freedom compared to 7 for a typical arm. - The robot must handle noisy, delayed sensor readings, occluded fingertips, and unobservable properties such as friction and slippage. - Reinforcement learning works well in simulation but has produced limited results on physical robots. ## Why Not Simulate Realistically or Train on Hardware - Simulators can generate enough data to train complex policies, but manipulation physics (contact, deformable fingertips, tendon stretching, rolling resistance) is hard to model accurately. - Training directly on hardware would take years of real experience for a task like object reorientation. - Domain randomization sidesteps this tradeoff: the simulator prioritizes variety over realism, so policies generalize to the real world. ## Control and Vision Architecture - **Control policy:** An LSTM lets the network infer environment dynamics from its history. It achieved about twice as many rotations as a memoryless policy. Training used Rapid, the scaled PPO implementation from OpenAI Five, on 6,144 CPU cores and 8 GPUs, collecting about 100 years of experience in 50 hours. - **Vision network:** A convolutional network takes three RGB camera views and estimates the object's pose. It was trained only on simulated images rendered in Unity with randomized visual properties. Multiple cameras resolve occlusion and ambiguity. - The two networks are independent and combined at deployment, so the hand can manipulate an object by seeing it. ## Emergent Strategies - Dactyl discovered grasp types from the GRASP taxonomy (tip pinch, palmar pinch, tripod, quadpod, power grasp, and five-finger precision grasp) without being taught them explicitly. - For tip pinches, it favored the thumb and little finger, whereas humans typically use the index or middle finger. The robot's extra little-finger degree of freedom likely explains this choice. ## Results - Randomized policies achieved far more rotations than non-randomized ones. A non-randomized policy managed a median of 0 successes, while the fully randomized policy reached a median of 11.5 with vision and 13 with motion tracking, and a maximum of 46 and 50 respectively. - Vision-based pose estimation performed nearly as well as direct motion-tracking readings. - Without randomization, a policy needed about 3 years of simulated experience to rotate an object. Full randomization required about 100 years, and most of the training time went into robustness to dynamics. ## Surprises and Negative Results - **Tactile sensing was unnecessary.** The policy used only fingertip locations and object pose, ignoring the available touch sensors, because a limited sensor set was easier to model in simulation. - **Randomizations transferred across shapes.** Randomizations designed for a block worked on an octagonal prism without modification. A sphere performed poorly, likely because rolling behavior was not randomized. - **Systems engineering mattered as much as algorithms.** One engineer's faster laptop masked a timing bug that hurt performance for everyone else. - **Faster control did not help.** Reducing the action interval from 80 ms to 40 ms increased training time without improving real-world performance. - **Real data did not help vision.** Simulator-only training matched the accuracy of mixed sim-and-real training, and real tracking data suffered from latency, measurement error, and fragility to configuration changes. ## Conclusion Dactyl demonstrates that scaling domain randomization and recurrent reinforcement learning can solve dexterous manipulation tasks that were previously out of reach for robotics, using a simulation-first pipeline. The authors frame it as one step in a cycle of developing a learning algorithm, scaling it on hard simulated tasks, and transferring the result to the real world.

OpenAI2018-02-251 min readCurated summary

Multi-Goal Reinforcement Learning: Challenging robotics environments and request for research

This technical report introduces a suite of challenging continuous control benchmarks for robotics, built on existing hardware and integrated with OpenAI Gym. It also argues for further research into reinforcement learning (RL) methods, especially multi-goal RL and Hindsight Experience Replay. ## Robotics Benchmark Suite - The tasks use a Fetch robotic arm for pushing, sliding, and pick-and-place. - They use a Shadow Dexterous Hand for in-hand object manipulation. - Every task has sparse binary rewards, so the agent receives feedback only on success or failure. - The tasks follow a Multi-Goal RL framework, in which the agent receives an additional input specifying what it should accomplish. ## Research Directions - The second part of the report proposes concrete ideas for improving RL algorithms. - Most of these ideas relate to multi-goal RL and Hindsight Experience Replay, a technique that relabels failed attempts with the goals they actually achieved so the agent can learn from them.

OpenAI2018-02-253 min readCurated summary

Ingredients for robotics research

# Ingredients for robotics research OpenAI's robotics team released eight simulated robotics environments for Gym, built on the MuJoCo physics simulator, along with a Baselines implementation of Hindsight Experience Replay (HER). The environments are substantially harder than the existing MuJoCo continuous control tasks and use realistic models of real robots, and HER makes it possible to learn them from sparse rewards alone. The post also lists a set of open research directions for extending HER. ## Environments - Eight tasks in total: four using the Fetch research platform and four using the ShadowHand robot. - Tasks are goal-based, such as sliding a puck to a target position or rotating a block to a desired orientation. - The default reward is sparse: -1 until the goal is reached (within a tolerance), then 0. A dense-reward variant is also included, but the authors recommend the sparse version as more realistic for robotics. - The environments were used to train models that work on physical robots. ## Hindsight Experience Replay - Standard RL algorithms learn little from failed attempts when every reward is the same constant (-1). - HER relabels failed episodes by treating the goal the agent actually achieved as if it were the intended goal, which gives a useful learning signal. - Replaying these relabeled experiences with goals chosen after the episode ends is what gives the method its name. - HER works with any off-policy algorithm, such as DDPG (written as "DDPG + HER"). ## Results - On the new tasks, DDPG + HER substantially outperforms vanilla DDPG, which mostly fails to learn. - DDPG + HER with sparse rewards performs best. It learns a successful policy on HandManipulateBlockRotateXYZ from sparse rewards alone. - DDPG + HER with dense rewards learns but reaches lower performance, a trend the authors report as generally true across environments. - Full results are in the accompanying technical report. ## Open Research Directions The authors propose several extensions: - **Automatic hindsight goal creation:** learning the goal-substitution strategy instead of hard-coding it. - **Unbiased HER:** goal substitution distorts the experience distribution, which could be corrected with importance sampling. - **HER + hierarchical RL:** applying substitution to a higher-level policy's actions or subgoals. - **Richer value functions:** conditioning on inputs such as discount factor or success threshold. - **Faster information propagation:** alternatives to target networks, which slow training. - **HER + multi-step returns:** difficult today because the relabeled experience is highly off-policy. - **On-policy HER:** combining HER with stable on-policy algorithms like PPO, possibly via importance sampling. - **RL with very frequent actions:** designing algorithms that keep their performance as the action frequency increases. - **Combining HER with recent RL advances:** such as prioritized experience replay, distributional RL, entropy regularization, or reverse curriculum generation. ## Using the Environments - Goal-based environments use a `gym.spaces.Dict` observation space with three keys: `desired_goal`, `achieved_goal`, and `observation`. - The reward function is exposed, so rewards can be recomputed for substituted goals, which HER-style algorithms require. - Existing Gym-compatible algorithms such as Baselines can use these environments after flattening the dict observation with `gym.wrappers.FlattenDictWrapper`.

OpenAI2017-10-252 min readCurated summary

Learning a hierarchy

# Learning a Hierarchy with Meta-Learning Shared Hierarchies Humans tackle complex problems by chaining together learned sub-skills, but standard reinforcement learning searches over low-level actions one step at a time, which becomes inefficient for long tasks. The post introduces Meta-Learning Shared Hierarchies (MLSH), a hierarchical reinforcement learning algorithm that discovers reusable high-level actions automatically. Applied to navigation tasks, it learns walking and crawling behaviors in different directions that let an agent master new tasks quickly. ## Why Flat Reinforcement Learning Struggles - Current reinforcement learning methods rely on brute-force search over low-level actions, such as individual muscle contractions. - Long tasks requiring thousands of timesteps demand an enormous number of attempts, making these methods very inefficient. - Humans, by contrast, decompose tasks like making pancakes into reusable components and sequence them together. ## Hierarchical Reinforcement Learning - The core idea is to represent complex behavior as a short sequence of high-level actions. - In the authors' example, a solution requiring 2,000 low-level actions becomes 10 high-level actions, and searching a 10-step sequence is far cheaper than searching a 2,000-step one. ## Meta-Learning Shared Hierarchies (MLSH) - A master policy chooses among a set of sub-policies and selects a new action every N timesteps (for example, N=200). - A sub-policy executed for N timesteps forms one high-level action. In navigation tasks, sub-policies correspond to walking or crawling in particular directions. - Unlike most prior work, which hand-engineers hierarchies, MLSH discovers the structure automatically through interaction with the environment. - The method takes a meta-learning view: a good hierarchy is one that enables fast reward acquisition on unseen tasks. - Training samples a distribution of tasks, shares the sub-policies across them, and learns a new master policy for each sampled task. Repeatedly training new master policies pushes the sub-policies toward structures that suit the master's learning dynamics. ## Experiments in AntMaze - A Mujoco Ant robot must navigate from a start position to a goal across a distribution of nine different mazes. - The algorithm finds a diverse set of sub-policies that can be sequenced to solve these mazes, learned purely from environment interaction. - The learned sub-policies can then be reused to master a larger task than those used during training. ## Code Release - The authors released the code for training MLSH agents, along with the MuJoCo environments built to evaluate them.

OpenAI2017-10-182 min readCurated summary

Generalizing from simulation

Robot controllers can now be trained entirely in simulation and deployed on physical robots, where they react to unplanned changes in the environment while solving simple tasks. The simulator doesn't need to match the real world in appearance or dynamics. Instead, relevant aspects such as friction, action delays, and sensor noise are randomized during training, and the policy needs only a small amount of real-world self-calibration. The authors argue that randomizing the simulator will be the most important route to general-purpose robots. ## Dynamics Randomization - Training randomizes 95 properties that govern the environment's dynamics, including each link's mass, the friction and damping of the manipulated object, the height of the table, action latency, and observation noise. - An LSTM-based policy trained this way can push a hockey puck around a table. Feed-forward networks fail at the task, while LSTMs use past observations to infer the world's dynamics and adjust their behavior. ## Vision-to-Action Control with Reinforcement Learning - A robot was trained end-to-end in simulation with reinforcement learning, then deployed on hardware. The resulting system maps visual input directly to actions without special sensors and adapts to visual feedback. - Conventional RL works well only when small changes in action produce incremental reward changes, which suits tasks like walking. Most manipulation tasks lack such rewards. A dense reward for block stacking would have to encode arm-to-block proximity, approach orientation, lift height, and distance to the target. - After months of failed attempts at pick-and-place with conventional RL, the team developed Hindsight Experience Replay (HER). HER learns from a binary success/failure reward by treating a failed trajectory as if it had been the intended goal, so every attempt still produces useful learning signal. - The implementation uses an actor-critic setup with asymmetric information. The critic sees the full simulator state and estimates future rewards, while the actor sees only RGB and depth images, which are available on the real robot. The critic's accurate feedback thus trains an actor that relies only on real-world sensor data. - Domain randomization on visual shapes produces a vision system robust enough for the physical world. ## Computational Costs - Dynamics randomization slows training by about 3x. - Learning from images instead of state is about 5–10x slower.

OpenAI2017-10-172 min readCurated summary

Sim-to-real transfer of robotic control with dynamics randomization

Simulators give robot-learning agents abundant, safe training data, but policies trained in them often exploit simulator-specific quirks and fail on real hardware because of modeling error. This paper bridges that "reality gap" by randomizing the simulator's dynamics during training. The resulting policies adapt to a wide range of dynamics, including ones far from those they were trained on, so they transfer to the real world without any physical training. On a robotic-arm object-pushing task trained only in simulation, the policies performed comparably on a real robot, reliably moving an object to a target from random starting configurations. ## Dynamics Randomization as a Sim-to-Real Method - The core idea is to vary the physical parameters of the simulator, such as mass and friction, across episodes during training rather than fixing them to one estimate. - Exposure to this variety pushes the policy to infer the current dynamics from its experience and adjust its behavior, instead of memorizing one simulator's behavior. - Because the real world's dynamics are one more instance within the randomized range, the policy can generalize to it without any real-robot training. ## Results on Object Pushing - The method was evaluated on a robotic-arm task that requires pushing an object to a desired location. - Policies trained exclusively in simulation maintained similar performance on the physical robot, reliably reaching goals from random initial configurations. ## Design Choices and Robustness - The authors examined how various design decisions affect transfer performance. - The resulting policies remain robust to significant calibration error in the simulator's parameters, which reduces the need for precise system identification before deployment.

OpenAI2017-10-172 min readCurated summary

Asymmetric actor critic for image-based robot learning

This post presents an approach to image-based robot learning that uses the simulator's full state information during training without requiring it at deployment. The actor-critic method trains the critic on full states while the policy receives only rendered RGBD images. The authors report that this asymmetry significantly improves performance on simulated tasks, and that combined with domain randomization it transfers to a real robot, for picking, pushing, and moving a block, without any real-world training data. ## Why Simulation-Based Robot RL - Reinforcement learning works well in many sequential decision-making domains, but training on physical robots is expensive and can be dangerous. - This motivates learning control policies in a physics simulator. - Prior sim-to-real work has transferred policies successfully, but the authors argue it often doesn't fully exploit what the simulator offers. ## Asymmetric Actor-Critic Training - The simulator provides full state observability, which is unavailable on a real robot. - The critic is trained on full states, so it can use this privileged information to evaluate actions. - The actor (policy) takes only partial observations, specifically rendered RGBD images, matching what a real robot would have. - Because only the actor is needed at deployment, the image-based policy runs without access to full state. ## Simulated Experiments - The authors evaluate the method on a range of simulated tasks. - Using asymmetric inputs significantly improves performance over the image-based policy trained without this asymmetry. ## Sim-to-Real Transfer - The method is combined with domain randomization to bridge the gap between simulated and real visual inputs. - Real robot experiments cover picking, pushing, and moving a block. - The transfer succeeds without training on any real-world data. ## Takeaway Privileged simulator information can be used to improve image-based policies when it is available only at training time, a way of getting more from simulation than simply copying the same inputs into the policy.

OpenAI2017-10-162 min readCurated summary

Domain randomization and generative models for robotic grasping

Deep learning-based robotic grasping models are often trained on only hundreds or thousands of object instances, which limits how well they generalize. This work addresses that by applying domain randomization to object synthesis: a network trained on millions of unrealistic, procedurally generated objects can grasp real and unseen objects in both simulation and the real world. The authors pair this data pipeline with an autoregressive grasp planner that handles the multimodal distribution of successful grasps. ### Procedurally Generated Training Data - Millions of unique objects are generated procedurally, and they are deliberately unrealistic. - The approach borrows the idea of domain randomization, varying the training data widely so that the model does not overfit to a narrow set of object appearances and shapes. ### Autoregressive Grasp Planning - Successful grasps for a single object can fall into several distinct modes, so a single best-guess grasp is often insufficient. - The model takes sensor inputs of a scene and outputs a probability distribution over possible grasps rather than a single grasp. - Because the output is a distribution, grasps can be sampled efficiently at test time, or sampling can be avoided entirely. ### Results - In simulation, the model achieves over 90% grasp success on previously unseen realistic objects, even though it was trained only on random objects. - On real-world grasp attempts, it achieves about 80% success, again without any training on realistic objects or real-world data. The main takeaway is that training on large volumes of randomized synthetic objects can transfer to realistic objects in simulation and to physical robots, which suggests that object diversity may matter more than object realism for grasping generalization.

OpenAI2017-10-102 min readCurated summary

Meta-learning for wrestling

This OpenAI post shows that meta-learning can help simulated robots adapt during a competition. A meta-learning agent defeated a stronger non-meta-learning opponent by adjusting its tactics between rounds, and it could also adjust to physical damage. The authors extended Model-Agnostic Meta-Learning (MAML) so that it optimizes across pairs of environments rather than single ones, which lets policies adapt to unseen environments that are not too different from the training ones. ### Extending MAML with Paired Environments - MAML initializes an agent's policy so that a few gradient ascent steps on the reward from early episodes in a new environment produce better performance there. - The authors changed the objective to optimize against pairs of environments instead of single ones, producing policies that adapt quickly to new environments as long as they do not diverge too wildly from the training set. ### Multi-Round Wrestling Experiments - Three agent types were built: Ant (4 legs), Bug (6 legs), and Spider (8 legs). - Agents played a multi-round game against the same opponent and updated their policy parameters between rounds to counter the opponent's strategy. - Over a hundred agents were trained, some with fixed policies and others with the ability to adapt. Adaptive agents were much stronger competitors than fixed-policy agents. ### Adapting to Physical Malfunction - The same on-the-fly learning let agents cope with changes to their own bodies, such as limbs losing function over time. - The authors suggest this approach could handle both external environmental changes and internal changes to an agent's body or state. The work is part of OpenAI's large-scale multi-agent research, and the authors released the MuJoCo environments and trained policies so others can experiment with these systems.

OpenAI2017-07-193 min readCurated summary

Proximal Policy Optimization

# Proximal Policy Optimization: A Simpler, Robust Policy Gradient Method OpenAI introduces Proximal Policy Optimization (PPO), a new family of reinforcement learning algorithms that matches or beats state-of-the-art methods while being far simpler to implement and tune. The post argues that PPO strikes a practical balance between ease of implementation, sample efficiency, and ease of tuning, and reports that it has become OpenAI's default RL algorithm as a result. ## The Problems with Policy Gradient Methods - Policy gradient methods underpin many deep RL successes, including video games, 3D locomotion, and Go. - They are highly sensitive to the step size: too small and learning is painfully slow, too large and noise overwhelms the signal or performance collapses. - They often have poor sample efficiency, needing millions or billions of timesteps to learn simple tasks. ## Earlier Fixes: TRPO and ACER - TRPO and ACER constrain or otherwise optimize the size of each policy update to address these issues. - ACER is considerably more complex than PPO, requiring off-policy corrections and a replay buffer, while only marginally outperforming PPO on Atari. - TRPO works well for continuous control but is hard to combine with architectures that share parameters between the policy and value function, or that use auxiliary losses, which are common in vision-heavy domains like Atari. ## The PPO Objective - Supervised learning is predictable, whereas RL algorithms have many interacting parts that are hard to debug and require heavy tuning. - PPO computes each update to minimize the cost function while keeping the new policy close to the previous one. - An earlier PPO variant used an adaptive KL penalty to control policy change. The new version replaces this with a clipped surrogate objective built from the probability ratio between the new and old policies, multiplied by the estimated advantage, with a clipping hyperparameter ε typically set to 0.1 or 0.2. - This objective approximates a trust region update while remaining compatible with stochastic gradient descent. It removes the KL penalty and the need for adaptive update schedules. - In tests, PPO performed best on continuous control tasks and nearly matched ACER on Atari. ## Demonstration: Controllable Robots - Interactive agents trained with PPO were shown in Roboschool, where a user set new target positions for a robot via keyboard. - Although the input sequences differed from the training distribution, the agent generalized to them. ## Released Implementations - OpenAI Baselines now includes scalable, parallel implementations of PPO and TRPO that use MPI for data passing, written in Python 3 and TensorFlow. - Pre-trained policies for the robots are available in the Roboschool agent zoo. - A later update added PPO2, a GPU-enabled implementation that runs about 3x faster than the original PPO baseline on Atari. - The update also added ACER, which uses a replay buffer to perform multiple gradient updates per sample and a Q-function approximator trained with the Retrace algorithm. ## Conclusion PPO offers a practical default for policy gradient reinforcement learning: it is simpler than TRPO and ACER, performs comparably or better across continuous control and Atari, and is easier to tune. Its open-source implementations in Baselines make it straightforward to adopt.

OpenAI2017-07-042 min readCurated summary

Hindsight Experience Replay

The paper introduces Hindsight Experience Replay (HER), a technique that lets reinforcement learning agents learn efficiently from sparse, binary rewards without hand-engineered reward functions. HER works with any off-policy RL algorithm and acts as a form of implicit curriculum. The authors test it on robotic arm manipulation and show that policies trained in simulation can complete the same tasks on a physical robot. ## The Sparse Reward Problem - Sparse rewards are one of the main obstacles in reinforcement learning, since an agent receives little useful feedback until it succeeds. - The usual workaround is reward engineering, which is labor-intensive and can distort the learned behavior. - HER is designed to avoid this by making binary success or failure signals sufficient for learning. ## Hindsight Experience Replay - HER is a replay-based method that can be combined with an arbitrary off-policy RL algorithm. - It enables sample-efficient learning from binary rewards, which indicate only whether the task was completed. - The authors describe it as an implicit curriculum, meaning it structures the learning process without requiring an explicit sequence of progressively harder tasks. ## Robotic Manipulation Experiments - The method is evaluated on three object-manipulation tasks with a robotic arm: pushing, sliding, and pick-and-place. - In every task, the only reward signal is whether the task was completed. - Ablation studies show that HER is essential, since training in these challenging environments is not feasible without it. ## Transfer to a Physical Robot - Policies trained in a physics simulation are deployed on a real robot. - The physical robot successfully completes the tasks, which indicates that the learned policies transfer from simulation to reality. Where reward design is hard or success is easy to define but hard to shape, HER offers a way to train with simple binary success signals and avoid elaborate reward engineering.