techlist.io

Deep Reinforcement Learning

4 posts

OpenAI2018-11-073 min readCurated summary

Spinning Up in Deep RL

# Spinning Up in Deep RL: An Open Educational Resource for Learning Deep Reinforcement Learning OpenAI released Spinning Up in Deep RL, an educational package designed to help newcomers become skilled practitioners of deep reinforcement learning. The argument is that deep RL is harder to break into than deep learning, yet it will play a central role in powerful AI systems, so accessible guidance is needed. The package combines clear code, documentation, curated papers, and exercises, and it is integrated into OpenAI's Scholars and Fellows programs. ## What the Package Includes - A short introduction to RL terminology, algorithm families, and basic theory - An essay on how to grow into an RL research role - A curated list of important papers organized by topic - A well-documented repository of short, standalone implementations of Vanilla Policy Gradient (VPG), Trust Region Policy Optimization (TRPO), Proximal Policy Optimization (PPO), Deep Deterministic Policy Gradient (DDPG), Twin Delayed DDPG (TD3), and Soft Actor-Critic (SAC) - A set of warm-up exercises ## Code Design Philosophy - The implementations are minimal and annotated, meant to show how theory maps directly to code - Abstraction layers common in deep RL libraries are deliberately avoided - Clarity is prioritized over modularity, so code reuse across algorithms is limited to logging and parallelization utilities - Each implementation is supported by background material and pseudocode on a corresponding readthedocs page - Algorithms run on Gym environments from the Classic Control, Box2D, and MuJoCo suites. For example, `python -m spinup.run ppo --env CartPole-v1 --exp_name hello_world` launches a training run ## Support Plan - **High-bandwidth period (first three weeks):** Rapid fixes for bugs, installation problems, and documentation ambiguities - **Major review (April 2019):** A broader assessment of the package based on community feedback, with announced plans for future changes - **Continuous public updates:** Changes made while working with Scholars and Fellows are pushed to the public repository immediately ## Education Initiative and Workshops - The project is part of OpenAI's education effort, which aims to build a global community working on AGI's challenges, in line with the OpenAI Charter - A workshop at OpenAI San Francisco on February 2, 2019 combined 3 hours of lectures with 5 hours of semi-structured project work, with technical staff support - Applicants were expected to have software engineering experience and some ML tinkering, though formal ML training was not required - The first external partnership is with UC Berkeley's Center for Human-Compatible AI (CHAI) for a similar early-2019 workshop ## Practical Takeaway For anyone wanting to learn deep RL, the post recommends running the algorithms directly to build intuition, then reading the annotated code alongside the theory and pseudocode. The package is designed for self-study, with minimal abstraction so learners can see exactly how each algorithm works.

OpenAI2018-06-161 min readCurated summary

Learning policy representations in multiagent systems

Modeling agent behavior is central to understanding complex phenomena in multiagent systems, but prior work has mostly been task-specific and reliant on hand-engineered, domain-specific knowledge. The authors propose a general framework that models agent behavior from only a handful of interaction data by treating the problem as representation learning. They show that it works across a high-dimensional competitive continuous-control environment and a cooperative communication environment. ## A General Framework for Agent Modeling - The approach applies to any multiagent system rather than a single task or domain. - It needs only a small amount of interaction data. - Agent modeling is cast as a representation learning problem, in which each agent's policy is encoded as a learned representation. ## A Novel Objective and Unsupervised Learning Algorithm - The objective combines ideas from imitation learning and agent identification. - An algorithm learns representations of agent policies without labeled supervision. ## Empirical Evaluation - **Competitive environment:** a high-dimensional continuous-control setting. - **Cooperative environment:** a setting where agents communicate. - **Tasks:** the learned representations are tested on supervised predictive tasks, unsupervised clustering, and policy optimization with deep reinforcement learning.

OpenAI2018-03-192 min readCurated summary

Variance reduction for policy gradient with action-dependent factorized baselines

Policy gradient methods work well in deep reinforcement learning, but their gradient estimates have high variance, especially in long-horizon tasks and those with high-dimensional action spaces. This post derives a bias-free, action-dependent baseline that uses the structure of the stochastic policy without adding assumptions about the MDP. The authors show through theory and experiments that it reduces variance and speeds learning, and that it scales to high-dimensional control. ## The Variance Problem in Policy Gradients - Policy gradient estimates often vary widely between samples, which slows and destabilizes learning. - The problem worsens as the horizon grows or the action space becomes higher-dimensional. ## An Action-Dependent, Bias-Free Baseline - The baseline depends on the action as well as the state, going beyond the conventional state-dependent baselines. - It exploits the factorized form of the stochastic policy itself, so it needs no additional assumptions about the environment. - The method stays computationally efficient, which makes it practical for large problems. ## Theoretical and Empirical Results - The authors quantify the variance benefit of the action-dependent baseline analytically. - They also analyze how suboptimal the optimal state-dependent baseline is, which shows the gap the new baseline closes. - On standard RL benchmarks and high-dimensional hand manipulation tasks, the action-dependent baseline yields faster learning. ## Scaling and Extensions - The approach scales to a synthetic 2000-dimensional target matching task. - The general idea of adding extra information to baselines also extends to partially observed and multi-agent settings. For practitioners facing high-dimensional action spaces or long horizons, the post suggests that an action-dependent factorized baseline is a low-cost way to reduce gradient variance without introducing bias.

OpenAI2016-02-241 min readCurated summary

Weight normalization: A simple reparameterization to accelerate training of deep neural networks

Weight normalization is a reparameterization of neural network weight vectors that separates each vector's length from its direction. This improves the conditioning of the optimization problem and speeds up stochastic gradient descent. Unlike batch normalization, it creates no dependencies between examples in a minibatch, so it works for recurrent models, reinforcement learning, and generative models. The authors report that it captures much of batch normalization's speedup at lower computational cost. ### The Reparameterization - Each weight vector is split into a length component and a direction component. - Decoupling these two components improves conditioning of the optimization problem. ### Advantages over Batch Normalization - It is inspired by batch normalization but is simpler to implement. - It does not depend on minibatch statistics, so each example is processed independently. - It suits recurrent architectures like LSTMs, where batch normalization is less well suited. - It suits noise-sensitive settings such as deep reinforcement learning and generative modelling. - Its computational overhead is lower, so more optimization steps fit in the same training time. ### Demonstrated Applications - Supervised image recognition - Generative modelling - Deep reinforcement learning