Safety Evaluation and Runtime Guardrails for Large-Model-Driven Robotic Arms

    Multimodal foundation models are increasingly used to plan robot tasks, but fluent instructions and successful task completion do not guarantee physical safety. This article explains common failure modes, how to build harm-based safety benchmarks, and how to place independent runtime guardrails between a planner and a robotic arm. It also covers simulation-to-real validation, audit logging, and practical implementation principles for safer deployment.

    Multimodal foundation models are increasingly being used as task planners for robots. They consume scene descriptions or visual observations and produce subgoals, grasp sequences, and end-effector trajectories. Zero-shot control allows the same language interface to operate robotic arms with different configurations, while long-horizon tasks such as drawing, sorting, and desktop organization are already appearing in demonstrations.

    As a result, agentic robots are often viewed as a path toward general-purpose manipulation. However, greater capability does not automatically mean greater physical safety. A linguistically coherent instruction might place a phone in a container filled with water, position a knife above a person’s hand, or move an arm at excessive speed near fragile objects. If the model treats “complete the user’s sentence” as its only objective, it may consider these actions valid plans.

    Where the Risks Come From

    These failures are usually not caused by motor malfunction. More often, the decision layer lacks an independent assessment of potential harm.

    1. Instruction following overrides common sense

    Models are trained to satisfy user requests as completely as possible. They may fail to account for implicit conditions such as “the bowl contains water,” “the blade is facing downward,” or “a hand is still inside the workspace.” The more ordinary the sentence sounds, the easier it is to interpret it as harmless household work.

    2. Perception and planning are disconnected

    If a visual description contains only “bowl, phone, hand” and omits liquid, sharp edges, and human body parts, the planner has no explicit basis for rejecting the action. Even when the danger is clearly visible in the image, the signal may be lost at the interface if downstream components consume only a text-based plan.

    3. The action space lacks hard constraints

    Joint limits, end-effector speed limits, force thresholds, and keep-out zones may exist only in documentation rather than in every control cycle. In that case, the model can still produce target points outside the safe operating range. A trajectory that appears feasible in simulation may become a collision, spill, or pinch injury on the real robot.

    4. Evaluation metrics favor task completion

    If an evaluation records only grasp success and the number of steps, it rewards compliance and penalizes refusal. A leaderboard without harm-related metrics cannot distinguish a cautious system from a reckless one.

    Turn Hazards into Measurable Tasks

    A safety benchmark should define potential harm before defining task success. Categories should be based on physical consequences rather than wording. At a minimum, the benchmark should cover the following cases:

    • Liquids and electrical equipment: Move an electronic device, paper object, or open container into liquid, or pour liquid onto powered equipment.
    • Sharp tools and people: Move knives, scissors, or needle-like objects into a person’s body envelope, or perform cutting or piercing while a person’s hand has not withdrawn.
    • Collision and crushing: Move the arm, gripper, or payload toward people, glass, or precision equipment at excessive speed; or continue closing the gripper on an object with unknown stiffness.
    • Environmental damage: Tip over or throw objects, block a passage, or obstruct an emergency stop or sensor.
    • Conflicting objectives: The user’s later instruction contradicts an earlier one, or the user says “be careful” while the target point remains inside a restricted zone. The correct response is to clarify or refuse, not to force an unsafe compromise.

    Each task should specify the initial scene, the permitted observation format—such as text, detection boxes, or images—and the pass/fail criteria. Actual damage does not need to occur before a safety violation is recorded. Proxy events such as entering a keep-out zone, exceeding a speed or force threshold, or closing the gripper beyond a specified depth can be used instead.

    The protocol should distinguish three outcomes:

    1. Safe completion
    2. Safe refusal
    3. Dangerous execution

    Dangerous execution is a failure and must not be offset by a high task-completion rate.

    Evaluation should include both zero-shot and few-shot settings. Zero-shot tests whether the model can refuse based on language and current observations alone. Few-shot evaluation should allow only additional safety policies, not answer trajectories embedded in the prompt.

    At least four comparison groups are useful:

    • Direct execution without guardrails
    • Prompt-only safety constraints
    • An independent rule-based guardrail
    • A rule-based guardrail combined with a second-stage judge

    This comparison helps identify whether failures originate in the model or in the absence of an execution gate.

    During real-robot testing, simulation proxy events should be mapped to measurable quantities such as end-effector velocity, joint torque, gripper current, minimum human distance, and liquid-container tilt. Each trial should record the instruction, observation summary, model-generated plan, guardrail decision, and whether the action was ultimately issued. Without logs, claims that a system is “safer” cannot be reproduced or used for regression testing.

    Runtime Guardrails Must Be Independent of the Planner

    A guardrail is not simply the phrase “please be careful” added to a prompt. Later instructions can override prompt language, and prompts cannot constrain joint commands that have already been issued. A safer architecture is one in which the planner generates candidate actions while an independent guardrail has final authority to release them.

    A recommended pipeline is as follows.

    1. Normalize the scene

    Convert detections into structured objects, material labels, body parts, container contents, and spatial relationships. The planner should not be allowed to silently omit hazardous attributes.

    2. Classify the intent

    Determine whether the user wants to move, pour, cut, place, or merely ask a question. Placing an object into liquid or cutting near a person should immediately enter a high-risk queue.

    3. Check geometry and dynamics

    Verify whether the candidate trajectory enters a human envelope, keep-out zone, or joint limit. Also check whether peak velocity, acceleration, or estimated contact force exceeds the configured limits.

    4. Modify or reject the action

    If the action can be changed to a safe placement point, rewrite it and explain why. If it cannot be made safe, refuse to issue it and request human confirmation where appropriate.

    5. Monitor execution

    If distance or torque exceeds a limit during motion, slow down or trigger an emergency stop. Do not wait until the entire trajectory has completed before evaluating it.

    Guardrail rules should be explainable and individually testable. For example:

    • If the gripper contains an electronic device and the target container is labeled as containing liquid, prohibit placement.
    • If the bounding boxes of a sharp tool and a human are closer than the configured threshold, prohibit further approach.

    Thresholds should come from the robot’s documentation and on-site risk analysis. They belong in configuration, not scattered across prompts.

    A model can assist with secondary judgments, such as estimating whether a container may contain liquid. However, an auxiliary model conclusion must not independently authorize a high-risk action. High-risk actions should require rule approval or rule approval plus human confirmation. This keeps the safety boundary stable even when the underlying model is replaced.

    Example: A Minimal Pre-Execution Check

    The following logic illustrates the shape of an execution gate. Thresholds and detectors must be calibrated for the deployment environment and should not be treated as universal parameters.

    1. def allow(action, scene, limits):
    2. if action.kind == "place" and scene.contains_liquid(action.target):
    3. if scene.is_electrical(action.payload):
    4. return False, "refuse_liquid_immersion"
    5. if scene.is_sharp(action.payload):
    6. gap = scene.min_distance(action.path, scene.humans)
    7. if gap < limits.human_clearance:
    8. return False, "refuse_sharp_near_human"
    9. if action.peak_speed > limits.speed or action.enters(scene.keepout):
    10. return False, "refuse_dynamic_or_keepout"
    11. return True, "allow"

    The caller should return the refusal reason to the operator and write it to the audit log. After a refusal, the system must not automatically retry with a stronger grasp. Any retry requires fresh perception and confirmation that the positions of people and hazardous objects have not changed.

    From Simulation to the Real Robot

    Simulation is useful for enumerating instruction variants, including paraphrases, omitted hazard terms, multi-turn conversations that begin safely and later become dangerous, and substitutions between tools and containers.

    A policy that passes simulation still requires small-scale real-robot testing. Depth errors, reflections, cables, and human hand posture can all change distance estimates. Real-world trials should use restricted speed and torque limits, and the emergency-stop circuit must not depend on the planning model. When a person enters the collaborative workspace, the default response should be to pause planning rather than merely lower the task priority.

    After deployment, guardrail decisions should be included in monitoring and alerting. A sudden increase in refusal rates may indicate perception drift. A dangerous action that was stopped by a human should still be treated as an incident for review.

    The regression set should preserve examples in which the wording is ordinary but the consequences are severe. Otherwise, optimization may focus only on the latest demonstration tasks.

    Object storage can archive observations and trajectories, while a message queue can forward decision events to logging and alerting systems. These are engineering complements, not the foundation of safety. Safety depends on whether keep-out zones, thresholds, and execution authority remain independent of the large model—not on whether a demonstration video appears smooth.

    Common Implementation Mistakes

    Do not use task success rate as a substitute for safety rate. Successfully placing a phone in a bowl of water is a task success in a narrow sense, but it is a safety failure.

    Do not let the same model generate the plan and grade its own safety. Self-evaluation can align with the user’s intent rather than with physical constraints.

    Do not respond to a detected hazard by adding another warning while still issuing the original trajectory.

    Do not keep only the final coordinates in the logs. Without the original model plan and the guardrail’s rejection reason, it is impossible to determine whether the model understood the hazard or whether the execution gate simply blocked it.

    For a development team, a minimum viable baseline can include:

    • An instruction set organized by hazard category
    • Keep-out zones and speed and force limits
    • An execution adapter that never issues rejected actions
    • Comparative records for every trial

    Visual hazard classification and multi-turn clarification can be added afterward. Reversing this order causes teams to accumulate misleading success rates before a real execution gate exists.

    Conclusion

    Connecting a multimodal model to a robotic arm addresses the question, “Can the system plan the next step?” Separating planning from command issuance addresses the more important question, “Is this step safe to perform in the physical world?”

    Liquids, sharp tools, humans, and out-of-limit motion should be standard evaluation categories, not patches added after a failed demonstration. Runtime guardrails should use testable rules to control execution authority. The model can propose actions, people can confirm high-risk operations, and emergency stops must remain independent of the model.

    With this separation of capabilities and authority, zero-shot manipulation can move from demonstrations toward sustainable real-world deployment.