Abstract
Microscopic traffic simulation—modeling individual vehicle behaviors—is critical for urban planning and safety. However, standard imitation learning (IL) methods suffer from covariate shift, where compounding errors lead to unrealistic "drifting" over long horizons. We introduce LASIL (Learner-Aware Supervised Imitation Learning), a framework that enables stable simulations exceeding 10 minutes—a 40x improvement over previous benchmarks. By employing a context-conditioned Variational Autoencoder (VAE) to augment expert data with learner-like states, LASIL bridges the distribution gap, ensuring robust performance without the instability of Reinforcement Learning or GANs.
Introduction
The primary challenge in microscopic traffic simulation is covariate shift. In Behavior Cloning (BC), a model learns to mimic expert trajectories. However, minor execution errors push the agent into states outside the expert training distribution. Without guidance for these "off-track" states, errors compound, eventually causing vehicles to drive off-road or stall. While Reinforcement Learning (RL) and Generative Adversarial Imitation Learning (GAIL) address this by exploring the environment, they are often computationally prohibitive and unstable in multi-agent traffic scenarios.
Methodology: Learner-Aware Augmentation
LASIL addresses covariate shift through a novel data augmentation strategy that makes the training process "aware" of the learner's potential mistakes.
Context-Conditioned VAE
The vehicle state is decomposed into dynamic past trajectories and static context (e.g., vehicle type, waypoints). A VAE is trained to model the trajectory distributions of both the expert and the learner. By passing expert states through this VAE, the system generates "augmented" states that resemble the learner's distribution while remaining anchored to the expert's ground-truth future.
EGAT Backbone and Post-Processing
Both the VAE and Policy Network utilize an Edge-enhanced Graph Attention Network (EGAT) to model vehicle interactions as a dynamic graph. To ensure physical realism, LASIL incorporates an on-road projection layer and a Linear-Quadratic Regulator (LQR) to smooth trajectories and penalize erratic accelerations.
Experimental Results
The model was evaluated on the pNEUMA dataset, which contains over 500,000 trajectories from Athens, Greece. This large-scale dataset allows for the assessment of both microscopic accuracy and macroscopic traffic flow.
Microscopic and Macroscopic Performance
LASIL significantly outperforms traditional baselines, including heuristic-based SUMO and standard BC. As shown in the table below, LASIL achieves a Position RMSE of 19.21m, nearly halving the error of standard BC.
Beyond microscopic metrics, LASIL demonstrates exceptional long-term stability. In 800-second simulations, LASIL maintained a near-zero off-road rate (0.34%), whereas BC saw over 42% of vehicles drift off the road in macroscopic evaluations. This stability allows for the first IL-based simulations to reach the 10-minute mark reliably.
Conclusion
LASIL demonstrates that intelligent data augmentation within a supervised learning framework can solve the covariate shift problem in complex multi-agent environments. By anchoring learner-aware states to static context and applying physical smoothing, LASIL provides a scalable and stable solution for long-term microscopic traffic simulation. Future work will focus on explicit collision constraints and modeling diverse driver personalities.
Summary updated