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

Yuan Fang1, Yixuan Wang1, Peng-Hao Hsu1, Richard Cheng2, Changxi Zheng1, Katherine Liu2, and Yunzhu Li1

1 Columbia University 2 Toyota Research Institute

Four synchronized real-world tasks with keypoint overlays. Top row: Hang Mug and Arrange Table. Bottom row: Flip and Arrange Shoe and Pack Battery.
Watch with elapsed rollout time

Introducing UniKey

Imitation learning policies easily fail when small execution errors move the robot into states its demonstrations do not cover. Improving robustness often requires people to identify these failures and collect corrective demonstrations, a process that is costly to repeat across tasks.

We introduce UniKey, a framework that uses keypoints as a unified interface for scalable data generation and policy learning. The same keypoint programs generate expert demonstrations, monitor policy execution, and plan corrections from policy failure states.

UniKey brings these capabilities together:

Expert Data Generation

UniKey uses vision-language model (VLM) agents to read the task description and robot and object geometry, then design keypoints and keypoint trajectories. By executing the resulting keypoint programs across different object initializations, UniKey generates expert demonstrations at scale.

Select a task to see its keypoint program and the resulting demonstrations across different object initializations.

Automated Detection and Correction of Failure

Imitation learning still suffers from compounding errors during execution. To improve policy robustness, UniKey uses the same keypoint program to monitor policy execution and automatically generate corrective demonstrations from detected failure states.

In each round, UniKey runs batched policy rollouts, generates corrective data in batches, and finetunes the policy on the aggregated dataset. As the round number increases, the success rate of policy rollout increases and corrective data is collected at progressively later time steps of policy rollout.

Hang Mug: success rate by dataset steps Illustrative correction batches and dataset-step associations; averages describe all displayed correction-start overlays. 0% 20% 40% 60% 80% 100% 2k 5k 10k 15k 20k Dataset Steps Success Rate Dense Sampling UniKey

Sim-to-Real

UniKey trains policies entirely in simulation and transfers them directly to the real robot. After iterative corrective data generation, the policy is finetuned on a domain-randomized dataset to prepare it for real-world deployment.

Domain Randomization

UniKey applies domain randomization of lighting, object textures, background, and cameras to the collected dataset and finetunes the policy on the augmented dataset. The finetuned policy is then deployed in the real world zero-shot.

Real-World Execution

Our sim-to-real policy achieves a 100% success rate for 30 minutes on the following tasks, without real-world demonstrations or real-world policy finetuning. We overlay the real-world and simulated initial scenes, as shown on the MacBook screen, to ensure that both rollouts start from the same scene configuration.

Technical Details

Policy Failure Detection and Correction

UniKey represents each task as a sequence of geometric constraints over keypoints. The planner uses these constraints to generate motion, and the monitor reuses them to evaluate policy progress in simulation.

  1. Find the failed stage. Evaluate the keypoint constraints in order to identify the stage the policy did not complete.
  2. Locate the divergent step. Compare three end-effector keypoints along the policy trajectory with a planner-generated reference. The first step whose deviation exceeds a predefined threshold identifies the correction state.
  3. Generate the correction. Restore the simulator to that state and run the remaining keypoint program for a fixed corrective horizon. Add the corrective data to the accumulated dataset and finetune the policy.
UniKey overview: keypoint programs, stage-wise and step-wise policy failure detection, automatic corrective planning, and zero-shot sim-to-real transfer.
One keypoint program connects demonstration generation, failure detection, and corrective planning. View PDF ↗

Data Efficiency and Robustness

Corrective demonstrations target states where the current policy fails. UniKey and dense sampling start from the same initial dataset and policy checkpoint, then add an equal number of expert action steps in each round. Both policies are finetuned on their accumulated datasets.

UniKey achieves 2.65× higher data efficiency, measured by the average dense-to-UniKey ratio of dataset steps needed to first reach 70%, 80%, and 90% success across the evaluated sim-to-real tasks and policy architectures.

Sim-to-Real Results

We compare UniKey (which collects only corrective data) versus Dense Sampling (which collects complete episodes). UniKey achieves a higher final success rate and better sample efficiency in both simulation and the real world. The corrective data both expands the dataset's observation space and is more informative than data collected through usual dense sampling.

Results comparing UniKey and dense sampling for ACT, Diffusion Policy, and PI05. Task success rates in simulation and zero-shot real-world deployment are plotted against dataset steps for hanging a mug, flipping then arranging a shoe, and arranging the fork, spoon and bowl.
Success rates use 100 simulation rollouts and 20 real-world rollouts per evaluation. View PDF ↗

RoboTwin2.0 Benchmark

We also evaluate UniKey against dense sampling on 10 RoboTwin 2.0 tasks. UniKey outperforms dense sampling across all 10 tasks.

Questions about UniKey

What are keypoints? Does the policy use them?

Keypoints are 3D points in simulation, such as a point on the robot’s end effector, the top of a mug handle, or the tip of a rack branch. We use keypoints to generate demonstrations, detect failures, and plan corrections. The policy takes RGB images as input and does not require keypoints.

Who designs the keypoints and keypoint programs?

GPT-6-Astra selects the keypoints and writes the programs in simulation. A human expert chooses physical parameters such as mass, friction, and penetration depth to match real-world behavior.

Why do we need corrective data rather than pure dense sampling data? Is it basically DAgger?

Small policy errors can compound. Corrective demonstrations teach recovery from states that dense sampling rarely covers. Yes, this is automated DAgger.

How do we detect failure?

We use the keypoint program to identify failed episodes. Within each failed episode, we compare the policy’s end-effector trajectory with the planner’s to locate the divergence frame.

How do we generate a correction?

We reset the simulator to the divergence frame and use the planner to complete the task.

How do we transfer the policy to the real robot?

We fine-tune the policy on simulated RGB data with randomized lighting, backgrounds, and object colors.

What are the limitations of the framework?

Sim-to-real performance depends on simulator accuracy, which in turn depends on the physical parameters chosen by a human expert and the physical model’s capabilities.