← Paper Digest

UniKey: Keypoints as a Unified Interface for Scalable Data Generation and Policy Learning

Yuan Fang, Yixuan Wang, Peng-Hao Hsu, Richard Cheng, Changxi Zheng, Katherine Liu, Yunzhu Li

December 2026

Real-robot rollouts on four tasks, with running rollout counts and success rates.

TL;DR UniKey uses one keypoint program to plan demonstrations, detect where an imitation policy drifts in simulation, and plan corrections from that state. These corrections are 2.65x more data-efficient than adding full demonstrations, and the policies transfer zero-shot to a real xArm 7.

What they do

Imitation policies drift into states their data never covered, and DAgger-style fixes need a person to spot each failure and demonstrate the recovery. UniKey automates that loop in simulation: one keypoint program per task plans expert demonstrations, monitors policy rollouts, and plans a correction from wherever the policy went wrong. After finetuning on the corrections and then on domain-randomized data, the policy runs on a real robot with no real-world data.

How it works

  • Keypoint programs. A vision-language-model agent writes each task as stages of constraints over 3D keypoints on objects and the gripper, building on ReKep. Each stage is solved for a target end-effector pose (dual annealing with SLSQP), and planning can start from any simulator state.
  • Two-level monitor. Stage-wise, the program’s constraints show which stage the rollout never completed. Step-wise, the planner replans that stage from the policy’s state, and the first step where the policy’s three end-effector keypoints deviate from the plan by more than a threshold marks the divergence.
  • Corrections. The simulator resets to the divergence state and the planner records an H-step corrective trajectory. Each round gets a fixed budget of action steps, and the policy is finetuned on everything collected so far.
  • Sim-to-real. Appearance, lighting, camera parameters and dynamics are randomized before a final finetune.

Results

  • Three sim-to-real tasks on an xArm 7 (hang a mug, flip and box a shoe, arrange spoon, fork and bowl) with ACT, Diffusion Policy and pi0.5. Averaged over the 70/80/90% success thresholds, tasks and policies, UniKey needs 2.65x less data than adding full planner demonstrations. The gains hold in 20 real-world rollouts per checkpoint.
  • On ten RoboTwin tasks, UniKey reaches 91-100% success, versus 39-95% for dense sampling at the same budget (Move Stapler to Pad: 91 vs 39).
  • On mug hanging, grasp failures drop over the iterations, and the remaining divergences shift to the later rack-hanging stage. A 2 cm divergence threshold worked consistently well.

Limitations

UniKey needs a simulator that captures the task’s geometry and dynamics, and its keypoint planning assumes rigid bodies. Failure detection uses ground-truth simulator keypoints, so all corrections come from simulation. For real-world evaluation, the authors placed objects by overlaying the simulated scene on the camera image.

Videos

A keypoint program for mug hanging, then expert data generated across object initializations in simulation.
The policy's keypoints drift past the 2 cm threshold while hanging the mug, and the planner takes over.

Figures

From Figure 2: UniKey overview. (a) A vision-language-model agent writes keypoint programs for motion planning. (b) T...
From Figure 2: UniKey overview. (a) A vision-language-model agent writes keypoint programs for motion planning. (b) The policy is monitored stage-wise with the keypoint program and step-wise by comparing its end-effector keypoints with the planner's. (c) The planner takes over at the divergence frame and generates corrective data for finetuning. (d) The policy is finetuned on domain-randomized data and deployed zero-shot in the real world.
From Figure 4: Policy failures detected by keypoints (left two columns) and the planner's corrective motions (right t...
From Figure 4: Policy failures detected by keypoints (left two columns) and the planner's corrective motions (right two columns): a missed mug grasp, a missed fork grasp, and a failed gripper insertion into the shoe.
From Figure 3: Task success versus dataset size for dense sampling (brown) and UniKey (green) on mug hanging, shoe fl...
From Figure 3: Task success versus dataset size for dense sampling (brown) and UniKey (green) on mug hanging, shoe flipping and arranging, and table arranging (rows) with ACT, Diffusion Policy and pi0.5 (columns), in simulation and the real world. Both start from the same checkpoint and add the same amount of data each round.
Abstract

Imitation learning policies are prone to compounding errors during rollout. Improving robustness typically requires multiple iterations of policy evaluation and human corrective demonstrations around failure regions, which is costly and difficult to scale. In this work, we introduce UniKey that uses keypoints as a unified interface for policy monitoring and motion planning, which automates corrective data collection, enabling robust policy performance. We formulate manipulation tasks as an optimization problem over relational keypoints. Additionally, we reuse the same set of keypoints to monitor task progress and detect policy deviations during rollout. Once a failure is detected, the motion planner takes over from the deviated state and generates corrective demonstrations, which are aggregated into the training dataset for policy finetuning. We evaluate our framework on three sim-to-real tasks and ten tasks from the RoboTwin benchmark. Compared with dense sampling, our approach achieves 2.65$\times$ higher data efficiency and near-perfect policy performance in both simulation and real world. Website: https://yfang777.github.io/UniKey_Blog

Summaries are written automatically from each paper's text. Figures and videos come from the paper and its project page; all credit goes to the authors.