BoQ: A Place is Worth a Bag of Learnable Queries

A. Ali-bey, B. Chaib-draa, Philippe Giguère
2/9/2026

No official code found. Best implementation: amaralibey/Bag-of-Queries (194 stars, MIT, last commit 2025-03-16).

Abstract

In visual place recognition, accurately identifying and matching images of locations under varying environmental conditions and viewpoints remains a significant challenge. In this paper, we introduce a new technique, called Bag-of-Queries (BoQ), which learns a set of global queries, designed to capture universal place-specific attributes. Unlike existing techniques that employ self-attention and generate the queries directly from the input, BoQ employ distinct learnable global queries, which probe the input features via cross-attention, ensuring consistent information aggregation. In addition, this technique provides an inter-pretable attention mechanism and integrates with both CNN and Vision Transformer backbones. The performance of BoQ is demonstrated through extensive experiments on 14 large-scale benchmarks. It consistently outperforms current state-of-the-art techniques including NetVLAD, MixVPR and EigenPlaces. Moreover, despite being a global re-trieval technique (one-stage), BoQ surpasses two-stage re-trieval methods, such as Patch-NetVLAD, TransVPR and R2Former, all while being orders of magnitude faster and more efficient. The code and model weights are publicly available at https:/github.com/amaralibey/Bag-of-Queries.

View on arXivView PDF

Code Implementations(1)

MIT

BoQ: A Place is Worth a Bag of learnable Queries (CVPR 2024)

19416Shell, PythonMar 29, 20241 years agoMIT
geo-localizationimage-localizationvisual-place-recognition

Similar Papers

Cite this paper

@article{alibey2026boq,
  title  = {BoQ: A Place is Worth a Bag of Learnable Queries},
  author = {A. Ali-bey and B. Chaib-draa and Philippe Giguère},
  year   = {2026},
  eprint = {2405.07364},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2405.07364},
  journal = {CVPR 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2405.07364.svg)](https://codeofpaper.com/paper/2405.07364)

Discussion