基于语法约束大语言模型的精确机器人指令理解 Precise Robot Command Understanding Using Grammar-Constrained Large Language Models 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2026-04-05
👁️ 预览文献
💡 AI 中文简介
工业场景下人机协作需要机器人准确理解人类指令。现有大语言模型虽然擅长日常语言,但难以生成安全可执行的工业指令。本研究提出一种语法约束的大语言模型方法:先用微调后的大模型理解自然语言并推断参数,再用语法规则将输出强制转换为标准JSON格式的机器人指令,并加入验证反馈循环自动纠错。在HuRIC数据集上测试表明,该方法生成的指令有效性优于两种基线方法,能提升人机协作的安全性和效率。
领域机器人学 / 人机交互 / 自然语言处理
适合谁读需要一定专业背景(了解大语言模型和机器人指令系统)
核心贡献1. 提出语法约束的混合LLM架构,结合微调LLM的上下文推理能力与语法驱动NLU的确定性精度,生成机器人可读的标准化JSON指令;2. 引入验证与反馈循环机制,通过语法解析器自动校验并迭代纠错,显著提升指令有效性和系统鲁棒性。
关键数据在HuRIC数据集上,混合方法在指令有效性上优于基于API的微调LLM和独立语法驱动NLU两种基线,具体指标未在摘要中给出。
推荐理由如果你关心如何让大模型安全可靠地控制机器人,这篇论文给出了一个兼顾灵活性与精确性的实用方案,值得一读。
关键词["大语言模型", "语法约束", "人机交互", "自然语言理解", "机器人指令", "工业机器人"]

原文摘要

查看英文原文摘要

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.