Skip to content
Robotics.world

Research

Multi-modal Interactive Control of Robotic Arm based on Offline Large Language Models

Most capable large language models (such as ChatGPT and Gemini) require continuous payment and a stable internet connection, which limits freedom and flexibility for robotic interaction applications.

The paper’s first page · arXiv:2608.08183
arXiv
2608.08183
Published
2026-08-08
Authors
Hanxiao Chen

In plain words

Most capable large language models (such as ChatGPT and Gemini) require continuous payment and a stable internet connection, which limits freedom and flexibility for robotic interaction applications. The paper's goal is to show that an open-source model deployed locally on a GPU server — ChatGLM2-6B — can serve as the reasoning and code-generation engine in a multi-modal robot control loop.

AI summary

Overview

  • Research area: Robotics — multi-modal (text + vision) language-conditioned control of robotic manipulators, combining offline large language models with visual perception and learned manipulation policies.
  • Technical level: Intermediate. Readers need some familiarity with LLM prompting/APIs, object detection models, and robot simulation, but the pipeline itself is modular and clearly described.
  • Scope: The paper proposes and evaluates "Socratic Models-ChatGLM", a modular pipeline that replaces online ChatGPT with a locally deployed ChatGLM2-6B model to generate robot code policies, tested on a UR5 arm in PyBullet across single-instruction multi-step tasks and continuous long-horizon multi-task sequences.

What This Paper Is About

Most capable large language models (such as ChatGPT and Gemini) require continuous payment and a stable internet connection, which limits freedom and flexibility for robotic interaction applications. The paper's goal is to show that an open-source model deployed locally on a GPU server — ChatGLM2-6B — can serve as the reasoning and code-generation engine in a multi-modal robot control loop. The resulting system, Socratic Models-ChatGLM, chains a vision model (ViLD), the offline LLM, and an execution policy (CLIPort) so that a user can type a natural-language instruction and have a UR5 arm carry it out in simulation.

Key Contributions

  1. An offline LLM deployment recipe for robotics: The author self-deploys the open-source ChatGLM2-6B model (6.2 billion parameters, GLM architecture, Chinese–English bilingual) on local GPU servers and exposes OpenAI-compatible API endpoints using the FastChat platform and the light Autogen framework, so the model can be called from standard OpenAI-style code without keys or internet access.
  2. The "Socratic Models-ChatGLM" algorithm: A modular multi-modal framework that replaces the online ChatGPT used in prior Socratic Models / Code as Policies work with the locally deployed ChatGLM2-6B, linking user text, ViLD-based visual scene description, LLM-generated code policy, and CLIPort execution.
  3. A multi-modal PyBullet testbed on a UR5 arm: Diverse interactive scenarios with varying colors and numbers of blocks and bowls, plus task-specific grasping code prompts (Fig. 2) used to steer code generation.
  4. Extensive task evaluation: Experiments on two task classes — single-instruction multi-step tasks and continuous combination multiple tasks (up to four consecutive missions) — reported with completion rates, performance scores, and execution times, with videos released at the author's GitHub link.

Main Findings

  • Single-instruction multi-step tasks largely succeed: Three tasks were tested in three different scenarios — (1) "Sort the blocks in the way you think it best fits", (2) "Move the blocks to the corners", (3) "Move the blocks in the middle".
  • Task A (sorting, 4 bowls and 4 blocks): Completed in 2 min 42 s with a 100% task completion rate and an 88% performance score; the score was reduced because ViLD made a few recognition errors on pink and yellow blocks.
  • Task B (move blocks to the corners): Completed in 3 min 16 s with a 100% completion rate and an 88% performance score; the deduction was for lack of flexibility — all blocks were placed uniformly in the upper-left corner rather than at different corners.
  • Task C (move blocks to the middle): Completed in 3 min 11 s with a 100% completion rate and an 85% performance score; the yellow block, already placed in the middle, was redundantly moved back to the left bowl during execution.
  • Reported aggregate for single-instruction tasks: An overall performance score of 85%–90% in the experiments section, described in the conclusions as up to 80%–90% with approximately 100% task completion rates.
  • Continuous multi-task sequences work: The system chained 2, 3, or even 4 distinct manipulation tasks in sequence, re-running ViLD for real-time visual reasoning between steps.
  • Continuous Task A (three missions): After picking the gray block onto the pink bowl, Task A-2 ("Move the yellow colored block to the bottom side") took 1 min 23 s with an 82% performance score, and Task A-3 ("Put all the blocks to the top right corner") achieved a 100% completion rate with an 86% performance score.
  • Continuous Task B (two color-matching missions): The first mission ("Group the pink objects together") produced accurate code policies; the second ("Match the blocks with similar-colored bowls") reached a 100% completion rate and a 92% performance score.
  • Continuous Tasks C and D: Task C combined moving blocks to the bottom side with sorting blocks into matching color bowls; Task D probed a four-step long-horizon sequence including moving the gray block left about 3 cm, placing the yellow block bottom down about 4 cm, stacking blocks on the pink bowl, and picking the cyan block to the upper-right corner. No numeric completion rate or score is reported for Tasks C and D.
  • Comparison claim on distance-based instructions: Tasks D-1 and D-2 are presented as evidence that the offline LLM achieves performance "relatively equal" to the online OpenAI GPT-4 model used in Code as Policies for moving a colored block a specified distance — this is stated qualitatively, not with a numeric benchmark comparison.
  • Unlimited, cost-free LLM calls: Because no online API key is purchased, the model can be called repeatedly without usage limits, which the author identifies as the key practical advantage enabling large numbers of experiments.

