Skip to content

UniPR-3D: Towards Universal Visual Place Recognition with Visual Geometry Grounded Transformer

Conference: ECCV2026
arXiv: 2512.21078
Code: https://github.com/dtc111111/UniPR-3D (to be open-sourced)
Area: 3D Vision
Keywords: Visual Place Recognition, Multi-view Retrieval, 3D Token, VGGT, Sequence Matching

TL;DR

UniPR-3D introduces the 3D geometry-aware tokens of VGGT into visual place recognition for the first time. It designs tailored aggregation strategies for the distinct characteristics of 2D and 3D tokens and supports both single-frame and variable-length sequence matching, outperforming existing single-view and multi-view methods on multiple benchmarks.

Background & Motivation

Visual Place Recognition (VPR) is a fundamental problem in robotics and computer vision, aiming to determine whether the current observation has visited a previous location. It is widely applied in SLAM, autonomous driving, and augmented reality. Traditional VPR is formulated as a single-image retrieval taskโ€”using a query image to find the top-\(K\) most similar candidates from a database. Feature extraction networks have evolved from ResNet to Vision Transformer (ViT), and foundation models like DINOv2 have become mainstream after fine-tuning. Feature aggregation has also progressed from NetVLAD and GeM to Optimal Transport-based SALAD. While these methods perform increasingly well under illumination and weather changes, they share a fundamental limitation: they only utilize information from a single image.

A single view essentially only captures 2D texture patterns, losing the 3D geometric structure of the scene. Although multi-view can provide richer spatial coverage and viewpoint information, multi-view feature aggregation remains a challenging problem: the same scene under different viewpoints exhibits massive appearance variations, and simple concatenation or averaging introduces noise rather than useful information. Existing sequence-level retrieval methods (e.g., SeqSLAM, CaseVPR) mostly perform post-processing on frame-level similarities or apply pure temporal aggregation along the time dimension. Consequently, they are highly sensitive to variations in frame rate and speed, lacking genuine geometric awareness.

The recently emerged Visual Geometry Grounded Transformer (VGGT) provides a crucial enabling conditionโ€”it is a large-scale ViT backbone capable of encoding 3D-aware multi-view representations from pure RGB images via spatial alternating attention. The output includes 3D tokens (camera tokens, register tokens, patch tokens) and intermediate 2D tokens. This opens up the possibility of incorporating geometric information into VPR. The core idea of this work is to utilize both the 3D tokens and the intermediate 2D tokens of VGGT for place description, design customized aggregation strategies for different types of tokens, jointly exploit texture details and geometric structures, and build a universal VPR framework supporting both single-frame and variable-length sequence matching.

Method

Overall Architecture

The pipeline of UniPR-3D is divided into three modules: multi-view 3D feature extraction, categorized feature aggregation, and sequence-level matching. The input is an image sequence, and the output can be either a single-frame descriptor or a full-sequence descriptor.

%%{init: {'flowchart': {'rankSpacing': 24, 'nodeSpacing': 28, 'padding': 6, 'wrappingWidth': 400}}}%%
flowchart TD
    A["Input Image Sequence"] --> B["DINOv2 Encoder<br/>Extract 2D CLS / Register / Patch Tokens"]
    B --> C["VGGT Alternating Attention Blocks<br/>โ†’ 3D Camera / Register / Patch Tokens"]
    C --> D{"Single-frame or<br/>Sequence Matching?"}
    D -->|Single Frame| E["GeM Aggregates CLS and Register Tokens<br/>OT Aggregates Patch Tokens"]
    D -->|Sequence| F["Multi-frame GeM Aggregates CLS + Register<br/>Cross-frame Clustering + OT Aggregates Patch"]
    E --> G["Concatenate 5 Components<br/>โ†’ Global Descriptor"]
    F --> G
    G --> H["Nearest Neighbor Retrieval<br/>(Cosine Similarity)"]

Specifically, each input image first passes through the DINOv2 encoder to obtain the 2D CLS token, 2D register tokens, and 2D patch tokens. Subsequently, only the patch tokens are retained and fed into the alternating attention blocks of VGGT (alternating intra-frame and global attention, totaling 24 layers). Inside these blocks, VGGT additionally introduces camera tokens (encoding intrinsic and extrinsic parameters) and 3D register tokens, ultimately outputting 3D camera tokens, 3D register tokens, and 3D patch tokens. To maintain the robustness of the descriptor against viewpoint changes, the 3D camera tokens are discarded, and only the 3D register and 3D patch tokens are used. The entire process requires only RGB images without needing any camera intrinsic or extrinsic parameters.

