CommandSwarm: Safety-Aware Natural Language-to-Behavior-Tree Generation for Robotic Swarms
Mohammed Majid, Amjad Yousef Majid

TL;DR
CommandSwarm is a safety-aware pipeline that translates natural language commands into executable swarm behavior trees using large language models, safety filtering, and validation to ensure safe robotic swarm operations.
Contribution
It introduces a novel safety-aware language-to-behavior-tree system for swarm robotics, combining multilingual translation, safety filtering, and deterministic validation with domain-adapted LLMs.
Findings
LoRA adaptation significantly improves translation quality and syntactic validity.
Strong prompt-engineered LLMs like Falcon3-Instruct-10B and Mistral-7B-v3 perform well in zero-shot and few-shot settings.
Safety filtering and parser validation are essential for safe autonomous swarm behavior generation.
Abstract
Natural-language interfaces can make swarm robotics more accessible to non-expert operators, but they must translate ambiguous user intent into executable swarm behaviors without unsupported actions, malformed programs, or unsafe plans. This paper presents CommandSwarm, a safety-aware language-to-behavior-tree pipeline for generating XML behavior trees (BTs) from speech or text commands. The system combines multilingual translation, command-level safety filtering, constrained prompting, a LoRA-adapted large language model (LLM), and deterministic parser validation against a whitelist of executable swarm primitives. We evaluate eleven open 6.7B--14B parameter LLMs, all using 4-bit quantization, on representative swarm-control scenarios under zero-shot, one-shot, and two-shot prompting. Falcon3-Instruct-10B and Mistral-7B-v3 are the strongest prompt-engineered candidates, reaching BLEU…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
