SceneAligner: 3D-Grounded Floorplan Localization in the Wild

Junhyeong Cho, Ruojin Cai, Hadar Averbuch-Elor

TL;DR

SceneAligner is a novel framework for localizing unconstrained "in-the-wild" image collections within rasterized floorplans by grounding the task in 3D reconstruction. By projecting gravity-aligned 3D point clouds into 2D density maps and using a fine-tuned foundation model for cross-modal alignment, it achieves state-of-the-art performance, even in extremely sparse settings with just a single input image.

What Problem Does This Paper Address?

Imagine you’re in a massive historic landmark or a sprawling public building. You have a scanned image of a floorplan on your phone and a few photos you've taken. How do you figure out exactly where you are?

This is the floorplan localization problem. While it sounds simple, existing computational methods struggle "in the wild." Most prior work assumes small-scale, controlled environments and requires precise vectorized floorplans (clean CAD data with defined walls and openings). In reality, floorplans are often just rasterized images—scanned drawings or symbolic maps—and the photos we take are unconstrained, featuring diverse lighting and viewpoints. The fundamental challenge is the massive "modality gap" between a perspective photograph and a top-down architectural drawing.

Methods

SceneAligner bridges this gap by reinterpreting localization as a 3D reconstruction and alignment problem. The pipeline follows four main steps:

  1. Gravity-Aligned 3D Reconstruction: Using 3D foundation models (like $\pi^3$ or VGGT), the system reconstructs a 3D point cloud from the input images. To ensure the scene is oriented correctly relative to the floor, it uses a gravity estimator (GeoCalib) to align the reconstruction with the vertical axis.
  2. 2D Density Map Extraction: The 3D scene is orthographically projected onto a 2D plane to create a "density map." The authors apply selective projection—filtering out floors and ceilings to highlight vertical structures like walls—creating a visual proxy that structurally resembles a floorplan.
  3. Cross-Modal Feature Matching: This is the core innovation. The authors adapt a 2D foundation model (DINOv3) using LoRA (Low-Rank Adaptation) to learn a shared feature space between the noisy, projected density maps and the clean, symbolic floorplans.
  4. Global Alignment: Using the learned correspondences, the system estimates a 2D similarity transform (scale, rotation, and translation) via RANSAC to snap the 3D reconstruction onto the floorplan.
The SceneAligner pipeline: from image collection to aligned 3D output.

To ensure the alignment is physically sound, the authors introduced structural consistency losses during training. These losses (topology preservation and geometry consistency) penalize the model if it tries to "warp" the geometry in ways that violate the rigid structure of the building.

Datasets

The authors evaluated SceneAligner on two primary testbeds:

  • C3 Dataset: A large-scale, in-the-wild dataset of diverse photographs paired with floorplans. The authors curated a "clean" subset of 574 scenes to provide a more reliable benchmark for the community.
  • Structured3D: A synthetic indoor dataset used to compare SceneAligner against traditional indoor localization methods that rely on discretized pose spaces.

Key Insights and Ideas

  • 3D as an Intermediate Bridge: Instead of trying to match a 2D photo directly to a 2D map, SceneAligner uses 3D reconstruction as a structural bridge. The top-down projection of a 3D scene naturally shares the same "language" as a floorplan.
  • Foundation Models Need a "Structural Nudge": While models like DINOv3 are powerful, they struggle with the appearance gap of architectural drawings. The paper shows that fine-tuning with structural priors—ensuring that relative angles and distance ratios are preserved—is critical for robust matching.
  • Robustness to Sparsity: Because the method relies on global scene structure rather than local image matching, it remains effective even when very few images are available.
Comparison of feature alignment before and after the proposed fine-tuning scheme.

Key Results

SceneAligner demonstrates a massive leap over previous state-of-the-art methods:

  • In-the-Wild Performance: On the C3 dataset, it improved combined angular-positional recall by over 100% compared to the previous best method, C3Po (73.58% vs 32.96%).
  • Sparse View Efficiency: The model achieves high accuracy with as few as 10 to 30 images and significantly outperforms baselines even when given only a single input view.
  • Synthetic Benchmarks: It outperformed specialized indoor localization methods on Structured3D by 37.2% in combined recall, despite those methods having the advantage of using discretized search spaces.
  • Downstream Utility: The authors demonstrated that SceneAligner can be used to align disjoint interior and exterior 3D reconstructions by anchoring them both to a shared floorplan—a task that typically fails for standard 3D reconstruction tools due to lack of visual overlap.
Qualitative results showing successful localization across different scales and view counts.

Limitations and Future Work

The primary limitation is the dependency on the 3D foundation model. If the initial 3D reconstruction is highly inaccurate or fails to capture enough wall geometry, the resulting density map will be too noisy for successful alignment. Additionally, in extremely sparse settings (like a single photo of a generic hallway), the system can face structural ambiguity, where the local geometry matches multiple locations on the floorplan.

Future work aims to explore joint reasoning, where the system simultaneously optimizes the 3D scene geometry and the floorplan alignment to improve robustness against imperfect reconstructions.

Summary updated

BibTeX
@inproceedings{cho2026scenealigner,
  author = {Junhyeong Cho and Ruojin Cai and Hadar Averbuch-Elor},
  title = {{SceneAligner: 3D-Grounded Floorplan Localization in the Wild}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=FEWdZphkET},
}
Figure