Robust Image Matching By Dynamic Feature Selection

Hao Huang, Jianchun Chen, Xiang Li, Lingjing Wang, Yi Fang

Abstract

Image matching requires a delicate balance between high-level semantic context and low-level spatial detail. Traditional methods often rely on fixed layer sets or rigid heuristics, which may not generalize across diverse image pairs. This paper introduces a novel reinforcement learning (RL) framework that treats feature selection as a sequential Markov Decision Process (MDP). A Q-network agent dynamically selects the most discriminative subset of features from a CNN backbone. By incorporating an efficiency penalty into the reward function, the model achieves state-of-the-art results on benchmarks like PF-PASCAL and PF-WILLOW using significantly fewer layers than previous methods.

Introduction

Finding correspondences between images is a fundamental task in computer vision. Modern deep learning approaches typically extract features from various layers of a Convolutional Neural Network (CNN). However, a "Goldilocks" problem exists: high-level layers provide semantic robustness but lack spatial precision, while low-level layers offer fine detail but are sensitive to noise and intra-class variations.

Standard image matching architectures often utilize a fixed set of features or the final layer, which may lack the necessary balance of context and detail.

Previous attempts to bridge this gap used fixed layer combinations or beam search heuristics. These methods are often limited by a restricted search space and a lack of adaptability to specific image content, often moving strictly from low to high levels and risking local optima.

Methodology

The authors propose framing feature selection as a sequential MDP. An RL agent, the Q-network, interacts with an environment consisting of the image pair and the set of available CNN layers.

The RL Framework

  • State and Actions: At each step, the agent observes the currently selected features. It can either select an additional layer from the backbone (e.g., ResNet-101) or terminate the process to perform matching.
  • Architecture: The Q-network employs feature encoders to standardize dimensions, a Bi-directional LSTM to fuse information from selected scales, and a Dueling Decoder to estimate state values and action advantages independently.
  • Reward Function: The agent is rewarded based on the final matching accuracy. Crucially, a negative reward (penalty) is applied for each selected layer, incentivizing the agent to find the most efficient feature subset.
The proposed RL-based approach dynamically selects the most effective layers for a given image pair, allowing for a more flexible and efficient search.

Experiments and Results

The model was evaluated on three major semantic correspondence benchmarks: PF-PASCAL, PF-WILLOW, and Caltech-101. The primary metric used was the Percentage of Correct Keypoints (PCK).

Key Findings

  • State-of-the-Art Accuracy: The method achieved a PCK of 0.86 on PF-PASCAL and 0.75 on PF-WILLOW, outperforming previous leading methods like HPFlow.
  • Efficiency: The RL agent typically selects only 4 layers to achieve these results, compared to the 7 layers required by HPFlow. This demonstrates that better-chosen data is more valuable than simply using more data.
  • Generalization: The model demonstrated strong zero-shot generalization, performing exceptionally well on PF-WILLOW and Caltech-101 after being trained only on PF-PASCAL, suggesting a robust learned strategy for feature selection.

Conclusion

By replacing rigid heuristics with a dynamic, learning-based selection process, this work demonstrates that intelligent feature selection can simultaneously improve matching accuracy and computational efficiency. Future work may involve end-to-end training where the RL agent's decisions help fine-tune the backbone weights specifically for the matching task.

Summary updated

BibTeX
@inproceedings{huang2020robust,
  author = {Hao Huang and Jianchun Chen and Xiang Li and Lingjing Wang and Yi Fang},
  title = {{Robust Image Matching By Dynamic Feature Selection}},
  booktitle = {BMVC},
  year = {2020},
}
Figure