TL;DR
Enactor is a novel, actor-centric generative model designed for the long-horizon closed-loop microsimulation of signalized traffic intersections. By combining a geometry-aligned polar coordinate representation, a decoupled spatial-temporal transformer, and a closed-loop training curriculum, Enactor achieves unprecedented stability and slashes red-light violations by over an order of magnitude compared to existing data-driven baselines.
What Problem Does This Paper Address?
Simulating urban traffic intersections realistically is notoriously difficult. Traditional traffic microsimulators (like SUMO) rely on hand-crafted, rule-based car-following models. While these excel at replicating macroscopic traffic flow, they fail to capture the messy, heterogeneous, and sometimes aggressive interactions of real-world drivers.
On the flip side, modern data-driven trajectory predictors capture rich multi-agent interactions but are typically designed for short horizons (e.g., 5–10 seconds) in an open-loop setting. When you run them in a "closed loop"—where the model's own past predictions are fed back as inputs for the next step—errors compound rapidly. The simulation quickly drifts into unrealistic states, causing vehicles to drive off-road or ignore traffic rules. Enactor bridges this gap, providing a data-driven simulator capable of stable, rule-compliant rollouts over thousands of seconds.
Methods
Enactor introduces several key design choices to tackle closed-loop instability and intersection constraints:
- Polar Coordinate State Representation: Instead of standard Cartesian $(x,y)$ coordinates, Enactor represents vehicle states and map polylines using polar coordinates centered on the intersection. This naturally aligns the model with the curved paths typical of turning vehicles.
- Decoupled Spatial-Temporal Transformer: The architecture splits attention into two distinct blocks. A spatial block processes actor-to-actor and actor-to-map interactions at each individual timestep. A temporal block then aggregates these spatial embeddings over a historical window to output a mixture-of-Gaussians distribution over the vehicle's next-step speed and heading change.
- Closed-Loop Training Curriculum: To combat covariate shift (the drift caused by predicting recursively on its own outputs), the authors use a curriculum schedule during training. The model starts by learning from ground-truth history, which is progressively replaced by its own past predictions as training advances.
- Leader Rear-Bumper Feature: Each vehicle is explicitly given the polar coordinates of the rear bumper of its leading vehicle. This provides a precise geometric cue for where deceleration should end.
Datasets
The model was evaluated in two distinct regimes:
- Simulated Data (SUMO): The authors generated 6 hours of traffic data across two intersection geometries modeled after West University Avenue in Gainesville, Florida. One geometry represents the full intersection, while the second is a modified, lane-compressed version.
- Real-World Field Data: One hour of naturalistic video was collected from an overhead fish-eye camera at a real signalized intersection. Trajectories were extracted using a custom YOLO-based detection-and-tracking pipeline.
Key Insights and Ideas
- Deconstructing Realism: The authors argue that stable long-horizon rollouts, aggregate flow realism, and safety compliance are three separate objectives. Doing well on one does not automatically guarantee success in the others.
- The Power of a Simple Geometric Cue: The ablation study revealed that adding the leader's rear-bumper position was the single most impactful change for safety. Without it, the model understood how to decelerate when approaching a vehicle or red light, but lacked the spatial awareness of where to stop, leading to massive overshoots.
- The Smoothing Trade-Off: When dealing with noisy real-world camera data, applying spline smoothing to training trajectories acts as a low-pass filter. This helps short-horizon predictions by removing camera jitter but introduces a slight bias that can compound and degrade long-horizon accuracy.
Key Results
- Simulation-in-the-Loop (4,000 seconds): Unlike typical predictors evaluated on a fixed set of agents, Enactor successfully controlled every vehicle against a continuously refreshing cohort over 40,000 timesteps.
- Distribution Realism: Enactor recovered SUMO's aggregate travel-time and speed distributions with a KL divergence an order of magnitude lower than a recent transformer baseline (IntTrajSim).
- Drastic Violation Reductions: Enactor reduced red-light violations from 169 (baseline) down to just 5 at the primary test site.
- Real-World Performance: In single-pass multi-horizon forecasting (2s, 5s, and 10s), Enactor consistently outperformed constant-velocity baselines, achieving within-threshold success rates of up to 93% at a 10-second horizon.
Limitations and Future Work
- Close-Range Realism: Even with the rear-bumper feature, Enactor yielded a higher number of Time-to-Collision (TTC) safety events than the ground-truth SUMO data, indicating that tight, close-quarters interactions are not yet fully mastered.
- Queueing Sluggishness: In lane-compressed geometries, the model exhibited a tendency to accelerate too slowly when a traffic light turned green, pointing to a need for explicit queue-state or lane-occupancy features.
- Pedestrians as Context Only: Currently, pedestrians are only included as passive environmental context to influence vehicles. Future work aims to elevate pedestrians to first-class targets with actively predicted trajectories.
Summary updated