A Generative Model for Closed-Loop Microsimulation of Signalized Intersections
Yash Ranjan, Rahul Sengupta, Anand Rangarajan, and Sanjay Ranka · 2026
Read A Generative Model for Closed-Loop Microsimulation of Signalized Intersections by Yash Ranjan, Rahul Sengupta, Anand Rangarajan, and Sanjay Ranka (2026) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2606-23588.txt.
Introduction
Ranjan, Sengupta, Rangarajan, and Ranka simulate traffic at signalized intersections with a learned generative model, in a 2026 paper on transportation simulation. Standard microsimulators rely on hand-built driver models that match average flow but miss real drivers' varied behavior. Learned trajectory predictors capture richer interactions. Yet they look only a short way ahead. They also become unstable in a closed loop, feeding their own predictions back as inputs.
Their model, Enactor, focuses on vehicles and encodes actors and lane shapes in polar coordinates around the intersection center. Each vehicle also sees the rear bumper of the vehicle ahead, which helps it stop in the right place. A transformer predicts each actor's next motion. In four thousand seconds of simulation at two intersections, Enactor matches reference speed and travel-time patterns far more closely than a recent baseline. It also cuts red-light violations sharply.
Catalog record
| CREATOR | Yash Ranjan, Rahul Sengupta, Anand Rangarajan, and Sanjay Ranka |
|---|---|
| YEAR | 2026 |
| COLLECTION | PAPERS |
| FORMAT | TXT |
| FILE SIZE | 55 KB |
| LICENSE | http://creativecommons.org/licenses/by/4.0/ |
| RIGHTS | CC BY |
| SOURCE | arXiv |
Source: https://arxiv.org/abs/2606.23588
Browse the full library · About the Tower of Babel
Full text
The opening of the work, from the library's hosted text:
A Generative Model for Closed-Loop Microsimulation of Signalized Intersections Yash Ranjan, Rahul Sengupta, Anand Rangarajan, and Sanjay Ranka Abstract Traffic microsimulators rely on hand-crafted behavior models that reproduce aggregate flow but miss the heterogeneous interactions between vehicles at signalized intersections. Learned trajectory predictors capture richer interactions but are short-horizon and tend to be unstable when run in closed loop. We present Enactor , an actor-centric generative model for closed-loop intersection microsimulation. The model focuses on vehicles; pedestrians are included as context that can influence vehicle decisions but are not predicted directly. Dynamic actors and lane polylines are encoded in polar coordinates referenced to the intersection center, and each actor sees the rear-bumper position of its leader so that deceleration can be terminated at the right place. A transformer with separate spatial and temporal attention blocks predicts a distribution over each actor’s next-step motion ( s s , α \alpha ); positions are propagated by a deterministic kinematic update. Training uses a closed-loop curriculum so the model is exposed to its own predictions before it has to rely on them at inference. We evaluate Enactor in two regimes. In a 4,000 4{,}000 -second simulation-in-the-loop test at two intersection geometries, Enactor controls every dynamic vehicle against a continuously refreshing actor set rather than the fixed cohort that learned trajectory predictors are usually evaluated against. It recovers the SUMO data generator’s speed and travel-time distributions with KL divergence over an order of magnitude lower than a recent transformer baseline on travel time, and substantially lower on speed (roughly 5 × 5\times lower at Site 1), and reduces red-light violations relative to the same baseline by more than an order of magnitude. An ablation isolates the leader rear-bumper feature as the change with the largest effect on intersection-aware safety metrics; close-range interaction realism (TTC) remains the main open problem. We also evaluate on real-world field data. We apply the same architecture to naturalistic vehicle trajectories from a fish-eye camera at a signalized intersection, with a multi-horizon predictive evaluation that fits the single-pass nature of the recording. Enactor outperforms a constant-velocity baseline at every horizon evaluated. I Introduction Traffic microsimulators such as SUMO and MATSim are widely used to evaluate road-network performance under what-if conditions: intersection design, signal timing, demand management. The behavior models that drive their actors are typically hand-crafted and calibrated at the population level. Car-following models like the Intelligent Driver Model and the Krauss model assume smooth, rational drivers; pedestrian dynamics rely on force-based formulations such as the Social Force Model. These models work well for aggregate flow but reproduce poorly the heterogeneous, sometimes aggressive or distracted behavior that occurs at intersections, and the data needed to calibrate actor-specific parameters is rarely available [ 14 ] . Data-driven trajectory predictors learn multi-agent interactions from observed trajectories [ 20 , 21 ] , and generative variants are now used to simulate the motion of surrounding agents in autonomous-driving contexts [ 32 ] . Two problems remain. When such models are run in closed loop over long horizons, prediction errors compound and the rollout drifts away from the training distribution. And capturing physically plausible, socially consistent behavior even at short horizons usually requires large amounts of high-quality data, because the model has to learn physical constraints and interaction dynamics implicitly from observation alone. Intersections are a tough case for both kinds of approach. They are conflict zones where vehicle and pedestrian trajectories cross, where a substantial fraction of crashes occur, and where stochastic driver decisions interact with strong structural constraints from geometry, lane topology, and signal timing. We exploit that structure. Enactor is an actor-centric generative model that combines a polar-coordinate state representation aligned with intersection geometry, a transformer-based interaction module, and a closed-loop training schedule that exposes the model to its own predictions during training. Each actor also sees the rear-bumper position of its leader on the same lane, when one exists; this geometric cue tells the model where deceleration should end, and our ablations show it is the single change with the largest effect on intersection-aware safety metrics. We argue that stable long-horizon closed-loop rollout, aggregate-flow realism, and intersection-aware safety realism are three separate objectives, addressed by different design choices, and that doing well on one does not automatically translate into doing well on the others. We evaluate Enactor in two regimes. On data generated by SUMO at two intersection geometries, we run a closed-loop simulation-in-the-loop protocol in which Enactor controls every dynamic actor for 40{,}000 timesteps ( 4{,}000 s). On naturalistic data from a fish-eye camera at a signalized intersection, processed through a YOLO-based detection-and-tracking pipeline, we evaluate single-pass per-actor prediction at multi-second horizons. The two regimes answer different questions because they have to: real-world recordings capture one realization of the world and offer no replayable ground-truth alternative future, so closed-loop rollout against ground truth is not available there. Scope: vehicles as targets, pedestrians as context Pedestrians are present at signalized intersections and can influence vehicle behavior: a vehicle yields, decelerates, or accelerates differently depending on whether a pedestrian is in or near the conflict zone. We include pedestrians in the model as neighbors — their state enters each vehicle’s spatial-attention context and indirectly influences its predicted trajectory. We do not study pedestrian behavior itself: pedestrian trajectories are not evaluation targets, and we make no claim about the realism of pedestrian motion the model might generate. Treating pedestrians as first-class targets is left for future work. A central feature of the simulator regime is that the cohort of dynamic actors changes over time: actors enter the intersection on one approach, traverse it, leave on another, while new actors arrive continuously at the perimeter. Most learned trajectory predictors evaluate against a fixed cohort of actors at fixed prompt times, which avoids the question of how the model behaves when the scene graph it has to reason over is itself non-stationary. Sustaining a coherent closed-loop rollout under a continuously refreshing actor set, without diverging from the road network or producing implausible trajectories over thousands of timesteps, is one of the main technical problems this paper addresses. Both Enactor and the IntTrajSim baseline are evaluated under the same 4{,}000 -second SUMO-in-the-loop protocol against this non-stationary actor cohort, and the resulting metrics measure relative rule compliance and aggregate-flow realism inside that protocol. Naturalistic trajectories bring a separate problem the simulator does not have: bounding-box jitter from object detection, especially perpendicular to the direction of motion, produces artificially large frame-to-frame velocities and accelerations, and we evaluate both smoothed and raw variants to see how much this upstream noise affects what the model learns. The contributions of this paper are: • a polar-coordinate, geometry-aware state representation for intersection actors and map elements; • a transformer-based generative model trained in closed loop and evaluated as a full microsimulator in SUMO across two intersection geometries, sustaining stable rollouts over 4{,}000 seconds against a continuously refreshing actor cohort rather than a fixed-cohort evaluation; • an ablation isolating the contribution of including the leader’s rear-bumper position as an input feature; • a direct comparison against IntTrajSim under the same closed-loop protocol, reducing red-light violations by more than an order of magnitude ( 5 vs. 169 or 175 , depending on the