TL;DR
COMPASS is a decentralized, scalable architecture that allows massive swarms of up to 1,024 robots to be controlled using natural language commands. By decoupling high-level semantic reasoning from low-level spatial coordination through a learned latent feedback loop, it achieves zero-shot generalization to unseen, ambiguous instructions while completely bypassing the scalability bottlenecks of centralized LLMs.
What Problem Does This Paper Address?
Large Language Models (LLMs) excel at high-level robotic task planning, but extending them to coordinate large groups of robots (swarms) introduces severe bottlenecks.
If you use a centralized frontier LLM to command a fleet, it quickly fails as the team size grows due to API latencies, formatting errors, and the inability to generate perfectly synchronized actions for hundreds of agents simultaneously. Conversely, if you give decentralized, local LLMs raw text descriptions of their neighbors' positions and velocities to help them coordinate, the spatial data overwhelms the model's context window. The LLM spends all its compute trying to parse coordinates rather than reasoning about the actual mission, which ultimately destroys swarm cohesion.
The authors tackle this challenge: How can we leverage the semantic reasoning of language models for swarm control without overwhelming them with spatial data or relying on a fragile centralized controller?
Methods
The authors introduce COMPASS (COmmanding Multi-robot Policies with Attention and Semantic Steering), a decentralized architecture that bridges the gap between language reasoning and physical control.
Key components include:
- Reasoning Space Control: Each robot runs a local, frozen Small Language Model (SLM), specifically Qwen3-1.7B. Instead of generating text at every control loop step, COMPASS extracts a latent reasoning state ($z_i(t)$) from an intermediate layer of the model.
- Token Program: The input to each local LM consists of an operator prompt ($P$), a pre-generated "thinking trace" ($T$), a learned feedback token ($f$), and a goal token ($g$).
- Multi-Agent Spatial Transformer (MAST): To handle spatial awareness, the latent reasoning state is passed to MAST—a specialized neural network architecture that communicates hop-by-hop with neighboring robots. MAST uses 2D rotary positional encodings (RoPE) to inject relative geometry into its attention mechanism.
- Closed-Loop Feedback: MAST outputs both the low-level motor actions and an updated feedback token ($f_i(t)$), which is fed back into the local LM. This allows the swarm's physical state to influence the language model's latent reasoning space without using explicit text.
Datasets
The system was trained using behavior cloning against a centralized potential-field "oracle" expert that balances four objectives: velocity alignment, target tracking, group cohesion, and collision avoidance.
The training and evaluation corpus consists of thousands of prompts across several categories:
- In-Distribution: Plain directions ("steer North"), abbreviations ("go N"), opposites ("the opposite of South"), map-relative terms, clock-face directions, and numeric bearings.
- Out-of-Distribution / Held-Out: Vague/conceptual prompts (e.g., "all units where Santa Claus lives" to imply North) and secondary intercardinal directions (e.g., "navigate North-northeast").
Key Insights and Ideas
- Separation of Concerns: LLMs should not do spatial math. COMPASS succeeds because the LM handles semantic intent (interpreting "twelve o'clock" as a direction), while the spatial transformer (MAST) handles geometric coordination (avoiding collisions and maintaining formation).
- The Wisdom of the Agentic Crowd: The authors discovered Structured Diversity. If you give every robot the exact same vague prompt, the swarm performs poorly. However, if you distribute diverse phrasings of the same task across the fleet, the collective interaction cancels out individual model biases, significantly improving overall heading accuracy.
- Latent over Textual Feedback: Hand-engineered text feedback (e.g., prompting the model with "My state is X, Neighbor 1 is at Y") completely obliterates swarm cohesion. A compact, learned latent token is far more effective for closed-loop control.
Key Results
- Massive Scalability: Although trained on small swarms of 32 to 64 robots, COMPASS generalized zero-shot to 1,024 robots (a 16× scale increase), maintaining a highly cohesive flocking formation.
- Error Reduction with Scale: Counterintuitively, heading error decreased as the swarm grew, dropping from 2.79° at $N=8$ to just 0.34° at $N=1024$, proving the benefits of collective reasoning.
- Baseline Comparison: Centralized frontier models (like Claude Opus) suffered from severe latency and formatting retries at scale, while language-only communication baselines caused the swarm to fragment into 15 separate groups.
- Zero-Shot Generalization: COMPASS successfully steered robots along out-of-distribution numeric bearings and secondary intercardinals with low error, demonstrating that the learned goal tokens lie on a continuous geometric manifold.
Limitations and Future Work
- Minor Drift: When commanded to "stop" mid-mission, the COMPASS fleet retains a small residual drift velocity of 0.2 m/s compared to the completely stationary expert oracle.
- Asymmetric Generalization: The model does not generalize equally well to all unseen directions; for instance, the direction "North-northeast" (NNE) exhibited higher error rates than others, occasionally falling outside its intended sector.
- Task Specificity: The current implementation focuses entirely on flocking and navigation. Future work could explore extending this reasoning-space feedback loop to other complex, verifiable multi-robot tasks like area coverage or target tracking.
Summary updated