Under review

DexStitch: Learning and Composing Dexterous Skills from Human Videos via Contact-Aware Robotic Inpainting

Author list withheld during review

Anonymous submission · 2026

DexStitch system overview: long-horizon human videos are cut into skills, converted into a synthetic robotic dataset, and stitched back into a skill sequence.
System overview. DexStitch cuts human videos into skills and actions, converts them into a dexterous robot dataset, and stitches the learned skills back together in a sequential order.

Abstract

A long-horizon manipulation task consists of primitive skills and the transitions connecting them. Learning skills that can be executed in sequence requires supervision for both, which is costly to collect on a robot. Human videos offer a scalable source of demonstrations, but transferring them to robots requires extracting robot-compatible observations and actions together with their skill structure. We present DexStitch, a framework that cuts long-horizon human videos into skills and transitions, converts them into aligned robot observation–action–skill data, and stitches the learned skills into a requested sequence. A skill classifier first segments the videos into manipulation skills and transitions. DexStitch then converts the human demonstrations into robot observations and actions while retaining their corresponding skill labels. During conversion, per-finger human–object contacts guide dexterous hand retargeting and robotic inpainting, preserving contact geometry and finger–object occlusion ordering. To stitch the learned skills into a sequence, a shared skill-conditioned policy is pretrained on the resulting synthetic data and finetuned on a mixture of synthetic data and a small set of single-skill teleoperation episodes. Conditioning on the current and next skills guides each transition toward the following skill, while predicted skill progression enables closed-loop switching. On a held-out session, the classifier agrees with manual annotations on 92.4% of frames. Across four household skills, DexStitch achieves 80.0% single-skill success and 77.5% sequence success.

Skill and action supervision from human video

Long-horizon human videos become robot-domain observation–action pairs that keep their frame-level skill annotations, supervising both the manipulation skills and the transitions between them — from RGB video alone, with no object meshes and no simulator.

Contact-aware human-to-robot conversion

Per-finger human–object contact is a shared cue for both retargeting and visual compositing, preserving multi-finger grasp geometry while resolving finger–object occlusions during robot rendering.

Sequential composition of reusable skills

The converted data yields an explicit, reusable repertoire of robot-executable skills, transitions included. The policy conditions on the current and next skills for target-aware transitions, and predicts skill completion for closed-loop composition.

Video

Overview video static/videos/dexstitch.mp4
Method and rollouts. Placeholder — add the narrated overview and robot rollouts here.

Contact-Aware Human–Robot Data Conversion

DexStitch converts egocentric human video into robot-domain observation–action pairs in three stages: estimating hand motion and contact, retargeting that motion to the robot, and rendering the robot into the frames in place of the human. Because conversion is frame-wise, every converted frame keeps the skill label of its source frame.

Conversion pipeline: hand pose, contact region, and hand mask removal feed a contact-aware retargeted pose and a layered composition that yields robot data.
Conversion pipeline. Given an egocentric human demonstration, DexStitch estimates the hand pose and hand–object contact while removing the human embodiment from the input frames. The contact information then guides robot retargeting and determines the object–robot occlusion order during compositing. Together, the retargeted robot and the inpainted scene produce a robot-domain visual sequence.

1. Hand pose and contact estimation

HaWoR fits the MANO hand model in camera coordinates, giving hand keypoints and the wrist pose per frame. HaCo then predicts a contact probability over the MANO vertices; vertex probabilities are pooled per finger and thresholded with hysteresis, yielding temporally stable per-finger contact states and the 3D contact points of each contacting finger.

2. Contact-aware retargeting

DexPilot initializes the robot hand by matching wrist-to-fingertip vectors from the MANO keypoints. Because that initialization need not preserve the demonstrated contacts, each contacting finger is refined by minimizing the distance from every human contact point to the nearest robot fingertip surface point with an aligned normal, with a quadratic regularizer toward the initialization and L-BFGS-B as the solver. For the arm, a fixed camera-to-base transform is calibrated once with EasyHeC, inverse kinematics on the wrist pose gives the arm joints, and the stacked per-frame configurations are smoothed with a median filter followed by a Savitzky–Golay filter.

3. Inpainting and compositing

SAM2 tracks masks for the human hand and arm and for the manipulated objects. ProPainter inpaints the human mask while protecting the object mask, and the robot is rendered at the retargeted configuration using the calibrated extrinsics and the original camera intrinsics. Overlaying the robot naively would place grasping fingers in front of the object, so for wrap grasps the thumb is assumed in front and the contacting non-thumb fingers behind: their 3D contact points are projected into the image and dilated into a connected region, and wherever that region overlaps the object mask, object pixels from the source frame are composited over the rendered robot.

Skill Learning and Composition

The skill set contains both manipulation behaviors and the transition behavior connecting them, with transition treated as an ordinary skill label. A classifier recovers the skill sequence from human video; a single skill-conditioned policy executes those skills and decides when to advance.

Skill classifier with frozen V-JEPA 2.1 encoder and MLP head; skill-conditioned policy training; compositional inference with a skill switch detector.
Skill learning and composition pipeline. (a) A frozen V-JEPA 2 encoder and a lightweight classification head recover the ordered skill sequence from a human demonstration. (b) A shared skill-conditioned policy predicts robot actions and skill progression from the current observation and the current–next skill pair. (c) At inference time, the policy executes the given skill sequence in closed loop, advancing to the next entry according to its predicted skill progression.

Skill classifier

A pretrained V-JEPA 2 video encoder stays frozen and a small MLP head reads its representation. The encoder emits one token per pair of frames sampled at 4 FPS, so the head sees the video at 2 Hz; it reads a causal window of the eight most recent tokens — four seconds of context — and predicts the skill at the latest one. Freezing the encoder leaves only 296K trainable parameters, which is what makes the classifier fittable from the handful of annotated sessions available. Frame-wise predictions are smoothed with temporal filters and consolidated into an ordered sequence of skill segments.

