Letting Large Models Control Robotic Arms: Physical Safety Risks and Safeguards
This article explains why large multimodal models that control robotic arms need physical safety boundaries, not just high task success rates. It covers four risk patterns for dangerous instructions, why models should not connect directly to actuators, a layered safety architecture, key safeguards such as scene modeling, simulation, human confirmation, and audit logging, a pseudocode example of a safe execution gateway, and a practical path for evaluation and deployment.
1. Greater Capability Does Not Mean Safe Boundaries
Multimodal large models are moving from understanding language to calling tools and acting on the physical world. When a model can interpret images, understand a scene, and generate task plans, and then drive a robotic arm, a mobile base, or other actuators through a unified interface, the barrier to building robotic applications drops significantly. Developers can describe a task in natural language and have the model carry out complex operations such as grasping, placing, tidying, or drawing. In some research, models even complete tasks in a zero-shot setting that previously required dedicated programming. These “agentic robots” are seen as a promising path toward general-purpose robotic intelligence.
However, strong capability does not equal safety. The risks of robotic systems differ fundamentally from those of pure software systems. A software error can be rolled back, but a physical action can cause irreversible harm. An instruction that is entirely reasonable at the language level can become dangerous in a specific environment. For example, “put the phone into the bowl” sounds ordinary, but if the bowl is full of water, the result is a water-damaged electronic device. “Move the knife to the designated spot” sounds like a tidying task, but if a person’s hand is hanging above that spot, the arm’s motion trajectory could injure them. The problem is not whether the model “understood” the sentence. The problem is whether it also understood object properties, spatial relationships, human positions, liquid states, the risks of sharp objects, and the safety constraints behind a successful task.
Therefore, when discussing large models controlling robotic arms, task success rate is not the only concern. Physical safety boundaries must also be established. This article covers risk patterns, architecture design, protection mechanisms, pseudocode implementation, and evaluation and deployment. It presents an engineering-oriented approach to safety.
2. Four Categories of Risk Patterns in Dangerous Instructions
1. Semantically Correct Instructions with Missing Environmental Context
“Put the phone into the bowl” is a typical case of an instruction that is semantically correct but contextually dangerous. The model may correctly identify the “phone” and the “bowl” and generate a sound grasping and placing plan. However, it may not check whether there is water in the bowl, whether the phone can tolerate water, or whether placing it there could cause a short circuit or damage. This risk comes from the model reducing the task to matching object relationships while ignoring physical properties and environmental state.
The key defense is to model “objects, their properties, states, and relationships” as a scene graph, and to run constraint checks before and after task planning. For example, electronic devices should be kept out of liquid areas, containers should be checked for contents before use, and dangerous zones should be marked as no-placement areas.
2. Conflict Between Goal Completion and Human Safety
“Hold the knife above a person’s hand,” or similar actions, is a typical conflict between a goal-oriented plan and a safety constraint. The model may treat “moving to a position” as success without treating “a human hand is below” as a hard prohibition. For a robotic arm, the end effector, payload, speed, and motion trajectory all affect the level of risk. These factors cannot be judged by a language model alone.
Such scenarios require a safety layer that operates independently of the model. Even if the high-level plan considers an action reasonable, the low-level system must reject execution based on human detection, collision detection, workspace limits, and force or speed constraints. Safety constraints should be hard-coded or verifiable rules, not something the model is merely expected to “try to be careful” about.
3. Accumulating Risk in Long-Horizon Planning
“Throw the phone into the water” can be broken down into several seemingly harmless substeps: grasping the phone, moving over the container, and releasing it. Each individual action is simple, but combined they produce an irreversible outcome. Risk accumulates as the number of steps grows, especially when the model adjusts its plan dynamically based on intermediate observations. Errors can be amplified step by step.
Defenses require precondition checks, postcondition checks, and risk propagation analysis for task plans. Each skill call should declare its inputs and outputs, the objects it applies to, prohibited states, and a fallback strategy for failure. Irreversible actions should require a higher level of confirmation.
4. Prompt Injection and Tool Misuse
When a robotic agent can call multiple tools, external text, images, or environmental labels may induce the model to perform unintended actions. For example, a text label in the scene might be misread by the model as an instruction, or a multi-step tool call might bypass the original restrictions. A safe design must separate “data” from “instructions” and enforce least-privilege tool access with explicit authorization.
3. Why Large Models Should Not Connect Directly to Actuators
Large models are good at semantic understanding, task decomposition, and reasoning in open-ended scenarios. However, their outputs are probabilistic, not control laws with proven stability. Mapping model outputs directly to joint angles, velocities, or torques creates several problems.
First, real-time performance is insufficient. Physical control requires closed-loop cycles on the millisecond scale, and large model inference typically does not operate at that timescale. Second, physical common sense is unreliable. A model may generate plans that look reasonable but violate constraints on friction, center of gravity, collisions, and mechanics. Third, the action space is misaligned. There is no verifiable intermediate representation between language tokens and continuous high-dimensional actions. Fourth, there are no safety guarantees. A model cannot formally guarantee that it will never collide with a person. Fifth, responsibility is unclear. After an accident, investigators need audit records of the instruction, the plan, constraint checks, execution logs, and any human intervention.
A more reasonable architecture separates planning from execution. The large model handles intent understanding, task planning, and skill selection. Traditional motion planning, control algorithms, and safety monitoring handle low-level execution. The model does not drive the robotic arm directly. Instead, it submits requests through a constrained skill interface, and a safe execution gateway decides whether to allow them.
4. Layered Safety Architecture
1. Semantic and Intent Layer
This layer parses natural language instructions and identifies task goals, objects, locations, constraints, and risk-related keywords. For ambiguous instructions, the system should ask for clarification rather than guess. For example, “put the phone into the bowl” should trigger a check of the bowl’s contents. If liquid is detected, the system should ask, “The target container has liquid in it. Do you still want to place the object there?” This layer outputs a structured task description, not direct actions.
2. Task and Skill Layer
This layer decomposes tasks into verifiable skill calls, such as “grasp object,” “move to coordinates,” “place object,” and “release workpiece.” Each skill declares its preconditions, postconditions, applicable objects, prohibited states, and fallback strategy. The task layer maintains the scene state and prevents execution from continuing while a dangerous state remains unresolved.
3. Motion Planning and Control Layer
This layer uses collision detection, workspace limits, speed and force limits, and trajectory planning to generate executable actions. In human-robot collaborative scenarios, it should enforce minimum safe distances from people, speed scaling, and force limits. This layer does not trust the safety claims made by the upper-level model. It accepts only skill requests that pass constraint checks.
4. Independent Safety Layer
The safety layer should run independently of the large model. It includes emergency stop, watchdog timers, restricted zones, a blacklist of dangerous actions, dual-person review, and access control. Even if the model outputs an incorrect plan, the safety layer can reject or halt it. This layer should be as simple, verifiable, and testable as possible, so that complex logic does not introduce new risks.
5. Audit and Replay Layer
This layer records instructions, scene snapshots, model outputs, constraint check results, human confirmations, execution traces, and abnormal events. The logs support incident review, model evaluation, and red-team testing. For high-risk tasks, the system should support full replay and audit tracing.
5. Key Protection Mechanisms
Dangerous state modeling. Build a scene graph that labels liquids, sharp objects, hot objects, electronic devices, human positions, passable areas, and restricted zones. After a task plan is generated, run state constraint checks before motion planning.
Action space constraints. Use a skill allowlist, and limit speed, force, workspace, and posture. Assign higher risk levels to irreversible actions. Prohibit the model from outputting low-level joint control commands directly.
Simulation rehearsal and shadow execution. Rehearse plans in a lightweight physics simulator or digital twin to detect collisions, tipping, liquid contact, and human proximity. Reject execution if the simulation fails. For high-risk tasks, run shadow execution first, which computes trajectories without driving the physical device.
Tiered human confirmation. Low-risk tasks run automatically. Medium-risk tasks prompt for confirmation. High-risk or irreversible tasks require mandatory human confirmation or dual-person review. The confirmation interface should show the reasons for the risk and its possible consequences, not just a “continue?” prompt.
Least privilege and tool authorization. A robotic agent can call only the skills it is authorized to use. Actions involving sharp tools, liquids, electrical equipment, or people nearby require additional credentials or approval. External text must never directly trigger tool calls.
Monitoring and fail-safe behavior. Set up heartbeats, watchdogs, emergency stops, and power-loss holding policies. When a person enters a dangerous zone, automatically slow down or stop. If communication is lost, move to a safe posture.
Red-team testing and a dangerous instruction set. Build a test set that includes ambiguous instructions, context-dependent dangerous instructions, dangerous combinations in long tasks, and prompt injection attacks. Use it to continuously evaluate both the model and the safety layer. Evaluation metrics should include task success rate, dangerous action rate, false rejection rate, human intervention rate, recovery time, and audit log completeness.
6. Pseudocode for a Safe Execution Gateway
The following simplified pseudocode for a safe execution gateway illustrates the principle that the model only proposes plans, while the safety layer decides whether to allow them:
function safe_execute_robot_task(instruction, world_state, policy):intent = parse_intent(instruction)scene = build_scene_graph(world_state)if is_ambiguous(intent, scene):return ask_for_clarification(intent, scene)plan = llm_generate_skill_plan(intent, scene)plan = normalize_to_skill_schema(plan)if not validate_skill_schema(plan):return reject("Plan format is invalid")risk = assess_risk(plan, scene, policy)if risk.level == "forbidden":return reject_with_reason(risk.reason)simulation = simulate_plan(plan, scene)if simulation.has_collision or simulation.has_human_risk:return reject_with_reason("Simulation failed safety constraints")if risk.level == "high":if not human_confirm(plan, risk, scene):return reject("Human confirmation not granted")for skill in plan.skills:if not check_preconditions(skill, scene):return abort("Precondition not met")if not enforce_motion_limits(skill, policy):return abort("Motion exceeds safety limits")execute_with_watchdog(skill)scene = update_scene_graph(world_state)if watchdog_triggered() or human_in_danger_zone(scene):emergency_stop()return abort("Safety monitor triggered")log_audit(instruction, plan, risk, simulation, scene)return success()
The key points of this pseudocode are as follows. Large model outputs must be structured and validated. Risk checks, simulation rehearsal, human confirmation, and execution monitoring all happen outside the model. If any step fails, the system should reject or abort the task. It should not let the model attempt to correct itself and continue.
7. Evaluation and Deployment Path
Safety capability must be measurable. Start in simulation by building a set of dangerous instructions and environment variations. Track task success rate, dangerous action rate, false rejection rate, human intervention rate, average recovery time, and log completeness. Then move to a restricted physical environment, beginning with non-contact, low-speed, low-payload tasks. Gradually expand to scenarios with human-robot isolation, and consider human-robot collaboration only last. At the organizational level, define clear responsibilities for safety requirements, model evaluation, operations on-call duty, and incident review.
Large models give robots stronger semantic understanding and task planning. However, the physical safety boundary should not be left solely to a probabilistic model. Placing the model in the planning layer and placing safety constraints in an independent execution layer creates a closed loop with simulation, constraints, confirmation, and auditing. This is a more reliable engineering path. The more capable the system, the more it needs verifiable safety guardrails.
