Robot-Use LLM Agents

Fine-Tuning and Data Collection

An LLM in the slow loop picks skills while a 30 Hz skill library handles fine motion, and every call is logged as data for fine-tuning open models.

Hardware unchanged · LLM-led · SO-101 dual arms + 3 USB cameras

RoboCurve’s current approach: the LLM looks at a 224×224 image, outputs one end-effector target per call, and the arm interpolates all the way there before the LLM looks again. Millimeter-level tasks such as capping a pen turn into the LLM trying again and again on a blurry image. This proposal redistributes the work: perception tools organize more information and hand it to the LLM; the LLM breaks down the task, chooses algorithms and judges success or failure; millimeter-level terminal guidance of the end effector goes to traditional algorithms running at 30 Hz, and to a small VLA when needed. Every decision and result is logged and used to fine-tune open-source models.

More information, same hardware

Full-resolution local zoom, a table of 3D object coordinates, annotated images, servo load. The hardware already produces all of this data; it just was not being passed to the LLM.

The LLM chooses algorithms, not millimeter adjustments

Every algorithm in the skill library has parameters, stop conditions and an execution report. The last 2 cm is handled by visual servoing.

Every step is training data

Calls, expectations and actual results are paired automatically. Three kinds of data are collected first: localization, correction and success/failure judgment.

  • Sensors (unchanged)
  • New in this proposal
  • Already in RoboCurve
  • Drivers / kinematics
  • LLM
  • Small VLA (optional)
  • Data

Figure 1: The LLM in the Middle, Two Loops at Different Speeds

The slow loop is the LLM: every 2–10 seconds it decides “which skill to use next, and on which object.” The fast loop is the skill executor: 30 times a second it reads tracking error and servo load, closes the loop on its own, and hands back a report when it finishes. The LLM never has to guess “2 mm to the left.”

① Sensors (unchanged) ② Perception toolbox (new) ③ LLM input (adapted) ④ LLM controller ⑤ Skill / algorithm library (new) ⑥ Execution and safety ⑦ Servos Top USB camera Native 640×480 or 1080p LLM currently gets 224×224 → RGB 30 fps Left-wrist USB camera 5–20 cm from objects Sharpest detail of all feeds → RGB 30 fps Right-wrist USB camera Same as left wrist → RGB 30 fps 12 STS3215 servos One sync_read, addr 56–63: Position, speed, load, voltage, temperature → 8 bytes/servo, ~1 ms Printed ArUco board Used once, for calibration Paper only, not new hardware → intrinsics, hand-eye pose Frame transforms (calibration) Pixel ↔ robot base frame Wrist camera pose = forward kinematics → any pixel → 3D ray Open-vocab detect + segment Grounding DINO / SAM 2 or Qwen-VL's built-in grounding → object boxes + masks 3D localization Triangulate top + wrist views Monocular Depth Anything fallback → object xyz, size, main axis Keypoint tracking 30 Hz SAM 2 / CoTracker Tracks points: pen tip, cap opening → pixel error (to fast loop) Proprioceptive signals Load rises + motion stalls = contact Gripper load = holding or not → contact / grasped / stuck Scene state table Per object: ID, xyz, orientation, last-seen time, confidence → nothing lost if image omitted Annotated image (Set-of-Mark) Object IDs + grid + projected gripper + the path about to execute → LLM refers to objects by ID On-demand zoom look() Full-resolution local crop Top or either wrist camera → high-res crop Execution report Skill status, residual error (mm), keyframes, load curve, expected vs actual → result of the previous skill Experience retrieval Past successes in similar situations + existing prior_learnings → few-shot examples LLM controller Qwen-VL / GLM-V / DeepSeek Opus / GPT (reference) Only does what it is good at: · Split tasks, set the order · Point at objects by ID or click · Pick skills, fill parameters · Write down expected outcome · Read reports, judge, retry skill("align", {   moving: "cap#2",   target: "pen#1.tip",   standoff_mm: 20 },  expect: "cap coaxial w/ tip") 2–10 s between calls move_to / move_joints Keeps RoboCurve's original free motion Large moves, return to home grasp(object, arm) Mask main axis sets gripper rotation Descend → close → confirm by load align(moving, target, standoff) Wrist-camera visual servoing 30 Hz until lateral < 1 mm, angle < 3° insert / press(axis, depth) Advance along axis, stop on overload Small spiral search when stuck VLA skill (optional) ACT / SmolVLA, 50–100 demos per skill Handles only 2–5 s contact motions check(condition) Load + zoomed image + gentle pull test Returns yes/no + evidence Tool call Skill executor 30 Hz Read fast signals → next step Stop: success / timeout / lost target / overload Inverse kinematics placo + so101 URDF EE target → 5 joint angles Guardrails + dry run Limits, max change per step Rehearse in MuJoCo first to check self-collision LeRobot sync_write 6 Goal_Position per arm 30 Hz Left arm SO-101 ID1 Base ID2 Shoulder ID3 Elbow ID4 Wrist pitch ID5 Wrist roll ID6 Gripper Right arm SO-101 ID1 Base ID2 Shoulder ID3 Elbow ID4 Wrist pitch ID5 Wrist roll ID6 Gripper Fast loop 30 Hz: keypoint error + load events go straight to the executor, bypassing the LLM Slow loop: skill ends → execution report (③) → next LLM decision, every 2–10 s Motor motion → camera images and servo readings change accordingly Data logger (saved automatically on every run, see Figure 4) Per episode: everything fed to the LLM, tool calls, expectations, skill reports · 30 Hz: joints, load, tracking error · three raw video streams · human scores and corrections Colors: pink = new in this proposal; teal = already in RoboCurve; blue = drivers and kinematics; purple = LLM; indigo = optional small VLA.
The cheapest improvement on the input side is to give the LLM full-resolution crops from the top and wrist cameras: the top camera at 640×480 covers a 60 cm wide tabletop at about 1 mm per pixel; downscaled to 224×224, that becomes about 2.7 mm. The wrist cameras are close to the objects, so a zoomed crop can show deviations below 1 mm. Servo load is read together with position in a single sync_read, adding almost no bus time.

