ZippyPoint: Fast Interest Point Detection, Description, and Matching through Mixed Precision Discretization

Menelaos Kanakis, Simon Maurer, Matteo Spallanzani, Ajad Chhatkuli, Luc Van Gool

TL;DR

ZippyPoint is a new deep learning framework that brings the power of neural feature extraction to resource-constrained devices like robots and AR glasses. By combining mixed-precision quantization with a novel binary normalization layer, it achieves an order-of-magnitude speedup in inference and matching while maintaining accuracy comparable to full-precision models.

What Problem Does This Paper Address?

Visual localization—the ability of a device to determine its position based on images—is a cornerstone of robotics and augmented reality. Traditionally, this relies on finding "interest points" and describing them with vectors (descriptors).

We face a frustrating trade-off:

  1. Hand-crafted methods (like ORB or BRISK) are incredibly fast and memory-efficient but often fail in challenging environments, such as transitioning from day to night.
  2. Deep Neural Networks (DNNs) (like SuperPoint) are robust and highly accurate but require significant computational power and memory, making them too slow for real-time use on mobile CPUs.

The authors aim to bridge this gap by creating a "quantized" neural network that uses low-precision math (like 1-bit or 8-bit integers instead of 32-bit floats) to achieve the speed of hand-crafted methods without sacrificing the intelligence of learned representations.

Methods

The authors introduce several key innovations to make quantization work for feature extraction:

  • Layer Partitioning and Traversal Strategy: Instead of guessing the best precision for every single layer (a combinatorial nightmare), they group the network into "macro-blocks." They optimize these blocks sequentially from the input to the output, identifying the best precision for each stage while keeping the rest of the network's performance stable.
  • Mixed-Precision Discretization: They discovered that a "one-size-fits-all" approach to quantization is sub-optimal. ZippyPoint uses a mix: the first layer and the descriptor head use 8-bit integers (Int8), while the core encoder uses binary weights with high-precision residuals (Bin-R) to preserve information.
  • Learned Pooling: Standard max-pooling or average-pooling layers tend to destroy information in low-precision networks. ZippyPoint replaces these with learned Int8 convolutions, which significantly improves accuracy at a negligible computational cost.
  • Binary Normalization (Bin.Norm): Training a network to produce binary (0 or 1) descriptors is notoriously difficult. The authors propose a Bin.Norm layer that constrains each descriptor to have a constant number of "ones." This acts as a stable alternative to the $L_2$ normalization used in floating-point networks, preventing the model from collapsing during training.
Figure 2. (a) Starting from [63], we partition the operations in macro-Blocks, depicted in (b) with different colors. From the first upstream macro-Block, in blue, we identify the optimal quantization setting that maintains functional performance while improving the network’s throughput. We then traverse to the next block, green, and repeat. The strategy is complete once we have reached the most downstream network layer, the prediction heads.

Datasets

The models were trained on the COCO 2017 dataset (118k images) using self-supervision. Evaluation was performed across three major benchmarks:

  • HPatches: Used for evaluating homography estimation (how well the model matches flat surfaces under different viewpoints and lighting).
  • Aachen Day-Night v1.1: A challenging visual localization benchmark that tests the model's ability to localize night-time queries against a day-time map.
  • Map-free Visual Relocalization: A benchmark focused on predicting the metric pose of a query image relative to a single reference image.

Key Insights and Ideas

  • Heterogeneity is Essential: The authors show that the "ends" of the network (the input layer and the task-specific heads) are more sensitive to quantization than the middle. Keeping these at Int8 while binarizing the backbone provides the best speed-to-accuracy trade-off.
  • Normalization for Bits: The Bin.Norm layer is a crucial "aha moment." By treating binary descriptor generation as a constrained optimization problem (ensuring exactly $k$ bits are active), they made end-to-end training much more stable and effective than previous sigmoid-based approximations.
  • Efficiency Gains are Multiplicative: Moving to binary descriptors doesn't just speed up the network; it makes the resulting 3D maps much smaller and the subsequent matching process (using Hamming distance) significantly faster.

Key Results

ZippyPoint achieves remarkable efficiency gains over state-of-the-art full-precision models like SuperPoint:

  • 16x faster inference speed on a mobile CPU.
  • 14x faster descriptor matching.
  • 32x smaller 3D map storage requirements.

Quantitatively, ZippyPoint performs on par with full-precision counterparts on HPatches and Aachen Day. Most impressively, it crushes traditional binary methods in difficult conditions. On the Aachen Night dataset, ZippyPoint outperformed BRISK by 42.9%, while ORB failed to localize entirely.

Figure 1. Learned detection and description methods, e.g. Su- perPoint [15], significantly outperform hand-crafted methods, in orange, on challenging day-night scenarios [56, 57]. This, how- ever, comes at the cost of slower image matching (top left), slower keypoint detection and description (bottom right), larger 3D mod- els (bottom left), and therefore slow localization within a 3D map (top right). Speeds are reported in FPS on a CPU. In this paper we present ZippyPoint, a learned detection and description network that improves the above limitations by at least an order of mag- nitude while providing competitive performance, enabling its use on-board computationally limited platforms.

Limitations and Future Work

While ZippyPoint is highly effective, it still shows a slight performance gap compared to full-precision models in extreme night-time scenarios. The authors suggest that further optimizing the data augmentations used during training could help close this remaining gap. Additionally, the current implementation is optimized for CPUs; exploring hardware-specific acceleration for these mixed-precision operations could yield even greater real-world performance.

Summary updated

BibTeX
@inproceedings{kanakis2022zippypoint,
  author = {Menelaos Kanakis and Simon Maurer and Matteo Spallanzani and Ajad Chhatkuli and Luc Van Gool},
  title = {{ZippyPoint: Fast Interest Point Detection, Description, and Matching through Mixed Precision Discretization}},
  booktitle = {Workshops @ CVPR},
  year = {2022},
}
Figure