Skill-conditioned policy

Given the current robot observation, current skill, and next skill, a shared policy predicts an action chunk of H steps together with its skill progression. The current skill specifies the behavior to execute; the next skill provides context for how that behavior should terminate and connect to what follows. The policy is instantiated with Diffusion Policy over the robot camera observation and the current arm and hand configuration. It is first trained exclusively on the synthetic robot data — which already covers the complete demonstrated sequence, so transitions are learned with no teleoperated demonstration of them — then trained further on a mixture of synthetic data and a small set of teleoperated episodes that grounds the behaviors in the robot's own execution.

Compositional inference

Given an ordered skill sequence, whether from a human prompt video via the classifier or from a script, the policy executes the entries in order, conditioned on the current and next pair. Execution advances through the sequence by the policy's own skill predictions rather than a fixed duration: when it consistently predicts the next skill, the current skill is considered complete and the conditioning advances. Predictions are aggregated over consecutive time steps so that isolated predictions cannot trigger premature switches.

Results

80.0%Single-skill success
77.5%Four-skill sequence success
92.4%Classifier frame accuracy
~32Teleop episodes total

Evaluation runs on an RB5-850E arm with an xHand and a D435i camera across four household skills. Roughly 240 long-horizon human demonstrations are converted into robot trajectories, and about 8 teleoperated demonstrations per skill (~32 total) are collected for finetuning. The Diffusion Policy consumes RGB, proprioception, and current/next skill labels; it is pretrained on converted data and finetuned on mixed data with a 90% teleoperation ratio unless noted otherwise.

Table 1 — Skill learning and composition. Success rate (%) for each skill, evaluated both in isolation (single-skill, 5 trials each) and within four-skill sequences. Cup: hanging a cup; Stack: stacking bowls.
Method Single-skill Sequence
GreenRedCupStackAvg. GreenRedCupStackTotal
UniSkill 8020206045.0 00000.0
Ours (DexStitch) 100100408080.0 8070808077.5

UniSkill reaches 45.0% on individual skills but 0% on sequences, as it has no explicit mechanism for transitions between skills. Both methods use the same synthetic robot data, the same 120k-step pretraining, and the same teleoperated finetuning, isolating the effect of the skill representation — in particular, transition modeling.

Table 2 — Skill classifier on the held-out session. All methods use the same closed-set classification protocol, 2 Hz decision times, causal windows, and scoring code. Trained on 216 of 240 human episodes, evaluated on the remaining 24 (18,792 frames).
MethodAcc. ↑Macro-F1 ↑Edit ↑F1@50 ↑
Qwen2.5-VL-7B (zero-shot)65.866.070.341.0
InternVL3-8B (zero-shot)57.856.747.528.5
V-JEPA 2 + MLP (Ours)92.492.799.699.0

The baselines get over half of the frame labels right, but their predictions fragment: the roughly 30-point accuracy gap grows to a two-to-threefold gap in F1@50. DexStitch recovers 242 segments against 241 ground-truth segments and matches the skill order in all but one episode. The largest gap is on transitions (F1: 0.89 for DexStitch, 0.41 for Qwen, 0.18 for InternVL), suggesting the baselines struggle more with temporal state changes than with recognizing manipulation skills.

Confusion matrix (Fig. 5) static/images/confusion_matrix.png
Confusion matrix on the held-out session. Placeholder — export the labelled figure from the paper source.
Table 3 — Ablations. Overall task success (%) in the sequence setting.
VariantSuccess
Training data
w/o Human data35.0
w/o Teleop data5.0
Skill conditioning
w/o Transition10.0
w/o Next Skill7.5
Finetuning ratio
50% teleop10.0
75% teleop20.0
100% teleop50.0
Ours (90% teleop)77.5

Neither data source suffices alone: the synthetic robot data provides broad skill coverage, while the teleoperated data grounds the behaviors in the robot's own execution. Removing the explicit transition skill or the next-skill conditioning degrades most at transitions, where the same transition must lead to different subsequent behaviors depending on which skill follows. Task success peaks at a 90% teleoperation ratio and drops to 50.0% at 100%, showing that retaining a small fraction of synthetic robot data during finetuning beats finetuning on teleoperated data alone.

Conversion quality

Synthetic robot observations at the moment of grasp, comparing ground truth, ours, ours without occlusion handling, and Masquerade.
Synthetic robot observations at the moment of grasp. Three grasps from one demonstration: holding a sponge (top), lifting a carton (middle), and hanging a mug on the rack (bottom). Masquerade's parallel-jaw gripper cannot reproduce these dexterous grasps and is composited over the object, losing both the hand configuration and the correct occlusion. Without contact-guided occlusion handling, DexStitch retains the retargeted hand but renders it in front of the object, making the grasp appear to hover. Our full method preserves the demonstrated finger configuration and renders the object in front of fingers whose contact points fall within its mask.

Robot rollouts

Sequence rollout clips static/videos/rollout_*.mp4
Closed-loop four-skill sequences. Placeholder — add rollout videos here.

Limitations

  • Grasp taxonomy. Compositing assumes a wrap grasp, with the thumb in front of the object and the other fingers curled behind it, so pinch and top-down grasps fall outside that rule. Covering a wider grasp taxonomy is left to future work.
  • Fixed evaluation ordering. Composition is evaluated on a single fixed four-skill order. Evaluating orderings held out from training would test the compositional claim directly.

Citation

This paper is currently under review. The BibTeX entry and the author list will be posted here once the review process concludes.