Abstract
Traditional computer vision keypoint detectors are optimized for geometric tasks but often struggle with image classification due to background clutter. This paper introduces a method to filter out irrelevant visual keypoints by training a neural ranking network using the Covariance Matrix Adaptation Evolution Strategy (CMA-ES). By treating keypoint selection as a discrete "Top-K" problem, the authors bypass the need for gradients. The approach demonstrates that selecting a small subset of relevant features significantly boosts classification accuracy, achieving perfect scores on the Willow-Object dataset.
Introduction: The Challenge of Visual Clutter
In computer vision, keypoint detectors like SIFT or SURF are essential for tasks such as image stitching and 3D reconstruction. However, their utility in image classification is limited. These detectors are designed to identify "interesting" local features—blobs or corners—many of which belong to the background rather than the object of interest.
Standard feature selection techniques work well for ordered data, but visual keypoints form unordered sets. Deciding which specific points to discard for every unique image is a "hard attention" problem. Furthermore, the discrete operation of picking the "Top-K" best points makes the model non-differentiable, preventing the use of standard backpropagation.
Methodology
The proposed solution involves a neural attention module that ranks keypoints by relevancy through two primary components:
- Ranking Mechanism: The model projects $N$ keypoint descriptors into two low-dimensional spaces ($Q$ and $S$). It computes the inner product between these representations, allowing keypoints to "vote" on each other's importance. The points with the highest cumulative votes are selected as the Top-K.
- CMA-ES Optimization: To handle the non-differentiable Top-K selection, the authors utilize the Covariance Matrix Adaptation Evolution Strategy (CMA-ES). This derivative-free optimization algorithm "evolves" network weights by sampling from a multivariate Gaussian distribution and refining parameters based on classification accuracy.
- Classification: Selected Top-K keypoints are matched against class-specific "prototype" images to determine the final label.
Experimental Results
The researchers evaluated the approach on both synthetic and real-world datasets:
- Synthetic Data: On a dataset where 50% of descriptors were noise, the model achieved 85% accuracy by successfully isolating informative descriptors.
- Willow-Object Dataset: The method showed its greatest strength here. Using all SIFT keypoints with a cosine distance metric yielded 74% accuracy. However, applying the evolutionary filtering to select the Top-10 keypoints boosted accuracy to 100% on both training and test sets.
A critical finding was the superiority of cosine distance over Euclidean distance. The authors attribute this to the sparse nature of high-dimensional VGG features, where cosine similarity more effectively captures relevant patterns.
Discussion and Conclusion
This research highlights the power of "hard attention" in computer vision. By completely discarding irrelevant data—mimicking human focus—the model achieves superior robustness. The success of CMA-ES demonstrates that evolutionary strategies are a viable alternative for training neural networks with discrete, non-differentiable components.
Future work will focus on scaling the method to larger datasets, incorporating spatial coordinates to capture geometric relationships between keypoints, and exploring human-in-the-loop systems where manual keypoint specification guides the evolutionary process.
Summary updated