A Streamlined Attention-Based Network for Descriptor Extraction
Mattia D'Urso, Emanuele Santellani, Christian Sormann, Mattia Rossi, Andreas Kuhn, Friedrich Fraundorfer
TL;DR
SANDesc tackles the need for robust, scalable descriptors that can be paired with existing keypoint detectors without retraining detectors. It introduces a lightweight Residual U‑Net Block with Attention (RUBA) to produce a 128‑channel per-pixel descriptor, trained with a modified triplet loss and curriculum hard negative mining, achieving strong performance with only 2.4M parameters. Extensive evaluations on HPatches, MegaDepth‑1500, IMC 2021, and Graz4K show consistent improvements in matching reliability and geometric accuracy, while maintaining efficiency and scalability for high‑resolution imagery. The work also provides a new 4K urban Graz4K benchmark, highlighting practical gains for large‑scale SfM and localization pipelines and demonstrating competitive performance against larger decoupled models such as DeDoDe‑G.
Abstract
We introduce SANDesc, a Streamlined Attention-Based Network for Descriptor extraction that aims to improve on existing architectures for keypoint description. Our descriptor network learns to compute descriptors that improve matching without modifying the underlying keypoint detector. We employ a revised U-Net-like architecture enhanced with Convolutional Block Attention Modules and residual paths, enabling effective local representation while maintaining computational efficiency. We refer to the building blocks of our model as Residual U-Net Blocks with Attention. The model is trained using a modified triplet loss in combination with a curriculum learning-inspired hard negative mining strategy, which improves training stability. Extensive experiments on HPatches, MegaDepth-1500, and the Image Matching Challenge 2021 show that training SANDesc on top of existing keypoint detectors leads to improved results on multiple matching tasks compared to the original keypoint descriptors. At the same time, SANDesc has a model complexity of just 2.4 million parameters. As a further contribution, we introduce a new urban dataset featuring 4K images and pre-calibrated intrinsics, designed to evaluate feature extractors. On this benchmark, SANDesc achieves substantial performance gains over the existing descriptors while operating with limited computational resources.
