---
title: "ChauffeurNet — paper by Bansal et al. (2019)"
description: "ChauffeurNet learns to drive from expert trips and synthetic mistakes, with tests that show why matching recorded paths can misjudge driving ability."
canonical: "https://research.elamur.ai/free/en/papers/bansal-2019-chauffeurnet-learning-drive-imitating-best/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/) · [Constitution](https://md.constitution.elamur.ai/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/bansal-2019-chauffeurnet-learning-drive-imitating-best/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2019](https://md.research.elamur.ai/free/en/papers/2019/) / ChauffeurNet: Learning to Drive by Imitating the Best and Synthesizing the Worst

# ChauffeurNet: Learning to Drive by Imitating the Best and Synthesizing the Worst

Paper · 2019 · Mayank Bansal, Alex Krizhevsky and Abhijit S. Ogale

**Authors:** Mayank Bansal, [Alex Krizhevsky](https://md.research.elamur.ai/free/en/authors/alex-krizhevsky/) and Abhijit S. Ogale · **Year:** 2019 · **Venue:** arXiv:1812.03079 · **Licence:** [arXiv — non-exclusive license to distribute](http://arxiv.org/licenses/nonexclusive-distrib/1.0/)

Cited by **18** papers in our library of more than 163,000 papers whose bibliographies we read · [licence](http://arxiv.org/licenses/nonexclusive-distrib/1.0/)

- [PDF](https://arxiv.org/pdf/1812.03079)
- [DOI 10.15607/rss.2019.xv.031](https://doi.org/10.15607/rss.2019.xv.031)
- [arXiv 1812.03079](https://arxiv.org/abs/1812.03079)

## Summary

A learner can predict where an experienced driver will go and still struggle when it has to drive. In a recorded trip, the learner sees the positions and speeds that resulted from the expert’s decisions. At the wheel, it sees the consequences of its own. A small error can put the car off the line the expert followed, and the learner then has to recover from a situation that ordinary demonstrations seldom contain. The ChauffeurNet paper studies this problem with a system that takes a map-like view of the road and produces a driving trajectory. The authors find that straightforward imitation can fail on maneuvers such as edging around a parked car, even with a large collection of real driving examples and separate systems handling perception and vehicle control.

The authors change both the examples the learner sees and the feedback it gets. They alter recorded trajectories to create plausible departures from the expert’s path, then fit smooth continuations that lead back towards its destination. Some of these altered paths overlap another road user or cross a road boundary. Those examples make it possible to teach from unfavorable situations without collecting real crashes. Training still rewards agreement with expert driving, but it also penalizes predicted occupancy of unsafe space and favors following the intended path. The strongest configuration in the parked-car test sometimes sets aside the imitation penalties for a whole training example, allowing the other penalties to guide the prediction.

In simulation, versions trained on altered trajectories recover from some departures that defeat the imitation baseline. The final configuration is the strongest of those tested at passing the parked car, while a version that always gives imitation a reduced weight does better when approaching a slower moving car. On 10,000 held-out examples of ordinary expert driving, the imitation baseline makes smaller waypoint errors than the final system. The reversal matters because the waypoint test starts from the expert’s history each time, whereas the simulator repeatedly makes the system drive from the position it actually reached.

The authors also replace the planner in a real car and demonstrate closed-loop driving through turns and past road controls, including stop signs. The demonstrations establish that the learned trajectory can be used by the vehicle’s controller. The simulation comparisons establish where particular training changes helped and where their benefits depended on the maneuver. Difficult merges, some low-speed maneuvers, and occasional overaggressive passes remain open problems.

## Deep dive: ChauffeurNet: Learning to Drive by Imitating the Best and Synthesizing the Worst

ChauffeurNet learns to drive from expert trips and synthetic mistakes, with tests that show why matching recorded paths can misjudge driving ability. · about 35 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### The state a driver has to act from

Imitation learning begins with a practical advantage. An experienced driver already supplies examples of how to approach a curve, slow for another car, or stop at an intersection. A training system can use each recorded situation as a question and the subsequent actions or positions as its answer. In behavior cloning, the learner tries to reproduce those answers. When the answer is a trajectory, the supervision says where the demonstration vehicle went, when it got there, and how it was oriented and moving along the way.

The difficulty is that the same trip supplies both the answers and the conditions under which those answers make sense. A recorded approach to a curved road may show the vehicle already near the lane center, with a heading that sets it up for the turn. When the learner drives, it may arrive farther to one side or at a different angle. The desired outcome still involves taking the curve, but the next move that leads to that outcome may have changed. A prediction error can therefore change the next problem the learner has to solve. Subsequent errors can make the state diverge further, even if the learner was typically accurate when tested on recordings.

This mismatch is called a shift in the distribution of states. Here, a state is the information available to the driving system at a given time. The distribution of states in training reflects decisions made by the expert. The distribution encountered in operation reflects decisions made by the learned policy, a rule for choosing how to proceed from the current state. The authors draw on earlier work by Ross and colleagues to frame the accumulation of error. They also cite work by Laskey and colleagues in discussing both the promise of high-capacity imitation and approaches that actively expose demonstrators to different states. ChauffeurNet asks how much of the gap can be closed by editing examples after collection.

A second difficulty concerns what a demonstration teaches about the reason for a maneuver. A trip in which a driver stops at a sign also contains the driver’s gradual deceleration. If the learner sees the most recent positions, that deceleration can be enough to predict what happens next. The learner can appear to understand the stop while relying on evidence created by the expert’s decision to brake. In operation, if the system never initiates that decision, its own history lacks the slowing pattern it expects. The visible sign was present from the beginning. Learning which part of the scene should initiate the response is a different problem from learning to extend a motion pattern already underway.

The authors focus on driving as a complete sequence of decisions, while narrowing the part that needs to be learned. A driver needs information about road geometry, traffic controls, other road users, and the intended route. The driver also needs a way to turn a plan into steering and changes in speed. The paper assigns the interpretation of raw sensors and the execution of detailed controls to separate components. ChauffeurNet learns the planning step between them. That division makes its errors easier to examine. If a simulated input already shows a stopped vehicle and the planner still chooses an intersecting path, the test can investigate how the planning system uses evidence that it received.

#### Earlier approaches to learning to drive

The paper places ChauffeurNet alongside a line of work that learns directly from sensors. Early work on ALVINN used camera and range measurements to train a neural network to follow the road. The NVIDIA work discussed by the authors used a convolutional network to produce steering from camera input. Xu and colleagues explored camera-based prediction of discrete or continuous actions, and Codevilla and colleagues conditioned camera-based driving on high-level commands. Hecker and colleagues used a surround view together with a desired route to predict steering and speed. These approaches illustrate the range of inputs and outputs that a learned driving system can be asked to connect.

Other systems gave learning and control distinct roles. Chen and colleagues estimated driving affordances, quantities such as the distance to the vehicle ahead that a controller could act on. Sauer and colleagues used affordances for urban driving in the CARLA simulator. The authors also discuss work by Müller and colleagues and by Pan and colleagues that used intermediate scene representations to help transfer driving behavior from simulation to real imagery. A representation can make two different sources of observations usable by the same driving policy, as long as both supply the distinctions that policy needs.

There was also precedent for arranging information in a top-down coordinate system. The work discussed by the authors used such views across time for tasks including detection, tracking, and motion forecasting. ChauffeurNet uses a related spatial arrangement for a different output. The positions of lane edges, neighboring vehicles, and candidate paths all land on the same grid. A prediction about the driving vehicle can be compared spatially with information about the rest of the scene. This is what makes the representation useful for training as well as for carrying information between components.

The related work also covers ways to learn actions under the consequences of those actions. Kuefler and colleagues used adversarial imitation learning with compact driving features to address the tendency of behavior-cloned policies to accumulate errors. The paper cites reinforcement learning for tasks such as merging, where other vehicles’ responses make exploration important. It identifies conventional motion planning as another substantial body of work. These approaches matter to the paper’s question because they offer ways to obtain or plan behavior beyond copying a recorded continuation.

The authors’ research choice is to work with offline driving data. The recordings can be sampled and altered during training, but a demonstrator is never asked to take over at each new state that the current learner visits. The driving system also does without trial-and-error reinforcement learning. A top-down scene makes this choice more practical. Shifting a vehicle’s represented pose changes its relation to the lane or surrounding objects directly. Doing the same from raw sensor inputs would require a corresponding change to the observations that those sensors would have made. The paper uses this flexibility to turn a demonstration into a source of nearby recovery situations and to give each situation feedback about where driving becomes undesirable.

### The method, step by step

#### A view that moves with the car

The first step is to build a scene in coordinates centered relative to the vehicle being driven. The car always occupies the same reference location in the image at the moment when the planner receives the scene. As the car moves, the scene is drawn again from its updated pose. A point at a particular image location consequently has a consistent meaning relative to the vehicle, while its geographic location may change from one planning cycle to the next. Each input image covers the same ground area, so features drawn on separate layers can be compared at the same pixel.

The layers describe different things about that area. A color roadmap marks lanes, curbs, crosswalks, stop signs, and other map features. A separate image represents known speed limits along lane centers. The intended route comes from a router and shows where the car is supposed to go through the road network. This gives the planner a way to distinguish, for instance, the geometry of an available turn from the instruction to take that turn. Traffic lights are rendered over the lanes they govern, with differing brightness for red, yellow, and green or unknown states. A sequence of those images gives the planner recent signal information.

The remaining layers describe the cars and other moving participants. The driving vehicle has a box showing its current footprint. Other vehicles, cyclists, and pedestrians appear as oriented boxes in a sequence of images. Their positions over time give evidence about recent motion. The driving vehicle’s own earlier positions appear together as a trail on a separate layer. The authors use an indexed representation for the roadmap and traffic-light inputs, allowing additional map or signal categories to be expressed within the input design.

The paper denotes the current planning instant by `t = 0`. The car’s position at a time `t` is `pₜ`, with coordinates `xₜ` and `yₜ`. Its heading `θₜ` describes the direction the vehicle faces, and `sₜ` gives its speed. The reference image coordinates of the current position are `u₀` and `v₀`. The forward reach of the image is expressed as follows.

```
R_forward = (H − v₀)φ
```

`R_forward` is the ground distance visible in front of the reference position. `H` is the image height in pixels, `v₀` is the vertical coordinate of the reference position, and `φ` converts a pixel into a ground distance. The width is `W`. Both `W` and `H` are `400 px`, and `φ` is `0.2 m/px`. The reference coordinates are `200 px` across and `320 px` along the vertical image dimension. The paper reports an `80m × 80m` input area and an effective `64m` forward reach.

The spacing between sampled moments is `δt`, set to `0.2s`. The recent history of objects and signals spans `T_scene`, set to `1.0 s`, while the driving vehicle’s position trail can span `T_pose`, set to `8.0 s`. The input can thus show a longer history of the car’s own movement than of the scene’s moving objects and traffic controls. During training, the authors also rotate the coordinate frame at random around the current heading `θ₀`, using an angular range given by `∆` with a setting of `25°`. This reduces the tendency to associate a good continuation with the vertical image axis. At inference, the vertical direction follows the current heading, with `∆ = 0`.

#### From an image stack to a trajectory

A trajectory is a sequence of intended future positions, together with information such as heading and speed at those positions. ChauffeurNet predicts it in installments. It starts from the known current pose and estimates the next position one sampling interval ahead. That result becomes part of the context for the following prediction. The paper introduces the recurrence in compact form.

```
pₜ₊δₜ = ChauffeurNet(I, pₜ)
```

`pₜ₊δₜ` means the position at time `t` plus the interval `δt`. `I` is the entire set of rendered input images for the current plan, and `pₜ` is the known or previously predicted position from which the progression continues. `ChauffeurNet` denotes the learned computation that produces the next point. Starting with `p₀`, the system unrolls the computation for `N` iterations. The experiments set `N` to `10`. The compact equation emphasizes the order of prediction. The implementation passes forward more information than the last position alone.

From perceived road scene to executed trajectory The steps in order.

A convolutional network called FeatureNet reads the stacked images. Its large receptive field allows a feature to depend on information from a broad part of the image. It also has skip connections, which carry information across layers. Its output, `F`, is a collection of features shared by the planning and auxiliary prediction networks. Because those features are computed from a scene showing the road and the intended route together, the recurrent planner can use a common description of both.

The planner is called AgentRNN. The initials RNN stand for recurrent neural network, meaning that successive prediction steps reuse information produced by earlier ones. Here the carried information is deliberately designed as spatial images. It includes the preceding estimate of the vehicle’s footprint and a memory of the points generated so far.

```
(pₖ, Bₖ) = AgentRNN(k, F, Mₖ₋₁, Bₖ₋₁)
```

`k` is the current iteration, starting at `1` and going through `N`. `F` is the FeatureNet output. `Mₖ₋₁` is the memory image at the end of the preceding iteration, and `Bₖ₋₁` is the preceding footprint heatmap. `AgentRNN` is the recurrent planner. Its outputs in this equation are `pₖ`, a waypoint on the image grid, and `Bₖ`, the footprint heatmap for that iteration. At each step the planner adds `1` to the memory at the pixel selected for `pₖ`. The memory tells a later iteration where the plan has already put the car.

The waypoint and footprint are different predictions. AgentRNN first produces `Pₖ(x, y)`, a distribution over possible locations of the next waypoint. A spatial softmax converts the scores into probabilities that compete across the grid. The system takes the most probable pixel, a choice called the argmax, as the coarse position. `Bₖ(x, y)` estimates whether the body of the car covers each pixel. A per-pixel sigmoid converts each footprint score into its own occupancy probability. Several pixels should be occupied at once when they fall under the car. A waypoint may be clear of an obstacle while the side of the car still extends into it, which gives the footprint prediction a distinct purpose.

A small additional network refines the location within the selected pixel and estimates a heading and speed for the same step. The position correction is `δpₖ`, the heading is `θₖ`, and the speed is `sₖ`. The output trajectory can then be passed to a controls optimizer. It uses the trajectory and the vehicle’s dynamic constraints to produce commands such as steering and braking. A path expressed in positions, headings, and speeds can be a common planning output even when the controls needed to follow it depend on the particular car.

There are two time sequences in this design. Within a planning cycle, AgentRNN rolls forward through its own predicted waypoints while using features from the same current scene. Across planning cycles, the controller moves the vehicle, perception supplies updated information, and the surroundings are rendered from the new pose. The router can also update the intended route in response to what the car managed to do. An error in the first sequence changes the trajectory under construction. An error that carries through to the car’s motion can also change the scene the next cycle receives.

#### Learning the expert’s positions, shape, and motion

Training first gives the planner targets that describe the demonstrated trajectory. The position target is a grid image with its probability mass at the pixel containing the expert waypoint. The footprint target describes the pixels covered by the expert car. Heading, displacement within the waypoint pixel, and speed are supplied as regression targets. The heading and motion targets let the trajectory specify more than a sequence of points, while the footprint gives the training procedure a spatial representation of the vehicle’s size.

The paper gives the loss terms at a prediction iteration. A loss is a quantity training tries to reduce. The position loss compares the predicted distribution with the target distribution.

```
Lₚ = ℋ(Pₖ, Pₖᵍᵗ)
```

`Lₚ` is the waypoint position loss. `Pₖ` is the softmax distribution over grid positions at iteration `k`. `Pₖᵍᵗ` is the ground-truth image with the entry for the expert’s waypoint pixel set to one. The superscript `gt`, shown raised in the formulas, means ground truth throughout. `ℋ` denotes cross-entropy, the function used to penalize probability assigned away from the target. With this target, the loss rewards placing probability on the expert’s waypoint pixel.

```
L_B = (1 / (W × H)) Σₓ Σᵧ ℋ(Bₖ(x, y), Bₖᵍᵗ(x, y))
```

`L_B` is the footprint loss. `Bₖ(x, y)` is the estimated probability of the car occupying pixel `x, y`, and `Bₖᵍᵗ(x, y)` is the observed footprint label at that pixel for the same step. `ℋ` is the cross-entropy for the occupancy label. The `Σₓ` and `Σᵧ` symbols sum over the horizontal and vertical pixel coordinates. Dividing by the product of image width `W` and height `H` takes the mean over the image. This loss rewards reproducing the demonstrated extent and placement of the car.

```
L_θ = |θₖ − θₖᵍᵗ|
```

`L_θ` is the heading loss. `θₖ` is the estimated heading and `θₖᵍᵗ` is the heading target at iteration `k`. The vertical bars express the magnitude of the regression error.

```
δpₖᵍᵗ = pₖᵍᵗ − ⌊pₖᵍᵗ⌋
```

`δpₖᵍᵗ` is the fractional part of the expert waypoint `pₖᵍᵗ`. The floor brackets `⌊ ⌋` take the grid coordinate below each component, leaving the within-pixel offset after subtraction. The paper uses this offset as the target for the refinement network.

```
L_p−subpixel = |δpₖ − δpₖᵍᵗ|
```

`L_p−subpixel` is the position-refinement loss. The prediction `δpₖ` and the target `δpₖᵍᵗ` are offsets within a pixel at step `k`. The bars denote the L1 error, based on absolute differences in the offset coordinates.

```
L_speed = |sₖ − sₖᵍᵗ|
```

`L_speed` is the speed loss. `sₖ` is the predicted speed at iteration `k`, `sₖᵍᵗ` is its reference value, and the bars give the absolute error. During training the recurrence is expanded for the fixed prediction horizon, and the losses from successive iterations contribute to the training objective. The training targets apply to the progression of the trajectory as well as its destination.

The authors also change what information is available to solve the imitation task. For `50%` of training examples, they erase the trail of the driving vehicle’s past positions while leaving its current position visible in that layer. They call this past motion dropout. The example still contains the intended future to be predicted. If it shows a stop, the planner has to use cues available in the other layers, such as road controls and nearby cars, to account for that future. The other examples retain the trail, allowing past motion to remain informative when it is available. The object and signal histories are separate inputs, so this operation affects the history of the driving vehicle specifically.

#### Making bad states available during training

The next step is to change where a recorded trajectory puts the car. The authors keep its start and end, choose a point around the middle, and change the vehicle pose there. The position shift is sampled uniformly within `[−0.5, 0.5]` meters on each axis, and the heading perturbation is in `[−π/3, π/3]` radians. Here `π` is the circle constant used to express an angle in radians. A smooth path is then fitted through the moved point and the original endpoints. The paper illustrates a car represented off the center of its lane, with the continuation bringing it back towards the original lane-centered endpoint.

A filter rejects trajectories with excessive maximum curvature. Curvature describes how sharply the path bends, so the filter removes some shifts for which the fitted path would ask for an impractical maneuver. The authors retain examples in which a path reaches outside the road or overlaps the position of another road user. Those examples expose the learner to the kind of spatial conflict it has to recognize when a car has drifted or when its predicted path is poor. Perturbed examples receive a weight of `1/10` relative to real examples, giving the demonstrations greater influence in training.

This augmentation supplies a state and a proposed continuation with different uses. The altered state gives the learner experience seeing the road from somewhere the expert did not actually drive. Fitting a path back toward the original endpoint provides a recovery target. The environment can also show where the fitted continuation should be treated with caution. A smooth line can still cross a curb or another vehicle’s occupied space. The additional losses let the road and object labels contribute information about precisely those parts of the altered path.

#### Giving the environment a role in the loss

The collision loss uses the predicted footprint and the ground-truth occupancy of the other dynamic objects at the corresponding future step. If the car is predicted to cover a pixel occupied by another object, that pixel contributes a penalty.

```
L_collision = (1 / (W × H)) Σₓ Σᵧ Bₖ(x, y) × Objₖᵍᵗ(x, y)
```

`L_collision` is the collision loss at the current prediction iteration `k`. `Bₖ(x, y)` is the estimated probability that the driving vehicle occupies pixel `x, y`. `Objₖᵍᵗ(x, y)` is a binary ground-truth mask that is one where another dynamic object occupies the pixel. `Σₓ` and `Σᵧ` sum the products across the image, and division by `W × H`, the pixel count, gives their mean. A larger predicted overlap produces a larger training penalty. The use of probabilities allows the loss to respond to changes in the footprint before a hard occupied-or-empty decision is made.

On the original demonstrations, a close copy of the expert trajectory gives this penalty little work to do because the authors’ training data contain no real collisions. It can still act on inaccurate predictions, especially early in training. The authors’ reason for retaining synthetic collisions is that examples can keep the penalty informative even after the learner becomes good at copying expert paths. Fitting a path and evaluating its overlap are distinct operations in the training procedure.

```
L_onroad = (1 / (W × H)) Σₓ Σᵧ Bₖ(x, y) × (1 − Roadᵍᵗ(x, y))
```

`L_onroad` measures predicted occupancy outside the drivable area. `Bₖ(x, y)` again gives the driving car’s estimated occupancy at pixel `x, y` and step `k`. `Roadᵍᵗ(x, y)` is the binary ground-truth road mask. Subtracting this mask from `1` selects pixels outside the road. The sums run over the image coordinates and the factor using `W` and `H` averages across pixels. A footprint extending over a curb can therefore incur a penalty even if the predicted waypoint itself remains on the roadway.

The geometry term uses a more specific region than the road mask. The authors fit a smooth curve through the target waypoints and draw it at the width of the driving vehicle. The resulting band represents the shape of the intended path. A prediction can follow that shape while reaching points on it at a different rate from the demonstration. The band gives a signal about the route taken through space separately from the timing of each waypoint.

```
L_geom = (1 / (W × H)) Σₓ Σᵧ Bₖ(x, y) × (1 − Geomᵍᵗ(x, y))
```

`L_geom` is the geometry loss. `Geomᵍᵗ(x, y)` marks the pixels inside the drawn target band. Taking `1` minus that binary value selects pixels outside the band. `Bₖ(x, y)` supplies the predicted vehicle occupancy for iteration `k`. The sums add these outside-band contributions over the pixel coordinates `x` and `y`, and `W × H` is the number of pixels. This term favors following the target path, while the collision and road terms describe where the surrounding scene makes occupancy undesirable. The geometry term is the part of this group most directly connected with continuing along the intended path. It supplies spatial guidance instead of a reward based on distance traveled.

#### Shared features and selective imitation

The paper trains two auxiliary predictors to influence the features used by the planner. PerceptionRNN forecasts where other road users will occupy space. It starts with the supplied current object positions, at `k = 0`, and uses its own preceding forecast for subsequent steps. At each forecast step it also receives the scene features `F`. Its output is an occupancy image for the other dynamic objects, so a pixel can express crowded space without identifying which individual object will occupy it.

```
L_objects = (1 / (W × H)) Σₓ Σᵧ ℋ(Objₖ(x, y), Objₖᵍᵗ(x, y))
```

`L_objects` is the auxiliary object forecast loss. `Objₖ(x, y)` is the forecast occupancy at step `k` and pixel `x, y`, and `Objₖᵍᵗ(x, y)` is the corresponding ground-truth occupancy. `ℋ` is cross-entropy. The two sums and division by `W × H` average the pixel losses over the image. The forecast encourages FeatureNet to capture information that helps anticipate moving traffic. In the collision loss, the footprint is compared with the ground-truth object mask. The auxiliary forecast has its own supervision.

The Road Mask Network learns to label areas as drivable or outside the road from the same shared features. Its target is the road mask that is also used in the on-road loss.

```
L_road = (1 / (W × H)) Σₓ Σᵧ ℋ(Road(x, y), Roadᵍᵗ(x, y))
```

`L_road` is the auxiliary road prediction loss. `Road(x, y)` is the network’s estimate at pixel `x, y`, and `Roadᵍᵗ(x, y)` is the reference value there. `ℋ` gives the cross-entropy at that pixel. The sums range over the image and the product `W × H` gives the normalization. The authors’ reasoning is that features useful for recognizing drivable space and anticipating other traffic should also be useful for deciding where the driving car should go.

The final objective groups losses by the information they contribute. The first group concerns reproducing the demonstrated movement.

```
L_imit = {Lₚ, L_B, L_θ, L_p−subpixel, L_speed}
```

`L_imit` is a set of imitation loss terms. Its members are the waypoint loss `Lₚ`, footprint loss `L_B`, heading loss `L_θ`, position-refinement loss `L_p−subpixel`, and speed loss `L_speed`. The braces denote the collection of terms to be summed when imitation is active.

```
L_env = {L_collision, L_onroad, L_geom, L_objects, L_road}
```

`L_env` is the set the paper calls the environment losses. Its members are the collision overlap penalty `L_collision`, the off-road occupancy penalty `L_onroad`, the target-path penalty `L_geom`, the auxiliary object forecast loss `L_objects`, and the auxiliary road prediction loss `L_road`. This group includes penalties on the predicted car as well as supervision on the shared scene features.

```
L = w_imit × Σ_{ℓ ∈ L_imit} ℓ + w_env × Σ_{ℓ ∈ L_env} ℓ
```

`L` is the combined loss. `w_imit` and `w_env` weight the imitation and environment groups. `ℓ` stands for an individual loss term, `∈` means membership in the indicated group, and each `Σ` adds the terms in that group. Where a term applies at successive forecast steps, training includes its contributions across the unrolled predictions.

The paper compares two ways of giving the environment terms greater influence. A fixed small imitation weight makes both groups contribute on every example, with imitation exerting less influence than before. Imitation dropout makes a different choice for each training example. The weight `w_imit` is randomly set to `0` or `1`, with a dropout probability of `0.5` in the final configuration. On selected examples, the waypoint, footprint, heading, refinement, and speed targets all stop contributing imitation gradients. The environment terms can then influence training without a competing demand to reproduce that example’s exact motion. This dropout changes the feedback supplied during training. Past motion dropout changes the evidence available to the predictor. Both can operate in the same training procedure.

### Experiments and results

#### Recordings, comparison systems, and runtime

The experiments begin with segments sampled from expert driving. The authors exclude stretches where the vehicle remains stationary for a long time and remove highway driving because its longer sensing-range requirements exceed the chosen view. The data section describes approximately 26 million examples, representing about 60 days of driving. The abstract and introduction give the broader description of 30 million examples. The paper associates both descriptions with about 60 days and gives the approximate 26 million figure in its account of the experimental dataset. The recorded examples use prior map and speed-limit information. A separate perception system processes laser and camera measurements for the changing parts of the scene, including other objects and traffic lights.

The comparison begins with M₀, behavior cloning with past motion dropout. M₁ adds trajectory perturbations and retains the same imitation objective. M₂ keeps those perturbations and adds the environment losses. M₃ uses the same ingredients as M₂ and gives imitation a fixed weight of `0.5`. M₄ replaces that fixed reduction with the random imitation dropout described above. In the first two configurations, imitation has weight `1.0` and the environment group has weight `0.0`. M₂ sets both groups to `1.0`. M₃ keeps the environment weight at `1.0`. The progression uses the same planning architecture to test changes in examples and supervision.

The authors also report a runtime breakdown on an NVIDIA Tesla P100 GPU. The complete driving computation is reported at 160 ms overall. AgentRNN’s recurrent waypoint and footprint predictions take 145 ms in the timing breakdown. PerceptionRNN’s occupancy forecasts take 35 ms, FeatureNet takes 6.5 ms, and rendering takes 8 ms. The breakdown presents component timings alongside the overall measurement. It makes the cost of the recurrent planner visible, particularly compared with the shared feature extraction that precedes it.

ChauffeurNet runtime breakdown on the NVIDIA Tesla P100 GPU The recurrent planner has the largest reported component time.

**The numbers**

| System or setting | ms |
| --- | --- |
| Rendering | 8 |
| FeatureNet | 6.5 |
| PerceptionRNN | 35 |
| AgentRNN | 145 |
| ChauffeurNet overall (this paper) | 160 |

#### What the car does when predictions change its position

For a closed-loop simulation, the authors first replay a buffer of the recorded segment. The buffer lasts as long as the larger of `T_pose` and `T_scene`, so the first rendered input can contain the histories the planner expects. The learned trajectory is then converted to control commands and executed by a simulator that represents the car’s dynamics. The simulator produces a new position and heading. The next input is drawn from there, even when that pose differs from the recorded driver’s pose. This process repeats through the segment.

An outcome in this evaluation is defined by the driving task. For a stop-sign situation the question can be whether the vehicle stops. For a parked-car situation the alternatives include passing, getting stuck, and colliding. The authors first use 20 scenarios for each of several ordinary situations, including stopping for signs and red lights, and following straight or curved lanes. All the configurations do well on these simpler tests. The more demanding tests focus on differences that emerge after the planner has to recover, choose between stopping and maneuvering, or respond with limited time.

In the parked-car test, a vehicle sits on the right shoulder of an undivided road between the driving car and a stop sign. The authors choose 4 locations and 5 initial speeds to make 20 scenarios. A successful pass requires moving a little sideways to create clearance, going around the parked vehicle, and returning toward the lane center. The comparison systems other than M₄ collide about half the time according to the authors’ account, and the imitation baseline can also stop behind the obstacle and remain there. M₄ has a 10% collision rate in this suite and shows the intended pass and return maneuver. The authors designed some approaches at speeds high enough to make the maneuver difficult under the simulated vehicle’s dynamic constraints. They interpret the result as comparative performance within the suite.

The recovery suite also contains 20 variations, this time on the approach to a curved road. The starting offsets and headings put the vehicle in different positions relative to the lane, and the starting speeds vary. M₀ fails to recover in every case. Each configuration trained with perturbations can handle the lower-speed scenarios, which constitute 50% of the suite. M₃ and M₄ handle all the tested departures, including the more difficult higher-speed variations. The test asks whether the planner can lead the vehicle back into a viable path from a poor initial pose, which is close to the problem the synthetic training examples were designed to expose.

A third suite uses 20 variations of a straight-road approach to a slower car. The lead car travels at a constant speed in each variation, while both cars’ starting speeds vary across the suite. The desired response is to slow and follow. Some configurations come to a stop and get stuck. In the case with the greatest speed difference, most configurations collide because the approach leaves too little time to slow enough. M₃ performs better than M₄ in this suite. The authors describe two M₄ failures in the variants with the greatest relative speeds, in which it tries to move around the other car and grazes the left road edge. This is a different kind of mistake from failing to move around an obstruction that remains stationary.

The authors also evaluate M₄ with and without particular scene features. They use 20 matched scenarios to compare behavior with a stop sign present or omitted from the rendering, and 20 to compare behavior with other vehicles rendered or omitted. They report the appropriate response throughout both tests. These tests add a check on what drives the observed behavior. The system has to change its response when the feature responsible for stopping disappears from an otherwise comparable scene.

#### Prediction on held-out trips and execution on a real car

The paper distinguishes the closed-loop tests from open-loop evaluation on recorded trajectories. In the open-loop test, the planner is given a held-out expert scene, generates a trajectory, and is judged by its distance from the recorded future waypoints. The paper uses L2 distance, which measures the straight-line spatial error between the predicted and reference positions. The predicted trajectory never changes the car’s subsequent input in this evaluation. Each test example begins from the expert’s recorded state and history.

On the test set of 10,000 examples, the waypoint errors are smaller for M₀ than for M₄. That ranking matches M₀’s narrower training objective, which rewards copying the demonstration. It differs from the ranking seen when the systems are asked to recover or drive around a parked car. The paper also runs an open-loop test on perturbed evaluation examples and compares M₀ with M₁. Here the version trained on perturbations, M₁, has smaller waypoint errors. The illustrative trajectories show how a continuation from the imitation baseline can keep veering after a shift, while the perturbed-data version bends back towards the target path. The reference used for evaluation and the state from which it is predicted both matter to the interpretation of a waypoint error.

The authors run another simulation using logs from real driving reserved for testing. In those runs, the learned planner drives the simulated car while the other objects and traffic lights follow their logged states. The demonstrations illustrate driving around multiple road users and responding to traffic controls in scenes drawn from real trips. Because the learned car’s pose is updated and the scene is reconstructed around it, this remains a closed-loop test for the driving car.

Finally, the authors install M₄ in a self-driving vehicle in place of the existing planner. Perception supplies the rendered inputs and the controls optimizer executes the planned trajectory. The paper describes smooth driving in the recorded runs, including turns, responses to stop signs, and extended periods under closed-loop control. The introduction also reports demonstrations involving other agents and traffic lights. These are demonstrations of a working integration with the car’s existing stack. The scenario suites and the held-out waypoint test provide the quantitative comparisons between training configurations.

### What the ablations show

#### Perturbations teach a response to displacement

An ablation changes a selected ingredient and measures how the resulting behavior changes. The comparison between M₀ and M₁ isolates the addition of perturbed trajectories while keeping the imitation losses. Its clearest result comes from the disturbed starting positions. The unaugmented baseline fails across the closed-loop recovery suite, while the version trained on perturbed trajectories recovers in the lower-speed cases. The open-loop comparison on perturbed examples points in the same direction: its trajectories return closer to the recorded continuation. Because the loss is shared in this comparison, the gain can be associated with the added examples.

That result helps distinguish two skills that an ordinary waypoint test can conflate. One is extending a familiar trajectory from a state already visited by the expert. The other is finding a continuation from a pose for which the car must first correct its direction or displacement. A training example that starts out well aligned may reward the first skill. Moving the starting pose and showing how a path returns to useful alignment gives direct instruction on the second. Recovery in the more difficult cases is strongest when the examples are combined with changes in the relative influence of the losses.

The parked-car results show why augmented imitation is only part of the answer in this setup. A synthesized trajectory may teach the car to move back toward the lane center. The route to that center can still pass through space occupied by the parked car, and a familiar lane-centered continuation can be poor in the presence of the obstruction. The footprint and collision penalty make clearance part of the learning problem. Nevertheless, the configuration that adds all the environment losses at full imitation weight, M₂, still belongs to the group with frequent parked-car collisions. The improvements in this suite arrive with the particular combination used by M₄.

#### The way imitation is reduced matters

M₃ and M₄ are especially informative because both train on perturbations and use the same categories of loss. M₃ reduces imitation on every example. M₄ removes it entirely on a sample of examples and uses it at full weight on the others. The parked-car task favors the latter. A plausible interpretation is that examples in which the desirable path departs substantially from the demonstration can be easier to learn from when the spatial penalties are allowed to act without simultaneous imitation feedback. The authors attribute the nudging behavior to the combination of perturbations and the collision penalty, with the treatment of imitation affecting how strongly that signal is expressed.

The recovery test gives a related result with a different distinction. Both M₃ and M₄ succeed across the tested departures, whereas the versions with full imitation weight throughout training struggle on the more difficult approaches. This supports the authors’ interpretation that making the additional losses more influential helps when the car starts faster and displaced. The recovery results alone give no reason to prefer intermittent dropout to the fixed reduction, since both approaches achieve the reported full recovery in that suite.

The slower-car test gives the fixed weighting an advantage. Approaching moving traffic calls for a different decision from approaching a parked obstacle. The appropriate response in the test is to regulate speed behind the lead vehicle. An attempt to get around it may avoid one obstacle while using too much of the available road width. The road-edge failures of M₄ show that a configuration can become more successful at maneuvering around obstructions while being too ready to try that maneuver in a following task. The relative value of the loss schedules depends on the behavior the scenario demands.

The progression is a set of combined comparisons. The step from M₁ to M₂ introduces collision, road-boundary, geometry, object-forecast, and road-mask losses together. It therefore measures the result of adding the group under that weighting. Individual benefits of auxiliary prediction, path geometry, and collision penalties cannot be read as independent effects from this sequence. Similarly, past motion dropout is already present in M₀ and retained thereafter. The experiments with these configurations give direct comparisons for the additions the authors vary, while the motivation for withholding motion history comes from the shortcut the architecture makes possible.

#### Removing the features that prompt stopping

The input ablations change the scene that the trained system receives. For a stop-sign case, the sign is visible in one rendering and absent in the matched rendering. For the vehicle cases, the comparable intervention is to show or omit the other vehicles. The authors keep the remaining conditions fixed and check whether the consequent behavior is appropriate. This design makes a stronger case for the relevance of the rendered feature than a successful stop in an ordinary replay, where road layout, past motion, and the sign may all point in the same direction.

The controlled comparison supports a specific causal statement about the tested inputs. Changing sign or vehicle information changes behavior in the expected direction for those scenes. It gives evidence that the final system uses those cues in the conditions tested. The input ablations test the planner’s response after a feature has been rendered, so they are also separate from the question of whether the raw-sensor perception system would detect the feature in every real scene.

#### What the waypoint distributions reveal

The paper illustrates another property of the recurrent planner by looking at the full distribution over waypoint locations. Its normal procedure takes the most probable location at each iteration and records that location in memory. The probability distribution also offers a way to select a different plausible waypoint, after which subsequent predictions depend on that choice. Because the intervals between predictions are fixed, selecting a point farther ahead along the path corresponds to a different motion profile from selecting a nearer one.

In the illustrated training example, the car’s past motion trail is withheld. The early prediction `P₁(x, y)` spreads probability along the direction of travel. Several forward positions are plausible at that stage. The authors show that once a sample has been chosen and propagated, the later prediction `P₅(x, y)` is more concentrated. The display helps explain how making an early choice can change the range of later choices through the recurrent memory. The authors suggest that sampling could be constrained to a region or used to respect a restriction such as a speed limit. The figure illustrates the distribution and its dependence on earlier choices. The hard-constraint proposal is left as a possibility.

### Limitations

#### Limits described by the authors

The rendered view is a practical limit on the information the planner can use. In the failure analysis, the authors give a resolution of 20 cm/pixel, a view reaching 64 m forward, and 40 m to the sides. They say this restricts behaviors such as merging at T-junctions and turning from a high-speed road. A decision to turn into traffic may depend on vehicles approaching from farther away than the visible area. Highway segments were excluded from the training setup for a related reason. The experiments apply to the range of situations the representation and training set were chosen to cover.

Some maneuvers also remain outside the system’s demonstrated competence. The authors identify U-turns and cul-de-sacs as situations that require adequate sampling in training. The planner can occasionally get stuck in low-speed nudging and can sometimes produce a turn of impractical geometry, such as one with too wide a radius. The slower-car test supplies an example of a different failure, an overly aggressive attempt to pass. Together these cases concern several parts of the planning problem: which maneuver to choose, how to move through it, and whether the resulting path is executable by the vehicle.

The paper emphasizes that highly interactive situations may require exploration involving other drivers. A perturbation that moves the driving vehicle within a logged scene is useful for exposing spatial conflicts. Questions of whether another driver will yield, slow down, or close a gap depend on how that driver reacts to the maneuver. The authors propose richer simulation, potentially with reinforcement learning, for that class of problem. They also state that the system is still short of competing fully with motion-planning approaches and identify comparison with end-to-end driving and investigation of other schedules for imitation as further work.

The authors qualify the parked-car result in particular. Some of the test approaches are constructed at relative speeds that leave little time for a dynamically feasible pass. The reported 10% collision rate is a property of M₄ in that suite, for which the paper supplies no reference driver known to succeed on every variation. The result supports a comparison across the evaluated configurations. It gives neither a collision rate for ordinary trips nor a direct measure of the gap to an expert at the same starting states.

#### Limits of the evidence

The scenario tests are structured collections of variations. Several parked-car cases share a location and differ in starting speed, and the recovery cases use altered positions and speeds to probe a particular maneuver. That design is useful for finding out how behavior changes as the initial conditions become harder. It leaves the frequency of these conditions in ordinary driving undetermined. A system that does well across the chosen variations has shown robustness to those changes. A broader reliability claim would need evidence across a wider range of contexts and some account of how frequently each type of situation arises.

The held-out logged simulations answer another bounded question. The car’s planned actions change its own pose and its future inputs, while the other traffic participants follow the recording. A nearby vehicle can consequently appear at a different relative position from the one the expert saw. Its movement still reflects the original interaction. The setup supports tests of whether ChauffeurNet responds to traffic and road controls as its own position changes. It offers weaker evidence about cooperation, negotiation, or the consequences of a maneuver that would have caused another driver to react differently.

The real-vehicle runs establish feasibility within an existing system. The trajectory output can be acted on by the controller, and the learned planner can maintain closed-loop driving in the situations shown. The paper describes those runs as examples and gives no aggregate comparison with the planner they replaced. It also provides no aggregate intervention rate for the vehicle demonstrations. The simulator and waypoint studies supply controlled comparisons between learned configurations. The car demonstrations support a narrower claim about successful execution.

The environment terms are training signals expressed on a discrete scene grid. Predicted occupancy can be penalized for extending beyond the road or overlapping another object. Those penalties influence what the system learns, and the coefficient schedule can change the balance with imitation. They cannot establish that every executed trajectory will satisfy continuous vehicle constraints or clear every obstacle. The reported edge grazes and infeasible turn shapes illustrate the practical distance between learning a preference and guaranteeing a feasible maneuver. The paper’s suggestion of constrained sampling would require its own tests to establish how it affects trajectories and executed control.

Finally, the comparison between waypoint accuracy and simulated driving should be read in terms of what each evaluation exposes. The held-out waypoint test measures agreement from expert states and detects whether a system uses familiar cues to reconstruct the reference trajectory. It also distinguishes M₀ from M₁ when its examples are deliberately perturbed. The closed-loop suites measure what happens when predictions change subsequent states, under the simulator’s particular dynamics and traffic setup. The reversal between M₀ and M₄ on ordinary logged waypoints and difficult driving scenarios establishes that better agreement with recorded paths can coexist with worse recovery or obstacle handling in this experiment.

### What came after

No later study of ChauffeurNet’s approach is documented here. The paper closes with a research direction instead of a follow-up result. The authors propose using simulation to explore rare and interactive situations more thoroughly, potentially through reinforcement learning. The question they leave open is how much additional robustness comes from training in scenes where other road users respond to the car, beyond what can be learned by perturbing trajectories around recorded demonstrations.

## Cite

Cite as Mayank Bansal, Alex Krizhevsky and Abhijit S. Ogale. 2019. ChauffeurNet: Learning to Drive by Imitating the Best and Synthesizing the Worst. arXiv:1812.03079.

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.15607/rss.2019.xv.031](https://doi.org/10.15607/rss.2019.xv.031) · [arXiv 1812.03079](https://arxiv.org/abs/1812.03079)

```bibtex
@misc{bansal2019chauffeurnet,
  title = {{ChauffeurNet: Learning to Drive by Imitating the Best and Synthesizing the Worst}},
  author = {Mayank Bansal, Alex Krizhevsky and Abhijit S. Ogale},
  year = {2019},
  doi = {10.15607/rss.2019.xv.031},
  eprint = {1812.03079},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.15607/rss.2019.xv.031}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
