# FreeLoc: Online Floorplan Localization via Diffusion-Aided Pose Refinement

Robotics.world

> Floorplans are compact and widely available maps, but leading RGB floorplan localization methods convert them into dense, pose-indexed offline databases for each building.

**arXiv**: 2610.05011 · accepted · CORL

**Published**: 2026-10-04 · revised · 2026-10-08

**Authors**: Haocheng Peng, Boyang Zhou, Jiarui Hu, Xiyue Guo, Ziyang Zhang, Boming Zhao, Yifan Gao, Xiao Li, Hujun Bao, Zhaopeng Cui

## In plain words

Floorplans are compact and widely available maps, but leading RGB floorplan localization methods convert them into dense, pose-indexed offline databases for each building. This ties localization accuracy, storage, and runtime to the resolution of the discretized pose space and requires time-consuming scene-specific preprocessing.

## AI summary

## Overview

**Research area:** Robotics, indoor visual localization, and RGB-based floorplan camera pose estimation.

**Technical level:** Advanced. The paper assumes familiarity with SE(2) pose estimation, neural depth prediction, diffusion models, and histogram filtering.

**Scope:** FreeLoc is an online, RGB-only floorplan localization framework that eliminates scene-specific offline ray databases by querying the floorplan directly and refining coarse pose candidates with a diffusion-aided network for both single-frame and sequential localization.

## What This Paper Is About

Floorplans are compact and widely available maps, but leading RGB floorplan localization methods convert them into dense, pose-indexed offline databases for each building. This ties localization accuracy, storage, and runtime to the resolution of the discretized pose space and requires time-consuming scene-specific preprocessing. FreeLoc asks whether a robot can instead treat the floorplan as a directly queryable geometric map and achieve accurate single-frame and sequential localization in a new environment without building any offline database.

## Key Contributions

1. **Database-free online framework:** FreeLoc introduces an online coarse-to-fine pipeline for RGB-based floorplan localization that removes scene-specific offline database construction and supports immediate deployment in new environments.
2. **Online geometric querying with diffusion-aided refinement:** The system retrieves plausible pose anchors by querying floorplan rays on the fly using a GPU-accelerated, rotation-aware ray kernel with analytic ray-boundary intersections. A diffusion-aided pose refinement network then estimates residual pose corrections and produces continuous pose estimates beyond the coarse sampling resolution.
3. **Online likelihood construction for sequential localization:** Coarse candidates and refined pose hypotheses are combined into observation likelihoods online, enabling histogram-filter-based temporal fusion without a precomputed ray database.
4. **Broad experimental validation:** Experiments on Gibson and Structured3D compare FreeLoc against PF-Net, LASER, and F3Loc, and a real-world experiment in the LaMAR HGE building tests practical deployability.

## Main Findings

