K-VIL: Keypoints-Based Visual Imitation Learning

Jianfeng Gao, Zhi Tao, Noémie Jaquier, Tamim Asfour

This paper, published in IEEE Transactions on Robotics (July 2023), introduces K-VIL, a framework that enables robots to learn manipulation skills by watching human videos. By focusing on the underlying geometry of a task rather than just mimicking raw pixels, the system achieves impressive generalization across different object shapes and camera viewpoints.

TL;DR

K-VIL (Keypoints-based Visual Imitation Learning) extracts sparse, object-centric keypoints and geometric constraints from human demonstration videos to teach robots new skills. It allows a robot to learn "what" matters in a task (e.g., keeping a kettle spout above a cup) and "how" to do it, generalizing to novel objects and environments with as few as one to five demonstrations.

What Problem Does This Paper Address?

Visual Imitation Learning (VIL) faces two major hurdles: the correspondence problem and generalization.

The correspondence problem arises because humans and robots have different "bodies" (embodiment mismatch) and videos are often recorded from angles different from the robot's perspective (viewpoint mismatch). Generalization is difficult because a robot might learn how to pour from one specific kettle but fail when presented with a taller or wider one.

Most existing methods either require massive datasets or produce "black-box" policies that are brittle. K-VIL seeks a middle ground: an interpretable, object-centric representation that captures the geometric "essence" of a task.

Methods

The K-VIL pipeline consists of three main stages:

  1. Visual Preprocessing: The system uses Mask R-CNN for object segmentation and Dense Object Net (DON) to generate visual descriptors. This allows the robot to track specific points on an object (like the tip of a screwdriver or the rim of a cup) across different video frames and even different object instances.
  2. Principal Constraint Estimation (PCE): This is the core innovation. Using Principal Manifold Estimation (PME), the system analyzes how keypoints move across multiple demonstrations. It automatically identifies the type of geometric constraint acting on a keypoint:
  3. Point-to-point (p2p): The keypoint must reach a specific 3D coordinate.
  4. Point-to-line/curve (p2l/p2c): The keypoint can slide along a 1D path.
  5. Point-to-plane/surface (p2P/p2S): The keypoint is constrained to a 2D manifold.
  6. Control via VMPs and KAC: The motion "style" is encoded using Via-point Movement Primitives (VMPs). To execute the task, the authors introduce the Keypoint-based Admittance Controller (KAC). This controller treats each keypoint as being attached to a virtual spring-damper system. Crucially, it uses a priority mechanism—for example, ensuring a finger stays on a button (high priority) is more important than the exact orientation of the wrist (lower priority).

Datasets

The authors evaluated K-VIL on a custom real-world dataset involving categorical objects:

  • Objects: 10 tissue boxes, 8 teacups, 5 kettles, 10 sticks of varying lengths, a hat, and various dustpans/brushes.
  • Tasks: Pressing a button (PB), fetching a tissue (FT), inserting a stick into a roll (IS), pouring water (PW), hanging a hat (HH), and cleaning a table (CT).
  • Demonstrations: Human videos recorded using an Azure Kinect camera.

Key Insights and Ideas

  • Geometry over Pixels: Instead of learning a direct mapping from images to motor commands, K-VIL learns the geometric rules of the task. If the robot knows a stick must stay co-linear with a hole, it can handle sticks of any length.
  • Incremental Refinement: K-VIL can start with a single demonstration (one-shot). In this case, it assumes all keypoints are fixed points (p2p). As more videos are provided, it "relaxes" these into lines, curves, or surfaces, discovering the true degrees of freedom allowed by the task.
  • Embodiment Independence: Because the representation is entirely based on keypoints on the objects (and the human's functional parts, like fingertips), the robot doesn't need to "look" like a human to learn from one.

Key Results

The system was tested on the humanoid robot ARMAR-6. Key findings include:

  • High Success Rates: After 4–11 demonstrations, the robot achieved a 90-100% success rate across most tasks, including complex ones like pouring and stick insertion.
  • Robustness to Variation: In the "Insert Stick" task, the robot successfully adapted to sticks that were 300mm longer than those shown in the demonstrations.
  • Viewpoint Invariance: The robot could reproduce tasks even when the execution viewpoint was significantly different from the human demonstration viewpoint.
  • Constraint Discovery: The paper qualitatively shows how the robot learns that a kettle spout follows a curve (p2c) during pouring, which is much more effective for generalization than treating the spout as a single target point.

Limitations and Future Work

  • Visibility Requirements: K-VIL assumes that task-relevant keypoints remain visible to the camera. It currently struggles with heavy occlusions.
  • Object Limitations: The visual front-end (DON) has difficulty with transparent, highly reflective, or extremely thin objects.
  • Single-Arm Focus: The current work focuses on uni-manual (one-handed) manipulation. The authors plan to extend this to bimanual coordination and more complex "master-slave" object hierarchies.
  • Articulated Objects: Future iterations aim to handle articulated objects like drawers or scissors, which require more complex internal geometric constraints.

Summary updated

BibTeX
@article{gao2023k,
  author = {Jianfeng Gao and Zhi Tao and Noémie Jaquier and Tamim Asfour},
  title = {{K-VIL: Keypoints-Based Visual Imitation Learning}},
  journal = {IEEE Trans. Robotics},
  year = {2023},
  url = {https://openreview.net/forum?id=ZmgetnREsk},
}
Figure