Methodology in Plain English

The pipeline works in four stages. First, the user types an instruction, for example "Pick the gray block and place it on the pink bowl", into a PyBullet scene containing colored blocks and bowls. Second, an open-vocabulary detector, ViLD, looks at the table and returns a text list of the objects it sees (the paper gives an example list containing 3 bowls and 4 blocks). Third, that object list, the user's instruction, and a set of canned robot grasping code prompts are sent to the locally deployed ChatGLM2-6B through its OpenAI-style API; the model writes a short code policy such as robot.pick_and_place("gray block", "pink bowl"). Because the model's maximum token budget is set to 50, it sometimes emits extra trailing text after the core code, which the paper notes as a behavior of the token limit. Fourth, the generated code is passed to CLIPort, which uses pick-and-place heatmaps to execute the plan on the UR5 arm. For continuous tasks, ViLD is re-run on the updated scene between each sub-task so the LLM sees the current state before generating the next piece of code. Performance scores are assigned based on three factors: the accuracy of the generated code policy, the total completion time and whether errors or redundant actions occurred, and how well the final scene matches the user's text request. The author notes that performance could be improved by optimizing the LLM code prompts (Fig. 2) or tuning code-generation parameters such as max_tokens and temperature.

Why This Matters

The work points to a practical route for embodied AI that avoids recurring API fees, network dependence, and vendor keys, while still using modern LLM reasoning to turn natural language into robot actions.

  • Laboratory and educational robotics: A research group or teaching lab can run the whole text-to-action stack on local consumer-grade hardware — the paper notes ChatGLM2-6B fits on consumer GPUs with a minimum of 6 GB video memory at INT4 quantization.
  • Warehouse and logistics sorting: The demonstrated behaviors — grouping objects by color, matching blocks to similarly colored bowls, moving items to corners or the middle — map onto bin-picking and sorting tasks.
  • Home or service robots in connectivity-poor or privacy-sensitive settings: Offline deployment keeps instructions and scene data on local servers rather than sending them to a cloud provider.
  • Rapid prototyping of task-level robot programming: Non-experts can express goals in natural language and receive executable code policies, lowering the barrier to reprogramming a manipulator.

Industry relevance centers on cost, data privacy, and deployability: an open-weight model with an OpenAI-compatible interface can drop into existing code ecosystems without rewriting them, which matters for organizations unwilling to depend on a paid external service.

Future Directions

  • Tightening the token budget: The fixed max_tokens of 50 caused ChatGLM2-6B to append spurious trailing text after valid code; better prompt design or parameter tuning (max_tokens, temperature) is suggested as a direct improvement.
  • Reducing reliance on visual detection accuracy: Several score deductions trace back to ViLD misidentifying pink and yellow blocks, so stronger or better-prompted visual reasoning is an open lever on overall performance.
  • Improving execution flexibility: In Task B the arm placed all blocks in one corner rather than distributing them across corners, and in Task C it performed redundant moves; making the CLIPort execution stage more responsive to the generated plan is an open problem.
  • Broader and harder evaluation: The paper reports scores on a modest set of PyBullet scenes with the UR5; scaling to more varied scenarios, other robot platforms, and physical hardware, with quantitative comparison against online GPT-4-based baselines, remains to be done.

Target Audience

Robotics researchers and graduate students working on language-conditioned manipulation and embodied AI; engineers who want a concrete, low-cost recipe for self-hosting an LLM behind an OpenAI-compatible API for robot control; and practitioners evaluating whether open-weight models such as ChatGLM2-6B are adequate substitutes for paid online models in task planning and code generation.

Authors’ abstract

Large Language Models (LLMs) have significantly revolutionized the modern society with numerous advanced interactions between humans and AI agents, whereas the usage of most large language models including ChatGPT are not friendly open-sourced and must require the users paying a lot for such AI services continuously. Therefore, deploying open-sourced large language models on local servers can be considered as an efficient approach to design and implement creative embodied AI…

The full abstract on arXiv
Read the original paper

Related papers