Controlling Robotic Arms with Large Language Models: From Hazardous Commands to Safe Closed-Loop Execution
This article explains why a robotic arm that understands a command can still act unsafely, and why correct task understanding does not guarantee safe physical execution. It describes a layered control architecture that limits model authority through preconditions, restricted skills, motion constraints, and independent runtime monitoring. It also covers handling uncertainty, testing safety capabilities, and governing deployment.
1. Understanding a Command Does Not Mean Understanding Its Consequences
“Put the phone into the bowl” is clear at the language level, but whether a robot should execute it cannot depend only on correctly identifying the target object and location. If the bowl contains water and the phone’s water resistance is unknown, carrying out the instruction mechanically could cause property damage.
Similarly, “move the knife here” cannot simply be converted into a set of motion coordinates. If the target position is above a person’s hand, the knife could still cause injury even without contact with the body, due to grip failure, motion error, or a person moving suddenly.
These examples show the fundamental difference between robotic systems and traditional dialogue systems. Errors in language systems usually appear first as information problems. Errors in robotic systems can translate directly into physical consequences.
These scenarios should be treated as risk analysis cases. They do not show that a particular model has performed such dangerous actions in a reproducible experiment. Likewise, “controlling a robotic arm without training” does not mean that hardware adaptation, control interfaces, perception calibration, and safety engineering are unnecessary.
The real question is not whether a model can output actions. It is whether the system can keep actions within acceptable safety boundaries when the environment is complex, information is incomplete, and instructions are ambiguous.
2. What a Large Language Model Actually Does in a Robotic System
Multimodal foundation models can combine inputs such as language and images to interpret, decompose, and plan tasks. For example, given “tidy up the desk,” a model might propose steps: identify the objects, determine where each one belongs, pick up each object, and check the result.
However, translating natural language into robotic arm joint motion usually involves several more processing layers:
User task → Scene understanding → Task planning → Skill selection → Motion planning → Low-level control → Execution feedback
Task planning answers “what should be done.” Motion planning answers “along what path should the arm move.” Low-level control executes the trajectory within device constraints. Module boundaries may differ across systems, but these responsibilities cannot be ignored just because a large model is involved.
Zero-shot capability generally refers to a model’s ability to make inferences from existing knowledge without task-specific training examples. It does not mean that any arm can be connected and work reliably. It also does not mean that a model can bypass the controller and generate unconstrained execution commands.
The robot still needs clear coordinate relationships, tool parameters, action interfaces, sensor inputs, and state feedback. A model’s generalization can reduce development cost for some tasks, but it cannot replace engineering verification of the physical system.
3. How Hazards Arise From “Correct Execution”
1. A correct instruction does not make a task safe
Users usually describe only the goal and do not state every implicit constraint. “Put it in the bowl” does not specify that the container must be dry. “Hand me the knife” does not specify the handover direction, the grip posture, or whether the recipient is ready.
Humans fill these gaps with experience. Robotic systems must express them explicitly as rules or constraints. If a system optimizes only for task completion, it can produce actions that satisfy the literal request while violating the actual intent.
Therefore, goal achievement and safety compliance must be judged separately. An action that completes the task may still be one that should not be executed.
2. Perception has blind spots
Transparent containers, reflective liquid surfaces, occluded human hands, and small tools can all make perception harder. If a model fails to detect a hazard, that does not mean the hazard is absent.
Developers should avoid treating “not detected” as “confirmed absent.” For example, if liquid inside a bowl is not detected, the state should be recorded as “liquid status unknown,” not set to “empty bowl.”
For high-consequence actions, insufficient information should itself be a reason to pause, re-observe, or request confirmation.
3. Static safety does not mean whole-process safety
Collision-free start and end points do not guarantee that the intermediate trajectory is safe. The arm may sweep through a person’s activity area while moving. An object held in the gripper may also extend beyond the original collision model.
Knives, long rods, and containers with liquid change the space that the end tool occupies and the risk its motion creates. Therefore, checks should cover the arm body, the end effector, the grasped object, and the space swept by their motion. A single position point at the tool tip is not enough.
4. Caution expressed in text can be lost in the execution chain
Even if a model answers “be careful to avoid human hands,” the subsequent trajectory may not include a human-exclusion constraint. Safety advice in natural language is only a description. It becomes a protection only when it is converted into executable, checkable conditions.
Safety requirements must run through planning, control, and feedback. They cannot stay only in prompts.
4. Build a Layered Control Architecture That Limits Model Execution Authority
A more robust design lets the large model propose candidate plans, while independent modules decide whether those plans may be executed.
Layer 1: Task intent and precondition checks
The system first checks whether the goal is clear, whether the necessary information is complete, and whether the task involves risk factors such as sharp tools, liquids, electrical equipment, or human proximity.
For “put the phone into the bowl,” the system should check at least the following:
- whether the container’s interior is visible;
- whether there is liquid or another substance that could damage the device;
- whether the placement area is stable;
- whether safe grasping and placing conditions currently exist.
If the system detects liquid, it should not continue the original action. It can explain the risk and suggest placing the phone in a confirmed dry location. It must not change an important task goal on its own without authorization.
Layer 2: Restricted skills and structured plans
Do not let the model assemble low-level control commands arbitrarily. A more controllable approach is to limit the model to calling validated skills, such as recognizing objects, moving to an observation position, grasping, placing, and stopping.
Each skill should define its applicable objects, preconditions, success conditions, and exit methods for abnormal cases. Even if a skill passed testing before, the system must recheck the current conditions every time it invokes the skill.
“Validated” means validated within a specific device and environment scope. It does not mean the skill is safe in all scenarios.
Layer 3: Motion planning and physical constraints
The motion planning module must check reachability, collisions, joint limits, tool posture, and the motion range the device allows.
Human regions, fragile items, and hazardous objects may require different constraint strategies. For shar
