Skip to content
Robotics.world

Research

Investigating Behavior Cloning from Few Demonstrations for Autonomous Driving based on Bird's-Eye View in Simulated Cities

Behavior Cloning trains a driving policy by supervised imitation of an expert, but it fails when the expert's action distribution is heavily skewed: most of the data is "drive straight at constant…

The paper’s first page · arXiv:2610.20203
arXiv
2610.20203
Published
2026-10-14
Authors
Eric Aislan Antonelo, Gustavo Claudio Karl Couto, Christian Möller, Pedro Henrique Fernandes

In plain words

Behavior Cloning trains a driving policy by supervised imitation of an expert, but it fails when the expert's action distribution is heavily skewed: most of the data is "drive straight at constant speed," while the rare actions that matter for safety, such as stopping for a red light and pulling away on green, get averaged away.

AI summary

Overview

Research area: Imitation learning for autonomous driving — specifically Behavior Cloning (BC) with a bird's-eye-view (BEV) state representation, evaluated in the CARLA urban driving simulator.

Technical level: Intermediate. Readers should be comfortable with convolutional neural networks, supervised learning losses, and basic probability distributions; the driving and simulation concepts are explained from the ground up.

Scope (one sentence): The paper tests whether re-weighting expert driving samples by the inverse density of their actions lets a BEV-based Behavior Cloning agent learn rare but safety-critical maneuvers — braking at red lights and accelerating from a stop — from only eight training routes.

What This Paper Is About

Behavior Cloning trains a driving policy by supervised imitation of an expert, but it fails when the expert's action distribution is heavily skewed: most of the data is "drive straight at constant speed," while the rare actions that matter for safety, such as stopping for a red light and pulling away on green, get averaged away. The authors address this in simulated cities where the agent must obey traffic lights, using an abstract top-down (BEV) image instead of raw camera pixels as input. Their goal is to make a small expert dataset — eight routes — sufficient for a policy that generalizes to a city it has never seen.

Key Contributions

  1. Density-weighted Behavior Cloning loss. A kernel density estimator (KDE) is fitted to the expert's action distribution, and each training sample is weighted by the inverse of its estimated density, so rare actions (red-light stops, green-light acceleration) contribute more to the loss than frequent cruising actions.
  2. A BEV-based agent for traffic-light-compliant driving. The policy consumes a six-channel 192×192 BEV image — route, drivable area, lane boundaries, plus three historical traffic-light channels at timesteps −16, −9, and −1 — rather than raw camera pixels, decoupling perception from control.
  3. A stochastic Beta-distribution policy. Instead of regressing actions directly or using a Gaussian, the network predicts the α and β shape parameters of a Beta distribution for both acceleration and steering, exploiting the distribution's bounded support on [−1, 1] to avoid clipping.
  4. An empirical comparison against standard BC in a held-out city. Both agents are trained on eight routes of town01 and evaluated on all ten town01 routes plus the unseen town02, with and without action-density weighting.

Main Findings

  • Weighted BC matches the expert in the training city. In town01, Weighted BC reaches a driving score of 100 ± 0, route completion 100 ± 0, infraction penalty 100 ± 0, and 0 ± 0 red-light infractions per km — identical to the expert. Regular BC reaches only 81 ± 20 driving score, 83 ± 18 route completion, and 0.39 ± 0.68 red-light infractions per km.
  • The gap widens sharply in the unseen city. In town02, Weighted BC achieves 98 ± 0.03 driving score, 100 ± 0 route completion, 98 ± 0.03 infraction penalty, and 0 ± 0 red-light infractions per km. Regular BC collapses to 34 ± 18 driving score, 53 ± 18 route completion, 66 ± 20 infraction penalty, and 3.08 ± 2.45 red-light infractions per km.
  • Weighted BC learns faster during training. Evaluated every eight training epochs on all ten town01 routes across four random runs, both agents start at 10 incomplete routes (the minimum, since any infraction ends a route), but Weighted BC reaches zero incomplete routes by the end of training while regular BC does not.
  • The learned weights align with driving semantics. Visualizing the log density along a route shows the highest density for straight driving with constant acceleration and near-zero steering (e.g., between timesteps 470 and 900), and the lowest density around the acceleration burst after a light turns from red to green — the behavior the weighting scheme is designed to amplify.
  • The expert dataset is small. Ten town01 trajectories at 10 Hz produced 21,287 labeled samples (30 GB uncompressed), roughly 36 minutes or 8 km of driving, with the shortest route at 1,480 samples and the average at 2,129 samples. Only eight of these routes were used for training.
  • Crossed-traffic-light counts track the expert. The non-performance metric is 4.7 ± 1.9 for the expert and Weighted BC in town01, 9.0 ± 2.16 for the expert and Weighted BC in town02, versus 3.78 ± 1.03 (BC, town01) and 2.79 ± 2.27 (BC, town02) — consistent with the unweighted agent failing to complete routes.

