ATK: Automatic Task-driven Keypoint selection for Policy Transfer from Simulation to Real World

Yunchu Zhang, Zhengyu Zhang, Liyiming Ke, Siddhartha Srinivasa, Abhishek Gupta

TL;DR

Transferring robot policies from simulation to reality often breaks down due to visual discrepancies between domains. ATK (Automatic Task-driven Keypoint selection) bridges this perceptual gap by automatically discovering a minimal, task-relevant set of 2D keypoints via teacher-student policy distillation in simulation. Because keypoints represent state independent of visual styling or lighting, policies transfer robustly to real-world hardware—even when manipulating transparent objects or handling visual clutter.

What Problem Does This Paper Address?

Bridging the sim-to-real gap remains a central challenge in robot learning. Common approaches typically rely on either:

  1. Explicit 6D pose estimation, which requires rigid scaffolding, 3D CAD models, or specialized depth sensors that fail on transparent, reflective, or deformable items.
  2. End-to-end visual policies (RGB, Depth, Point Clouds), which are notoriously brittle to domain shifts, lighting variations, distractor objects, and rendering differences.

To avoid both rigid 3D models and brittle pixel-level representations, the authors explore 2D image-space keypoints as a compact, invariant intermediate state representation. The core challenge becomes: How do we automatically select the minimal set of task-relevant, reliably trackable keypoints without manual engineering?

Methods

ATK solves keypoint selection and policy transfer in three stages:

  1. Privileged Policy Distillation in Sim: A teacher policy is trained in simulation with full access to privileged physical states (Lagrangian variables such as true object positions and velocities).
  2. Task-Driven Keypoint Selection: The teacher policy is distilled into a student policy using DAgger. The student receives candidate keypoints randomly initialized across the scene. A neural network mask trained with a Gumbel-Softmax categorical reparameterization applies an $L_1$ sparsity penalty to select a minimal subset of points. Points that are task-irrelevant or difficult for off-the-shelf trackers to follow across frames are naturally pruned.
  3. Sim-to-Real Semantic Correspondence: At deployment time ($t=0$), the selected simulated keypoints are mapped to the real-world RGB view using semantic correspondence based on pre-trained diffusion features. Once initialized, off-the-shelf trackers (such as TAPIR or Co-Tracker) track the points through time, feeding their 2D coordinates into the distilled policy.
[Simulation: Privileged Teacher] 
           │ (DAgger Distillation + Gumbel-Softmax Masking)
           ▼
[Keypoint-Based Student Policy] ──(Diffusion Feature Sim-to-Real Match)──► [Real-World Robot + 2D Tracker]

Datasets & Experimental Setup

The authors evaluated ATK in both MuJoCo simulation and real-world experiments using a 6-DOF Hebi robot arm equipped with chopsticks and Azure Kinect RGB-D cameras:

  • Sushi Pick-and-Place: Grasping sushi amid distracting clutter.
  • Glass Pot Tip Lifting: Precise grasping of a small, transparent, and reflective teapot lid handle.
  • Clock Manipulation: Two separate tasks on an articulated clock: Button Pressing and Clock Hand Turning.
  • Kitchen Tasks (Qualitative): Closing a microwave and closing a drawer in a simulated kitchen environment (RoboCasa).

Environments were tested against four visual perturbations: Random Pose (RP), Background shifts (RB), Distractor Objects (RO), and Altered Lighting (+Light).

Key Insights and Ideas

  • Keypoints as a Sim-to-Real Invariance Shield: Domain mismatch typically happens during visual feature extraction. By decoupling semantic localization (done once at $t=0$) from temporal tracking, the policy operates purely on 2D coordinates, sidestepping rendering gaps and lighting shifts.
  • Task-Driven Representation: The same object requires different keypoints depending on the goal. For the clock, ATK automatically chooses keypoints on the clock hand for turning, but switches to keypoints on the frame/button for button-pressing.
  • Superior Handling of Difficult Materials: Unlike depth- or point-cloud-based policies that degrade completely when confronted with thin, transparent, or reflective surfaces (such as glass), 2D keypoint trackers handle these surfaces reliably.

Key Results

  • Real-World Sim-to-Real Superiority: In real hardware evaluations across all four tasks, ATK achieved an overall success rate of 64%, significantly outperforming baseline modalities:
  • RGB: 4%
  • Depth: 4%
  • Point Cloud: 2%
  • Robustness to Visual Clutter: In simulation tests with heavy distractors and lighting shifts, ATK maintained high task success rates (89.3% to 97.0%), whereas RGB, depth, and point cloud success rates dropped below 3%.
  • Transfer Accuracy: Initial sim-to-real keypoint correspondence using diffusion features yielded a low mean distance error of 2.79 to 6.75 pixels (<5% of object dimensions) and high feature cosine confidence (0.76–0.82).
  • Outperforming Other Keypoint Baselines: ATK substantially outperformed tracking all scene keypoints (FullSet), random sampling, and a zero-shot LLM baseline (GPT-4 selection), which frequently suffered from tracking drift or language-spatial mismatch.

Limitations and Future Work

  • Camera Perspective Sensitivity: Because policies rely on 2D image coordinates, changes in camera viewpoint between training and deployment can degrade execution.
  • Tracker Fragility under Extreme Occlusion: The policy relies on off-the-shelf trackers; severe physical occlusions or rapid strobe lighting can still cause tracking drift.
  • Optimization Hardness: Keypoint mask selection is non-smooth, making training sensitive to hyperparameters during Gumbel-Softmax optimization.

Summary updated

BibTeX
@inproceedings{zhang2024atk,
  author = {Yunchu Zhang and Zhengyu Zhang and Liyiming Ke and Siddhartha Srinivasa and Abhishek Gupta},
  title = {{ATK: Automatic Task-driven Keypoint selection for Policy Transfer from Simulation to Real World}},
  booktitle = {MRM-D @ CoRL},
  year = {2024},
  url = {https://openreview.net/forum?id=CRxBd8bWRd},
}
Figure