arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.04233cs.ROcs.CL
收藏

利用语法约束大语言模型实现精确的机器人指令理解

Precise Robot Command Understanding Using Grammar-Constrained Large Language Models

Industrial and Manufacturing Engineering, Florida State University(佛罗里达州立大学工业与制造工程系)

Xinyun Huo, Raghav Gnanasambandam, Xinyao Zhang

AI总结:

本文提出一种结合语法驱动NLU系统和微调LLM的混合模型,通过两阶段过程确保生成的指令在机器人可读的JSON格式中有效,提升工业人机协作的安全性和效率。

摘要:

工业环境下的人机协作需要精确可靠的通信以提高操作效率。尽管大语言模型(LLMs)能理解通用语言,但缺乏领域特定的刚性以安全执行工业指令。为解决这一差距,本文介绍了一种新颖的语法约束LLM,整合了语法驱动的自然语言理解(NLU)系统与微调的LLM,使系统既能保持对话灵活性,又能满足机器人所需的确定性精度。我们的方法采用两阶段过程。首先,微调的LLM对自然语言输入进行高层上下文推理和参数推断。其次,结构化语言模型(SLM)和基于语法的规范器约束LLM的输出,迫使输出进入由有效动作框架和指令元素组成的标准符号格式。此过程确保生成的指令在机器人可读的JSON格式中有效。所提模型的关键特性是验证和反馈循环。语法解析器将输出与预定义的可执行机器人动作列表进行比对。若指令无效,系统将自动生成纠正提示并重新激活LLM。这种迭代自我校正机制使模型能从初始解释错误中恢复,提高系统鲁棒性。我们评估了语法约束混合模型与两个基线:微调的API基于LLM和独立的语法驱动NLU模型。使用人类机器人交互语料库(HuRIC)数据集,我们证明混合方法在指令有效性方面表现更优,促进更安全有效的工业人机协作。

英文摘要:

Human-robot collaboration in industrial settings requires precise and reliable communication to enhance operational efficiency. While Large Language Models (LLMs) understand general language, they often lack the domain-specific rigidity needed for safe and executable industrial commands. To address this gap, this paper introduces a novel grammar-constrained LLM that integrates a grammar-driven Natural Language Understanding (NLU) system with a fine-tuned LLM, which enables both conversational flexibility and the deterministic precision required in robotics. Our method employs a two-stage process. First, a fine-tuned LLM performs high-level contextual reasoning and parameter inference on natural language inputs. Second, a Structured Language Model (SLM) and a grammar-based canonicalizer constrain the LLM's output, forcing it into a standardized symbolic format composed of valid action frames and command elements. This process guarantees that generated commands are valid and structured in a robot-readable JSON format. A key feature of the proposed model is a validation and feedback loop. A grammar parser validates the output against a predefined list of executable robotic actions. If a command is invalid, the system automatically generates corrective prompts and re-engages the LLM. This iterative self-correction mechanism allows the model to recover from initial interpretation errors to improve system robustness. We evaluate our grammar-constrained hybrid model against two baselines: a fine-tuned API-based LLM and a standalone grammar-driven NLU model. Using the Human Robot Interaction Corpus (HuRIC) dataset, we demonstrate that the hybrid approach achieves superior command validity, which promotes safer and more effective industrial human-robot collaboration.

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

↑