Methodology in Plain English

Data collection. The authors drove a deterministic expert through ten predefined routes in the town01 map from the CARLA Leaderboard platform. The expert follows a dense point trajectory with a classic PID controller and is programmed to brake at red lights and accelerate on green. The learning agent never sees this dense trajectory; it only receives the sparse route (waypoints every 50 meters, or at upcoming maneuvers). One illustrated route is 740 meters long with 20 sparse points and 762 dense points.

Input representation. Rather than feeding camera images (three 256×144 RGB cameras in the illustrative figure) to the network, a CARLA module with map access renders a top-down BEV centered on the vehicle at a fixed meters-per-pixel resolution. Three channels encode route, drivable area, and lane boundaries; three more encode where red lights were at the three past timesteps, giving the agent a short memory of light state changes.

Policy and loss. The CNN compresses the BEV into a 256-dimensional embedding; a separate MLP embeds scalar state variables (current speed and the previous acceleration and steering commands) into another 256-dimensional vector. The concatenation passes through a final MLP with two heads producing α and β for acceleration and steering. Training minimizes the negative log-likelihood of the expert action under the predicted Beta distribution.

The weighting trick. A Gaussian-kernel KDE is fitted to the expert actions, and each sample's loss is multiplied by the inverse of its estimated density. Frequent actions get down-weighted; rare ones get up-weighted.

Evaluation protocol. Two agents differ only in the loss: standard BC and Weighted BC. Both train offline on eight routes and are periodically evaluated on all ten town01 routes, with four random runs per agent summarized as mean and standard deviation. Final performance is compared on town01 and on the never-seen town02 using CARLA Leaderboard metrics: driving score (route completion × infraction penalty), route completion, infraction penalty, and red-light infractions per km.

Why This Matters

Impact on research. The work isolates a cheap, drop-in fix for a well-known pathology of imitation learning — covariate shift amplified by imbalanced action distributions — and shows it matters most exactly where BC usually breaks: distribution shift to a new environment. It also supports the argument that abstract mid-level representations like BEV make small-data imitation more tractable than raw pixels.

Real-world applications:

  • Low-data fleet imitation: bootstrapping driving policies from a handful of human demonstration routes rather than millions of frames.
  • Safety-critical rare-event learning: emphasizing stop/go decisions at signals, stop signs, and other infrequent-but-essential maneuvers.
  • Map-based BEV autonomy stacks: integrating with production HD-map or online-map pipelines that already produce top-down semantic layers.
  • Simulation-to-reality transfer testing: using held-out simulated cities as a proxy for generalization before deploying to new geographic areas.

Industry relevance. Traffic-light compliance is a hard requirement for any urban autonomy program, and the paper quantifies how badly plain BC degrades on it (from 100 to 34 driving score across cities in this setup). The method requires no new sensors, no reward design, and no environment interaction — only a density estimate over existing expert actions — which makes it attractive as a preprocessing step on top of existing data-collection pipelines.

Future Directions

  1. Scale to more complex cities. The authors propose extending evaluation to cities containing pedestrians and other vehicles, which the current town01/town02 setup does not include.
  2. Move beyond plain BC to multimodal methods. The conclusion points to implicit behavioral cloning as a way to handle multimodal action distributions that a single Beta-distribution head may smooth over.
  3. Test the weighting on larger and more varied datasets. The current study rests on eight training routes and 21,287 samples; how inverse-density weighting behaves as the expert set grows, and whether the gain shrinks or persists, is left open.
  4. Validate outside simulation. All results come from CARLA; transfer of the BEV-plus-KDE-weighting recipe to real vehicle data is not addressed.

Target Audience

Graduate students and researchers in imitation learning and autonomous driving who want a concrete, reproducible study of how training-sample weighting affects generalization; robotics engineers building map-based or BEV-based driving stacks in simulation; and practitioners interested in getting usable policies out of small, imbalanced expert datasets. Readers new to the field will follow the paper, but will get the most from it with some prior exposure to BC, CNNs, and CARLA-style evaluation metrics.

Authors’ abstract

This paper investigates the use of Behavior Cloning (BC) for autonomous driving from a bird's-eye view (BEV) perspective in simulated urban environments. BC uses supervised learning to mimic expert driving behaviors. Previous works have applied BC in the CARLA simulator but did not fully address the challenges of traffic light compliance. Our approach enhances BC by integrating a kernel density estimator to adjust training sample weights based on action density, thereby…

The full abstract on arXiv
Read the original paper

Related papers