- **Single-frame accuracy improves over the strongest baseline:** On Gibson(f), FreeLoc reaches 10.0% recall at 0.1 m, 39.4% at 0.5 m, 44.6% at 1.0 m, and 42.9% under the joint 1.0 m and 30° threshold, compared with F3Loc at 5.3%, 30.7%, 37.9%, and 36.3%. On Structured3D, FreeLoc reaches 3.1%, 23.9%, 30.5%, and 29.1%, compared with F3Loc at 1.7%, 15.0%, 23.0%, and 21.9%. The paper reports improvements of 4.7 to 8.7 percentage points on Gibson(f) and 1.4 to 8.9 percentage points on Structured3D across all recall metrics.
- **Sequential tracking is substantially more robust:** On Gibson(t) with 100-frame sequences, FreeLoc achieves 100.0% success rate at 1 m, compared with 86.5% for F3Loc, 35.0% for LASER, and 8.0% for PF-Net. FreeLoc reduces RMSE over all trajectories to 0.15 m, an 82.8% reduction relative to F3Loc's 0.87 m. RMSE over successful trajectories is 0.15 m versus 0.14 m for F3Loc, a marginal difference that the authors attribute to reconstructing dense likelihoods from sparse online candidates.
- **Offline preprocessing is eliminated:** F3Loc runs at 0.014 s per frame once its scene-specific ray database exists, but constructing that database takes 1.48 hours for a single Gibson(t) scene covering approximately 10 m × 6 m. FreeLoc runs at about 15 Hz, or 0.069 s per frame, including online sampling, and requires no offline ray-database construction.
- **Refinement helps most when coarse anchors are plausible:** When coarse hypotheses are within 0.5 m, 1.0 m, and 1.5 m of ground truth, diffusion refinement reduces average translation error from 0.25 m to 0.18 m, from 0.35 m to 0.25 m, and from 0.42 m to 0.32 m, respectively. Across all coarse hypotheses, including cross-room cases, the gain is marginal, from 3.14 m to 3.09 m.
- **Diffusion refinement outperforms ICP:** Compared with ICP optimization on Gibson(t), diffusion-aided refinement improves SR@1m and SR@0.5m by 2.7 percentage points, raises SR@0.2m from 43.2% to 51.4%, an 8.2 percentage-point gain, and reduces RMSE over all trajectories by 28.6%, from 0.21 m to 0.15 m. The additional latency is 6.8 ms, with 35.2 ms versus 28.4 ms for ICP.
- **Ego-motion disturbances are tolerated:** Under clean ego-motion, FreeLoc achieves 100.0% SR@1m with 0.145 m RMSE for successful and all trajectories. Under severe Gaussian noise it retains 97.3% SR@1m with 0.235 m RMSE for successful trajectories and 0.307 m over all trajectories. Under motion-dependent noise it remains at 100.0% SR@1m across mild, moderate, and severe settings, and it remains at 100.0% SR@1m when ego-motion is unavailable for five consecutive frames.
- **Real-world deployment converges in a large building:** In the LaMAR HGE building, covering about 130 m × 130 m and captured with a handheld iPhone with a narrow 48° field of view, the posterior is initially multi-modal but converges to a stable peak within about 66 frames. FreeLoc maintains approximately 3 Hz inference on this large-scale floorplan and enables faster scene preparation than F3Loc.

## Methodology in Plain English

**Step 1: Make the image gravity-aligned.** Handheld and head-mounted cameras can be rolled or pitched arbitrarily. FreeLoc uses roll and pitch from inertial sensors, or estimates them with an off-the-shelf single-image calibration method such as GeoCalib, then warps each image into a gravity-aligned view. A visibility mask marks invalid regions created by the warp.

**Step 2: Turn the image into rays.** Following F3Loc, the system predicts floorplan depth from the gravity-aligned image and converts that depth into a set of equiangular rays. Intuitively, these rays describe how far the walls appear to be in different directions from the camera.

**Step 3: Query the floorplan online instead of a database.** FreeLoc samples a compact set of candidate positions and yaw angles. For each candidate, it casts rays into the floorplan and computes where each ray hits a wall. Because floorplans are stored as line segments, the system computes these intersections analytically rather than testing against a rasterized occupancy grid. The operation is vectorized on a GPU, so many candidates and boundary segments are evaluated in parallel. Candidates are ranked by how closely their floorplan ray distances match the image-predicted ray distances, and the top-K anchors are retained.

**Step 4: Refine anchors with a diffusion model.** The coarse anchors are still limited by the sampling grid. For each anchor, FreeLoc estimates a residual correction in SE(2), represented as a translation plus a sine-cosine encoding of the yaw correction. Instead of regressing this correction in one shot, the network is trained as a conditional diffusion model: it learns to remove noise from a noisy residual while conditioned on paired image-side and floorplan-side ray observations. A shared PointNet-style ray encoder and a Ray Discrepancy Encoder compute soft correspondences between the two ray sets and produce a conditioning feature. At inference, 10-step DDIM sampling produces the residual, which is composed with the coarse anchor to yield a refined continuous pose. During training, a co-visible "gold anchor" near ground truth is sampled to provide meaningful residuals; at inference, all top-K coarse anchors are refined in batch, re-queried online, and re-scored.

