Knowledge Distillation for 6D Pose Estimation by Aligning Distributions of Local Predictions

Shuxuan Guo, Yinlin Hu, Jose M. Alvarez, Mathieu Salzmann

Abstract

Knowledge distillation (KD) facilitates the training of compact student networks by leveraging the expertise of deep teacher models. While successful in many domains, its application to image-based 6D object pose estimation has remained largely unexplored. This work introduces the first KD method specifically driven by the 6D pose estimation task. Observing that compact students struggle to precisely predict local quantities like 2D keypoints, we propose to distill the teacher's distribution of local predictions into the student network using Optimal Transport. Our approach yields state-of-the-art results across various benchmarks for both keypoint-based and dense prediction-based architectures.

The Challenge of Compact 6D Pose Estimation

6D pose estimation—determining an object's 3D position and orientation from a 2D image—is critical for robotics and augmented reality. While deep learning has significantly advanced the field, high-performing models are often too computationally expensive for edge devices.

Simply shrinking these models by using lightweight backbones (e.g., DarkNet-tiny) typically results in a severe drop in accuracy. Standard KD techniques, which force a student to mimic a teacher's exact coordinate predictions (Naive KD), often fail in this context. Because a small student model lacks the capacity to hit exact pixel coordinates as precisely as a massive teacher, rigid point-to-point supervision can confuse the student, sometimes leading to performance worse than training without any distillation.

OurKD: Distribution Alignment via Optimal Transport

The core innovation of this work is OurKD, a distillation strategy that shifts the focus from rigid coordinate matching to Distribution Alignment.

Overview of the OurKD framework, showing how student and teacher distributions of local predictions are aligned.

Instead of forcing a student point to match a specific teacher point, the method treats predictions as sets of distributions. It employs Optimal Transport (OT) to measure the "work" required to transform the student's distribution into the teacher's. To make this optimization feasible during training, a weight-based variant of the Sinkhorn algorithm is used, allowing for fast, parallel execution on GPUs.

Furthermore, the framework incorporates Joint Segmentation Distillation. By including predicted object segmentation scores into the OT formulation, the student learns to prioritize the teacher's most confident local predictions. This architecture-agnostic approach is effective for both sparse methods (e.g., 3D bounding box corners) and dense methods (e.g., per-pixel binary codes).

Evaluation Benchmarks

The method was evaluated on three standard 6D pose community benchmarks:

  • LINEMOD: A baseline featuring 13 objects with single instances per image.
  • Occluded-LINEMOD: A challenging version with heavy clutter and overlapping objects.
  • YCB-V: A large-scale dataset with 21 objects in video sequences, characterized by significant occlusions and lighting variations.

Key Results

OurKD consistently improves the performance of compact models, effectively bridging the gap between lightweight students and heavy teachers.

Performance comparison on the LINEMOD dataset across various object classes and model configurations.

As shown in the results for the LINEMOD dataset, the baseline student using a DarkNet-tiny-H backbone achieved 81.9% accuracy. Integrating OurKD alongside feature-level distillation (FKD) boosted this to 84.8%. On the more difficult Occluded-LINEMOD dataset, the performance jump was even more significant, showing a 4.0 point improvement over the baseline student.

Qualitatively, visualizations indicate that while standard students produce scattered or "blurry" keypoint clusters, the OurKD-distilled student produces tight, accurate clusters that closely mimic the teacher's high-quality output.

Insights and Future Directions

  • Flexibility Facilitates Learning: Allowing the student to match the teacher's overall pattern rather than exact pixel values prevents over-penalization for small, inevitable coordinate offsets.
  • Orthogonality: Prediction-level distillation is complementary to feature-level distillation. Combining them yields additive performance gains.
  • Limitations: While inference remains fast, the Sinkhorn iterations add some computational overhead during the training phase. Additionally, different object classes benefit from distillation to varying degrees, suggesting that future work could explore class-specific distillation strategies to further optimize performance for complex geometries.

Summary updated

BibTeX
@inproceedings{guo2023knowledge,
  author = {Shuxuan Guo and Yinlin Hu and Jose M. Alvarez and Mathieu Salzmann},
  title = {{Knowledge Distillation for 6D Pose Estimation by Aligning Distributions of Local Predictions}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2023},
  url = {https://openreview.net/forum?id=PxiHudZ0qM},
}
Figure