arXiv:2611.06378cs.RONov 2026

Manuscript Offprint

arXiv:2611.06378

UniLoop: Unified Loop Closure Detection from Retrieval to Geometric Verification and Relative Pose Estimation

Jingwen Yu, Pengyu Wang, Jin Wu, Weinan Chen, Ping Tan, Hong Zhang

Jingwen Yu1,2^{1,2}, Pengyu Wang1^{1}, Jin Wu3^{3}, Weinan Chen4^{4}, Ping Tan1^{1}, and Hong Zhang2^{2}

Figure

Fig. 1: UNILoop unifies retrieval, geometric verification, and relative pose estimation within a single MAST3R backbone. Unlike cascades of separately trained visual models, UNILoop reuses the image encoder for global retrieval, the cross-view decoder for pairwise verification, and the geometric heads for relative pose constraints, sharing an image encoding across all stages. This framework proposes a new paradigm for loop closure detection, improving robustness and accuracy while reducing redundant computation.

Abstract—Loop closure detection conventionally cascades separate models for global retrieval, geometric verification, and relative pose estimation, leading to redundant computation and disconnected visual representations. We propose UNILoop, a unified framework that reuses the hierarchical representations of the pretrained geometric foundation model throughout this pipeline. A shared image encoder produces features for compact global descriptors; the same features are passed to the cross-view decoder for pairwise verification; and the original geometric predictions provide relative camera constraints for pose-graph optimization. Experiments on place recognition, loop verification, and relative pose estimation show that UNILoop improves loop-closure robustness and accuracy while reducing redundant backbone computation relative to modular pipelines. UNILoop achieves the best Recall@10 on MSLS (96.6) and Pitts30k (99.3) among the compared methods, while its verification branch reaches 95.63 AP and 96.29 ROC-AUC, surpassing the existing geometric verification baselines.

I. INTRODUCTION

Loop closure detection lets a robot recognize previously visited places, correct accumulated odometry drift, and build a globally consistent map over long-term operation. Despite its central role in Simultaneous Localization And Mapping

(SLAM), it is still commonly implemented as a multi-stage cascade of separate visual models, as shown in Fig. 1. A visual place recognition model retrieves candidate matches, a geometric verification (e.g., local feature image matching model) module checks their consistency, and a relative pose module recovers the camera pose between the query and its top candidate, which is finally fed as a constraint into pose graph optimization. Although effective, this design duplicates image encoding, prevents intermediate representation sharing, and yields independently optimized modules whose objectives are only loosely aligned with the final loop closure decision.

Recent geometric foundation models (GFMs) offer a different opportunity. MAST3R [1] contains a natural hierarchy of 3D-aware visual representations, where its image encoder produces single-view features, its cross-view decoder constructs pair-conditioned representations, and its geometric heads predict dense 3D structure and matching cues. This hierarchy aligns with the stages of loop closure detection: global representations serve retrieval, while patch-level representations support verification and relative pose estimation.

Motivated by this observation, we introduce UNILoop, a unified loop-closure framework that reuses a single GFM backbone, MAST3R, for retrieval, verification, and relative pose estimation. We attach a SALAD aggregator [2] to the MAST3R encoder and train the resulting global descriptors with contrastive learning. For verification, we build on the pairwise reasoning paradigm of Doppelgangers++ [3] to classify retrieved pairs from intermediate MAST3R decoder states. Finally, we retain MAST3R's dense outputs and convert them into relative camera constraints for the downstream pose-graph optimization.

1^{1}CKS-Robotics Institute, Hong Kong University of Science and Technology, Hong Kong, China.

2^{2}Department of Electronic and Electrical Engineering, Southern University of Science and Technology, Shenzhen, China.

3^{3}School of Intelligent Science and Technology, University of Science and Technology Beijing, Beijing, China.

4^{4}Biomimetics and Intelligent Robotics Lab (BIRL), School of Electromechanical Engineering, Guangdong University of Technology, Guangzhou, China.

∗^{*}Jingwen Yu and Pengyu Wang contribute equally to this work. Corresponding author: Hong Zhang (hzhang@sustech.edu.cn)

A key design principle of UNiLOOP is that the three tasks do not merely coexist as independent heads: the same image encoding is reused across retrieval and pairwise decoding, avoiding redundant backbone inference. Training is staged rather than fully joint—we first train the SALAD retrieval branch, then freeze it and supervise the verification head on hard negatives mined from the trained retrieval branch.

Our main contributions are summarized as follows:

  • We propose UNiLOOP, a unified loop-closure detection framework that maps the hierarchical representations of a 3D geometric foundation model onto the retrieval, verification, and relative pose estimation stages, sharing a single backbone across all three.

  • We instantiate this design through (i) a MASt3R-encoder retrieval branch that aggregates encoder tokens into compact global place descriptors without a separate image backbone, (ii) a lightweight verification transformer that classifies retrieved pairs from pair-conditioned MASt3R decoder states, and (iii) the retained MASt3R geometric predictions, converted into relative camera constraints for pose-graph optimization.

  • We establish a staged training and evaluation protocol that measures both module-level performance and end-to-end retrieval-conditioned loop-closure quality.

The rest of the paper is organized as follows. Section II reviews related work. Section III presents the UNiLOOP framework and training strategy, and Section IV reports the experimental evaluation. Finally, Section V concludes the paper and outlines future work.

References (30)