TL;DR
IntTrajSim introduces a data-driven traffic simulation framework that replaces handcrafted driving rules with a multi-headed self-attention Conditional Variational Auto-Encoder (CVAE). By evaluating trajectory predictions using a live "simulation-in-the-loop" pipeline, it bridges the gap between deep learning trajectory models and practical traffic engineering metrics like collisions and red-light violations.
What Problem Does This Paper Address?
Traditional traffic simulators like SUMO and VISSIM rely on handcrafted, rule-based logic (such as car-following models) to dictate vehicle behavior. While useful, these models fail to capture the complex, latent interactions between human drivers, such as subtle yielding behaviors, distraction, or nuanced reactions to changing traffic signals.
On the flip side, modern deep learning trajectory prediction models excel at learning from real-world data, but they are typically evaluated offline using standard geometric metrics like Average Displacement Error (ADE). These metrics don't tell us if a model will cause a multi-car pileup or routinely run red lights when deployed in a live, closed-loop simulation. This paper addresses this disconnect by proposing a data-driven simulator evaluated on traffic-engineering metrics within a live simulation environment.
Methods
The authors propose IntTrajSim, a framework that couples a deep generative model with a microscopic traffic simulator in a closed loop.
The Architecture
At the core of IntTrajSim is a CVAE paired with a Gaussian Mixture Model (GMM) decoder to output a probability distribution over future trajectories. The model processes the scene using four distinct encoders:
- Actor Vehicle History Encoder: An LSTM that captures the vehicle's own past states (coordinates, velocity, acceleration).
- Neighbor Vehicle History Encoder: An LSTM tracking the relative states of the nearest surrounding vehicles.
- Lane Center Line Encoder: A VectorNet-style polyline representation processed via LSTM to encode map geometry.
- Traffic Signal Encoder: A Feed-Forward Network (MLP) that ingests stop-line coordinates and one-hot encoded traffic light states.
Dynamic Attention Fusion
Instead of relying on rigid equations to determine what a vehicle should focus on, the framework uses a Multi-Headed Self-Attention mechanism. This allows the model to dynamically weight the importance of static infrastructure (lanes, signals) and dynamic actors (neighboring cars) based on the current context.
Simulation-in-the-Loop Inference
During inference, the model runs in a closed loop with SUMO. SUMO controls vehicle entry and signal timings, while the neural network predicts the coordinates for the next timestep. These predictions are fed back into the model recursively to unroll trajectories simultaneously for all vehicles in the scene.
Datasets
The model was trained and evaluated on synthetic data generated from a digital twin of a real-world intersection: West Univ Ave @ NW 17th Street in Gainesville, Florida, built within the SUMO simulator.
- Dataset Size: 6 hours of simulated traffic data sampled at 10 Hz, totaling 1,241,600 vehicle exemplars.
- Constraints: To minimize noise during training, vehicles were restricted to observing the two nearest leading vehicles within their attention radius and the next two polylines on their route.
Key Insights and Ideas
- Traffic Metrics > Geometric Metrics: Evaluating models on domain-specific metrics (like Time-to-Collision events or mid-intersection stoppages) provides a much truer measure of a simulator's viability than standard coordinate-reconstruction errors.
- Vectorized Maps Constrain Reality: Representing lanes as polylines rather than rasterized images effectively constrains the probability distribution of predicted trajectories to the drivable region, drastically reducing unrealistic behaviors like driving off the road.
- Attention Mimics Human Prioritization: The multi-headed attention mechanism successfully learns to prioritize leading vehicles at the appropriate distance, allowing the model to naturally replicate safe deceleration behaviors without explicit hard-coded safety buffers.
Key Results
The authors compared their attention-based model against an earlier baseline architecture (which used standard position encoders without self-attention).
When evaluated over 40,000 timesteps with 1,026 vehicles entering the scene, the new model demonstrated substantial improvements:
- Near Misses: A 37% reduction in Time-to-Collision (TTC) events (dropping from 604 to 378).
- Traffic Flow Smoothness: A 19.2% decrease in Mid-Intersection Stoppages and a 9.1% decrease in Unsafe Deceleration events.
- Anomalous Behavior: A 5.6% decrease in instances where vehicles erroneously reversed in their lanes.
While the model significantly outperformed the baseline, it still fell short of the flawless ground-truth metrics generated by SUMO's rule-based engine, particularly regarding traffic light compliance.
Limitations and Future Work
The primary limitation identified was that the model struggled to reliably stop at red lights for westbound traffic, occasionally failing to capture this specific signal modality. The authors hypothesize that while the attention encoder creates a strong representation, the current decoder struggles to map the latent mixture to the correct stopping behavior.
Future Directions: * Replacing the current decoder with a Transformer-based decoder utilizing cross-attention to better capture the interplay between future states and static/dynamic actors. * Exploring temporal attention mechanisms as an alternative to LSTMs to better capture long-term historical dependencies.
Summary updated