Precise Robot Command Understanding Using Grammar-Constrained Large Language Models
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 6 of its 19 references that are in the map. First posted on arXiv 5 Apr 2026.
Builds on
6 of 19 references.
References · 6
- 2024The Llama 3 Herd of Modelscited by 14,192
- 2019fairseq: A Fast, Extensible Toolkit for Sequence Modelingcited by 1,486
- 2022What Language Model Architecture and Pretraining Objective Work Best for Zero-Shot Generalization?cited by 149
- 2023Tractable Control for Autoregressive Language Generationcited by 65
- 2024Automata-based constraints for language model decodingcited by 49
- 2025Flexible and Efficient Grammar-Constrained Decodingcited by 42
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2024TalkWithMachines: Enhancing Human-Robot Interaction for Interpretable Industrial Robotics Through Large/Vision Language Models
- 2024The Conversation is the Command: Interacting with Real-World Autonomous Robot Through Natural Language
- 2024SELP: Generating Safe and Efficient Task Plans for Robot Agents with Large Language Models
- 2023LLM-MARS: Large Language Model for Behavior Tree Generation and NLP-enhanced Dialogue in Multi-Agent Robot Systems
- 2026Skill-SLM: Agent Skill-driven Small Language Models for Reliable Robot Operation
- 2025Large Language Models for Multi-Robot Systems: A Survey
- 2024Large Language Models for Robotics: Opportunities, Challenges, and Perspectives
- 2026STEP: State-Aware Task Estimation and Planning with Multi-Modal LLMs for Human-Robot Collaboration