NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

3DFA: Aligning the Features Between Point Cloud and Query Image for Scene-Specific Visual Localization

Sizhe Song, Yankuan Chi, Shuhan Zhong, S.-h. Gary ChanCVPR 2026 Findings 2026

TL;DR

3DFA is a novel framework for scene-specific visual localization that directly aligns 2D query image features with 3D point cloud features. By replacing traditional 2D-2D image alignment with a hierarchical 2D-3D patching mechanism and a self-supervised patch-matching loss, it reduces median translation and rotation errors by 18.3% and 8.4% respectively over state-of-the-art methods.

What Problem Does This Paper Address?

Visual localization—estimating the precise camera pose of a query image within a 3D scene—is a foundational technology for robotics, autonomous driving, and augmented reality. In scene-specific visual localization, models are optimized for a single pre-mapped environment (like a specific warehouse or airport) using a reconstructed 3D point cloud and a set of historical "support" images.

The standard localization pipeline extracts 2D keypoints from a query image, aligns them with the 2D support images, and then matches those aligned keypoints to the 3D point cloud to calculate the camera pose. The authors identify a major gap in this paradigm: existing methods rely strictly on 2D-2D feature alignment (matching pixels or images to other images). By bypassing the 3D model during the alignment phase, they throw away the rich geometric and appearance information already optimized inside the 3D point cloud. This leads to poor keypoint matching, especially in large-scale environments or scenes with significant visual noise and repetitive structures.

Figure 1. We propose 3DFA, a novel 2D-3D feature alignment ap- proach to directly align the features of the 2D features of the query image with that of the 3D point cloud for scene-specific visual lo- calization. By involving the point cloud into the feature alignment process (c), 3DFA beats previous methods with only 2D-2D fea- ture alignment at either image level or pixel level (a, b). To facili- tate such alignment, 3DFA employs a novel hierarchical patching operation as well as a patch-matching loss function.

Methods

To bridge the gap between 2D images and 3D space, the authors introduce 3DFA (3D Feature Alignment). Instead of aligning the query image to support images, 3DFA directly aligns the 2D query features with the 3D point cloud features through three core components:

  1. Hierarchical Patching: Using a rough initial camera pose estimate, 3DFA projects the 3D points of the point cloud onto the 2D query image plane. It then partitions both the 2D image and the 3D point cloud into spatially corresponding patches. This operation is applied hierarchically across multiple layers using an ascending number of patches (e.g., splitting into $3\times3$, then $5\times5$, $7\times7$, and $9\times9$ grids) to capture features from coarse contextual scales down to fine-grained details.
  2. Feature Alignment Module: For each pair of corresponding 2D and 3D patches, dedicated MLP encoders generate patch descriptors. A 2D-3D fusion layer allows feature exchange between the domains, ensuring both descriptors hold semantically similar features before decoding them back into the original keypoint and point cloud representations.
  3. Patch-Matching Loss: To train the network without requiring tedious manual annotations, the authors designed a self-supervised patch-matching loss. It constructs a cosine similarity matrix between all patch descriptors, forcing the network to maximize similarity for true corresponding pairs and minimize it for non-corresponding pairs.

The entire pipeline runs iteratively across multiple 3DFA layers before a final pose estimation module refines the matches using local cross-attention and computes the final camera pose via a PnP algorithm.

Figure 2. There are multiple 3DFA layers in the network, each consisting of 1) pose estimation; 2) Hierarchical Patching (Section 3.2); and 3) Feature Alignment Module (Section 3.2). Patch-matching loss (Section 3.3) is also included in each 3DFA layer as supervision. At the end, a final pose estimation (Section 3.4) will be conducted using aligned features.

Datasets

The authors evaluated 3DFA across three datasets representing different environmental scales:

  • 7Scenes: A widely used, smaller benchmark featuring below-room-level indoor environments.
  • ScanNet++: A high-fidelity dataset consisting of room-level indoor scenes.
  • DL3DV-10K: A large-scale dataset featuring expansive scenes (widths typically exceeding 20 meters) with diverse architectural styles and categories.

Key Insights and Ideas

  • Direct 2D-3D Fusion Beats 2D-2D Cascades: Directly updating 3D point features alongside 2D image features creates a tighter mathematical coupling, preventing the errors that accumulate when treating 3D matching as a secondary, isolated step.
  • Coarse-to-Fine Ascending Scales Matter: The ablation studies revealed that starting with large patches (broad context) and progressively moving to smaller patches (fine details) yields the highest accuracy. Because unaligned 3D features initially have small receptive fields, starting broad helps anchor the global context before refining local details.
  • Geometry Resolves Visual Ambiguity: By injecting 3D geometric constraints directly into the feature space, 3DFA successfully differentiates between visually identical keypoints—such as repeated windows or columns—that frequently fool purely appearance-based 2D matching methods.

Key Results

3DFA achieved substantial performance gains over state-of-the-art (SOTA) baselines like NeRFLoc, PixLoc, ACE, and DUSt3R:

  • Large-Scale Scenes (DL3DV-10K): 3DFA achieved SOTA translation performance across all evaluated scenes, reducing the average translation error to 21.5 cm and rotation error to 1.95°.
  • Room-Level Scenes (ScanNet++): 3DFA delivered the best median translation results across all six test environments, achieving an average error of 3.88 cm (compared to NeRFLoc's 4.11 cm and PixLoc's 4.48 cm).
  • Robustness to Noise: When tested against highly inaccurate initial pose estimates, 3DFA maintained strong performance, outperforming competing alignment methods in "Hard" difficulty subsets by significant margins.

Limitations and Future Work

While robust, 3DFA's patching mechanism inherently relies on an initial coarse camera pose to project the 3D points onto the 2D image plane. If the initial estimate is completely decoupled from reality (e.g., an entirely wrong room), the initial patch correspondences will be invalid.

For future work, the authors note that because their framework treats the underlying 3D model as a general point cloud with feature vectors, 3DFA is highly adaptable. A promising next step is integrating it with newer, more sophisticated 3D representations, such as variants of 3D Gaussian Splatting.

Summary updated

BibTeX
@inproceedings{song2026dfa,
  author = {Sizhe Song and Yankuan Chi and Shuhan Zhong and S.-H. Gary Chan},
  title = {{3DFA: Aligning the Features Between Point Cloud and Query Image for Scene-Specific Visual Localization}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=4aZtbjT7D4},
}
Figure