Paper commentary
A Reduction of Imitation Learning and Structured Prediction to No-Regret Online Learning
DAGGER trains imitation policies on the states they actually visit
- Problem Standard imitation learners train only on expert states, so once they drift onto their own states their errors compound over the horizon. Forward training avoids this but needs one policy per time step, which is impractical for long horizons.
- Method DAGGER repeatedly rolls out the current policy, has the expert label the states it visits, and retrains on all collected data. It trains one stationary policy, so it can be analysed as a no-regret online learner.
- Results DAGGER reached 85.5% character accuracy on OCR, against 83.6% for the supervised approach with the previous character labeled correctly.
Why supervised imitation drifts
Imitation learning fits a learner to expert demonstrations, yet the learner's own actions decide which states it sees next, so the independent, identically distributed assumption behind standard statistical learning no longer holds. A classifier that errs with probability ε on the states the expert visits can make up to T²ε mistakes in expectation over T steps on the states the classifier itself induces.
The quadratic growth is not only a loose bound: the authors give an example in which the cost of a policy with ε error grows quadratically in T.
The mechanism is compounding. Once the learner makes a mistake it can reach observations that the demonstrations never contained, and the training data says nothing useful about those states.
Earlier fixes and their costs
Forward training trains one policy per time step, in order, each on the state distribution produced by the policies already trained for earlier steps. The resulting policy is non-stationary. The guarantee bounds the cost by the best expert cost plus a term that multiplies the expected surrogate loss by the horizon and by a constant u that measures how much a single mistake can increase the cost-to-go.
Forward training becomes impractical when T is large or undefined, because all T policies must be trained one after another and the procedure cannot stop early.
SMILe keeps a single stationary stochastic policy and adds one newly trained policy to a mixture at each iteration, with a mixing weight set by alpha. After N iterations the expert's queried action is used with probability (1-α) raised to the power N. The mixing removes the need for T separate policies, but the mixture contains policies that are worse than the others, which the authors see as a practical concern.
Choosing alpha of order 1/T² and N of order T² log T gives near-linear regret in the earlier analysis.
DAGGER's aggregation loop
The first learner is trained on trajectories generated by the expert. At each later iteration, the current learner is rolled out, the states it visits are labeled with the expert's actions, and those labeled states are added to a single growing dataset. A new policy is then trained on the whole aggregated dataset, so each policy is fitted to the states that earlier policies would encounter, not only to expert states.
The procedure ends by returning the best of the policies found, judged on validation data.
Rollouts use a mixture policy that calls the expert with probability beta_i and the learner otherwise. Beta_1 is set to 1, so no initial policy is needed before expert data is gathered. The analysis requires only that the sequence of beta values has an average that tends to zero. The simplest, parameter-free choice sets beta_i to the indicator of i equal to 1, which the authors report often performs best in practice.
Choosing beta_i as a power of a fixed value below one gives a probability of querying the expert that decays exponentially, as in SMILe and SEARN.
Viewed as an online learning procedure, DAGGER is a Follow-The-Leader method: at iteration N it picks the best policy in hindsight over all trajectories seen so far.
What the no-regret argument yields
Each iteration's loss is the surrogate loss averaged over the state distribution that the current policy induces, and a no-regret algorithm is one whose average regret against the best fixed policy in hindsight goes to zero as N grows. The analysis needs the surrogate loss to be strongly convex and bounded over the policy class, which the authors note is a stronger requirement than the classification-only reductions they compare against.
The key lemma bounds the total variation distance between the state distribution of the mixed policy and that of the learned policy by 2Tβ_i. The argument conditions on the mixed policy querying the expert at least once within the horizon, which occurs with probability one minus (1-β_i) raised to the power T.
In the infinite sample case, if N is of order T, some policy among those produced has loss under its own state distribution at most the best in-hindsight loss plus O(1/T). If the task cost is bounded by the surrogate loss, this gives a cost bound of order T times the in-hindsight loss plus a constant. For an arbitrary task cost that the 0-1 loss upper bounds, the forward-training analysis adds the factor u, so N of order uT is needed.
The general bound adds a penalty of the form 2 times the maximum loss divided by N, times the number of early iterations where beta_i exceeds 1/T plus the sum of the remaining beta values times T. With beta_i set to a power of (1-α), this penalty becomes of order log T over N times α and is negligible once N is of order T. The authors conclude that the number of iterations needed is therefore similar to what any no-regret algorithm requires.
Finite-sample guarantees
With m trajectories per iteration, the learner observes only a training loss on its sample. The authors apply Azuma-Hoeffding concentration to the deviations between sampled and true per-step losses, which form a martingale with bounded increments. With probability at least one minus delta, the true loss of the best policy in the sequence is bounded by the sampled training loss plus the no-regret term and a concentration term of order the maximum loss times the square root of 2 log(1/delta) over mN.
Theorem 3.3 states that with N of order T² log(1/δ) and m of order 1, the true loss of some policy is within the sampled training loss plus O(1/T) with probability at least 1-δ. The authors note that a refined analysis using the strong convexity of the loss may reduce the requirement to about T log(1/δ) iterations, and the proof sketch says it may lower the trajectory count to order T log(T/δ).
These are suggestions and were not carried out in the paper.
Super Tux Kart steering
The metric is the average number of falls per lap on the Star Track, where lower is better. Each iteration uses one lap of training, about 1000 data points, and both SMILe and DAGGER run for 20 iterations.
The supervised approach does not improve as more expert data is collected, because the training laps are very similar and do not teach recovery from mistakes. SMILe improves on this but still falls about twice per lap after 20 iterations, and the authors attribute part of the remaining error to the stochasticity of its policy, which sometimes picks bad actions.
DAGGER reached a policy that never falls off the track after 15 iterations, and after 5 iterations it almost never falls, which the authors report as clearly better than both SMILe and the supervised baseline. The authors also describe the DAGGER policy as smoother than the SMILe policy, a qualitative judgement they support with a video.
Super Mario Bros. stage play
The expert is a near-optimal planner with access to the internal game state. The learner predicts four binary button variables from image features, using four independent linear SVMs that update at 5Hz. Each method collects 5000 data points per iteration for 20 iterations. SMILe uses alpha of 0.1, SEARN is run with alpha values including 0.4 and 1.0, and the 27152 binary input features include a history of the last four images.
The supervised approach stagnates as data grows, because the learned controller often gets stuck against an obstacle that the expert always jumps over from a distance, and the supervised data never shows how to escape that situation. All the iterative methods avoid this because they meet the stuck states during later iterations.
DAGGER outperforms SMILe, and it also outperforms SEARN for every value of alpha the authors considered. With beta_i set to 0.5 raised to the power i minus 1, DAGGER reached 3030 on average per stage, against 2980 for the indicator choice. The authors attribute this to the indicator choice collecting many repeated data points where Mario is stuck early on, whereas occasional expert queries unstick Mario and diversify the data.
With beta_i set to 0.9 raised to the power i minus 1, convergence is slower and performance was still improving after 20 iterations.
Handwriting recognition as structured prediction
Structured prediction is treated as a degenerate imitation problem in which the dynamics are deterministic and the only effect of a prediction is that it becomes an input to later predictions. The OCR dataset of Taskar et al. has roughly 6600 words, over 52000 characters, and 10 folds. The large dataset experiment trains on nine folds and tests on the remaining one, and the reported metric is character accuracy on the test folds.
Each character is predicted left to right with a linear SVM, which takes 8x16 binary pixels and the previously predicted letter as input. The non-structured baseline reaches 82% character accuracy, and the supervised approach, which always has the previous character labeled correctly, reaches 83.6%. DAgger reaches 85.5%.
SEARN with alpha 1, a pure policy iteration approach, performs about as well as DAgger and as SEARN with alpha 0.8, whereas SMILe and SEARN with alpha 0.1 perform similarly to each other but clearly worse than DAgger. The authors explain that only a small part of the input depends on the current policy, namely the previous character feature, which makes this task less unstable than general imitation learning.
Limitations
The guarantees need either a no-regret method or a strongly convex surrogate loss, and the authors describe this as a stronger assumption than the classification-only reductions. Forward training remains impractical for large or undefined T, and the supervised approach's bound grows quadratically in T.
The handwriting experiment uses simple greedy one-pass decoding, and the authors say similar techniques could apply to multi-pass or beam-search decoding, which were not tested. Planning with more sophisticated structured decoding and with base classifiers based on inverse optimal control are listed as future work.
The Super Tux Kart comparison uses a single track, Star Track, and the Super Mario Bros. comparison uses only difficulty 1 stages.
Paper info
- Authors
- Stephane Ross, Geoffrey J. Gordon, J. Andrew Bagnell
- Venue
- arXiv · Preprint
- First published
- 2010-11-2
- Added
- 2026-11-6
- Updated
- 2011-3-16
- Version
- v3
- arXiv
- 1011.0686
- Category
- cs.LG · cs.AI · stat.ML
- 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
Stephane Ross, Geoffrey J. Gordon, J. Andrew Bagnell (2010). A Reduction of Imitation Learning and Structured Prediction to No-Regret Online Learning. arXiv:1011.0686v3. https://arxiv.org/abs/1011.0686v3
BibTeX
@misc{ross2010reduction,
title = {{A Reduction of Imitation Learning and Structured Prediction to No-Regret Online Learning}},
author = {Stephane Ross and Geoffrey J. Gordon and J. Andrew Bagnell},
year = {2010},
eprint = {1011.0686},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/1011.0686v3}
}