Paper commentary
End-to-End Training of Deep Visuomotor Policies
End-to-end training learns visuomotor robot policies from raw camera images
- Problem Policy search needs hand-built perception and control parts, so the vision system is usually not tuned to the task.
- Method The authors train a CNN policy that reads camera pixels and joint readings and outputs motor torques. They fit it with guided policy search, which turns the search into supervised learning.
- Results In simulation the method beat iLQG on 3D peg insertion, even though iLQG was given a known model. It was the only method to learn consistently successful walking policies.
Why perception and control are usually built separately
Policy search lets a robot acquire behaviours through experience, but applied policy search usually depends on hand-engineered perception and control components that reduce observations to a small, manageable representation. The vision component in such systems can be complex and error-prone, and it is typically neither refined during policy training nor adjusted to the task goal.
The central question is whether a sensorimotor policy becomes more effective when its perception system is trained together with the control policy rather than apart from it.
Deep networks are hard to use in this setting because they usually rely on large datasets and direct supervision of the output, and robot control provides neither. Task completion is specified only by a cost function, so the learner must choose actions without being told what to do, and the robot's sensors do not expose the full state, so object positions have to be inferred from images.
The authors answer this with a CNN policy that reads camera pixels and joint encoder readings and outputs joint torques, trained with a guided policy search method. The network has 92,000 parameters and 7 layers, and it includes a spatial feature point transformation.
How guided policy search splits the problem
Guided policy search builds its training data by running an efficient trajectory optimization, then fits the neural policy to that data with supervised learning. The method is cast as an instance of Bregman ADMM, which the authors use to argue that the procedure converges to a locally optimal solution. The Bregman term is the KL-divergence, and the constraint between the policy and the trajectory distribution is rewritten by multiplying both sides by p(x_t), so that the Lagrangian can be expressed in expectations.
The procedure alternates between minimizing over the policy parameters, which amounts to supervised learning that makes the policy match the trajectory distribution, and minimizing over the trajectory distribution, which consists of one or more trajectory optimization problems. The Lagrange multipliers are then moved by a subgradient-style step, so the two sides are gradually pulled into agreement.
The trajectory distribution is a mixture of Gaussians with one component for each sampled initial state, which makes the action conditionals and dynamics linear-Gaussian. The policy is taken to be conditionally Gaussian, with a mean and covariance that can be any nonlinear function of the observation. Because the exact constraint over all states is infinite, the method keeps only the first moment of the action, which replaces the full constraint with a constraint on the expected action, while the KL terms still enforce agreement softly on higher moments.
The observations used in this loss are camera images recorded on the real system, so the policy can be trained on raw observations rather than the state. The policy itself is optimized with standard stochastic gradient descent.
Fitting dynamics and taking trust-region steps
Each local trajectory distribution uses time-varying linear-Gaussian controllers and dynamics, given by the following expressions. \[ p(u_t\mid x_t)=\mathcal{N}(K_t x_t+k_t,\,C_t),\qquad p(x_{t+1}\mid x_t,u_t)=\mathcal{N}(f_{x_t}x_t+f_{u_t}u_t+f_{c_t},\,F_t) \] These are fitted to samples from the previous controller, and a change limit is imposed on the trajectory distribution so that the new samples remain a good estimate of the dynamics.
\[ \min_{p(\tau)\in\mathcal{N}(\tau)} L_p(p,\pi_\theta)\quad \text{s.t.}\quad D_{KL}(p(\tau)\|\hat{p}(\tau))\le\epsilon \]
A global Gaussian mixture model is fitted to the transitions from all time steps and from several prior iterations, and it is used as a prior when fitting the local dynamics at each step. The authors note that this global model does not need to be an accurate forward model; it only has to serve as a good prior that reduces the sample complexity of the regression.
The regression is written as a Gaussian fit to the data at each time step, conditioned on the state and action, and this allows a normal-inverse-Wishart prior to be placed on the Gaussian. \[ \Sigma=\frac{\Phi+N\hat{\Sigma}+\frac{Nm}{N+m}(\hat{\mu}-\mu_0)(\hat{\mu}-\mu_0)^T}{N+n_0},\qquad \mu=\frac{m\mu_0+n_0\hat{\mu}}{m+n_0} \] With the simplest choice, the prior parameters come from the mean and covariance of the pooled vectors, and the counts are set to the number of data points.
The trajectory update is solved as a dual gradient descent problem, whose inner primal step is an LQR backward pass. Because the KL term is written with the distribution being optimized as its first argument, the problem stays convex in that argument, which makes it simpler than the earlier forward-backward procedure. Samples from several trajectories can share one dynamics fit while each controller varies, so a single sample per trajectory per iteration can cover many initial states.
The CNN policy and its learned feature points
At run time the policy takes camera images and joint encoder readings as inputs and produces torques for the robot's motors. The full system state is used only during training, to build the trajectory optimization supervision, and it is not needed at test time. The images are downsampled to 240 × 240 × 3 and recorded from a fixed RGB camera, with the policy running at 20 Hz on one seven-DoF arm.
The authors credit this layer with spatial reasoning and with reducing overfitting in a network of 92,000 parameters across 7 layers.
Feature points learned by the end-to-end policy tend to fall on the target object and the robot arm more often than those of the pose prediction network. In the bottle cap task the policy ignores a distractor bottle that was not present during training, according to the authors' feature point visualization.
Simulated comparisons with linear-Gaussian controllers
The comparison covers 2D and 3D peg insertion, octopus arm control and planar swimming, all run in MuJoCo. The octopus arm has 25 degrees of freedom, which corresponds to 50 state dimensions, while the swimmer is a three-link snake. Prior methods include REPS, reward-weighted regression, the cross-entropy method and PILCO, with iLQG using a known model as a baseline.
Our method used 5 rollouts per iteration with the Gaussian mixture model prior and 20 without, while PILCO was given 5 rollouts per iteration and the other prior methods used 20 and 100.
The GMM prior further reduced the number of samples needed to reach good controllers. On 3D insertion the method outperformed the iLQG baseline, even though iLQG was given a known model. Prior policy search methods could servo to the hole but could not insert the peg, and the method succeeded on the octopus arm despite the high dimensionality of its state and action spaces.
Prior model-free methods could not initiate forward motion for swimming, whereas the method learned a swimming gait.
PILCO also learned an effective gait, but its optimization took about 50 minutes per iteration, which the authors describe as orders of magnitude more computation than their method. The octopus arm was too high-dimensional for PILCO to run in practice, according to the authors. These comparisons cover only linear-Gaussian controllers in simulation, with the prior methods run after hyperparameter sweeps.
Simulated comparisons with neural network policies
Here guided policy search is compared with RWR and CEM on peg insertion and walking with neural network policies. This comparison uses a simpler dual gradient descent formulation rather than the BADMM version, and the authors report that the two performed similarly, although the BADMM variant was faster and easier to implement. Previous methods could only solve the walking task with 100 samples per iteration.
On walking, RWR reached a distance of 0.5 m after 4000 samples and CEM reached 2.1 m after 3000 samples. The walker was initialized from a demonstration stabilized with linear feedback, and RWR and CEM were initialized with samples from that controller, while only the method learned walking policies that succeeded consistently. On peg insertion the hole position was not given to the network, and the policies were trained on four hole positions and tested on four new ones.
The authors note that model-free policy search methods generally struggle with policies that have over 100 parameters, and the comparison is consistent with that observation.
Real-robot results on the PR2
The four visuomotor tasks are coat hanger, shape sorting cube, toy hammer and bottle cap, all on a PR2 with episodes of five seconds. The coat hanger task used two iterations of guided policy search, the shape sorting cube and hammer tasks used three, and the bottle task used four.
The total trial counts were 156 for the coat hanger, 171 for the shape cube, 240 for the toy hammer and 288 for the bottle cap, each split into trajectory pretraining and end-to-end training trials. Across the real-robot tasks, the authors report that training the vision and control layers end-to-end improves consistency and generalization compared with training them separately.
The discussion states that end-to-end training gives significant improvements in policy performance compared with fixed vision layers trained for pose prediction, and this article reports that claim as a qualitative statement without a numeric value.
The discussion says the method shows moderate generalization across variations in the scene. The real-robot evidence is for four tasks with a fixed camera and a fixed set of training positions, so it does not establish behaviour outside those settings.
Limitations
Because the full state is needed during training, the tasks that can be trained this way are limited. Tasks that involve freely moving objects need more extensive instrumentation, such as motion capture, to obtain the state. The authors suggest that combining the method with unsupervised state-space learning could address this, but this is a proposal and was not tested here.
Recurrent policies that keep memory of past observations to handle extensive occlusions are left for future work.
The dynamics model is time-varying linear-Gaussian, which assumes the system can be locally linearized, and stochastic dynamics can violate this in principle. The policy is assumed conditionally Gaussian, and the constraints keep only the first moment of the action, which the authors call a drastic simplification.
Paper info
- Authors
- Sergey Levine, Chelsea Finn, Trevor Darrell, Pieter Abbeel
- Venue
- arXiv · Preprint
- First published
- 2015-4-2
- Added
- 2026-11-6
- Updated
- 2016-4-19
- Version
- v5
- arXiv
- 1504.00702
- Category
- cs.LG · cs.CV · cs.RO
- Original paper terms
- arXiv non-exclusive 1.0
- What we show
- Paper info and commentary
AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.
Quote from the paper
Sergey Levine, Chelsea Finn, Trevor Darrell, Pieter Abbeel (2015). End-to-End Training of Deep Visuomotor Policies. arXiv:1504.00702v5. https://arxiv.org/abs/1504.00702v5
BibTeX
@misc{levine2015training,
title = {{End-to-End Training of Deep Visuomotor Policies}},
author = {Sergey Levine and Chelsea Finn and Trevor Darrell and Pieter Abbeel},
year = {2015},
eprint = {1504.00702},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/1504.00702v5}
}