When Large Models Turn the Wrong Reagent: Engineering Challenges in Physical Closed-Loop Control

    As large models move from digital tasks into robots, cameras, and laboratory equipment, the assumptions that work in software environments no longer hold. This article explains the gap between language instructions and physical execution, outlines the architecture of a reliable closed-loop interaction system, analyzes common failure modes, and presents practical principles for safety, recovery, and evaluation.

    When large models move beyond purely digital tasks and begin interacting with robotic arms, cameras, laboratory equipment, and other physical systems, many assumptions that hold in the world of text and code suddenly break down. In a digital environment, code can be copied, state can be reset, and errors can be rolled back. A model can often improve rapidly through repeated trial and error. In the physical world, however, a single grasping error, excessive torque, or missed observation window can permanently change the state of the environment. A robotic arm twisting the wrong reagent bottle is not an absurd edge case. It is a representative example of the engineering gap between language instructions and physical execution.

    This article does not focus on any specific model or product. Instead, it examines the problem from a general technical perspective: Why is success in the digital world difficult to transfer directly to the physical world? How should closed-loop interaction systems be designed when large models control real equipment? How can developers identify failure modes, establish safety constraints, build evaluation systems, and assign large models an appropriate role?

    1. Key Differences Between the Physical World and Digital Sandboxes

    1. Reversibility is different. In digital tasks, a failed run can usually be executed again, while the environment can be restored through a snapshot, rollback, or reconstruction. In a physical task, the robotic arm has already moved, the bottle cap has already received force, and the reagent may already have spilled. Rerunning the program does not automatically undo these outcomes. The system must assume that actions have side effects and provide compensation, recovery, and safe-shutdown strategies.

    2. Time moves differently. A digital environment can be paused, replayed, or made to wait. Physical time moves in one direction. If a camera misses an observation window, the target may become occluded. If the robotic arm waits too long, a flexible object may deform. The model must reason not only over the current textual context, but also about action sequences, feedback delays, and deadlines.

    3. State continuously drifts. Digital environments generally maintain state explicitly. In the physical world, state can change without being noticed. Lighting may change, objects may slide, grippers may wear, tables may vibrate, and people may move nearby. The system therefore needs continuous sensing and state estimation rather than parsing the task once and executing it blindly.

    4. Observations contain noise and occlusion. Camera images, force sensors, and position feedback can all be noisy. The bottle cap position seen by the model is an estimate, not absolute truth. Without uncertainty modeling, the system may treat a low-confidence observation as a fact and generate an incorrect action as a result.

    5. Actuators are non-ideal. Robotic arms have positioning errors, joint backlash, torque limits, and response delays. Gripping force depends on the contact surface and material. Adjusting a camera angle can also introduce new occlusions. A language model may output an instruction such as “rotate the bottle cap,” but a lower-level controller must translate that instruction into appropriate force, speed, contact, and stopping conditions.

    2. The Core Tension: Tool Access Is Not Manipulation Ability

    Giving a person who has never cooked a complete set of kitchen tools means that they technically have access to the tools. It does not mean they know how to cook. The real challenge is not accessing the tools, but continuously judging whether the food is overheating based on smell, smoke, sound, and the state of the pan, then adjusting the process in time.

    The same applies to large models controlling physical equipment. A model may generate action descriptions such as “grasp,” “rotate,” or “move,” and it may call device APIs. But the ability to call a tool is only tool access. Operational ability means using feedback to determine whether an action worked, when to stop, and how to recover.

    Physical tasks therefore require a closed loop: the model issues an instruction, the device executes it and returns observations and feedback, and the model updates its understanding of the environment before selecting the next action. This loop is not an optional feature. It is part of the capability itself.

    Without a closed loop, a large model is merely an open-loop instruction generator. In the physical world, errors in an open-loop system accumulate. The result may be the wrong reagent being opened, an empty grasp, a collision with equipment, or damage to a sample.

    3. Engineering Components of a Closed-Loop Interaction System

    A reliable physical interaction system generally needs a layered architecture rather than delegating every decision to the large model.

    1. Perception and state estimation layer. This layer collects images, position data, force measurements, temperature readings, and other signals. It estimates task-relevant state, such as object pose, gripper position, contact state, and task progress. It should also provide confidence scores and anomaly flags for higher-level decision-making.

    2. Task decomposition and constraint layer. This layer converts a natural-language objective into executable steps while maintaining hard constraints, including restricted areas, maximum torque, maximum speed, and actions that require human confirmation. Constraints should be enforced by rules or controllers whenever possible. They should not exist only in a prompt.

    3. Action generation and low-level control layer. Large models are well suited to high-level planning and anomaly interpretation. Low-level actions should be handled by established controllers. A high-level instruction such as “approach the bottle cap and apply moderate torque” must be converted by the low-level system into a trajectory, speed, and force-control parameters.

    4. Execution monitoring and anomaly detection layer. This layer compares execution results with expectations. It checks whether the position is correct, whether force is within limits, whether the object has slipped, and whether the observation is occluded. Anomaly detection must address both obvious failures and hidden failures in which the action appears successful but the underlying state is incorrect.

    5. Feedback correction and recovery layer. When an anomaly occurs, the system should be able to retry, fine-tune the action, switch strategies, request human intervention, or stop safely. Recovery strategies should be defined before execution rather than improvised by the model after a failure.

    6. Safety layer and human-in-the-loop controls. High-risk laboratory equipment, valuable samples, and irreversible actions may require human confirmation. The safety layer should be independent of the large model and provide emergency stops, limit enforcement, permission checks, and audit records.

    7. Data logging and replay-based evaluation layer. The system should record instructions, observations, actions, anomalies, interventions, and final outcomes to support replay and failure analysis. In a cloud-edge architecture, object storage can be used for trajectory data, while logging and monitoring services can provide observability. The core requirements, however, remain closed-loop control and safety constraints.

    4. Typical Failure Modes

    Coordinate and scale mismatches. The model may understand “move forward” without correctly mapping pixel coordinates, camera coordinates, and robot coordinates. The resulting action may have the wrong direction or magnitude.

    Timing mismatches. The model may plan according to the order of sentences while ignoring execution delays and observation windows. For example, waiting before grasping may cause the system to miss the period when the object is stable.

    Delayed or missing feedback. If the returned observation does not reflect the current state but the model reasons as though it does, the resulting correction may be wrong.

    Incorrect state estimation. A camera may suggest that the bottle cap is aligned, while the force sensor indicates that no contact has been established. Relying on a single modality can lead to a false success judgment.

    Unclear tool boundaries. The model may know that it can call a device without knowing its torque limits, workspace, or prohibited actions. This can result in operations outside the safe range.

    Missing recovery strategies. After a failed grasp, the model may repeat the same action instead of returning to a safe position, observing the scene again, or selecting a different grasp point.

    5. Design Principles and Engineering Practices

    Make state observable. Define verifiable observation conditions for each critical step, such as allowable pose error, contact-force range, and target-detection confidence.

    Make actions verifiable. Check the result after every action instead of executing many actions before inspecting the final outcome. Small, validated steps are safer than large, speculative ones.

    Hard-code constraints. Safety boundaries, speed limits, force limits, and restricted areas should be enforced by controllers or an independent safety layer. They should not depend on the language model voluntarily following instructions.

    Use layered control. The large model should handle goal understanding, task decomposition, and anomaly interpretation. Low-level controllers should handle trajectories, force control, and real-time feedback loops.

    Be cautious when transferring from simulation to reality. Simulation can be used to generate training data and test strategies, but developers must account for perception noise, execution errors, and material differences. A successful simulation rate should not be treated as equivalent to physical-world success.

    Evaluate more than final success rate. Evaluation should also cover step-level success, accumulated error, recovery success, safety-violation rate, human intervention rate, execution time, and repeatability. Failure-injection tests can measure system behavior under occlusion, slippage, latency, and sensor faults.

    6. Pseudocode: A Verifiable Closed-Loop Execution Cycle

    1. task = parse_user_goal()
    2. state = perceive_and_estimate_state()
    3. while not task_complete(task, state):
    4. candidate_action = model_plan(task, state, history)
    5. safe_action = filter_by_safety_constraints(candidate_action, state)
    6. if safe_action is rejected:
    7. request_human_confirmation_or_safe_shutdown()
    8. break
    9. execution_result = execute(safe_action)
    10. new_state = perceive_and_estimate_state()
    11. anomaly = detect_anomaly(execution_result, new_state, expected_state)
    12. if anomaly:
    13. recovery_action = select_recovery_strategy(anomaly, state, history)
    14. execute(recovery_action)
    15. if risk_exceeds_threshold(anomaly, new_state):
    16. request_human_intervention()
    17. record(safe_action, execution_result, new_state, anomaly)
    18. state = new_state

    This pseudocode highlights several important points: model planning is only one stage in the loop; safety filtering exists independently; the system senses and verifies the outcome after every action; and anomalies trigger recovery or human intervention rather than blind repetition.

    7. Conclusion

    The real challenge of bringing large models into the physical world is not making them produce an action description. It is enabling them to continuously determine whether an action worked in an environment with noise, latency, and irreversible consequences, and to exit or recover safely when something goes wrong.

    The unlimited-retry assumptions of digital environments cannot be applied directly to robotic arms and laboratory equipment. Developers should place large models at the high-level planning layer of a closed-loop system, use low-level controllers to guarantee real-time behavior, use an independent safety layer to enforce boundaries, and use observability and evaluation systems to make behavior verifiable.

    Only when tool access becomes feedback-driven operational ability can physical-world agents move from demonstrations toward reliable engineering.