Knowledge Distillation for 6D Pose Estimation by Keypoint Distribution Alignment

Shuxuan Guo, Yinlin Hu, José M. Álvarez, Mathieu Salzmann

Introduction

6D pose estimation—the task of predicting an object's 3D position and orientation from a 2D image—is a cornerstone of robotics and augmented reality. While large-scale deep learning models have achieved impressive accuracy, their computational demands often preclude deployment on resource-constrained edge devices. Replacing heavy backbones with compact alternatives (e.g., DarkNet-tiny) typically results in a significant performance drop. Standard Knowledge Distillation (KD) techniques, which force a student model to mimic a teacher's exact local predictions, often fail because small models lack the capacity for such high-precision "bullseye" matching.

The OurKD Framework

The authors propose OurKD, a novel distillation framework that shifts the focus from point-to-point coordinate matching to spatial distribution alignment. By treating local predictions as probability distributions rather than fixed coordinates, the student is given the flexibility to learn the teacher's overall spatial "intent" without being penalized for minor local inaccuracies.

Overview of the OurKD framework for sparse and dense 6D pose estimation.

The core components of OurKD include:

  1. Distribution Alignment via Optimal Transport (OT): Instead of Mean Squared Error, the framework employs Kantorovich’s relaxation of the OT problem to measure the distance between teacher and student distributions.
  2. Sinkhorn’s Algorithm: A weight-based variant of Sinkhorn’s algorithm is used to make the OT optimization computationally efficient for GPU training.
  3. Joint Segmentation Distillation: The loss function incorporates segmentation confidence scores, guiding the student to focus on the most informative regions for pose estimation.
  4. Architecture Agnosticism: The method is compatible with both sparse keypoint-based and dense local prediction-based pose estimators.

Experimental Results

The framework was evaluated on standard benchmarks including LINEMOD, Occluded-LINEMOD, and YCB-V. The results demonstrate that distribution alignment consistently outperforms traditional KD methods.

Performance comparison on the Occluded-LINEMOD dataset showing significant gains for the student model.

On the challenging Occluded-LINEMOD dataset, the OurKD approach (Ours+) achieved a +4.0 point improvement in average accuracy over the baseline student model. Furthermore, when applied to state-of-the-art dense prediction models like ZebraPose, the method yielded a 1.9-point gain over naive distillation, confirming its generalizability.

Conclusion

OurKD represents the first KD framework specifically tailored for 6D pose estimation. By leveraging Optimal Transport to align prediction distributions, it enables compact models to inherit the robust spatial knowledge of larger teachers. Crucially, the distillation process occurs only during training, allowing the optimized student models to maintain high inference speeds on embedded hardware without any additional computational cost.

Summary updated

BibTeX
@inproceedings{guo2023knowledge,
  author = {Shuxuan Guo and Yinlin Hu and José M. Álvarez and Mathieu Salzmann},
  title = {{Knowledge Distillation for 6D Pose Estimation by Keypoint Distribution Alignment}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2023},
  url = {https://openreview.net/forum?id=PxiHudZ0qM},
}
Figure