Zero-Shot Code Control of Robot Arms with General-Purpose LLMs: Benchmark Insights and Deployment Guidance

    A recent independent benchmark shows that general-purpose LLMs can directly control a six-axis robot arm through zero-shot code generation, with the strongest model scoring 79 out of 100 and completing 6 of 8 physical tasks, while a relatively weaker model in the same series scored 78. This article examines the benchmark setup, why code generation has become a mainstream paradigm for LLM-driven robots, the capability boundaries revealed by long-horizon planning, force control, spatial reasoning, and perception limits, and practical deployment guidance covering hardware abstraction, sandboxing, retry and reflection, and human fallback.

    1. Evaluation Background: General Models Are Crossing the Virtual-Physical Boundary

    For a long time, improvements in robot manipulation have mainly relied on two paths: rule-based programming built on expert systems, and reinforcement learning or imitation learning based on large amounts of demonstration data. The former has poor generalization ability, while the latter has high data acquisition costs. “General-purpose LLMs directly driving robots” offers a third path: the model understands task goals in natural language, uses code generation capabilities to output control commands, and acts directly on real hardware.

    The latest independent evaluation results support this trend. In a robot manipulation benchmark, the strongest general-purpose LLM scored 79 out of 100 and completed 6 of 8 physical tasks. More notably, a relatively weaker model in the same series also scored 78. The score gap is very small, suggesting that at the current level of task complexity, direct-drive capability may no longer be a scarce capability available only to top-tier models, but rather a natural spillover of the code reasoning capabilities of general models.

    2. Benchmark Setup: What Zero-Shot and No Task-Specific Training Mean

    Two aspects of this benchmark setup deserve particular attention:

    1. Zero-shot setting

    The model had not seen any examples related to these tasks before testing, and task descriptions were provided only in natural language at inference time. This rules out leaderboard-style targeted optimization and tests the model’s general reasoning and planning capabilities. In other words, the model must rely on world knowledge, spatial understanding, and programming design capabilities accumulated during pretraining to “figure out” a solution on the spot.

    2. No task-specific training

    The model is not allowed to fine-tune or adapt specifically for robot control scenarios. This means the control code output by the model must be based on general programming paradigms, such as calling standardized motion control interfaces, coordinate transformations, and grasp planning logic.

    3. Control method: code drives a six-axis robot arm

    The model’s output is not an end-to-end action sequence, such as a stream of joint angles, but structured program code. For example, a typical control logic may look like this:

    1. # Illustrative pseudocode: grasp logic generated by the model
    2. def solve(task):
    3. pose = perceive(task.target) # Get the target object pose
    4. grasp = plan_grasp(pose) # Plan the grasp pose
    5. move_to(grasp.approach, speed=0.3) # Move to the approach point
    6. close_gripper(force=20) # Close the gripper
    7. move_to(task.drop_zone) # Move to the drop zone
    8. open_gripper() # Release the object

    The advantages of this approach are that the code is readable, auditable, and can be manually corrected; it also decouples high-level decision-making from low-level control. The model only needs to focus on task semantics, while kinematics solving, collision detection, and other functions are handled by the low-level control stack.

    3. Why “Writing Code” Has Become a Mainstream Paradigm for LLM-Driven Robots

    1. Code is one of the most mature capabilities of LLMs

    After training on massive code corpora, LLMs have strong program synthesis and debugging capabilities. Turning robot manipulation problems into “programming problems” connects robot control to the model’s strongest capability track.

    2. Programmatic output is naturally composable

    Complex tasks can be decomposed into combinations of function calls, loops, and conditional branches. For example, for a multi-step task such as “sort red blocks by size and then stack them,” expressing it in code is far more reliable than learning an end-to-end policy.

    3. Errors can be localized and fixed

    When an end-to-end policy fails, the root cause is often hard to attribute; code failures usually come with explicit exception information. The model can reflect on the error and retry, forming a generate-execute-observe-correct loop.

    4. Capability Boundaries: What Completing 6 of 8 Tasks Shows

    The near-80% task completion rate shows both progress and boundaries. Uncompleted tasks usually cluster around the following difficulties:

    • Long-horizon planning: after the number of steps exceeds a certain level, the model’s planning chain is prone to omissions or state-tracking errors;
    • Fine force control: operations involving flexible objects, peg-in-hole assembly, and other tasks that require closed-loop force feedback are difficult for purely open-loop code to cover;
    • Spatial reasoning errors: the model’s understanding of 3D spatial relationships still has bias, which may lead to imprecise grasp poses;
    • Insufficient use of perception information: when visual input is limited, the model may generate code based on incorrect assumptions.

    This suggests to engineering teams that LLM direct drive is suitable as a “task planning and scheduling layer,” while high-precision, high-reliability low-level execution still requires traditional control and specialized perception modules, forming a layered architecture.

    5. Engineering Deployment Recommendations: How to Build an LLM-Driven Robot System

    Based on current practice, the following points can be referenced for deploying such a system:

    1. Design a clear hardware abstraction layer

    Define unified API interfaces for robot arms, grippers, and sensors, such as move_to, get_pose, and close_gripper, so that the model faces stable, documented interface specifications and the error rate of generated code is reduced.

    2. Establish sandbox and safety constraints

    Model-generated code should run in a restricted execution environment, with limits on speed, torque, and workspace boundaries, plus an emergency stop mechanism to prevent abnormal commands from damaging equipment or causing safety risks.

    3. Introduce retry and reflection mechanisms

    Feed execution results back to the model, including success/failure, exception stacks, and camera frame descriptions, allowing it to analyze failure causes and regenerate a plan. This can usually significantly improve task success rates.

    4. Retain a human fallback channel

    In critical production steps, model output should go through rule validation or human confirmation before execution, achieving the double insurance of “AI planning + rule gatekeeping.”

    6. Conclusion and Outlook

    The evaluation results show that the ability of general-purpose LLMs to directly drive real robot arms in a zero-shot manner is maturing rapidly, and this capability is moving from flagship models to lighter models, meaning deployment costs will continue to decrease. For developers, now is an appropriate time to build a layered “LLM + robot control” architecture and refine the hardware abstraction layer and safety mechanisms. In the future, with further integration of multimodal perception, long-horizon planning, and code generation, “commanding robots in natural language to do work” will move from demos to large-scale production applications.