Code as Tactile Supervisor: Grounding Robot Agents with Demonstration Priors and Tactile Supervision

Zhuoran Li, Yizhe Wu, Rui Li, Hao Ma, Yi MaarXiv 2026

TL;DR

Opening a child-resistant medicine bottle requires feeling the subtle "click" of engagement—something cameras can't see and cloud-based AI models react to far too slowly. Code as Tactile Supervisor (CaTS) bridges this gap by watching a single human video demonstration and compiling a fast, locally executable robot program complete with custom "tactile reflexes." It gives robots the physical intuition to handle delicate, contact-rich tasks in the real world without needing costly trial-and-error or sluggish foundation-model queries in the control loop.

What Problem Does This Paper Address?

Foundation models have gotten remarkably good at writing "Code-as-Policy"—generating Python scripts that string together robot perception and motion APIs. In simulation, this works like magic because the simulator hands you exact physical states (like friction or object positions) on a silver platter, and failed attempts cost nothing to reset.

Move that robot into the physical world, however, and the magic breaks. Cameras alone cannot see internal forces, subtle slips, or hidden mechanical states—like whether a USB plug is slightly crooked or if you’ve grabbed two stacked paper cups instead of one. Robots need a sense of touch. Yet, feeding raw tactile sensor data directly into a large Vision-Language Model (VLM) at every timestep is a recipe for disaster: raw tactile images are hard for models to interpret without context, and waiting seconds for an API call means the robot has already crushed the cup or dropped the bottle before deciding what to do next.

Methods

CaTS solves this by separating heavy cognitive planning from fast physical execution. Instead of putting a massive foundation model inside the real-time feedback loop, CaTS uses the model (specifically GPT-5.6-sol) to write the feedback loop ahead of time.

Figure 1. Overview of CaTS: From one demonstration to a local program with tactile supervision. CaTS adapts a single human RGB-D demonstration into a robot stage plan and uses an agent to synthesize stage-specific supervisors from the demonstration context and tactile-pattern priors, compiling both into a local executable program. In child-resistant cap opening, mechanism priors expand the demonstrated twist into Press & Twist and Lift & Twist; Rotation Guard detects cap engagement and Release Guard verifies release, allowing live tactile feedback to govern these stages and the transition to the final lift.

The pipeline unfolds in three main pieces:

  1. Demo-to-Robot Plan Adaptation: Watching a single RGB-D video of a human performing the task, standard vision trackers extract hand and object trajectories. The agent breaks the video into stages (e.g., Approach, Twist, Lift) and adapts human grasps to the robot’s gripper. Crucially, it uses internal physical priors to expand actions—recognizing, for instance, that a human’s fluid twist on a safety cap must be split into Press & Twist and Lift & Twist for a robot.
  2. A Three-Layer Tactile Hierarchy: Rather than forcing the AI to write raw pixel-processing code, CaTS introduces a middle abstraction layer.
  3. L1 (Raw Data): Sensor-specific RGB images and marker arrays.
  4. L2 (Physics-Grounded Patterns): A unified encoder translates L1 data into clean physical quantities like normal force, shear, torque, contact area, and marker flow.
  5. L3 (Stage Supervisors): During planning, the agent selects and combines L2 concepts to write stage-specific "guards" (like a Rotation Guard to detect cap engagement).
  6. Compile Once, Run Locally: The stage plan, bounded adjustment motions, and L3 tactile supervisors are compiled into a standalone local program. At runtime, the robot reacts in closed-loop at high speed with zero further foundation-model calls.
Figure 2. CaTS pipeline. (A) Demo-to-robot plan adaptation converts a single human RGB-D demonstration into a robot stage plan for the current scene and robot. (B) The three-layer tactile hierarchy organizes raw tactile observations, physics-grounded tactile patterns, and stage-specific tactile supervision, linking agent-driven supervisor synthesis during planning with local tactile evaluation during execution. (C) The stage plan and synthesized supervisors are compiled into a local program that governs bounded responses and stage transitions without further foundation-model calls.

Datasets

Because CaTS is a zero-shot synthesis framework (requiring just one human demonstration per task rather than training datasets), the authors evaluate it across simulated benchmarks and physical hardware:

  • Simulation: 20 contact-rich tasks—8 single-arm tasks from the UniVTAC benchmark (e.g., Insert HDMI, Pull Key) and 12 single-arm and bimanual tasks from NeoSim (e.g., Grasp Chip, Cup Handover, Stack Plates).
  • Real World: 6 challenging tasks on a Franka Research 3 arm with visuotactile fingertips, including child-resistant cap opening, extracting a single top cup/bowl from a stack, USB replugging, pipette liquid transfer, and transparent test-tube insertion.
Figure 3. Six real-robot tasks and their human demonstrations.

Key Insights and Ideas

  • Physics abstractions beat raw sensor access: Baseline coding agents given full access to raw tactile data failed completely (0% success) on tasks like cap opening and cup extraction. Giving the agent clean, physics-grounded primitives (shear, slip, torque) is what makes automated supervisor synthesis actually work.
  • Write-once compilation cures the latency bottleneck: Invoking an online foundation model at every tactile step racks up massive delays. Compiling supervision into local code pays a small upfront generation cost that breaks even after just 17 to 25 feedback steps, becoming drastically faster thereafter.
  • Hardware-agnostic touch: Because L3 supervisors only care about L2 physical concepts, swapping tactile hardware (e.g., moving from GelSight Mini to GF225 or Xense WS sensors) requires changing only the low-level L1-to-L2 adapter. The high-level robot program transfers without touching a single line of task logic.

Key Results

  • Real-Robot Dominance: CaTS achieved a 66.7% average success rate across the six real-world tasks, more than tripling the coding-agent baselines (21.7% with demonstrations, 18.3% without). On safety-cap opening, cup extraction, and transparent tube insertion, CaTS scored 80%, 50%, and 60%, whereas baselines scored 0% across the board.
  • Simulation Benchmarks: Across all 20 simulated tasks, CaTS averaged 61.8% success (vs. 43.1% and 30.6% for agentic baselines), also outperforming reference imitation-learning and VLA policies on UniVTAC (63.3% vs. 48.0% best reference) and NeoSim (60.7% vs. 45.8% for $\pi_{0.5}$).
  • Seamless Sensor Transfer: When transferring a can-lifting program across three distinct tactile sensors, slip-onset indentation varied by less than 0.05 mm, maintaining a 100% overload recovery rate on every sensor.
  • Value of Demos: Removing demonstration priors dropped stage completion success in simulation from 80.0% down to 40.0%, proving that human motion context is vital for knowing how to react to a tactile cue.

Limitations and Future Work

Not discussed in the paper. (Note: The provided manuscript text concludes at Section 5 without a dedicated limitations or future work section).

Summary updated

BibTeX
@misc{li2026code,
  author = {Zhuoran Li and Yizhe Wu and Rui Li and Hao Ma and Yi Ma},
  title = {{Code as Tactile Supervisor: Grounding Robot Agents with Demonstration Priors and Tactile Supervision}},
  year = {2026},
  eprint = {2611.38632},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.38632},
}
Figure