The diagram is wide; on narrow screens, scroll it sideways.

Figure 2: Capping a Pen — Who Is in Control, and When

This example is the core of the design: finding the objects and grasping them are orchestrated by the LLM, while the final alignment and insertion are handed to wrist-camera visual servoing, with servo load used to judge whether the cap is seated. The LLM appears only at the start and end of each stage.

④⑤ 30 Hz servoing takes over the last 2 cm; the LLM only waits for the report ① Find objects ② Grasp cap (right arm) ③ Grasp pen (left arm) + meet ④ Align: terminal guidance ⑤ Insert ⑥ Verify LLM Slow loop, 2–10 s Skill executor Fast loop 30 Hz Perception Sensor signals Call 1 locate("pen", "cap") Annotated image: #1 = pen, #2 = cap Execute No motion Perception Detect + segment + triangulate → xyz and main axis of both objects Signals Top + both wrists RGB Call 2 grasp("cap#2", arm="right") expect: grasped, load > 20% Execute Approach → rotate wrist to cap axis → descend → close Perception Right-wrist camera tracks cap mask Signals Right gripper load 38% → grasped Call 3 grasp("pen#1", arm="left",       where="tail") then move_to the two-arm meeting pose Execute Same as ②; then both arms move to the preset meeting pose Perception Left-wrist camera tracks the pen Signals Left gripper load 41% → grasped Call 4 align("cap#2", "pen#1.tip",       standoff_mm=20) Hands the final stretch to the skill Execute Error → EE velocity → IK Stop: lateral < 1 mm and angle < 3° Perception Both wrist cameras track two keypoints: pen tip / cap opening Signals Keypoint error 12 px → 1 px Call 5 insert(axis="pen#1",        depth_mm=15) Execute Advance 0.5 mm per step along pen axis Stop: load > 60% or motion stalls Perception Track cap displacement relative to pen Signals Right arm load jumps 18% → 55% Judge Read report + zoomed image → done, or back to ④ to retry Execute Gentle 3 mm pull, check whether cap moves with pen Perception Zoomed crop of the cap–pen seam Signals Cap follows the pull → capped Call Report RoboCurve today (same pen-capping task) Each LLM call sends just one move_to endpoint; the arm interpolates all the way, then takes a photo Trial and error, millimeter by millimeter, on a 224×224 image, with a budget of 40 calls Tier 1 pen capping: 43% average progress, full successes are rare This proposal About 6–8 LLM calls: find, grasp, grasp, align, insert, verify The millimeter-scale final stretch goes to 30 Hz visual servoing + load stop conditions The LLM judges "what to do, did it work", no longer "2 mm to the left"
Per-stage durations and load values are illustrative. The thresholds (1 mm lateral, 3° angle, 60% load) have to be set after measuring on the actual pen and cap. If visual servoing keeps getting stuck in the ⑤ insertion stage, replace ④⑤ with a small VLA skill trained on 50–100 demonstrations; the way the LLM calls it stays the same.

Figure 3: The Lifecycle of a Skill Call

