Abstract
As robots move from controlled industrial environments into shared human spaces, the ability to personalize robot behavior through natural language becomes critical. Traditional methods for human-robot interaction (HRI) often rely on complex reward engineering or extensive feedback loops that are inaccessible to non-experts. This paper presents Text2Interaction, a framework that leverages Large Language Models (LLMs) to translate natural language instructions into comprehensive robot execution strategies. By generating task plans, executable motion preference code, and safety-aware control parameters, Text2Interaction enables intuitive, zero-shot adaptation to user preferences. Crucially, the framework replaces the standard weighted-sum reward approach with a probabilistic formulation that maximizes the joint likelihood of task success and user satisfaction.
Introduction
Personalizing a robot’s behavior—such as instructing it to hand over a tool by the handle or to move cautiously around a beginner—typically requires either expert programming or hours of corrective demonstrations. Current state-of-the-art approaches often treat human preferences as an additive reward component. However, this creates a "balancing act" problem: if the weight assigned to the preference is too high, the robot may fail the task; if it is too low, the robot ignores the user's specific needs.
Text2Interaction addresses these challenges by using GPT-4 as a bridge between high-level human intent and low-level robot control. The system does not just decide what to do, but also how to move and how to feel (adjusting physical parameters like stiffness and velocity) to ensure the interaction is both productive and comfortable for the human user.
The Text2Interaction Framework
The framework operates across three distinct layers of robot architecture, ensuring that natural language instructions permeate every level of execution.
1. Task Planning
The LLM first decomposes a natural language request into a sequence of high-level primitives. For example, a request to "hand me the screwdriver carefully" is translated into a logical sequence such as Pick(screwdriver) followed by Handover(user).
2. Motion Preferences as Code
Rather than predicting a simple numerical value or a trajectory, the LLM generates executable Python code that defines preference functions. This code utilizes a library of geometric and probabilistic building blocks to evaluate potential robot paths. For instance, if a user asks the robot to "keep the sharp end away," the LLM writes a function that penalizes trajectories where the tool's tip points toward the user’s coordinates. This "code-as-interface" approach provides a transparent and logical way to handle complex, context-dependent geometric constraints.
3. Safety-Aware Control Parameters
Beyond the path itself, the "feel" of the robot is vital for trust. Text2Interaction allows the LLM to select parameters for a provably safe controller. Based on the user’s perceived expertise or the inherent risk of the task, the model adjusts maximal velocity, acceleration, and joint stiffness. This ensures that the robot’s physical dynamics align with the user's expectations of safety and comfort.
Mathematical Innovation: Probabilistic Synergy
A core contribution of this work is the shift in how preferences are integrated into the optimization process. Traditional systems use a weighted sum of rewards:
$$Reward = Task\_Success + \lambda \cdot User\_Preference$$
This requires manual tuning of $\lambda$ for every new scenario. Text2Interaction instead maximizes the combined probability of success and satisfaction:
$$P(Success \cap Satisfaction) = P(Success) \cdot P(Satisfaction)$$
By multiplying these probabilities, the framework ensures a robust middle ground. If a motion is highly preferred but physically impossible (0% feasibility), the product is zero, forcing the system to find a plan that is both executable and satisfying without the need for manual weight tuning.
Experimental Evaluation
The framework was validated through both simulation and real-world interaction:
- Real-world User Study: 18 participants interacted with a Franka Research 3 robot in a screwdriver handover task, providing diverse instructions regarding speed, safety, and orientation.
- Simulation Benchmark: A set of 15 geometric object rearrangement tasks (e.g., "Place the red box left of the blue box") was used to compare Text2Interaction against standard weighted-sum baselines.
- In-context Learning: The LLM was guided by a small set of hand-crafted examples to teach it the specific Python API and the required output format for the controller parameters.
Key Results
- High User Preference: In real-world trials, 94% of users preferred Text2Interaction over baselines that only optimized for task success. Participants rated the system as significantly more intelligent, cooperative, and trustworthy.
- Zero-Shot Alignment: In simulation, the framework achieved nearly double the preference alignment of the weighted-sum baseline while maintaining a high task success rate.
- Customization: 83% of users agreed that the robot successfully integrated their specific, custom instructions into its motion plan, demonstrating the framework's high adaptability to idiosyncratic human requests.
Discussion and Limitations
While Text2Interaction represents a significant step toward intuitive HRI, several challenges remain. The system is sensitive to the quality of the in-context examples provided to the LLM; instructions that fall too far "out of distribution" can lead to hallucinations or logically flawed Python code. Furthermore, the current implementation relies solely on text or speech. Future work should incorporate non-verbal cues—such as gestures and gaze—to create a more holistic understanding of human intent. Finally, the system currently treats preferences as static; evolving the framework to "learn" and refine its understanding of a specific user over long-term repeated interactions is a promising direction for future research.
Summary updated