Key Designs

1. Categorized Token Customized Aggregation: Designing different strategies based on token characteristics

2D and 3D tokens have drastically different characteristics and cannot be aggregated using a unified approach. The 2D CLS token carries global semantic information, the 2D/3D register tokens are few (4 per frame) and relatively stable, while the 2D/3D patch tokens are numerous and carry fine-grained spatial correspondences. UniPR-3D treats these two categories differently. For the CLS token and register tokens (few in number, strong in semantics), GeM (Generalized Mean pooling) along with a lightweight MLP projector is used to generate a compact descriptorโ€”this approach is simple and efficient, capturing the dominant semantic cues. For the patch tokens (large in number, requiring retention of spatial structures), a SALAD scheme based on Optimal Transport (OT) is adopted: a learnable MLP maps patch tokens into a score matrix, and a soft assignment matrix is obtained through iterative row/column normalization via the Sinkhorn algorithm; then, the assignment weights are multiplied by the original features to obtain the patch descriptor. The score matrix also introduces a learnable dustbin entry, allowing features from non-informative regions (e.g., sky, road surface) to be assigned to the dustbin without affecting valid features. The final descriptor is constructed by concatenating five components: 2D CLS descriptor, 2D register descriptor, 2D patch descriptor, 3D register descriptor, and 3D patch descriptor.

2. Variable-length Sequence Multi-frame Fusion: Decoupling sequence length limitations using GeM projectors

Existing sequence matching methods usually require consistent sequence lengths during training and inference, which limits their generalization ability. UniPR-3D designs a GeM-based multi-frame projector to address this issue. For the CLS tokens and register tokens, the corresponding tokens from each frame are gathered, followed by cross-frame GeM pooling and MLP projection to output descriptors of the same dimensionality as the single-frame counterparts. Since GeM pooling is inherently insensitive to the number of inputs, the model can handle sequences of arbitrary length. For the patch tokens, patch tokens belonging to different frames are first clustered across frames, and then the Sinkhorn algorithm is applied to compute a unified assignment matrix, ultimately aggregating multi-frame patch descriptors. In the VGGT architecture, the first frame defines the world coordinate system, which guarantees geometric consistency across frames and makes multi-frame aggregation physically meaningful.

3. Multi-staged Gradient Training Strategy: Training heads first, followed by joint backbone fine-tuning

Training is divided into two stages. In the first stage, the VGGT backbone and DINOv2 are frozen, and only the descriptor heads (each aggregation module) are trained. In the second stage, the alternating attention blocks of VGGT and DINOv2 are jointly fine-tuning. The overall process utilizes the Multi-Similarity Loss and the AdamW optimizer, with the learning rate linearly warming up for 0.5 epochs before cosine decaying with a peak value of \(1 \times 10^{-6}\). LoRA fine-tuning is adopted for the VGGT backbone to retain pre-trained knowledge and control the number of parameters. Single-frame training is performed on the GSV-Cities dataset, and sequence training is conducted on the MSLS (Mapillary Street-Level Sequences) dataset.

Key Experimental Results

Main Results

Single-frame Matching (R@1):

Dataset SALAD MegaLoc UniPR-3D UniPR-3D* Gain vs SOTA
MSLS Chall. 75.0 73.4 75.5 75.9 +0.9
MSLS val 92.2 91.0 92.9 93.2 +1.0
Pitts250k 95.2 96.4 96.5 96.6 +0.2
Nordland 76.0 76.7 78.4 78.9 +2.2
SPED 92.1 92.0 92.6 92.8 +0.6
SF-XL v1 90.9 95.3 93.8 96.3 +1.0
Tokyo 24/7 95.1 96.5 97.6 97.9 +1.4

* denotes the same training configuration as MegaLoc.

Sequence Matching (R@1, pos=2m):

Dataset CaseVPR UniPR-3D Gain
MSLS Val 91.2 93.7 +2.5
Nordland 84.1 86.8 +2.7
Oxford1 (2m) 90.5 95.4 +4.9
Oxford2 (2m) 72.8 80.6 +7.8

