Object Pose Estimation via the Aggregation of Diffusion Features

Tianfu Wang, Guosheng Hu, Hongguang Wang

TL;DR

This paper demonstrates that the rich internal representations of pre-trained text-to-image diffusion models (like Stable Diffusion) are powerful, generalizable features for 3D object pose estimation. By intelligently aggregating features from different layers of a diffusion model, the authors significantly improve accuracy on "unseen" objects, outperforming previous state-of-the-art methods while using fewer trainable parameters.

What Problem Does This Paper Address?

Estimating the 3D pose (orientation and position) of an object from a single 2D image is a cornerstone of robotics and augmented reality. While current deep learning models perform exceptionally well on objects they have seen during training, their performance typically plummets when they encounter "unseen" objects—new items not present in the training set.

The authors argue that this "generalization gap" exists because standard image features aren't robust enough to capture the underlying geometry of novel objects. To solve this, they look toward generative diffusion models, which are trained on massive datasets to understand complex scene semantics, depth, and 3D characteristics.

Figure 1. Unseen object pose estimation of one state-of-the-art method [24] and our method. (a) We render an image using the ground truth pose of an unseen object. (b) Template-pose [24] learns image features by fine-tuning a self-supervised learning [9] pre-trained model. (c) Our method aggregrates features of different granularity from a diffusion model to achieve better pose estimation than template-pose [24] on the unseen object. The snowflake and flame symbols represent ‘parameters frozen’ and ‘fine-tune’, respectively.

Methods

The core idea is to use a frozen Stable Diffusion v1-5 model as a high-powered feature extractor. Instead of using the model to generate images, the authors feed a "query" image into the model and extract intermediate feature maps from various layers of its internal UNet architecture.

To make these features useful for pose estimation, they propose three aggregation architectures:

  1. Arch (a) - Vanilla: Uses linear mapping to align feature dimensions followed by simple addition.
  2. Arch (b) - Nonlinear: Replaces linear mapping with bottleneck convolution modules to capture more complex patterns.
  3. Arch (c) - Context-aware Weight Aggregation (CWA): The most advanced version, which uses a small Multi-Layer Perceptron (MLP) to dynamically learn weights for each layer's features based on the input image's context.
Figure 3. Diffusion aggregation methods. Arch. (a) is a vanilla aggregation, Arch. (b) is nonlinear aggregation, and Arch. (c) is context- aware weight aggregation.

The system works by comparing the aggregated features of a real "query" image against a library of rendered "template" images with known poses. The pose of the most similar template is assigned to the query image.

Datasets

The authors evaluated their method on three benchmark datasets:

  • LINEMOD (LM): A standard dataset for object pose estimation.
  • Occlusion-LINEMOD (O-LM): A more difficult version of LM where objects are heavily occluded.
  • T-LESS: A challenging dataset featuring texture-less, symmetric industrial objects in cluttered scenes.

In all cases, the models were tested on "unseen" splits to rigorously measure their ability to generalize to new objects.

Key Insights and Ideas

  • Diffusion Features are "3D-Aware": Because diffusion models are trained to generate realistic scenes, they implicitly learn about 3D geometry, lighting, and depth. This makes their internal features far more robust for pose estimation than standard discriminative features.
  • Granularity Specialization: Different layers of the diffusion model specialize in different object types. For example, the authors found that Layer 5 was best for a structured object like a lamp, while Layer 12 excelled at capturing the organic shape of a toy cat. Visualization showing how different layers of the diffusion model capture different details for different objects.

  • Timestep Matters: The best results were achieved at timestep $t=0$. At this stage, the model treats the input as a "clean" image, providing the most discriminative and detailed features for matching. Ablation study showing that pose estimation accuracy decreases as the diffusion noise timestep increases.

Figure 2. Feature visualization of LINEMOD. For query and template images, we visualize their 3 features from template-pose [24], Layer 5 and Layer 12 of a diffusion model. These features are projected to a PCA space, and the values of top 3 principal components are assigned to RGB values respectively for visualization. The more similar the colors of two feature images in one column, the more similar in feature space. The two features in one green box are very similar.
Figure 4. Ablation on timestep t. The accuracy is measured for the model with extracting features from Stable Diffusion at different timesteps on LM and O-LM datasets.

Key Results

  • State-of-the-Art Generalization: On the Unseen LM dataset, the method achieved 97.9% accuracy, significantly higher than the previous best of 93.5%. On the even tougher Unseen O-LM, it reached 85.9% (vs. 76.3% SOTA).
  • Texture-less Success: On the T-LESS dataset, the method achieved a Recall VSD of 71.03%, a massive jump from the previous state-of-the-art of 58.87%.
  • Efficiency: Despite the power of the backbone, the trainable aggregation network is lightweight. The CWA model uses only 13.29 million trainable parameters, roughly half of the 24.04 million used by the previous leading template-based method.

Limitations and Future Work

The paper primarily focuses on 3D orientation estimation and assumes the object has already been localized in the 2D image (cropped). While the diffusion backbone is frozen, it is still a large model, which might limit real-time performance on low-power hardware. The authors suggest their findings could serve as a "catalyst" for future work, potentially involving distilling these powerful diffusion features into even smaller, faster architectures for real-world robotics.

Summary updated

BibTeX
@misc{wang2024object,
  author = {Tianfu Wang and Guosheng Hu and Hongguang Wang},
  title = {{Object Pose Estimation via the Aggregation of Diffusion Features}},
  year = {2024},
  eprint = {2403.18791},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2403.18791},
}
Figure