ViewSynth: Learning Local Features from Depth using View Synthesis

Jisan Mahmud, Rajat Vikram Singh, Peri Akiva, Spondon Kundu, Kuan-Chuan Peng, Jan-Michael Frahm

TL;DR

ViewSynth is a novel framework for extracting local features (keypoints and descriptors) directly from depth images. By jointly training a feature extractor to match keypoints and synthesize novel views, the model learns 3D-structure-aware representations that encode information about occluded surfaces. This approach overcomes the "model collapse" seen when adapting RGB methods to depth, achieving state-of-the-art performance in 3D keypoint matching and camera localization.

What Problem Does This Paper Address?

Accurate local feature matching is the backbone of 3D computer vision tasks like Structure-from-Motion (SfM), SLAM, and camera localization. While modern deep learning methods have mastered feature extraction for RGB images, they struggle when applied directly to depth images. Depth images are highly desirable because they contain direct 3D geometry and are invariant to lighting and texture changes.

However, adapting state-of-the-art RGB "detect-and-describe" (DaD) methods to depth data introduces two major problems:

  1. Model Collapse: Standard loss functions (like the triplet loss used in D2Net) often fail on noisy depth data, causing the network to collapse and predict the exact same descriptor for every pixel.
  2. 2D Bias: Existing feature extractors only learn from visible pixels. They do not explicitly reason about the underlying 3D structure or the occluded parts of a scene, which change dramatically when the camera moves.

Methods

ViewSynth tackles these challenges using a joint learning framework based on a VGG-16 backbone. It introduces two major novelties:

  • Contrastive Matching Loss ($L_{cm}$): To fix the model collapse issue, the authors replace the standard triplet loss with a contrastive loss coupled with hardest negative sampling. This forces the network to learn viewpoint-invariant descriptors without collapsing into a single representation.
  • View Synthesis Module (VSM): This is the core innovation. During training, the VSM takes the dense feature map of a source depth image and the relative camera pose, and attempts to synthesize the target depth image from that new viewpoint.
  • It uses a Grid Transformation Encoder (GTE) to map pixel-level transformations and a Depthmap Synthesis Network (DSN) to generate the final image.
  • Crucial detail: The VSM is only used during training. It acts as a powerful regularizer, forcing the feature extractor to encode 3D geometry and occluded regions. During inference, the VSM is discarded, meaning there is no extra computational overhead when extracting keypoints.

Datasets

The authors evaluated their method on three standard indoor RGB-D datasets:

  • MSR-7 (7-Scenes): Captured via Kinect, used widely for camera relocalization.
  • TUM RGBD-SLAM: A Kinect dataset (using the 3D object reconstruction subset).
  • CoRBS: Captured via Kinect v2, used to test cross-sensor generalizability.

Key Insights and Ideas

  • View synthesis is a powerful regularizer for feature learning: By forcing the network to predict what a scene looks like from another angle, the underlying feature descriptors become inherently 3D-aware. The network learns to "understand" the volume of the scene rather than just memorizing 2D surface patterns.
  • Triplet loss is brittle on depth data: The authors discovered that the standard triplet loss—highly successful in RGB feature learning—causes catastrophic model collapse when applied to depth data with high learning rates and hard negative sampling. Switching to a contrastive loss is a simple but necessary fix for the depth modality.
  • Features can encode occlusions: Qualitative results show the VSM successfully synthesizing occluded regions (e.g., the space behind a chair). This proves the shared feature maps are successfully encoding geometry beyond the immediately visible surface.

Key Results

ViewSynth significantly outperforms existing baselines (including depth-adapted versions of D2Net and R2D2, as well as previous depth-specific SOTA).

  • 3D Keypoint Matching: On the MSR-7 dataset (10 frames apart), ViewSynth achieved a Mean Matching Accuracy (MMA) of 80.65%, nearly doubling the previous depth SOTA (Georgakis' method), which scored 41.20%.
  • Camera Localization: ViewSynth dominated across most correctness thresholds. On MSR-7 (5m, 10° threshold, 10 frames apart), it achieved 86.67% accuracy, compared to a modified D2Net baseline at 53.98%.
  • Cross-Sensor Generalization: A model trained on MSR-7 (Kinect) generalized remarkably well to CoRBS (Kinect v2), proving the learned features are robust to different sensor noise profiles.

Limitations and Future Work

Limitations: The authors note that baseline methods like R2D2 fail to converge when training image pairs have large viewpoint variations (e.g., 30 frames apart). While ViewSynth overcomes this, the addition of the View Synthesis Module inherently increases the memory footprint and computational complexity during training.

Future Work: While not explicitly detailed in a dedicated section, the paper's strong emphasis on cross-dataset and cross-sensor generalizability suggests that ViewSynth's representations could be highly valuable for multi-modal SLAM systems or robotics applications where sensor types vary or upgrade over time.

Summary updated

BibTeX
@inproceedings{mahmud2020viewsynth,
  author = {Jisan Mahmud and Rajat Vikram Singh and Peri Akiva and Spondon Kundu and Kuan-Chuan Peng and Jan-Michael Frahm},
  title = {{ViewSynth: Learning Local Features from Depth using View Synthesis}},
  booktitle = {BMVC},
  year = {2020},
  url = {https://openreview.net/forum?id=eVwPwfbkO49},
}
Figure