TL;DR
We all hate waiting 30 minutes for a bus only to have three show up nose-to-tail—a runaway feedback loop known as "bus bunching." This paper explores whether Large Language Model (LLM) agents can manage real-world transit fleets over an entire day without letting these small delays spiral into system-wide chaos. By introducing LongBusBench (a realistic transit simulation testbed) and MEMBus (an agent that knows how to remember, temporarily shelve, and reactivate operational lessons), the authors show how LLMs can move beyond sandboxed digital tasks to control messy, non-stationary physical systems.
What Problem Does This Paper Address?
Today’s LLM agents are getting pretty good at browsing the web or writing code—digital tasks where mistakes are localized or you can easily hit "reset." Public transit has no reset button.
If a bus gets slightly delayed, more passengers pile up at the next stop. Boarding them takes longer, delaying the bus further, while the bus behind it encounters empty stops and catches up. Soon, they are bunched together. Transit operators fight this by holding buses at stops to even out spacing (headways). However, holding a bus right now changes passenger queues and vehicle spacing hours down the line. Furthermore, traffic and demand shift constantly—what works at 10:00 AM might be disastrous during rush hour, only to become useful again at 8:00 PM. Existing LLM benchmarks don't test how agents handle delayed physical consequences or how they manage "stale" memories generated by their own past interventions.
Methods
To tackle long-horizon control, the authors propose MEMBus, a centralized, memory-augmented LLM fleet controller. Instead of dumping raw logs into a prompt, MEMBus structures operational experience into two layers:
- Episodic records: Raw logs detailing the context before an intervention, the action taken, and the resulting service metrics (wait times, headway regularity, and fraction of passengers served).
- Procedural cards: Deterministically compiled summaries (requiring no extra LLM calls) that group episodic records by operating conditions and evaluate how specific strategies performed against a baseline.
Rather than micromanaging every bus second-by-second, MEMBus operates on a two-tier cadence. Every 15 minutes (900 seconds), the LLM reviews the live fleet state alongside its procedural cards and selects a high-level route program (e.g., no holding, or one of six headway-balancing formulas). Then, every 5 minutes (300 seconds), a deterministic executor translates that program into concrete KEEP, SET, or CANCEL holding commands (capped at 90 seconds) for individual buses.
Crucially, MEMBus features active memory lifecycle management. As new paired outcome comparisons arrive, cards gain or lose support. If a shift in traffic makes an old strategy fail, its support drops to zero and the card is suspended from active retrieval—preventing outdated advice from poisoning decisions—while staying archived so it can be reactivated if those traffic conditions return later.
Datasets
The authors introduce LongBusBench, a new benchmark built on Eclipse SUMO traffic simulations coupled with a passenger queue layer. Unlike digital or conversational memory benchmarks, it grounds agent evaluation in real physical network assets:
- 95 bus routes across four major Chinese cities (Beijing, Shanghai, Shenzhen, and Chengdu), organized into three suites (
Core10,Scale80, andHard5). - Real-world geometries and demand: Stop sequences and road bindings are derived from the CPTOND dataset and OpenStreetMap, while realistic passenger arrival weights and destination distributions are extracted from TransitLM route-planning records.
Key Insights and Ideas
- Compounding Horizons: Good transit control pays compound interest. Because early holding decisions prevent instabilities from snowballing, the performance gap between MEMBus and standard LLM baselines starts small at hour 1 and yawns wide by hour 8.
- Suspension Beats Deletion: When operating regimes shift (say, from off-peak to rush hour and back), naive memory agents cling to stale rules for too long and then overwrite them permanently. Suspending failing rules allows the agent to adapt quickly to the new regime and immediately recognize and reuse the old rule when the original conditions return.
- Precision Over Volume: Doing nothing ("zero additional holding") leads to terrible bus bunching, as do memory-free LLMs. MEMBus succeeds not by holding buses less, but by selectively applying holds where they stabilize the fleet.
Key Results
Evaluated over 8-hour horizons against 18 baselines (including ReAct, Reflexion, RAG, ExpeL, Deep RL like DQN/CQL, and classical transit theory rules):
- Dramatically lower wait times: By hour 8, MEMBus reduces mean passenger waiting time to 425 seconds, compared to 1,068s for DiLu (a 60% reduction), 1,072s for ReAct, and 901s for standard RAG.
- Eliminating bus bunching: MEMBus logs just 18.0 bunching events over 8 hours, whereas standard LLM agents suffer over 600, and RAG/ExpeL suffer 444.4 and 294.7, respectively.
- Competitive with domain-specific controllers: MEMBus beats offline RL baselines (DQN at 473s, CQL at 461s) and matches the best classical, development-tuned headway-feedback rule (424s).
- Adapting to shifting regimes: In an 8-hour
A -> B -> Ashifting-regime test across 25 unscreened routes, MEMBus abandons stale programs faster (2.47h vs. 3.75h for an ExpeL-style agent) and successfully returns to the original optimal program 98% of the time when regime A recurs (versus just 12% for ExpeL), cutting recovery-phase wait times by 5.88%. Even when real-time LLM inference delays (~50s) are factored in with the simulation clock running, the performance rankings hold steady.
Limitations and Future Work
The authors note that all evaluations currently take place in closed-loop SUMO simulations using route-planning data as a proxy for passenger demand. Deploying a system like MEMBus on actual city streets will require calibrating the simulation and memory priors against real transit agency ridership data and noisy Automated Vehicle Location (AVL) telemetry.
Summary updated