NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

CoMAL: Collaborative Multi-Agent Large Language Models for Mixed-Autonomy Traffic

Huaiyuan Yao, Longchao Da, Vishnu Nandam, Justin Turnau, Zhiwei Liu, Linsey Pang, Hua Wei

TL;DR

CoMAL (Collaborative Multi-Agent LLMs) is a new framework that uses Large Language Models to coordinate autonomous vehicles in "mixed-autonomy" traffic—where self-driving cars share the road with humans. By allowing AI agents to "brainstorm" strategies and assign roles via a shared message pool, CoMAL significantly improves traffic flow and eliminates stop-and-go waves, outperforming traditional reinforcement learning in complex coordination tasks.

What Problem Does This Paper Address?

Traffic congestion isn't just annoying; it’s often caused by "stop-and-go" shockwaves—ripples of braking that travel backward through a line of cars. In a future of mixed-autonomy traffic, a few Connected Autonomous Vehicles (CAVs) could act as "traffic pacers" to smooth out these waves.

However, controlling these CAVs is difficult. Traditional Reinforcement Learning (RL) requires massive amounts of data, struggles to generalize to new road layouts, and acts as a "black box" that is hard for engineers to interpret. Humans, by contrast, use common sense and communication to cooperate. The authors ask: Can we give CAVs these human-like reasoning and collaboration skills using LLMs?

Methods

The authors introduce the CoMAL framework, which moves away from "end-to-end" neural driving and toward a modular, reasoning-based approach. It consists of two main layers:

  1. The Single-Agent Pipeline:
    • Perception Module: Translates the numerical state of the environment (car positions, speeds) into a natural language description.
  2. Memory Module: Stores past driving experiences and "few-shot" examples to help the LLM refine its decisions over time.
  3. Prompt Generator: Combines the scene description, memory, and shared messages into a prompt for the LLM.
  4. The Multi-Agent Workflow:
    • Collaboration Module: This is the "brainstorming" phase. Agents use a shared message pool to discuss strategies and allocate roles (e.g., deciding who will be the "Leader" of a queue and who will be "Followers").
  5. Reasoning Engine: Uses a Hierarchical Chain-of-Thought (CoT) process. The LLM clarifies its role, analyzes the scene, and then generates high-level motion instructions.
  6. Execution Module: Crucially, the LLM doesn't "steer" the car directly. Instead, it outputs parameters (like target velocity and minimum headway) for the Intelligent Driver Model (IDM), a classic rule-based physics model. This ensures the vehicle's behavior remains physically grounded and safe.

Datasets

The framework was evaluated using the Flow benchmark, a standard tool for mixed-autonomy traffic research that integrates the SUMO (Simulation of Urban MObility) traffic simulator. The authors tested three classic scenarios:

  • Ring: A circular track where human drivers naturally create unstable shockwaves.
  • Figure Eight: A more complex track involving an intersection that requires precise timing.
  • Merge: A highway scenario where vehicles entering from an on-ramp create disturbances in the main flow.

The study compared several LLMs, including GPT-4o-mini and the Qwen series (72B, 32B, and 7B).

Key Insights and Ideas

  • Collaboration is the "Secret Sauce": Ablation studies revealed that without the Collaboration Module, agents often adopted identical, redundant strategies that led to conflicts. The ability to "talk" and assign roles (Leader vs. Follower) was essential for system-wide efficiency.
  • LLMs as High-Level Commanders: The paper demonstrates that LLMs are better suited as "commanders" than "drivers." By parameterizing a low-level controller (IDM) rather than outputting raw control signals, the system leverages LLM reasoning without suffering from the "jittery" control typical of pure LLM-based driving.
  • Generalization via Common Sense: Unlike RL models that often fail when moved to a new map, CoMAL uses the "embedded common sense" of LLMs to handle unfamiliar scenarios with minimal tuning.
  • The "Collaboration Gap" in Small Models: Interestingly, smaller models (like Qwen-7B) were decent at individual reasoning but failed significantly at multi-agent collaboration. This suggests that effective teamwork is an emergent property that scales with model size.

Key Results

  • Throughput & Stability: CoMAL consistently outperformed human-only baselines. In the Figure Eight scenario, it increased average velocity from 5.61 m/s (human) to 6.47 m/s (CoMAL).
  • Smoothing the Flow: CoMAL drastically reduced the standard deviation of vehicle speeds (a measure of "stop-and-go" instability). In the Ring scenario, the standard deviation dropped from 0.79 m/s to 0.26 m/s, effectively "melting" the traffic jams.
  • CoMAL vs. RL: In the Figure Eight scenario, CoMAL outperformed established RL methods like PPO and TRPO. However, in the Merge scenario, RL still held a slight edge, likely because merging requires high-frequency, reactive adjustments where data-driven RL excels over slower "reasoning" loops.

Limitations and Future Work

  • Scalability: The current experiments involve a relatively small number of CAVs. Scaling the "shared message pool" to hundreds of vehicles in a city-scale simulation remains a challenge.
  • Real-time Constraints: LLM inference is slower than traditional control loops. The authors acknowledge that future work needs to address the latency of "brainstorming" in fast-moving traffic.
  • Hybrid Approaches: The authors suggest that the "holy grail" might be a hybrid system: using LLMs for high-level strategic coordination and RL for low-level, high-speed reactive maneuvering.

Summary updated

BibTeX
@inproceedings{yao2025comal,
  author = {Huaiyuan Yao and Longchao Da and Vishnu Nandam and Justin Turnau and Zhiwei Liu and Linsey Pang and Hua Wei},
  title = {{CoMAL: Collaborative Multi-Agent Large Language Models for Mixed-Autonomy Traffic}},
  booktitle = {SDM},
  year = {2025},
  doi = {10.1137/1.9781611978520.43},
}
Figure