TL;DR
This paper introduces a novel "parallelized planning-acting" framework for Large Language Model (LLM)-based Multi-Agent Systems (MAS) that significantly improves responsiveness and adaptability in dynamic environments like Minecraft. By decoupling planning and acting into parallel threads with interruptible execution, agents can react to real-time changes and collaborate more effectively, overcoming the limitations of traditional sequential approaches.
What Problem Does This Paper Address?
Current LLM-based MAS often struggle in dynamic, real-time environments because they rely on a "serialized execution paradigm." This means an agent must finish its LLM-driven planning before it can take any action. This sequential process creates a bottleneck, severely limiting an agent's ability to adapt to sudden environmental changes or new information from teammates. Imagine a team of agents in a game like Minecraft: if one agent is stuck planning its next move, it can't react to an incoming threat or a teammate's urgent request, leading to missed opportunities and potential failures. This is particularly problematic in complex, open-world scenarios where the environment is constantly evolving and requires quick, coordinated responses.
Methods
The core innovation is a dual-thread architecture that runs planning and acting in parallel for each agent:
- Planning Thread: This thread continuously monitors the environment, agent communications (chat logs), and its own current action. It uses an LLM to generate a new action proposal. Crucially, the LLM can also output an "interrupt" flag. This thread is supported by a centralized memory system that synchronizes environmental states and agent communications, ensuring all agents have access to the most up-to-date information.
- Acting Thread: This thread executes skills from a comprehensive skill library. When the planning thread signals an interrupt, the acting thread immediately halts its current action and fetches the new action from a shared buffer. Otherwise, it continues its current task. This interruptible execution allows agents to dynamically switch tasks or react to urgent situations.
- Comprehensive Skill Library: This library, built on Mineflayer, provides a rich set of in-game actions. It features a recursive task decomposition mechanism that breaks down complex goals into smaller, manageable sub-tasks, automating the process of acquiring necessary items or tools. This is represented as a Directed Acyclic Graph (DAG), where dependencies are managed automatically.
Datasets
The primary environment for evaluation is Minecraft. The authors introduce a set of challenging benchmark tasks within Minecraft, including:
- Resource Collection Tasks: Evaluating the ability to gather various items with complex dependencies (e.g., crafting diamond armor, building materials).
- Boss Combat Tasks: Assessing dynamic adaptation and coordination against powerful bosses like the Elder Guardian, Wither, and Ender Dragon.
- Adversarial PVP Task: A direct comparison between their parallelized framework and a serialized baseline in competitive scenarios.
Key Insights and Ideas
- The Power of Parallelism: Decoupling planning and acting is not just about speed; it's about enabling real-time responsiveness. An agent can think about its next move while doing its current one, and crucially, can stop what it's doing to react to something more important.
- Interruptibility is Key: The LLM's ability to signal an interrupt is a game-changer. It allows for dynamic replanning and task switching, mimicking human adaptability in complex situations.
- Recursive Task Decomposition for Efficiency: Automating the acquisition of prerequisites (like tools or materials) via a DAG structure significantly reduces the LLM's workload. Instead of the LLM planning every single step, it only needs to invoke a high-level task, and the skill library handles the rest. This is a major efficiency gain.
- Centralized Memory for Cohesion: A shared, up-to-date memory system is vital for multi-agent coordination. It ensures agents aren't operating on stale information, leading to better teamwork.
Key Results
- Significant Speedup: The parallelized framework demonstrates notable improvements in task completion times, especially in dynamic scenarios. For instance, in resource collection, multi-agent teams consistently outperformed single agents.
- High Success Rates in Complex Tasks: The framework achieved high success rates in challenging boss combat scenarios, even with varying team sizes, showcasing its robustness and adaptability.
- Advantage in Adversarial Scenarios: In PVP tasks, the parallelized framework significantly outperformed the serialized baseline, highlighting the benefits of interruptible execution for dynamic strategy adjustments.
- Scalability: Experiments showed that LLM inference time stabilizes as the number of agents increases, while token costs grow linearly, indicating good scalability.
Limitations and Future Work
- LLM Latency: While parallelism helps, LLM inference time is still a factor, especially with complex prompts. The authors note that advanced LLM APIs (like vLLM) help mitigate this.
- Modality Impact: Using visual language models (VLMs) for observation introduced some latency and slightly reduced accuracy, though performance remained reasonable.
- Future Work: The authors suggest exploring more complex multi-agent interactions, further optimizing LLM usage, and generalizing the framework to other dynamic environments beyond Minecraft. The modular design of the skill library also lends itself to easy extension.
Summary updated