Waggle: Learning One Anonymous Local Law for Self-Organizing LLM Swarms

Mingxi Zou, Wei Zhu, Zhuo Wang, Langzhang Liang, Zhiwen Tang, Yinghui Xu, Zenglin XuarXiv 2026

TL;DR

Instead of hard-coding rigid hierarchies or communication graphs for LLM agents, Waggle learns a single, anonymous "local law" that every agent follows. By repeatedly executing this shared policy, complex global coordination emerges naturally, allowing agent swarms to scale to hundreds of members and adapt to changing conditions without any central designer.

What Problem Does This Paper Address?

Building multi-agent systems (MAS) with Large Language Models usually involves designing explicit "organizations." We assign roles (e.g., "Manager," "Coder"), define routing policies, or build fixed communication graphs. While effective for small teams, these structures are brittle. If the population size changes or the task evolves, the organization often breaks.

The authors argue that we should look to swarm intelligence—like how ants or bees coordinate through simple local interactions rather than a master plan. The challenge is: how do you train an LLM to follow a "local law" that is robust enough to generate complex global behavior, anonymous enough to work across interchangeable agents, and flexible enough to reorganize when things go wrong?

Methods

The authors introduce Waggle, a shared anonymous policy, and a novel training framework called Swarm-Consistent Distillation (SCD).

The Waggle Policy

Every agent in the swarm runs the exact same policy. At each step, an agent looks at its "local view"—its own task state and the messages (traces) from its immediate neighbors. It then makes one joint decision:

  1. Task Action: What to do in the environment.
  2. Semantic Update: What message to send to neighbors.
  3. Local Commitment: Whether to "commit" to a specific plan or "reopen" a decision based on new evidence.

Swarm-Consistent Distillation (SCD)

To make this local law effective, SCD uses three training objectives:

  • Decision Distillation: Standard imitation learning from a high-quality teacher (like GPT-4o).
  • Anonymous-Orbit Consistency: This ensures the policy doesn't rely on specific agent IDs or the order in which it hears from neighbors. By training on permuted and relabeled views, the model learns the semantics of coordination rather than just memorizing names.
  • Local-Field Prediction: The model is trained to predict how the local coordination state (the "field") will evolve in the next step. This helps the agent understand the long-term consequences of its local actions.
Figure 2: Overview of Waggle. SCD trains one shared anonymous local law; each agent deploys it independently through a fixed runtime, and repeated local reactions form and revise swarm organization.

Datasets

The researchers evaluated Waggle across two very different "substrates":

  1. SWARMBENCH: A spatial coordination environment where agents must move, forage, and synchronize using local cues.
  2. SILO-BENCH: A distributed language coordination benchmark where agents must solve complex reasoning tasks by sharing shards of information through local ports.
  3. AGENTSNET-RP: A graph-structured coordination substrate used to test how well the learned law transfers to entirely new task types without retraining.

Key Insights and Ideas

  • Anonymity as a Scaling Factor: Because the law is anonymous, you can drop 10 or 100 agents into a task, and they will coordinate using the same rules. The paper shows successful scaling up to $N=128$ agents without retraining.
  • Organization as an Emergent Property: Roles and hierarchies aren't pre-defined; they emerge from repeated local reactions. As seen in Figure 1, the swarm can "Recruit," "Commit," and "Reopen" conflict dynamically.
  • Reversibility is Key: A major "aha" moment is the importance of reopening commitments. If an agent receives counter-evidence (e.g., a neighbor finds a better solution), the learned law allows the agent to revoke its previous commitment and reorganize the swarm online.
  • Separation of Law and Runtime: Waggle separates the learned semantics (the policy) from a fixed runtime (which handles the mechanics of message transport and expiry). This makes the system highly portable.
Figure 1: Learning the organization versus the organizing law.

Key Results

Waggle significantly outperformed existing multi-agent baselines, especially as the number of agents grew.

  • Scaling: On SILO-BENCH with 64 agents, Waggle achieved a 58.2% success rate, while traditional fixed-rule baselines struggled at around 15%.
  • Efficiency: Waggle reaches high performance with substantially fewer interaction rounds and messages than competing methods.
  • Specialist Retention: A single "joint" Waggle law performed nearly as well (>96%) as specialized models trained for only one specific environment.
  • Zero-Shot Transfer: The law learned on spatial and language tasks transferred successfully to graph-based tasks in AGENTSNET, outperforming zero-shot LLMs and hand-coded heuristics.
Figure 3: Communication efficiency and specialist retention at N = 64. (a,c) Success across communication rounds; (b) success versus delivered messages per agent; (d) oracle-relative retention. Outlined markers indicate the primary R = 9 setting.

Limitations and Future Work

  • Fixed Runtime: The current system relies on a deterministic "adapter" to handle low-level mechanics. Future work could explore learning these interface parts as well.
  • Adversarial Robustness: The study assumes agents are cooperative and observations are faithful. In open-world deployments, the swarm would need mechanisms to handle malicious messages or "Byzantine" failures.
  • Heterogeneity: Currently, all agents are interchangeable. The authors suggest extending this to "capability-conditioned" laws, where agents might have different tools or budgets but still follow the same fundamental coordination principles.
  • Longer Horizons: While Waggle handles reorganization well, extremely long-lived objectives with shifting goals remain a challenge for future benchmarks.

Summary updated

BibTeX
@misc{zou2026waggle,
  author = {Mingxi Zou and Wei Zhu and Zhuo Wang and Langzhang Liang and Zhiwen Tang and Yinghui Xu and Zenglin Xu},
  title = {{Waggle: Learning One Anonymous Local Law for Self-Organizing LLM Swarms}},
  year = {2026},
  eprint = {2609.34136},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.34136},
}
Figure