NeMo: Neural Mesh Models of Contrastive Features for Robust 3D Pose Estimation

Angtian Wang, Adam Kortylewski, Alan L. Yuille

Abstract

Standard deep learning models for 3D pose estimation often struggle with partial occlusions or viewpoints outside the training distribution. We present NeMo (Neural Mesh Models), a novel architecture that performs "render-and-compare" using 3D meshes of contrastive neural features instead of raw RGB pixels. By optimizing pose over a smooth feature-space loss landscape, NeMo achieves state-of-the-art robustness to heavy occlusion and out-of-distribution poses. Notably, NeMo maintains high performance even when detailed 3D meshes are simplified to basic cuboids, demonstrating that semantic feature consistency is more critical than geometric precision for robust estimation.

Introduction

Estimating the 3D pose of an object from a 2D image is a foundational challenge in computer vision, essential for robotics and autonomous navigation. Current methodologies typically fall into two camps: keypoint-based methods and rendering-based methods. Keypoint methods are brittle under occlusion, while traditional rendering-based methods—which compare rendered CAD models to RGB images—suffer from a "bumpy" loss landscape. Comparing raw pixels makes models hypersensitive to lighting, color, and minor shape variations, leading to numerous local optima that hinder gradient-based optimization.

Comparison of traditional RGB-based render-and-compare vs. NeMo's feature-based approach.

Methodology: Neural Mesh Models

To overcome the limitations of RGB-based comparison, NeMo introduces a feature-based rendering pipeline. Instead of storing color information, the vertices of the NeMo 3D mesh store high-dimensional neural feature vectors.

Contrastive Learning and Feature Rendering

The system utilizes a CNN backbone trained with a contrastive loss to extract features from input images. This training ensures that features are locally distinct and easily separable from the background. During inference, NeMo renders a 2D feature map from the 3D neural mesh based on a pose hypothesis. This rendered map is compared against the CNN-extracted feature map of the target image. Because these abstract neural features ignore visual nuisances like color and texture, the resulting reconstruction loss landscape is significantly smoother and more convex than its RGB counterparts.

Robust Inference and Occlusion Handling

NeMo incorporates a probabilistic background model to handle real-world clutter. If a specific image region does not align with the rendered object features, the model assigns it to a background category. This effectively segments out occluders, preventing them from biasing the pose estimation. The model then uses gradient descent to iteratively refine the pose parameters (azimuth, elevation, and theta) to minimize the feature discrepancy.

The NeMo inference pipeline, showing feature maps, occlusion handling, and the resulting smooth loss landscape.

Experimental Results

NeMo was evaluated on several rigorous benchmarks, including PASCAL3D+, Occluded-PASCAL3D+, and ObjectNet3D.

  • Extreme Occlusion: On the most challenging setting of Occluded-PASCAL3D+ (60-80% occlusion), a cuboid-based NeMo achieved 47.1% accuracy, more than doubling the performance of the popular StarMap baseline (22.9%).
  • Generalization to Unseen Poses: NeMo demonstrated superior generalization, retaining 54.7% accuracy on viewpoints not seen during training, whereas standard ResNet baselines dropped to 37.2%.
  • Geometric Abstraction: A significant finding was that detailed CAD models are often unnecessary. The "NeMo-SingleCuboid" model, which uses a simple box as a geometric proxy for all instances in a category, achieved 86.1% accuracy on unoccluded data, proving that contrastive neural features can compensate for coarse geometry.

Discussion and Future Work

NeMo represents a shift toward more explainable and robust 3D pose estimation. By explicitly modeling occlusion through foreground/background score maps, the model provides an interpretable output of what it perceives as the object versus the occluder.

However, the iterative optimization required at inference time is computationally intensive, currently taking approximately 8 seconds per image. Future research will focus on accelerating this process through amortized inference or improved initialization strategies to make NeMo viable for real-time autonomous applications.

Summary updated

Abstract

3D pose estimation is a challenging but important task in computer vision. In this work, we show that standard deep learning approaches to 3D pose estimation are not robust when objects are partially occluded or viewed from a previously unseen pose. Inspired by the robustness of generative vision models to partial occlusion, we propose to integrate deep neural networks with 3D generative representations of objects into a unified neural architecture that we term NeMo. In particular, NeMo learns a generative model of neural feature activations at each vertex on a dense 3D mesh. Using differentiable rendering we estimate the 3D object pose by minimizing the reconstruction error between NeMo and the feature representation of the target image. To avoid local optima in the reconstruction loss, we train the feature extractor to maximize the distance between the individual feature representations on the mesh using contrastive learning. Our extensive experiments on PASCAL3D+, occluded-PASCAL3D+ and ObjectNet3D show that NeMo is much more robust to partial occlusion and unseen pose compared to standard deep networks, while retaining competitive performance on regular data. Interestingly, our experiments also show that NeMo performs reasonably well even when the mesh representation only crudely approximates the true object geometry with a cuboid, hence revealing that the detailed 3D geometry is not needed for accurate 3D pose estimation. The code is publicly available at https://github.com/Angtian/NeMo.
BibTeX
@inproceedings{wang2021nemo,
  author = {Angtian Wang and Adam Kortylewski and Alan L. Yuille},
  title = {{NeMo: Neural Mesh Models of Contrastive Features for Robust 3D Pose Estimation}},
  booktitle = {International Conference on Learning Representations},
  year = {2021},
}
Figure