**Step 5: Build likelihoods online for sequential localization.** For image sequences, FreeLoc scatters the coarse pose scores into a discretized SE(2) pose volume to form a sparse initial likelihood. The top-K peak regions are refined with the diffusion module and updated with refined poses and confidence scores, while other sampled locations keep their coarse likelihoods. The sparse score set is interpolated and spatially smoothed to produce an observation likelihood. A histogram filter propagates the previous posterior using inter-frame ego-motion and updates it with the current likelihood, using decoupled translation and rotation filters for speed. The final pose is the maximum a posteriori estimate.

**Implementation details:** The system uses a fixed budget of 2000 coarse sampled locations, a 15° rotation interval, and K = 10 anchors for refinement. The floorplan-depth estimator is trained for 100 epochs with batch size 32, and the diffusion refinement network for 200 epochs with batch size 128, using AdamW with an initial learning rate of 1 × 10⁻³ and cosine annealing. The refinement network has approximately 3.0 M parameters. All experiments run on an NVIDIA RTX 4090 GPU.

## Why This Matters

**Impact on research:** FreeLoc reframes floorplan localization from retrieval over a precomputed, pose-indexed database to online geometric querying plus learned continuous refinement. This removes the sampling-resolution trade-off that constrains database-based methods and shows that a diffusion model can serve as a pose optimizer guided by ray-level geometry. The online likelihood construction also extends the same coarse-to-fine ideas to temporal filtering without reintroducing a database, which is a useful template for other map-based localization problems.

**Real-world applications:**

- **Service and delivery robots entering new buildings:** A robot given only a floorplan could localize after deployment without a site-specific scanning or database-construction pass.
- **Handheld and head-mounted AR devices:** The gravity-alignment step explicitly handles arbitrary roll and pitch, making the approach relevant to handheld or head-mounted indoor navigation and AR.
- **Multi-site facility inspection and security:** Because the floorplan is queried online, the same system can be applied across many buildings with different layouts rather than requiring per-building offline databases.
- **Indoor navigation where image

## Authors’ abstract

Floorplans provide compact and widely available geometric maps for indoor localization, but existing high-performing floorplan-based methods still convert them into dense scene-specific offline databases, tying accuracy, storage, and runtime to the sampling resolution of the discretized pose space. We present FreeLoc, an online RGB-based floorplan localization framework that treats the floorplan as a directly queryable geometric map. FreeLoc introduces an efficient online…

[The full abstract on arXiv](https://arxiv.org/abs/2610.05011)

[Read the original paper](https://arxiv.org/abs/2610.05011)

## Related papers

- [LEAP: Making Privileged Geometry Supervision Effective for Visuomotor Learning](https://robotics.world/paper/leap-making-privileged-geometry-supervision-effective-for-visuomotor-2610.07015) 2026-10-04 · cs.RO · Also by Xiao Li
- [SuperNav: An Agentic Navigation System for Any Task in Any Scene](https://robotics.world/paper/supernav-an-agentic-navigation-system-for-any-task-in-any-scene-2610.12126) 2026-10-08 · cs.RO · Also by Hujun Bao
- [ArtManip: Category-Level Articulated In-Hand Manipulation](https://robotics.world/paper/artmanip-category-level-articulated-in-hand-manipulation-2609.12498) 2026-09-11 · cs.RO · Also by Zhaopeng Cui
- [DKWBC: Decoupling Motion Tracking and Balancing for Humanoid Whole-Body Control](https://robotics.world/paper/dkwbc-decoupling-motion-tracking-and-balancing-for-humanoid-whole-body-2611.09605) 2026-11-06 · cs.RO · Also by Hujun Bao
- [LHNav: Long-Horizon Humanoid Navigation via Multirate Coordination and Physics-Grounded Action Data](https://robotics.world/paper/lhnav-long-horizon-humanoid-navigation-via-multirate-coordination-and-2611.12136) 2026-11-09 · cs.RO · Also by Hujun Bao

---

Canonical: https://robotics.world/paper/freeloc-online-floorplan-localization-via-diffusion-aided-pose-2610.05011