All skills follow the same contract: the LLM provides a name, parameters and one checkable expectation; the skill first checks preconditions and does a dry run, then executes in a 30 Hz loop until a stop condition ends it, and finally returns a structured report. A failure is also a useful return: the LLM uses it to change parameters or switch to another skill.

LLM issues a skill call skill(name, args,       expect, timeout_s) expect is a checkable prediction: "cap opening coaxial with pen tip" Precondition check Does the object ID exist? Is that arm's gripper empty? Is the target in the workspace? If not → return error at once Plan + dry run Generate approach path IK-solve every waypoint MuJoCo dry run for collisions Out of limits → return error Execution loop 30 Hz (no LLM involved) Perceive Control law Guardrail Command Stop checks every frame; keyframes + signals logged Stop conditions (first wins) Success: error within threshold Timeout: timeout_s used up Lost target: tracking confidence low Overload: likely stuck or collision Operator presses stop Execution report → LLM {status: "success",  error_mm: 0.8, angle_deg: 2.1,  duration_s: 3.4, peak_load: 0.55,  expect_met: true,  frames: [3 keyframes]} LLM reads the report: on success, next step; on failure, change parameters or skill, or fall back to manual move_to adjustment Check or dry run fails: arm does not move, returns at once with the reason This contract gives every LLM decision a checkable outcome record, which is exactly the data later used for fine-tuning.
The expect field implements the earlier-proposed “prediction vs. actual” idea: the prediction is written into the call and the actual result into the report, and the two are paired automatically. This helps the LLM notice deviations and also directly becomes the outcome-prediction data in Figure 4.

Skill Library, First Version

Start with the minimal set needed to cover the 6 RoboDojo-RC tasks plus pen capping. Each skill is an LLM-callable tool, added to the agent plugin in Inspect Robots (the toolset is generated in _tools.py and needs to be extended).

Skill Parameters from the LLM Internal algorithm Stop condition Returned to the LLM
locate List of object names Detection + segmentation + multi-view triangulation One-shot IDs, xyz, size, main axis, annotated image
look Camera + region or object ID Full-resolution crop One-shot High-resolution local image
grasp Object ID, arm, grasp location Mask main axis sets the rotation, IK approach, load confirmation Gripper load reaches target, or timeout Whether it is held, load, keyframes
place Object ID, target position or object Approach + descend, load detects contact Contact or target height reached Placement error (mm)
align Moving part, target point, standoff distance Wrist-camera image-based visual servoing (IBVS) Error within threshold / target lost / timeout Lateral error, angle error
insert Axis, depth, load limit Small steps along the axis, spiral search when stuck Depth reached / load limit exceeded / motion stalls Insertion depth, peak load
pour Container, target container, angle Wrist rotation trajectory, tracking the liquid level or granules Angle reached or timeout Estimated fraction poured
vla_skill Skill name + one-sentence instruction ACT / SmolVLA, 30 Hz action chunks VLA reports done / timeout / overload Keyframes, load curve
check Condition to verify Load + zoomed image + gentle pull or push test One-shot Yes / no + evidence
move_to End-effector pose (kept as is) Linear interpolation + IK Reached, or 10 s Steps executed, remaining deviation

Figure 4: What Data Helps Most

Open-source models (Qwen-VL, GLM-V) can be fine-tuned directly; closed models (Opus, GPT) cannot have their weights changed, but can use the same data for experience retrieval. How the priorities were set: the most common failures right now are “looking at the wrong place” and “thinking it succeeded when it did not,” so localization and success-judgment data come first; correction episodes specifically cover the mistakes the model itself makes, and carry more information than plain successful trajectories.

