The Limits of General-Purpose LLMs for Robot Control: Engineering Practices

    This article examines why general-purpose large language models do not automatically deliver general-purpose robot manipulation, and what to do instead. It explains where a model's manipulation ability actually comes from, how to use forward and inverse kinematics with Denavit-Hartenberg parameter perturbations to detect overfitting to a single robot body, and why latency, cost, and availability make cloud LLMs unsuitable for real-time control loops. It then presents a layered architecture in which the cloud handles slow deliberation while local components handle fast reflexes and safety, along with a selection and evaluation checklist and the generic cloud capabilities needed to support it.

    1. Background: “Able to Operate a Robot” Is Not “Able to Operate Robots in General”

    A common argument in the industry goes like this: since general-purpose LLMs iterate quickly, robot control can simply be handed to them, with no need to keep investing in task-specific models and a motion control stack. This judgment mistakes “works in a demo” for “works in engineering,” and it overlooks two key facts. First, the manipulation ability a model displays usually comes from the data distribution of one specific robot body. Second, real-time control imposes latency, determinism, and cost requirements that are on a completely different scale from text conversation.

    The first concept to clarify is where the ability comes from. Robot manipulation policies do not grow naturally out of plain text corpora. For a model to output joint angles, end-effector poses, or grasping actions, the training data must contain paired samples of body structure, kinematic constraints, sensor observations, and action labels. In other words, this ability is taught by data; it is not a by-product of language understanding.

    2. How to Verify Whether a Model Has Merely Memorized One Robot

    Whether a policy truly generalizes cannot be judged by success rate alone; what matters is how strongly it depends on a specific body. Forward and inverse kinematics make a cheap and highly discriminative probe.

    2.1 Using Forward and Inverse Kinematics as a Checkup

    Given a set of joint angles, forward kinematics (FK) yields the end-effector pose; given a target pose, inverse kinematics (IK) yields the joint angles. The standard approach describes the relative pose of adjacent links with Denavit-Hartenberg (DH) parameters, typically modeling each joint with 4 parameters.

    A sketch of the probe design follows (pseudocode, expressing the evaluation idea only):

    1. # 1) Build a set of joint angles and have the model predict the end position directly
    2. q = [0.180, 0.029, 0.137, -2.128, -0.156, 1.973, 0.453]
    3. prompt = f"Given joint angles {q}, output the end coordinates [x, y, z]"
    4. # 2) Compare against the analytic solution and collect the error distribution
    5. pred = model(prompt)
    6. err = norm(pred - analytic_fk(q, dh_params))
    7. # 3) The key step: perturb the DH parameters and repeat the test
    8. dh_perturbed = perturb(dh_params, scale=0.05)
    9. err2 = norm(model(prompt) - analytic_fk(q, dh_perturbed))

    If the model’s output still closely matches the analytic solution of one particular body from before the change, even after the DH parameters have been modified, then what it has memorized is that robot’s kinematics rather than a general spatial transformation. This kind of “overfitting to a specific body” is easy to spot when comparing multiple models: the error of most models rises with the perturbation, while a few models do not move at all, and those few are exactly the risk.

    2.2 Engineering Consequences of Overfitting

    • Fails as soon as the body changes: change the link lengths, joint limits, or tool offset and the output is immediately unusable.
    • Hard to adapt on demand: new tasks cannot be accommodated by editing parameters or constraints; the only option is to collect data and retrain.
    • Inflated evaluation numbers: success rates look good on bodies inside the training distribution and fall off a cliff in new settings.

    3. Latency, Cost, and Availability: Three Hard Gates for a Real-Time Loop

    Robot control is a millisecond-level closed loop, while a cloud LLM is a second-level round trip; the two time scales conflict by nature.

    3.1 Break the Latency Budget Apart

    The total latency of one control cycle consists of observation capture and encoding, network round trip, queuing and inference, and action dispatch and execution. In public evaluations, when a general-purpose LLM is used directly as the policy network, a single inference can reach the order of tens of seconds, with inference taking more than ninety percent of the total runtime; a small task-specific policy typically infers in tens of milliseconds, and a medium-sized policy in hundreds of milliseconds. The gap is not something that “a bit of optimization” can close.

    1. Control cycle budget (example, 1kHz control loop => 1 ms/cycle)
    2. Observation encoding: ~1-3 ms (local)
    3. Policy inference: ? (small local model feasible, cloud LLM not feasible)
    4. Network round trip: 10-100 ms (worse across regions)
    5. Safety check and fallback: <1 ms (must be local)

    3.2 Cost Scales with the Number of Orchestration Layers

    With an orchestration structure of “LLM planning plus small-model execution,” token consumption is significantly higher than with a single policy: repeated planning inference, retries after failure, and accumulating context all push up the cost per episode. In public data, the token count for a single successful episode can jump from the hundreds of thousands to the tens of millions. Cost must be aligned with task value, or scaling is out of reach.

    3.3 Availability Cannot Depend on the Public Internet

    • Network jitter causes control interruptions, so a local fallback policy and safe-stop logic are required.
    • When the cloud service fluctuates, the robot should have a local degraded mode (hold, return to a safe pose, or hand over to a local policy).
    • Critical safety checks (joint limits, torque limits, collision detection) must run locally and cannot wait for a remote response.

    The more robust engineering approach is to layer the capabilities rather than let one general-purpose model handle everything end to end.

    1. Task layer (cloud, seconds): task decomposition, skill selection, and parameter generation, emitting a structured skill invocation intent.
    2. Skill layer (edge or local, milliseconds): grasping, insertion, and movement implemented by task-specific policies or classical control, guaranteeing real-time behavior and determinism.
    3. Safety layer (local, microseconds to milliseconds): limits, torque, collision, and emergency stop, existing independently of the upper-layer model.

    Layers communicate through explicit data contracts, for example:

    1. {
    2. "skill": "pick",
    3. "target_pose": [0.42, -0.11, 0.08],
    4. "gripper": {"width": 0.06, "force": 35},
    5. "constraints": {"max_joint_vel": 1.2, "timeout_ms": 800},
    6. "fallback": "hold_and_retry"
    7. }

    The payoff is that the cloud model’s semantic generalization is used where it is strong, real-time behavior and safety are backstopped by local components, and cost stays under control (the LLM is called only when planning is needed).

    5. Selection and Evaluation Checklist

    • Body-independence test: perturb the kinematic parameters and observe whether the output changes accordingly.
    • Latency distribution, not the mean: watch P95/P99, because a control loop cares about the worst case.
    • A consistent cost measure: count tokens and cost per successful episode, not per single call.
    • Degradation drills: cut the network deliberately and verify local fallback and safe stop.
    • Data loop: feed failure cases back as training data, forming a cycle of evaluate, collect, retrain.

    6. Generic Cloud Capabilities That Support This Work

    Hosting the architecture above on the cloud typically requires only generic capability categories: a container platform to run inference services and simulation environments, object storage for datasets and model artifacts, a message queue to decouple the planning layer from the execution layer, and logging plus monitoring and alerting to observe latency and failure rates. Baidu AI Cloud offers these generic capabilities for on-demand composition, helping teams assemble “slow thinking” and “fast reflexes” reliably.

    7. Conclusion

    General-purpose LLMs do not automatically bring general-purpose robot manipulation: their manipulation performance depends heavily on data from a specific body, and both transferability and tunability are limited; meanwhile, second-level inference and cross-region network round trips mean they cannot enter a real-time control loop directly. The more realistic path is a layered architecture, with the cloud handling planning and semantic generalization, the local side handling real-time control and safety fallback, and continuous evaluation with three measures: perturbation tests, latency percentiles, and per-episode cost.