Introduction
Optimizing modern urban transportation systems requires microscopic simulators capable of modeling the movement of every individual vehicle. However, existing tools like SUMO and CityFlow struggle to scale to city-level scenarios involving millions of vehicles due to CPU-bound single-threaded or multi-threaded architectures. This computational bottleneck makes large-scale Reinforcement Learning (RL) and complex urban optimization impractical, as these methods require millions of simulation interactions to converge.
To bridge this gap, researchers have introduced MOSS, the first open-source, GPU-accelerated microscopic traffic simulator. MOSS leverages a novel parallel architecture to achieve nearly a 90x speedup over state-of-the-art baselines, enabling real-time simulation of massive urban environments with millions of vehicles.
System Architecture and Methodology
The primary innovation of MOSS lies in its SIMD-friendly (Single Instruction, Multiple Data) design, which allows the entire simulation engine to run on NVIDIA GPUs using CUDA. This approach overcomes traditional parallelization challenges through two key mechanisms:
Two-Phase Parallel Processing
To prevent read/write conflicts—where one vehicle updates its position while another is sensing it—MOSS employs a two-phase process. In the Prepare Phase, the system creates a read-only snapshot of all vehicle data. In the subsequent Update Phase, vehicles use this static snapshot to calculate their next moves, writing the results to a private runtime partition. This strict separation eliminates the need for performance-killing mutex locks.
Efficient Spatial Indexing
Vehicle sensing (identifying neighbors for car-following or lane-changing) is optimized via a linked-list-based spatial index. By using specialized "side pointers," a vehicle can locate its front, rear, and adjacent neighbors with a single pointer operation. This design minimizes "thread divergence," a common cause of GPU performance degradation.
Performance and Realism
MOSS was validated using real-world GPS trajectories from over 4 million vehicles in Shenzhen, China, and road networks from Beijing, Shanghai, Paris, and New York.
- Scalability: In a scenario with approximately 2.5 million vehicles, MOSS achieved an iteration rate of 84.09 Hz—88.92 times faster than CityFlow.
- Accuracy: MOSS demonstrated superior realism, achieving a Root Mean Square Error (RMSE) of 8.5 km/h for average road speeds, significantly outperforming CityFlow's 16 km/h error.
Versatile Urban Policy Scenarios
Beyond speed, MOSS is designed as a comprehensive sandbox for urban planning. It provides a Python API that extends control beyond simple traffic signals to include dynamic lane assignment, tidal lanes, congestion pricing, and long-term road planning.
The researchers successfully benchmarked various optimization algorithms, including PPO (Reinforcement Learning) and black-box optimization, across these five distinct scenarios in four global cities.
Limitations and Future Outlook
While MOSS represents a significant leap forward, it currently has limitations. To maintain high throughput, it simplifies vehicle priority within junctions, relying on conflict-free signal phases to prevent deadlocks. Additionally, the current version focuses solely on vehicles; future iterations aim to include pedestrians and cyclists for true multi-modal simulation. To increase accessibility, the team has also launched a "no-code" web platform for non-programmers in city government.
Summary updated