arXiv:2610.41833cs.CVOct 2026

Manuscript Offprint

arXiv:2610.41833

PGGT-Loc: Primitive-Grounded Geometry Transformer for Feed-Forward Camera Localization

Hanqiao Ye, Yuzhou Liu, Mengqi Rong, Jian Liu, Yangdong Liu, Shuhan Shen

Abstract

Camera localization methods are mostly multi-stage pipelines relying on dedicated and complex maps that are costly to construct, store, and maintain over time. Alternatively, well-structured maps that organize scenes with compact yet expressive primitives are often readily available, providing rich structural and semantic cues that humans can interpret. However, their potential for direct camera localization remains largely unexplored due to the significant modality gap between map primitives and visual observations. This motivates a new concept for localization, which estimates camera poses by grounding query observations to map primitives. In this paper, we instantiate the concept in the context of planar primitives with PGGT, the Primitive-Grounded Geometry Transformer network. Given a single query image and a set of planar map primitives, the network is trained to predict multiple localization targets for feed-forward 6-DoF camera localization that generalizes to unseen environments. With this straightforward and scalable architecture, our method pushes the state-of-the-art localization performance on both dense surface maps and minimal layout models. The code and models are available at https://github.com/3dv-casia/PGGT-Loc.

1 Introduction

Camera localization, the task of estimating the orientation and position of a query image relative to a pre-existing map, stands as a fundamental problem in computer vision and robotics, with wide applications in augmented reality (AR) [95], robotic navigation [42], and multi-agent collaboration [29].

One popular family of approaches, known as structure-based localization, typically establishes 2D-3D correspondences between the query image and the scene structure, either by matching local features [11, 34, 48, 62, 66, 72] or through direct scene coordinate regression [9, 10, 36, 69, 77]. With these explicitly established correspondences, the camera pose is then estimated by a robust geometric solver such as PnP-RANSAC [23, 24, 40]. Note that these approaches require a dedicated map triangulated or trained from a large database of mapping images before a new image can be localized. While more general map representations have been explored for the task, e.g., meshes [57] and NeRF/3DGS [17, 33, 54, 91], these methods still depend heavily on photorealistic scene appearance and often require an initial pose estimate for keypoint matching or iterative pose refinement.

Well-structured maps are arrangements of high-level primitives and may further be enriched with relationships among them [3–5, 49, 50, 63, 88, 97]. Despite the significant modality gap between the map primitives and visual observations, which hinders the straightforward adaptation of the

∗^{*}Corresponding authors.

40th Conference on Neural Information Processing Systems (NeurIPS 2026).

Figure

Figure 1: Overview. (a) PlanaReLoc [90] localizes cameras against dense surface maps by explicitly matching 2D plane proposals with planar map primitives. (b) SPVLoc [25] localizes cameras against minimal layout models by retrieving the best-matching panoramic rendering. (c) Our PGGT-Loc operates directly on query patches and map primitives, enabling feed-forward localization across both dense surface maps and minimal layout models with a unified base architecture.

aforementioned localization paradigms, we argue that these map representations encode rich structural and even semantic information that remains underexploited for direct camera localization.

Among the many map primitives, planes are particularly essential in representing physical surfaces, owing to their notable compactness and prevalence in structured environments [2, 83, 86], which has motivated a recent work, named PlanaReLoc [90], to explore their use for camera localization. As illustrated in Fig. 1a, the method introduces a plane-centric feature-matching pipeline that first establishes cross-modal correspondences between planes in the query and the map, and then estimates the pose via 2D–3D registration. While the method demonstrates the potential of planar primitives for streamlined camera localization without map texture, pose priors, or per-scene training, it still relies on an off-the-shelf plane recovery module to generate reliable 2D plane proposals and geometric priors for primitive matching and pose estimation, which poses a major bottleneck in practice.

Meanwhile, the three-stage pipeline in PlanaReLoc cannot be directly applied to minimal layout models [19, 97], whose primitives are restricted to architectural entities that do not span all physical surfaces. For localization on such minimalist maps, the render-and-compare paradigm dominates existing methods. As depicted in Fig. 1b, the state-of-the-art method SPVLoc [25] first renders the layout map into a set of semantic panoramas by exhaustively sampling viewpoints across the scene, and then regresses the relative pose between the best-retrieved panorama and the query image. Although this paradigm neatly bridges the modality gap, reducing structure-based localization to matching 2D renderings inevitably discards structural information that could otherwise be exploited.

In this work, motivated by the goal of fully leveraging high-level map primitives for more straightforward camera localization, we introduce primitive-grounded localization, a new concept that casts the task as the grounding of query observations in map primitives. Driven by the concept and inspired by the DUST3R [82] architecture, we propose PGGT, a feed-forward network whose name stands for Primitive-Grounded Geometry Transformer. As shown in Fig. 1c, PGGT takes a single query image and a set of map primitives as inputs, and predicts the camera pose w.r.t. the map in a single forward pass, eliminating the need to solve for the pose from explicit primitive correspondences or match the query against exhaustive 2D renderings of the map. We summarize our contributions as follows:

  • We introduce primitive-grounded localization, a new concept to localize cameras against well-structured maps through the grounding of query observations in map primitives.

  • The concept is concretized in the context of planar primitives by PGGT, a cross-modal transformer network designed to ingest the query image and map primitives as direct inputs, and predict a set of localization-specific targets for feed-forward camera localization.

  • PGGT provides a shared base architecture for localization tasks on both surface maps and layout models, surpassing prior works and demonstrating the potential of primitive-grounded localization as a promising paradigm for diverse primitive-based map representations.

References (97)