arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.07764cs.RO
收藏

CommandSwarm: 为机器人群体提供安全意识的自然语言到行为树生成

CommandSwarm: Safety-Aware Natural Language-to-Behavior-Tree Generation for Robotic Swarms

Mohammed Majid, Amjad Yousef Majid

AI总结:

本文提出CommandSwarm系统,通过多语言翻译、安全过滤和约束提示生成XML行为树,验证了紧凑量化领域适应的LLM在机器人群体控制中的有效性,强调了解析器接受和安全过滤的重要性。

摘要:

自然语言接口可以降低非专家操作员使用群体机器人技术的门槛,但必须将模糊的用户意图转化为可执行的群体行为,而不能产生不支持的操作、格式错误的程序或不安全的计划。本文提出了CommandSwarm,一种安全意识的语言到行为树生成管道,用于从语音或文本命令生成XML行为树(BTs)。系统结合了多语言翻译、命令级安全过滤、约束提示、一个经过LoRA适应的大型语言模型(LLM)以及确定性解析器验证,以白名单中的可执行群体原语进行验证。我们评估了11个开放的6.7B-14B参数LLM,在零样本、一样本和两样本提示下,在代表性群体控制场景中进行评估。Falcon3-Instruct-10B和Mistral-7B-v3是表现最强的提示工程候选者,达到了BLEU分数超过0.60并在少样本设置中具有高语法有效性。对Falcon3-Instruct-10B在2063个合成指令-BT语料库上的LoRA适应,提高了零样本BLEU从0.267到0.663,ROUGE-L从0.366到0.692,以及解析器接受的语法有效性从0%到72%。翻译实验进一步表明,SeamlessM4T v2-large和EuroLLM-9B在多语言前端提供了最佳的质量-延迟权衡。结果表明,当嵌入在经过验证的系统管道中时,紧凑、量化、领域适应的LLM可以生成有用的群体BTs。它们还表明,解析器接受和安全过滤仍然是必要的执行门禁;生成质量本身不足以支持自主部署。

英文摘要:

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 scores above 0.60 and high syntactic validity in few-shot settings. LoRA adaptation of Falcon3-Instruct-10B on a 2,063-example synthetic instruction--BT corpus improves zero-shot BLEU from 0.267 to 0.663, ROUGE-L from 0.366 to 0.692, and parser-accepted syntactic validity from 0% to 72%. Translation experiments further show that SeamlessM4T v2-large and EuroLLM-9B provide the best quality-latency trade-offs for the multilingual front end. The results indicate that compact, quantized, domain-adapted LLMs can generate useful swarm BTs when embedded in a validated systems pipeline. They also show that parser acceptance and safety filtering remain necessary execution gates; generation quality alone is not sufficient for autonomous deployment.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