Continuous Deep Q-Learning with Model-based Acceleration

Shixiang Gu, Timothy P. Lillicrap, Ilya Sutskever, Sergey Levine

Introduction

Deep Reinforcement Learning (RL) has achieved massive success in discrete domains like Atari games, but translating that success to physical robots remains challenging. This paper introduces Normalized Advantage Functions (NAF), a method that allows Q-learning to work efficiently in continuous control domains without the complexity of a separate actor-critic architecture. Furthermore, the authors demonstrate that "imagining" future states using simple, iteratively refitted local linear models can accelerate training by up to 5x, making deep RL much more viable for real-world robotics.

The Challenge of Continuous Control

There are two main hurdles in applying standard RL to robotics:

  1. Continuous Action Spaces: Standard Q-learning (like DQN) relies on finding the action that maximizes a value function. In discrete games, an agent can simply evaluate every possible action. In robotics, where actions are continuous (like joint torques), finding that maximum at every single training step is a slow, complex optimization problem.
  2. Sample Complexity: Model-free RL is notoriously "data hungry," often requiring millions of interactions to learn a task. On a real physical robot, collecting this much data is time-consuming and risks hardware damage.

While "actor-critic" methods (like DDPG) exist for continuous control, they require training two separate neural networks, which can be unstable and less sample-efficient than pure Q-learning.

Proposed Methods

1. Normalized Advantage Functions (NAF)

Instead of using a general neural network for the Q-function, NAF structures the network to represent the Q-function as the sum of a Value function $V(x)$ and an Advantage function $A(x, u)$. Crucially, they define the Advantage function as a negative quadratic form: $$A(x, u) = -\frac{1}{2}(u - \mu(x))^T P(x) (u - \mu(x))$$ Because a quadratic function has a clear, analytical maximum, the optimal action is simply $\mu(x)$. This allows the agent to perform Q-learning updates just as easily as in discrete domains, using a single unified network rather than separate actor and critic networks.

2. Model-Based Acceleration (Imagination Rollouts)

To solve the data hunger problem, the authors use a hybrid approach by learning a model of the environment's dynamics. Because complex neural network models are hard to learn with little data, they use iteratively refitted local linear models:

  • The agent collects a small amount of real-world data.
  • It fits a simple linear model to that local experience.
  • It then performs "imagination rollouts"—simulating short trajectories in this learned model—to generate synthetic experience for the NAF algorithm to learn from.

Evaluation Environments

The researchers evaluated their methods using the MuJoCo physics simulator on a variety of benchmark tasks standard in the RL community for testing high-dimensional states and continuous motor control:

  • Manipulation: Reacher (3-joint arm), Peg insertion, and Gripper tasks.
  • Locomotion: Cheetah, 6-joint Swimmer, 3D Ant, and Walker2d.
  • Classic Control: Cartpole.
MuJoCo physics simulator benchmark tasks used for evaluation.

Key Insights and Results

  • Simplicity Wins: By forcing the Q-function to be quadratic in the actions, NAF bypasses the need for a second "actor" network. This makes the optimization objective cleaner and often leads to more stable learning.
  • Precision Matters: In manipulation tasks (like peg insertion), NAF significantly outperformed DDPG. DDPG often "oscillates" around a target, whereas NAF learns a smooth policy that stabilizes precisely at the goal.
  • Efficiency and Performance: NAF reached high performance significantly faster than DDPG across most tasks, achieving higher final rewards on 8 out of the 10 benchmark domains tested. For example, on the Peg insertion task, NAF reached the target within 130 episodes, while DDPG took 690.
Learning curves comparing NAF and DDPG, demonstrating NAF's superior sample efficiency and final performance.
  • Acceleration via Imagination: Adding "imagination rollouts" provided a 2x to 5x improvement in data efficiency. This means a robot could potentially learn a task with up to 80% less physical "wear and tear."
  • The "Imagination" Gap: Simply showing an agent "good" trajectories from a planner isn't enough. RL agents need to see "bad" actions to understand the boundaries of the value landscape. Synthetic "on-policy" rollouts (where the agent follows its own current, messy policy in a simulator) are much more effective for training than just copying a perfect teacher.

Limitations and Future Work

  • Unimodal Assumption: Because NAF uses a quadratic advantage function, it assumes there is only one "best" way to perform an action (unimodal). It cannot represent complex policies where two very different actions might both be optimal (e.g., swerving left or right to avoid an obstacle).
  • Model Sensitivity: The imagination rollouts rely on the model being "good enough." If the learned model is highly inaccurate, it can negatively impact learning.
  • Manual Switching: In this paper, the authors manually decided when to stop using "imagination" and switch to pure real-world fine-tuning. Future work should focus on adaptive methods that automatically balance real and imagined experience based on model certainty.

Summary updated

BibTeX
@inproceedings{gu2016continuous,
  author = {Shixiang Gu and Timothy P. Lillicrap and Ilya Sutskever and Sergey Levine},
  title = {{Continuous Deep Q-Learning with Model-based Acceleration}},
  booktitle = {International Conference on Machine Learning},
  year = {2016},
  url = {https://openreview.net/forum?id=xSZ_mIBUli},
}
Figure