SkillMimic: Learning Reusable Basketball Skills from Demonstrations

Yinhuai Wang, Qihan Zhao, Runyi Yu, Ailing Zeng, Jing Lin, Zhengyi Luo, Hok Wai Tsui, Jiwen Yu, Xiu Li, Qifeng Chen, Jian Zhang, Lei Zhang, Ping Tan · OpenReview

Abstract

Mastering basketball skills such as diverse layups and dribbling involves complex interactions with the ball and requires real-time adjustments. Traditional reinforcement learning methods for interaction skills rely on labor-intensive, manually designed rewards that do not generalize well across different skills. Inspired by how humans learn from demonstrations, we propose SkillMimic, a data-driven approach that mimics both human and ball motions to learn a wide variety of basketball skills. SkillMimic employs a unified configuration to learn diverse skills from human-ball motion datasets, with skill diversity and generalization improving as the dataset grows. This approach allows training a single policy to learn multiple skills, enabling smooth skill switching even if these switches are not present in the reference dataset. The skills acquired by SkillMimic can be easily reused by a high-level controller to accomplish complex basketball tasks.

Introduction

Teaching physically simulated characters to interact with objects—Human-Object Interaction (HOI)—is significantly more challenging than teaching them basic locomotion like walking or running. While locomotion primarily concerns internal balance, HOI requires precise, dynamic coordination with an external object. Traditionally, Reinforcement Learning (RL) researchers have addressed this by hand-crafting specific reward functions for every action, such as a jump shot or a crossover dribble. However, this approach is brittle, labor-intensive, and fails to generalize across the vast repertoire of skills needed for a full game of basketball.

Diverse basketball skills learned by SkillMimic, including dribbling, layups, and shooting.

SkillMimic addresses this gap by shifting the burden from manual engineering to data-driven imitation. By introducing a unified framework that learns from raw human-ball motion data, we enable humanoids to master complex interactions without skill-specific "cheats."

The SkillMimic Framework

The core of SkillMimic is a unified imitation reward system that matches the agent's body and the object's motion to reference data. Unlike standard additive rewards, SkillMimic utilizes a multiplicative reward structure. By multiplying sub-rewards for body position, object trajectory, and contact, the system prevents the agent from "sacrificing" one aspect of the motion (e.g., ignoring the ball to maintain a perfect body pose) to maximize the total score.

Overview of the SkillMimic pipeline, from real-world motion capture to simulated skill execution.

The Contact Graph (CG)

A critical innovation in this work is the Contact Graph. Standard kinematic rewards often fail because an agent might match the visual position of a hand but fail to capture the underlying physics of the touch. The CG models the scene as a graph where nodes (hands, ball, body) are connected if they are in physical contact. Matching this graph ensures the agent learns the precise physical interactions necessary for ball control, preventing "kinematic local optima" where the ball might otherwise be balanced unrealistically on the agent's head or wrist.

Hierarchical Control

Once the agent learns "Interaction Skills" (IS) like dribbling or shooting, a High-Level Controller (HLC) is trained to select and switch between these skills. This hierarchical approach allows the agent to accomplish long-horizon tasks, such as consecutive scoring, by composing individual skills into a fluid sequence.

Datasets and Evaluation

To support this research, we introduced two new datasets:

  1. BallPlay-V: Eight basic skills extracted from monocular RGB videos using automated annotation.
  2. BallPlay-M: A high-fidelity dataset containing 35 minutes of diverse interactions recorded via optical motion capture at 120 fps.

Experiments demonstrate that SkillMimic's ability to generalize improves dramatically as the dataset size grows. Remarkably, the same reward configuration and hyperparameters were used to learn all skills, proving that a single policy can master diverse interaction patterns.

Key Results

SkillMimic significantly outperforms traditional baselines in both individual skill mastery and complex task execution:

  • Success Rates: The system achieved an 86.7% success rate on the difficult "Pick Up" task and 97.9% on "Shot," vastly outperforming methods like DeepMimic and AMP.
  • Complex Tasks: In a "Consecutive Scoring" task (dribble → layup → rebound → repeat), SkillMimic achieved an 80.25% success rate. Baselines trained from scratch or using only locomotion priors failed to complete the task (0% success).
  • Robustness: The learned skills remain resilient even when the ball's physical properties, such as radius or bounciness, are altered during inference.

Conclusion and Future Work

SkillMimic demonstrates that complex human-object interaction can be mastered through a unified, data-driven imitation framework. While currently focused on basketball, the framework's success on the GRAB dataset suggests broader generalizability. Future work will explore multi-object interactions, greater object diversity, and the challenges of sim-to-real transfer for physical humanoid robots.

Summary updated

BibTeX
@inproceedings{wang2025skillmimic,
  author = {Yinhuai Wang and Qihan Zhao and Runyi Yu and Ailing Zeng and Jing Lin and Zhengyi Luo and Hok Wai Tsui and Jiwen Yu and Xiu Li and Qifeng Chen and Jian Zhang and Lei Zhang and Ping Tan},
  title = {{SkillMimic: Learning Reusable Basketball Skills from Demonstrations}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.01634},
}
Figure