Abstract
Large language models (LLMs) as autonomous agents offer a novel avenue for tackling real-world challenges through a knowledge-driven manner. These LLM-enhanced methodologies excel in generalization and interpretability. However, the complexity of driving tasks often necessitates the collaboration of multiple, heterogeneous agents, underscoring the need for such LLM-driven agents to engage in cooperative knowledge sharing and cognitive synergy. Despite the promise of LLMs, current applications predominantly center around single agent scenarios. To broaden the horizons of knowledge-driven strategies and bolster the generalization capabilities of autonomous agents, we propose the KoMA framework consisting of multi-agent interaction, multi-step planning, shared-memory, and ranking-based reflection modules to enhance multi-agents' decision-making in complex driving scenarios. The KoMA framework not only enhances the robustness and adaptability of autonomous driving agents but also significantly elevates their generalization capabilities across diverse scenarios. Empirical results demonstrate the superiority of our approach over traditional methods, particularly in its ability to handle complex, unpredictable driving environments without extensive retraining.
Introduction: Beyond Single-Agent Driving
While Large Language Models (LLMs) have shown promise as the "brains" for autonomous vehicles, most research has focused on single-agent scenarios—a car driving on an empty highway or a simple track. In reality, driving is a social, multi-agent activity requiring coordination and mutual understanding.
Traditional data-driven autonomous driving systems, such as those trained via Reinforcement Learning (RL), often suffer from "black-box" decision-making, lack of interpretability, and poor generalization to new environments. Conversely, existing LLM-based agents struggle with the "short-sightedness" of frame-by-frame decision-making and the difficulty of coordinating with other vehicles in high-stakes environments like on-ramp merges or roundabouts. KoMA addresses these gaps by introducing a cooperative, knowledge-driven multi-agent framework.
The KoMA Framework
The KoMA (Knowledge-driven Multi-agent) framework is built upon four primary pillars designed to mimic human cognitive processes in driving:
- Multi-agent Interaction: Instead of explicit communication, agents perform implicit interaction. They analyze the scene to infer the intentions of surrounding vehicles—much like a human driver guesses if a car is about to cut them off.
- Multi-step Planning (GPA): To avoid local optima, KoMA uses a three-tiered reasoning process: Goal (long-term objective), Plan (sequence of intermediate steps), and Action (the immediate command). This ensures temporal consistency in driving behavior.
- Shared Memory: Borrowing the concept of "parameter sharing" from reinforcement learning, all agents contribute to and retrieve from a unified vector database. If one agent discovers a safe way to merge, that experience becomes available to all other agents.
- Ranking-based Reflection: After a scenario ends, a reflection module evaluates performance based on Safety (Time-to-Collision) and Efficiency (average speed). It identifies erroneous decisions, "re-thinks" them, and updates the shared memory with corrected strategies.
Knowledge-Driven Reasoning in Action
A key strength of KoMA is its interpretability. Because the system is LLM-based, the "reasoning" behind every maneuver is recorded in natural language. This allows researchers to pinpoint exactly why a failure occurred or how a successful strategy was formulated.
By utilizing the Goal-Plan-Action (GPA) chain, the agent avoids the pitfalls of reactive, frame-by-frame commands. For instance, when merging onto a highway, the agent doesn't just decide to "accelerate"; it plans to "accelerate to increase speed and then merge ahead of Vehicle 96," evaluating the safety risks of that specific plan before execution.
Experimental Results and Generalization
The framework was evaluated using the highway-env simulation platform, focusing on a challenging on-ramp merging task where LLM-driven agents must coordinate with several Intelligent Driver Model (IDM) vehicles.
- Efficiency of Knowledge: KoMA achieved a 70% success rate after only 40 rounds of experience. In contrast, a baseline Multi-Agent Reinforcement Learning (MARL) model required 40,000 rounds to reach a 65% success rate. This highlights the power of knowledge-driven learning over pure trial-and-error.
- The Power of the "Collective Brain": Ablation studies showed that Shared Memory significantly outperformed individual memory. Sharing a common vector database allows for a richer, more diverse set of experiences, preventing individual agents from getting stuck with poor local strategies.
- Generalization: An agent trained on a two-lane highway maintained an 80% success rate when moved to a roundabout scenario, provided it had access to its previously learned memory. Without memory, the success rate dropped to 60%.
Conclusion and Future Work
KoMA demonstrates that LLMs can serve as effective, interpretable, and highly efficient controllers for multi-agent autonomous driving. However, challenges remain. GPT-4, while the most capable, introduces significant inference latency that is currently impractical for real-time high-speed driving. Furthermore, there is a performance gap between proprietary models and open-source alternatives like Llama-2. Future work will focus on fine-tuning smaller, faster models specifically for the driving domain and integrating multi-modal sensor data (camera/LiDAR) directly into the reasoning chain.
Summary updated