① Data sources ② Datasets (ranked by value) ③ How they are used ④ Evaluation S1 Full log of every run Automatic: inputs, calls, expectations, reports, video S2 Human scoring Scored from video with milestone rubric S3 Operator corrections Takes over on failure: one-line fix or teleoperates a stretch (leader arm) S4 Leader-arm teleop demos Only for contact skills that need a VLA S5 Auto scene-setup photos Arm places objects at random spots Known positions → no manual labeling D1 Spatial grounding Q&A ★★★ Where is the cap in this image? → box / point / xyz Source: S5 (+ objects clicked in S1) D2 Correction episodes ★★★ Failure state → correct next call Source: S3 D3 Success judgment ★★★ These images + load: did it succeed? What's missing? Source: S2 D4 Outcome prediction ★★ (state, call) → what actually changed Source: S1, fully automatic D5 Successful trajectories ★★ Whole trajectories, keeping only successful or high-scoring ones Source: S1 + S2 D6 Preference pairs ★ Two calls from the same state: which is better Source: S1 + S2, most costly D7 Skill demos (for VLA) 50–100 per contact skill Source: S4 LoRA supervised fine-tuning Qwen-VL / GLM-V open weights Uses D1–D5 DPO preference optimization After supervised fine-tuning Uses D6 Train VLA skills ACT / SmolVLA Uses D7, added to the skill library Usable without training Closed models (Opus / GPT): experience retrieval + prior_learnings Uses D2, D5 Held-out evaluation Held-out layouts: object placements never seen in training Held-out task: a task never trained on at all Paired comparison: same layouts, new model vs old model Deployment rule Replace the production model only if success rate and milestone score don't drop New model keeps running tasks → new logs and new failures → next round of data ★ More stars = do it first. Ranking rationale: localization errors and success misjudgments are the main failure sources right now, and these two kinds of data are the cheapest.
S5 automatic scene setup needs almost no human labor: the arm places objects at random known positions and then takes photos, and the position labels come directly from joint readings and forward kinematics. Before using Opus or GPT outputs to train other models, check each provider’s terms of service; some terms restrict using outputs to develop competing models.

Experiment Design: Twelve Weeks, Three Decision Gates

Each phase changes only one factor, all groups use the same set of object layouts (paired design), and raters scoring the videos do not know which group they are watching.

Week 1 Week 2 Week 3 Week 4 Week 5 Week 6 Week 7 Week 8 Week 9 Week 10 Week 11 Week 12 Phase 0 · Setup Dual-arm adapter, calibration, perception tools, logging Weeks 1–2 Phase 1 · Baseline Stock RoboCurve agent, 4 models × 4 tasks × 20 runs Weeks 3–4 Phase 2 · Information ablation Add one at a time: zoom / state table + annotated image / load / all Weeks 5–6 Phase 3 · Skill-library ablation LLM + skill library vs LLM only; VLA skill added for pen capping Weeks 7–8 Phase 4 · Data collection + fine-tuning Correction collection, train Qwen-VL, learning curve 0/100/300/1000 Weeks 9–11 Phase 5 · Final evaluation Held-out layouts + held-out task, 50 paired runs Week 12 Gate 1: every model calls tools reliably Gate 2: pick the input changes that work Gate 3: skill library gives a significant gain
Week counts are estimates. A model that fails Gate 1 (cannot reliably output tool calls) does not go on to the later phases.
Experimental group What changes relative to the previous group Question it answers
A Baseline RoboCurve agent as is: 224×224 image, move_to, no depth What level it reproduces to on this SO-101 setup
B +Zoom Add look(), which fetches full-resolution local crops Is resolution the bottleneck?
C +Structure Add the scene state table, annotated images, locate How much accuracy improves when the LLM uses IDs instead of coordinates
D +Proprioception Add load, contact and grasp events Can the LLM judge grasping and contact more accurately?
E +Skill library Add grasp / align / insert / check The gain from handing terminal guidance to algorithms
F +VLA skill Replace pen-capping stages ④⑤ with a small VLA Is a VLA better than visual servoing in the contact phase?
G Fine-tuned E’s setup + fine-tuned Qwen-VL The gain of the same model after training on the data, and the learning curve
Metric Description
Success rate, milestone score Reuses RoboCurve’s 0–1 rubric; the milestone score is continuous, so differences are easier to detect than with success rate
LLM call count, time, cost The skill library should clearly reduce the number of calls
Localization error (mm) locate results compared with ground-truth positions from automatic scene setup
Self-assessment accuracy When the LLM says done, how often it actually succeeded; when it says give_up, whether the attempt could have been saved
Guardrail interventions, overload events Safety

Sample size: 20 runs per cell can only detect very large differences. To detect an improvement in success rate from 40% to 60% with 80% power, an unpaired design needs about 100 runs per group. Therefore: in the screening phases, use 20 runs per cell and look at the milestone score; for key conclusions (the promising groups among B–G), run 50 paired trials and compare success and failure on the same layouts with McNemar’s test.

Preventing overfitting: fine-tuning data comes only from layout set A and the 4 training tasks; the final evaluation uses the unseen layout set B and 1 held-out task (for example, holding out pen capping).

Sources

This is a design proposal, not yet implemented or tested. Skill thresholds, durations and load values are all illustrative and must be calibrated on the actual SO-101. It builds on the data-path diagrams in From Sensor to Motor: RoboCurve’s existing mechanisms come from the inspect-robots source code; Grounding DINO, SAM 2, CoTracker, Depth Anything, placo, ACT and SmolVLA are all publicly available open-source tools.

Start a Project