TL;DR
SyncPlan is a novel "plan-execute-correct" framework that enables Large Language Models (LLMs) to coordinate multiple agents in fast-paced, dynamic environments. By combining one-shot long-horizon planning with explicit synchronization primitives and a lightweight plan staleness detector, it achieves state-of-the-art success rates while slashing wall-clock runtime to less than 0.05% of traditional LLM coordinators.
What Problem Does This Paper Address?
Using LLMs for multi-agent coordination in real-time environments (like MOBAs or fast-paced cooperative games) presents a brutal trade-off between efficiency and adaptivity.
Existing methods typically rely on continuous LLM re-prompting or multi-round agent communication to adapt to changes. In a real-time setting, this introduces intolerable computational latency. Conversely, "one-shot" planning—where the LLM generates a complete plan upfront—is computationally cheap but highly fragile. Real-time environments are stochastically dynamic; a single unexpected event can render an open-loop plan completely stale, leading to coordination conflicts or deadlocks.
The authors categorize these hurdles into three core challenges:
- Real-time Constraints: Intolerable computational overhead under strict response-time budgets.
- Plan Staleness: Environmental changes quickly invalidating static joint plans.
- Coordination Conflicts: Asynchronous execution leading to broken temporal and conditional dependencies.
Methods
SyncPlan solves this dilemma by decoupling slow, high-level planning from fast, low-level execution and correction. The framework consists of three main components:
- Collaborative Planning with Explicit Primitives: Instead of vague natural language instructions (e.g., "attack after your teammate arrives"), a centralized LLM coordinator generates structured, per-agent action chains in a single call. It introduces machine-checkable synchronization primitives:
Wait_agents(wait for a teammate's milestone) andWait_entity(wait for an environmental condition). - Runtime Execution & Deadlock Detection: A lightweight execution module advances these action chains asynchronously. It treats wait steps as executable predicates, blocking only the dependent agent while others proceed. It also maintains a directed wait graph to detect and break cyclic deadlocks in real time.
- Adaptive Correction via a Plan Staleness Detector (PSD): Instead of replanning at fixed intervals, SyncPlan uses a tiny, highly efficient bilinear neural network (the PSD) to continuously assess whether environmental changes have invalidated the remaining plan. The LLM coordinator is only re-invoked on-demand when the PSD flags the plan as stale.
To ensure high performance on smaller, deployable models, the coordinator is optimized using Supervised Fine-Tuning (SFT) to learn the schema, followed by planning-oriented Reinforcement Learning (via GRPO) using a composite reward function that balances task progress, execution correctness, and runtime efficiency.
Datasets
The authors evaluated SyncPlan across two distinct multi-agent platforms:
- Overcooked-AI: A public two-player cooperative benchmark. Testing was conducted across three layouts (Coordination, Ring, and Symmetric) under both standard conditions and with injected dynamic perturbations (held-item drops, pot-content scattering, and agent displacement). SFT data was generated via distillation from Gemini.
- Honor of Kings (HoK): A highly complex 5v5 MOBA environment. SyncPlan was tested in "Commander mode," coordinating five allied heroes against an opposing team. The training dataset was sampled from anonymized records of real human matches.
Key Insights and Ideas
- When to correct matters more than how often: Periodic replanning baselines often degrade performance because blind re-invocation destabilizes partially executed action chains. Triggering replanning only when a plan is genuinely broken yields massive efficiency gains.
- Explicit primitives bridge the gap: Forcing the LLM to express temporal dependencies as code-like primitives allows the low-level executor to reliably enforce synchronization without needing to understand free-form text.
- RL fixes execution blindness: While SFT is sufficient to teach the LLM format compliance, reinforcement learning with dense execution feedback is vital for teaching the model to account for bot-level timing, pathing, and collision dynamics.
Key Results
- Overcooked: SyncPlan outperformed the strongest LLM-based baselines by an average of 12.2 percentage points in task success rate, while requiring less than 0.05% of their wall-clock runtime.
- Honor of Kings: SyncPlan achieved an 86.3% task achievement rate, outperforming the DPT-Agent baseline by 17.6 percentage points while reducing relative runtime by over 26×, successfully demonstrating real-time 5v5 coordination capability.
- Ablation Studies: Removing the PSD caused an immediate drop of 8+ success rate points under dynamic environments, proving the necessity of targeted, event-driven correction.
Limitations and Future Work
While SyncPlan marks a major step forward for real-time LLM coordination, the authors note several areas for improvement:
- Scalability: Future work will explore scaling the framework to handle larger team sizes and more expansive environments.
- Generalization: The current setup requires environment-specific action vocabularies; zero-shot generalization to entirely unseen game environments remains an open challenge.
- Robustness: The authors aim to enhance recovery mechanisms to better handle persistent agent stalls and extremely rapid, chaotic environmental dynamics.
Summary updated