MOSS: A Large-scale Open Microscopic Traffic Simulation System

Jun Zhang, Wenxuan Ao, Junbo Yan, Can Rong, Depeng Jin, Wei Wu, Yong LiarXiv 2024 · DOI

Abstract

MOSS (MObility Simulation System) is a GPU-accelerated microscopic traffic simulator designed for city-scale modeling. It achieves a 100x speedup over state-of-the-art systems by leveraging massive parallel computing and a generative AI model that synthesizes travel demand from satellite imagery. This system enables high-fidelity simulations of millions of vehicles, bridging the gap between realism and computational scale.

Introduction

Traffic simulation is a cornerstone of Intelligent Transportation Systems (ITS), but researchers have long faced a "realism vs. scale" dilemma. Microscopic simulations, which model the behavior of every individual car, are highly realistic but computationally expensive. Simulating a city with millions of vehicles on a standard CPU can take longer than real-time, hindering iterative tasks like training Reinforcement Learning (RL) agents. Furthermore, realistic simulations require Origin-Destination (OD) matrices, which are often unavailable due to the high cost of surveys or the privacy of mobile network data. MOSS addresses these challenges by offloading heavy computation to the GPU and using Generative AI to synthesize realistic travel patterns from publicly available satellite imagery.

Methodology

The MOSS architecture integrates a high-performance simulation engine with a generative demand pipeline.

The MOSS framework and pipeline, integrating Map Builder, Demand Generator, and GPU-accelerated Simulator.

GPU-Accelerated Simulator

Unlike traditional simulators relying on CPU multi-threading, MOSS utilizes GPGPU (General-Purpose computing on Graphics Processing Units). To manage complex traffic dependencies, MOSS employs a two-stage simulation process:

  1. Prepare Phase: Constructs a spatial index (linked list) of all vehicles for rapid neighbor searching.
  2. Update Phase: Calculates motion (car-following and lane-changing) using IDM and MOBIL models in parallel across thousands of GPU cores.
Detailed view of the MOSS Simulator component, highlighting the two-stage simulation and parallel data containers.

Generative OD Demand and Toolchain

A diffusion-based neural network generates OD matrices by extracting urban features from satellite imagery. This allows for realistic demand modeling without private data. The MOSS toolchain also includes a Map Builder for converting OpenStreetMap (OSM) data and a Python API (via pybind11) for seamless integration with machine learning workflows.

Datasets

The system was validated using LODES US Census data for the generative model, satellite imagery from Esri and Google Earth, and 4.22 million vehicle GPS trajectories from Shenzhen to confirm simulator realism.

Key Insights

  • Satellite Imagery as a Proxy: Urban morphology is a strong predictor of travel demand, allowing for global applicability without private records.
  • Read-Write Conflict Resolution: Splitting simulation into indexing and update stages avoids race conditions in GPU-based physics.
  • Democratization: The open-source toolchain and "Zero Code Wizard" lower the barrier for large-scale traffic research.

Results

MOSS demonstrates significant performance and realism gains:

  • Massive Speedup: In scenarios with 2.4 million vehicles, MOSS is 100.97x faster than CityFlow and 10.49x faster than MATSim.
  • Improved Realism: MOSS reduced the Root Mean Square Error (RMSE) by 46.8% compared to CityFlow when validated against Shenzhen traffic data.
  • Demand Accuracy: The generative OD model improved the Common Part of Commuting (CPC) metric by 20.50% over baselines.

Conclusion and Future Work

MOSS represents a significant advancement in city-scale traffic simulation. Future work will focus on multi-modal traffic (pedestrians, bicycles), complex management strategies like dynamic lane assignments, and further refining the zero-code interface to enhance usability for researchers.

Summary updated

BibTeX
@misc{zhang2024moss,
  author = {Jun Zhang and Wenxuan Ao and Junbo Yan and Can Rong and Depeng Jin and Wei Wu and Yong Li},
  title = {{MOSS: A Large-scale Open Microscopic Traffic Simulation System}},
  year = {2024},
  eprint = {2405.12520},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2405.12520},
}
Figure