Under the strict 2m threshold on the Oxford dataset, UniPR-3D outperforms the previous SOTA by over 10% in relative improvement, demonstrating the immense value of 3D tokens in fine-grained localization.

Ablation Study

Configuration MSLS val (R@1) Oxford1 (R@1) Description
3D patch only 84.9 86.8 Baseline: only geometric information
+2D CLS + 2D register + 2D patch 90.4 91.5 Incorporating texture information significantly improves performance
+2D patch + 3D patch 91.9 92.1 Synergy between texture and geometry
+3D register (Full model) 93.7 95.5 Incorporating 3D register tokens yields further gains
Full model + explicit 3D pose injection 92.2 94.3 Explicit pose leads to a slight decline instead
Full model + patch OT โ†’ GeM 93.9 96.1 Using OT for patches outperforms GeM

Key Findings

  • Significant complementarity between 2D and 3D tokens: 2D tokens focus on texture-rich areas (posters, kiosks, bicycles), while 3D tokens focus on geometric structures (walls, buildings). Combining both yields the best results.
  • Explicit injection of 3D pose information is not helpful and even causes a slight decline: This indicates that the 3D tokens extracted by VGGT have already implicitly encoded sufficient spatial relationships.
  • Strong generalization ability across sequence lengths: Trained with 5 frames, the performance continues to improve within the range of 3-15 frames during testing, proving the effectiveness of the GeM projector's variable-length processing.
  • Inference latency is approximately 140ms (single frame): This is higher than existing methods, representing the cost of introducing 3D information.

Highlights & Insights

  • Geometric awareness enters VPR: This work is the first to introduce VGGT's 3D tokens into the VPR field, validating the feasibility of transitioning from 2D descriptors to 3D descriptors, and opening up a new direction for VPR.
  • Design wisdom of "Categorized Aggregation": Instead of treating all tokens equally, strategies are designed individually based on token attributes (GeM for semantic tokens, OT for spatial tokens). This is more reasonable than unified aggregation and can be transferred to other multi-modal retrieval tasks.
  • Variable-length sequence matching without retraining: The GeM projector naturally decouples the sequence length, avoiding the strong inductive bias of existing methods requiring fixed sequence lengths, thus offering stronger practicality.

Limitations & Future Work

  • High inference latency (140ms vs. 75ms for CaseVPR): The overhead of 3D token extraction might become a bottleneck in real-time scenarios; future work can explore inference acceleration.
  • Training dependency: The model relies on GSV-Cities and MSLS datasets; its generalization capability to special scenes (indoor, underwater, drone viewpoints) has not yet been verified.
  • High descriptor dimensionality: The 5-component concatenated descriptor reaches a dimensionality of 17,152, leading to high storage and retrieval matching costs in large-scale databases. Future work can investigate more compact 3D descriptor formats.
  • vs. SALAD: SALAD only uses 2D DINOv2 tokens for Optimal Transport aggregation, whereas this work additionally introduces 3D tokens and processes heterogeneous 2D/3D features with a categorized strategy, outperforming SALAD on most datasets.
  • vs. CaseVPR: CaseVPR was the previous sequence matching SOTA utilizing hierarchical sequence-to-frame retrieval; this work directly constructs sequence descriptors using geometry-aware multi-view tokens, showing a greater advantage under strict thresholds (+4.9% to 7.8%).
  • vs. CricaVPR / SeqVLAD: These methods perform temporal aggregation along the time dimension, making them sensitive to variations in frame rate/speed. In contrast, the 3D tokens in this work naturally possess geometric stability, rendering them more robust to such changes.

Rating

  • Novelty: โญโญโญโญโญ First to apply VGGT 3D tokens to VPR, with reasonable designs for categorized aggregation and variable-length sequence matching.
  • Experimental Thoroughness: โญโญโญโญโญ Covers 10 single-frame benchmarks and 4 sequence benchmarks, with in-depth ablation studies, including sequence length generalization analysis.
  • Writing Quality: โญโญโญโญ The methodology description is clear, though details of 3D feature extraction could be made more readable.
  • Value: โญโญโญโญโญ Demonstrates that 3D descriptors outperform pure 2D descriptors, providing valuable inspiration to the VPR community.