Deep Semantic Feature Matching

Nikolai Ufer, Björn OmmerCVPR 2017

Abstract

Estimating dense visual correspondences between objects with intra-class variation, deformations, and background clutter remains a challenging problem. We introduce a novel method for semantic matching using pre-trained CNN features based on convolutional feature pyramids and activation-guided feature selection. Our framework employs sparse graph matching where salient features select from a subset of nearest neighbors in the target image. To handle unconstrained settings, we introduce object proposal-based matching constraints. Experimental evaluations show our method significantly outperforms existing semantic matching techniques.

Introduction

While computer vision has mastered matching the exact same object across different viewpoints, semantic matching—finding correspondences between different instances within a category (e.g., matching the headlight of a red sedan to that of a blue SUV)—remains a difficult task. The primary challenges include intra-class variation, non-rigid deformations, and background clutter. This paper proposes a pipeline that leverages the rich contextual information in pre-trained networks to achieve robust semantic matching without additional training.

Methodology

The proposed framework consists of a multi-stage pipeline that transitions from sparse, high-confidence points to a dense flow field.

Deep Feature Pyramids and Keyfeature Selection

Instead of using a single layer's output, the method builds an 8-level feature pyramid. By aggregating $5 \times 5$ cells over two levels, the authors create context-sensitive descriptors. To reduce noise and computational cost, the algorithm selects "salient" points using an entropy-based criterion on CNN activations, focusing on regions where the network shows strong responses.

Keyfeature extraction showing sparse matches between two different car models.

Sparse MRF Matching and Object Proposals

Matching is modeled as an energy minimization problem in a Markov Random Field (MRF). A unary term measures feature similarity, while a binary term enforces geometric consistency. A sigmoid-based damping function allows for local geometric strictness while accommodating global non-rigid deformations.

In unconstrained images, generic object proposals (e.g., Selective Search) guide matching toward "object-like" regions. This helps distinguish the target object from background clutter by incorporating objectness priors.

Saliency map and object proposals used to guide the matching process.

Dense Flow via TPS

Finally, the sparse matches are interpolated into a smooth, dense correspondence field across the entire image using Thin Plate Splines (TPS). This transforms the discrete graph matches into a continuous mapping.

Experimental Results

The method was evaluated on the PASCAL-Part and Proposal Flow (PF) datasets. On the PF dataset, it achieved a Percentage of Correct Keypoints (PCK) of 0.68, a significant improvement over the previous state-of-the-art (0.56). Incorporating objectness priors increased the percentage of inlier correspondences from 60% to 88%, demonstrating high robustness to background clutter. Despite the complexity of the graph matching, inference takes approximately 10 seconds per image pair.

Conclusion

This "plug-and-play" method demonstrates that pre-trained CNNs contain sufficient information for semantic matching when combined with feature pyramids and saliency-guided selection. By avoiding additional training, the approach remains highly flexible. Future work may explore rotation invariance and cycle consistency to further refine results.

Summary updated

BibTeX
@inproceedings{ufer2017deep,
  author = {Nikolai Ufer and Björn Ommer},
  title = {{Deep Semantic Feature Matching}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2017},
  url = {https://openreview.net/forum?id=rJWIGabdWr},
}
Figure