Manuscript Offprint
arXiv:2611.00704LoD-Loc v4: Towards Generalized Aerial Visual Localization via Panoptic LoD 3D Map Registration
Abstract
Aerial visual localization over Level-of-Detail (LoD) 3D Maps has recently gained significant traction due to its global scalability, storage efficiency, and privacy-preserving nature. However, existing methods rely almost exclusively on building elements, which leads to catastrophic localization failures in rural or undeveloped areas where buildings are sparse or non-existent. To address this, we construct a unified Panoptic LoD 3D Map by fusing OpenStreetMap (OSM), Digital Elevation Models (DEM), and LoD assets, reformulating the problem as a panoptic registration task. By parsing the query image into discrete building 'thing' instances and continuous 'stuff' regions comprising road, vegetation, and water, we establish a holistic alignment with this map to robustly optimize the camera pose. To enable reliable panoptic perception, we develop a new automated pipeline that constructs AirPan - the largest aerial panoptic segmentation dataset to date, comprising 85k images with pixel-accurate annotations. This empowers our panoptic segmentation model to exhibit remarkable zero-shot generalization capabilities. Extensive experiments demonstrate that LoD-Loc v4 consistently outperforms state-of-the-art (SOTA) baselines by a significant margin. Most notably, it successfully maintains reliable localization in building-less scenarios, completely overcoming the catastrophic failures of prior building-centric paradigms.
1 Introduction
Aerial visual localization, the task of estimating the 6-DoF pose of an unmanned aerial vehicle (UAV) against a geo-referenced map, is a foundational technology for critical applications, including GNSS-denied navigation, UAV-based VR/AR, and digital twin systems.
Conventional methods localize UAVs using 2D geographic priors, primarily DEM and Digital Orthophoto Maps (DOM) [26, 63, 9, 50, 49]. These methods typically solve the camera pose by performing feature matching between the UAV query image and the reference map, followed by the calculation of geometric transformations such as similarity or homography. Despite its prevalence, this 2D reference-based approach encounters a fundamental limitation when the UAV operates at lower altitudes or with oblique viewing angles, as standard 2D maps completely lack view-dependent building height information, leading to localization failure.
To bridge this gap, recent methods investigate localization against photorealistic 3D maps, such as mesh models derived from oblique photogrammetry. These approaches align sparse [58, 37] or dense query features [12] with corresponding features synthesized from the reference mesh. While effective across diverse view angles and altitudes, the acquisition cost, storage overhead, and maintenance burden of photorealistic 3D maps are prohibitive for large-scale deployment. Furthermore, this map raises privacy concerns for individuals and the government.
*Correspondence to yanshen12@nudt.edu.cn.
Preprint.

Figure 1: In this paper, we introduce LoD-Loc v4 to extend aerial localization beyond building-centric scenes based on the Panoptic LoD 3D Map. In urban scenes, our method outperforms SOTA baselines. In building-less scenes, LoD-Loc v4 maintains reliable results by utilizing road, vegetation, and water layouts as panoptic cues, whereas previous methods fail entirely.
We therefore pose a question: Can we find a 3D map that is global in scale, lightweight in storage, and privacy-compliant, while capable of supporting UAV localization across extreme altitudes and oblique viewing angles? Panoptic LoD 3D Maps, the "white-box" models in commercial navigation apps (i.e., Google Maps, Apple Maps, and AMap), provide a highly practical and promising approach. These maps decompose complex scenes into structured semantic layers (e.g., road, water, vegetation) and discrete instance geometries (e.g., buildings). Although preliminary studies [64, 65, 39] have attempted to utilize buildings from such maps for visual localization, their effectiveness is fundamentally bottlenecked by the visibility of building instances, leading to complete localization failure in scenes where building structures are sparse or absent.
To address this, we propose a Panoptic Registration Paradigm that shifts the focus from purely geometric building matching to a holistic alignment of all panoptic elements. Our strategy integrates discrete instance-level 'thing' (e.g., buildings) with continuous 'stuff' (e.g., road, vegetation, water), yielding a dense and robust geometric signal for pose estimation. To enable the zero-shot capability of panoptic segmentation for query, we introduce AirPan, a massive synthetic dataset for aerial panoptic segmentation. Specifically, we develop a highly automated pipeline that fuses OSM, DEM, and LoD assets to generate 85k synthetic images with pixel-level labels, eliminating manual intervention and far exceeding existing benchmarks. As illustrated in Figure 1, LoD-Loc v4 achieves successful localization in building-less regions where prior studies catastrophically fail. Moreover, our approach yields substantial accuracy gains compared to baselines even in urban areas.
Our main contributions are summarized as follows:
- We construct a Panoptic LoD 3D Map and propose a new aerial localization paradigm that reformulates 4-DoF pose estimation as panoptic registration over this map.
- We develop a scalable automated simulation pipeline and introduce AirPan, to the best of our knowledge, the largest and most diverse aerial panoptic segmentation dataset.
- We demonstrate through extensive experiments that our method consistently outperforms baselines by a large margin, especially in building-less scenes.
Localization with geographic 3D maps. The LoD-Loc series forms our direct foundation. LoD-Loc [64] proved the feasibility of aerial localization over 3D city models via neural wireframe alignment with LoD2/3 geometries. LoD-Loc v2 [65] enhanced scalability using LoD1 maps and semantic building silhouettes, while LoD-Loc v3 [39] resolved dense urban ambiguities via instance-level matching. However, their exclusive reliance on building geometries restricts their operational scope. Beyond urban UAV localization, GeoPose3K [6] provides a mountain-landscape dataset for outdoor camera pose estimation. We transcend this building-centric bottleneck by introducing a unified Panoptic LoD 3D Map. This formulation preserves discriminative building structures as 'thing' instances while explicitly incorporating continuous land-cover regions as 'stuff' semantics. By jointly aligning these elements with the query image, our approach enables localization in the evaluated building-sparse and building-less environments.
Aerial panoptic segmentation. Panoptic segmentation unifies instance and semantic scene understanding [27], recently driven by transformer architectures like Mask2Former [11] and large vision models [28, 66, 62]. Deploying these to aerial imagery suffers from severe domain shifts. To avoid prohibitive retraining, recent works adopt parameter-efficient fine-tuning (PEFT) strategies like adapters and Low-Rank Adaptation (LoRA) [24, 22, 10, 7, 60, 56, 5]. While we adopt this efficient paradigm using a low-rank adapted backbone and Mask2Former decoder, our objective diverges from generic aerial panoptic segmentation. Standard tasks exhaustively parse scenes, including transient classes (e.g., vehicles, pedestrians) that act as severe geometric noise during map matching [48, 4]. We circumvent this by distilling the scene into a localization-oriented Panoptic LoD 3D Map. We intentionally discard transient noise, strictly isolating stable building structures as 'thing' instances and static environmental context as 'stuff' regions to provide unambiguous geometric constraints.
Aerial segmentation datasets. Current aerial semantic segmentation datasets [34, 32, 42, 1] provide essential semantic foundations but have two limitations: limited viewpoint and geographic diversity, and difficulty in linking images and camera poses to corresponding geo-referenced 3D maps, limiting their use for map-based aerial localization. To reduce annotation costs and introduce geometric priors, recent efforts utilize synthetic environments (e.g., SynDrone [43], VALID [8], ClaraVid [3]) or map-assisted supervision [25]. However, existing synthetic datasets often rely on fictional environments lacking real-world structural diversity, and map-assisted supervision has been explored using orthorectified aerial imagery [25]. To address the above limitations, our AirPan dataset covers diverse geographic regions and viewing angles and associates images and camera poses with corresponding Panoptic LoD 3D Maps built from DEM, OSM, and LoD models. These maps are used for both panoptic annotation and localization, providing a common geographic reference for the two tasks.
3 Method
Problem Formulation. Given an aerial query image , a geographically aligned Panoptic LoD 3D Map , and a prior pose , our goal is to recover the absolute camera pose. Here, denotes an externally supplied initial estimate of the camera pose for the current query. In our evaluation, it is obtained from onboard GPS/IMU measurements or synthesized by perturbing the ground-truth pose, depending on the benchmark (Section 5.1). Each query is localized independently, and its prior is not the localization output of the previous frame. Following established aerial localization paradigms [59, 45, 46, 31, 17], we leverage onboard inertial sensors that reliably provide the gravity direction to determine pitch and roll. This reduces the pose estimation problem to a 4-DoF , comprising 3D translation and 1D yaw.
Overview. The LoD-Loc v4 pipeline contains three stages as shown in Figure 2. First, we construct a Panoptic LoD 3D Map from publicly available geographic data in Section 3.1. Second, we build a panoptic segmentation model that converts the query image into a panoptic mask compatible with the map representation in Section 3.2. Third, we build a particle-filter-based localization framework that refines the prior pose by evaluating the alignment between the predicted panoptic silhouette of the query image and rendered Panoptic LoD 3D Map hypotheses in Section 3.3.

Figure 2: Overview of LoD-Loc v4. 1. Constructing a Panoptic LoD 3D Map from DEM, OSM, and LoD models (Section 3.1). 2. Extracting building instances and continuous regions from query via a segmentation module (Section 3.2). 3. Refining the prior pose to via panoptic alignment between predicted masks and rendered hypotheses (Section 3.3).
3.1 Panoptic LoD 3D Map Construction
Panoptic LoD 3D Map jointly encodes buildings as 'thing' instances alongside road, vegetation, and water as 'stuff' regions. To construct this map at a global scale, we design a fully automated pipeline that fuses three public data modalities: OSM [36], DEM, and LoD models [39].
The pipeline rasterizes OSM land-use polygons and aligns them with DEM tiles to generate a semantically labeled 2.5D terrain surface. We then inject topologically instantiated LoD building models onto this terrain. To support visual rendering, each building instance is assigned a unique random color, while 'stuff' categories utilize fixed semantic colors. Formally, the resulting map is defined as , where denotes the set of discrete building instances ('thing' elements), and denotes the continuous 'stuff' regions spanning the semantic space . This unified scene is ultimately stored in the OpenSceneGraph Binary (OSGB) format, with comprehensive generation details provided in Appendix C.
3.2 Panoptic Segmentation Architecture
The panoptic segmentation module converts the aerial query image into a panoptic representation compatible with the rendered Panoptic LoD 3D Map. To jointly handle discrete instance-level discrimination and continuous semantic region coverage, we build upon the Mask2Former [11] framework combined with a BEiT-Adapter [10] backbone.
To overcome the substantial domain gap between natural pretraining imagery and our aerial domain without severe overfitting, we freeze the core BEiT encoder and introduce a PEFT strategy. Specifically, we inject LoRA modules [22] into the attention layers. During training, only these LoRA modules, the lightweight spatial adapters, and the Mask2Former decoder are updated. The network is initialized with COCO-panoptic weights to leverage strong geometric priors. Comprehensive architectural details are provided in Appendix B. Formally, given the query image , the network predicts a unified panoptic mask , which is decoupled into two distinct sets of masks:
where denotes the binary mask of the -th predicted building instance, and denotes the mask for 'stuff' category . These outputs structurally correspond to the Panoptic LoD 3D Map and enable direct image-space alignment with any rendered pose hypothesis. The entire architecture is optimized end-to-end utilizing the standard Mask2Former panoptic loss, comprising classification, binary mask, and Dice losses, with all training hyperparameters detailed in Appendix B.
3.3 Localization Framework
The localization stage refines an externally supplied prior pose against the Panoptic LoD 3D Map. We build on the instance-based fine localization framework of LoD-Loc v3 [39] and extend its alignment objective to jointly evaluate building instances and 'stuff' regions. Specifically, each candidate pose is scored using building-instance matching and class-wise overlap of road, vegetation, and water masks. Particle-based optimization then searches for a pose that maximizes this joint score.
Building-instance alignment. Given a candidate pose , the map renderer produces a corresponding hypothesis silhouette , comprising rendered building instances and 'stuff' regions . To effectively handle occlusions, partial observations, and unmapped elements inherently present in aerial views, we match them using an asymmetric one-way objective. For each query building , we find its best rendered match via the Dice coefficient:
where is a small constant preventing division by zero. These optimal instance scores are aggregated using area-aware weights to formulate the overall 'thing' score:
This one-way formulation ensures that every informative query building must be explained by the hypothesis, without penalizing partially visible or over-segmented rendered map instances.
Stuff-region alignment. 'Stuff' regions lack instance identity but are geometrically indispensable in scenarios such as road networks, vegetation corridors, and water bodies where buildings are sparse or absent. For these regions, we compute a class-wise Intersection over Union for each category :
Panoptic alignment score. The final localization objective fuses the complementary 'thing' and 'stuff' terms evaluations into a unified Panoptic alignment score:
where and are corresponding weight parameters. Building structures remain the strongest geometric anchor when present, while the 'stuff' terms provide robust complementary support elsewhere. Compared with purely semantic approaches [65], the instance term resolves repeated-building ambiguities in dense cities. Compared with purely instance-based methods [39], the 'stuff' terms provide additional alignment cues in building-less environments when sufficiently distinctive land-cover boundaries are visible.
Prior-guided direct registration. LoD-Loc v4 directly samples particles around the prior pose . This elegantly circumvents the computationally intensive coarse retrieval stages of earlier pipelines [65], thereby significantly reducing overall inference latency and facilitating real-world UAV deployment. The initial swarm is generated via:
where (0) denotes the initial iteration, perturbs translation and yaw, and is the particle count. Each particle is rendered and evaluated by , with its probability weight assigned via softmax:
where controls the distribution temperature. High-scoring particles are preserved and re-perturbed across iterations. The pose yielding the highest alignment score across all iterations is selected as the final estimation . To mitigate local optima, we utilize a dual-swarm strategy [65, 39] that outputs the globally superior candidate from two independent beams.

Figure 3: Overview of the AirPan dataset. This figure visualizes representative RGB imagery alongside corresponding ground-truth masks sampled from geographically diverse locations. Encompassing both densely built urban layouts and extremely building-sparse environments, the visualization further summarizes the overall dataset scale in terms of total image volume and spatial coverage.
4 The AirPan Dataset
We introduce AirPan, a massive-scale dataset designed for aerial panoptic segmentation and cross-view localization. As illustrated in Figure 3, it encompasses diverse urban layouts and building-sparse scenes, summarizing the overall dataset scale in terms of total image volume and spatial coverage. To reduce manual annotation costs, we develop a scalable pipeline for data generation and automated panoptic annotation. For the Google Earth-based synthetic imagery, we use Google Earth Studio [19] to render RGB images along predefined camera trajectories at varying altitudes and viewing angles. For each image, OpenSceneGraph (OSG) [35] renders the corresponding Panoptic LoD 3D Map (Section 3.1) using matching camera poses and projection parameters to generate panoptic masks. Building instances are assigned unique identifier colors, while continuous 'stuff' regions use class-specific semantic colors.
AirPan comprises 85,162 images covering 43 distinct geographic regions. To further enhance scene diversity and cross-domain robustness, we curate an auxiliary dataset of 25,419 images from existing open-source benchmarks, including VALID [8], ClaraVid [3], Aeroscapes [34], and FloodNet [42], remapping and re-annotating them to fit our panoptic taxonomy.
We first reserve 11 geographic regions for localization testing. We then combine the images from the remaining 32 regions with the auxiliary dataset and split this pool into training and validation sets at a ratio of 80:20. Here, geographic zero-shot means that the localization test regions are excluded from panoptic segmentation training, validation, checkpoint selection, and hyperparameter tuning. Further details of the dataset composition and split are provided in Appendix C.
5 Experiments
In this section, we first describe the experimental setup in Section 5.1, followed by localization results in Section 5.2, ablation studies in Section 5.3, and qualitative visualizations in Section 5.4.
5.1 Experimental Setup
Benchmarks. We evaluate our method on five datasets: UAVD4L-LoDv2 [57], Swiss-EPFLv2 [65], Tokyo-LoDv3 [39], China-NB, and Switzerland-NB. UAVD4L-LoDv2 and Swiss-EPFLv2 test the

Figure 4: Qualitative comparison between LoD-Loc v3 and LoD-Loc v4. The columns from left to right show: query image, prior pose, LoD-Loc v3, LoD-Loc v4 (Ours), and the ground truth. All overlays show the same panoptic map rendered at the corresponding poses.
localization performance in real-world scenarios. Tokyo-LoDv3 provides a challenging testbed of dense urban scenes. China-NB and Switzerland-NB serve as the test sets of the AirPan dataset to evaluate localization performance in building-less scenes. Further details are provided in Appendix E.
Prior pose. For UAVD4L-LoDv2, prior poses are obtained from onboard GPS/IMU. For all other test sets, we synthesize priors by adding independent zero-mean Gaussian noise to the ground-truth translation and yaw, with standard deviations of 10 m per translation axis and 7.5° for yaw.
Baselines. We compare against three LoD-based localization methods, LoD-Loc [64], LoD-Loc v2 [65], and LoD-Loc v3 [39], and two OSM-based methods, OrienterNet [45] and VecMapLocNet [55]. All methods are evaluated on the same query images using the same input priors. Further details are provided in Appendix D.
Evaluation metrics. Following standard localization evaluation protocols [54], we report the percentage of queries localized within (2m, 2°), (3m, 3°), and (5m, 5°) thresholds, along with median translation error T.e. in meters and median rotation error R.e. in degrees.
Panoptic segmentation quality. For panoptic segmentation, we report the standard Panoptic Quality (PQ), Segmentation Quality (SQ), and Recognition Quality (RQ) on our validation split. Table 1 reports the class-wise and overall panoptic metrics. The model achieves an overall PQ of 80.47, demonstrating highly balanced performance across all categories. Specifically, the buildings class reaches a PQ of 75.71, while the 'stuff' classes achieve PQ scores ranging from 81.30 to 90.86, confirming reliable panoptic predictions for downstream localization.
Table 1: Panoptic segmentation quality.
| Metric | All | Thing | Stuff | Vegetation | Water | Road | Background |
|---|---|---|---|---|---|---|---|
| PQ | 80.47 | 75.71 | 81.66 | 90.86 | 81.30 | 82.95 | 71.52 |
| SQ | 88.69 | 87.55 | 88.98 | 93.87 | 93.56 | 85.63 | 82.85 |
| RQ | 90.67 | 86.48 | 91.72 | 96.80 | 86.90 | 96.87 | 86.32 |
Implementation details. The segmentation network is trained for 30 epochs across seven NVIDIA A100 GPUs. Pose estimation inference, employing a dual-swarm particle filter, is executed on a single RTX 4090 GPU. Full details are provided in Appendix E.
Table 2: Quantitative comparison results of different methods over UAVD4L-LoDv2 dataset. T.e. and R.e. denote median translation error (m) and median rotation error (°), respectively. '-' indicates that the median translation and rotation errors exceed 50 m and 10°.
| Method | in-Traj. | out-of-Traj. | ||||||
|---|---|---|---|---|---|---|---|---|
| 2m-2° | 3m-3° | 5m-5° | T.e./R.e. | 2m-2° | 3m-3° | 5m-5° | T.e./R.e. | |
| Prior | 0 | 0 | 4.30 | 6.48/1.63 | 0 | 0 | 0.36 | 11.10/0.92 |
| OrienterNet [45] | 0 | 0 | 0.06 | - | 0 | 0 | 0 | - |
| VecMapLocNet [55] | 0 | 0 | 0.06 | - | 0 | 0 | 0 | - |
| LoD-Loc [64] | 49.56 | 71.82 | 89.09 | 3.32/1.48 | 54.20 | 75.05 | 89.51 | 3.33/1.18 |
| LoD-Loc v2 [65] | 93.70 | 98.40 | 99.50 | 0.72/0.15 | 97.90 | 99.80 | 100.00 | 0.71/0.14 |
| LoD-Loc v3 [39] | 97.60 | 98.90 | 99.70 | 0.49/0.13 | 97.40 | 99.00 | 99.40 | 0.60/0.12 |
| LoD-Loc v4 | 99.60 | 100.00 | 100.00 | 0.42/0.12 | 99.50 | 99.60 | 99.70 | 0.40/0.10 |
5.2 Localization Results
Results on UAVD4L-LoDv2. As shown in Table 2, LoD-Loc v4 achieves the strongest overall precision for both in-Traj. and out-of-Traj. queries. It secures the lowest median translation errors and the highest recall at the (2m, 2°) threshold, while remaining highly competitive at looser thresholds, demonstrating strong cross-domain generalization.
Table 3: Quantitative comparison results of different methods over Swiss-EPFLv2 dataset.
| Method | in-Place. | out-of-Place. | ||||||
|---|---|---|---|---|---|---|---|---|
| 2m-2° | 3m-3° | 5m-5° | T.e./R.e. | 2m-2° | 3m-3° | 5m-5° | T.e./R.e. | |
| Prior | 0 | 0 | 0.56 | 17.6/3.87 | 0 | 0 | 1.06 | 17.9/3.94 |
| OrienterNet | 0 | 0 | 0 | - | 0 | 0 | 0 | - |
| VecMapLocNet | 0 | 0 | 0 | - | 0 | 0 | 0 | - |
| LoD-Loc | 36.79 | 50.56 | 69.77 | 2.87/1.78 | 14.24 | 31.39 | 59.89 | 8.73/2.78 |
| LoD-Loc v2 | 54.20 | 74.60 | 92.00 | 1.83/0.85 | 31.40 | 58.53 | 86.30 | 2.64/0.73 |
| LoD-Loc v3 | 58.60 | 79.90 | 95.40 | 1.61/0.77 | 36.90 | 64.10 | 88.90 | 2.43/0.83 |
| LoD-Loc v4 | 71.30 | 84.10 | 93.10 | 1.29/0.61 | 53.80 | 74.10 | 91.30 | 1.89/0.64 |
Results on Swiss-EPFLv2. As reported in Table 3, LoD-Loc v4 establishes a new SOTA for strict-threshold recall and median translation error in both in-Place. and out-of-Place. queries. The advantages are particularly pronounced under the out-of-Place. queries, where our method consistently outperforms prior baselines across all thresholds, highlighting its exceptional spatial transferability.
Table 4: Quantitative comparison results of different methods over Tokyo-LoDv3 dataset.
| Method | Grid-Traj. | Sequence-Traj. | ||||||
|---|---|---|---|---|---|---|---|---|
| 2m-2° | 3m-3° | 5m-5° | T.e./R.e. | 2m-2° | 3m-3° | 5m-5° | T.e./R.e. | |
| Prior | 0.10 | 1.70 | 8.90 | 8.03/1.78 | 0.30 | 0.80 | 8.80 | 8.19/1.76 |
| OrienterNet | 0 | 0 | 0 | - | 0 | 0 | 0 | - |
| VecMapLocNet | 0.07 | 0.15 | 0.51 | - | 0 | 0 | 0 | - |
| LoD-Loc | 10.52 | 20.95 | 33.80 | 8.03/1.78 | 0 | 0 | 5.06 | 8.19/1.76 |
| LoD-Loc v2 | 2.70 | 8.10 | 22.70 | 7.86/1.48 | 2.30 | 6.80 | 24.00 | 8.75/1.52 |
| LoD-Loc v3 | 39.30 | 68.00 | 89.90 | 2.29/0.27 | 50.30 | 79.90 | 97.30 | 1.98/0.23 |
| LoD-Loc v4 | 52.85 | 80.19 | 95.75 | 1.92/0.24 | 58.34 | 83.46 | 98.21 | 1.80/0.23 |
Results on Tokyo-LoDv3. As presented in Table 4, LoD-Loc v4 consistently dominates LoD-Loc v3 across all recall metrics and achieves notably lower median translation errors for both Grid-Traj. and
Sequence-Traj. queries. This demonstrates that incorporating continuous ‘stuff’ semantics effectively resolves severe geometric ambiguities in hyper-dense urban environments.
Table 5: Quantitative comparison results of different methods over building-less scenes.
| Method | China-NB | Switzerland-NB | ||||||
|---|---|---|---|---|---|---|---|---|
| 2m-2° | 3m-3° | 5m-5° | T.e./R.e. | 2m-2° | 3m-3° | 5m-5° | T.e./R.e. | |
| Prior | 0 | 0 | 6.32 | 8.29/0.17 | 0 | 0.43 | 3.42 | 11.42/0.17 |
| OrienterNet | 0 | 0 | 0 | - | 0 | 0 | 0 | - |
| VecMapLocNet | 0 | 0.37 | 0.74 | - | 0 | 0 | 0 | - |
| LoD-Loc | 0 | 0 | 0 | - | 0 | 0 | 0 | - |
| LoD-Loc v2 | 0 | 0 | 0 | - | 0 | 0 | 0 | - |
| LoD-Loc v3 | 0 | 0 | 0 | - | 0 | 0 | 0 | - |
| LoD-Loc v4 | 45.00 | 57.60 | 73.60 | 2.36/0.56 | 29.90 | 52.10 | 78.20 | 2.91/0.25 |
Results on China-NB, and Switzerland-NB. As shown in Table 5, all building-based LoD-Loc baselines yield zero recall across all thresholds because these scenes lack building structures to anchor their alignment objectives. OrienterNet also yields zero recall at all thresholds on both datasets, whereas VecMapLocNet obtains zero recall on Switzerland-NB and only 0.74% recall at the 5m–5° threshold on China-NB. In stark contrast, LoD-Loc v4 achieves highly reliable localization on both benchmarks. This directly validates our core motivation: ‘stuff’ cues alone can sustain robust localization in building-less scenarios where all building-centric paradigms catastrophically fail.
5.3 Ablation Studies
We conduct ablation studies on the Swiss-EPFLv2 and Tokyo-LoDv3 (Japan_06 and Japan_07) datasets, focusing on the impact of panoptic composition and segmentation quality.
Panoptic composition. As shown in Table 6, discarding ‘thing’ cues on the Swiss-EPFLv2 dataset severely degrades recall, confirming building instances as the primary discriminative signal. Conversely, eliminating continuous ‘stuff’ cues also induces notable performance drops, highlighting their crucial complementary role. The full model synergizes both to achieve optimal results across all metrics, validating that ‘thing’-‘stuff’ complementarity is indispensable for robust localization.
Table 6: Ablation study on panoptic composition.
| Composition | in-Place. | out-of-Place. | ||||||
|---|---|---|---|---|---|---|---|---|
| 2m-2° | 3m-3° | 5m-5° | T.e./R.e. | 2m-2° | 3m-3° | 5m-5° | T.e./R.e. | |
| no thing | 52.20 | 69.40 | 81.20 | 1.87/0.71 | 37.20 | 63.10 | 84.50 | 2.38/0.66 |
| no stuff | 61.00 | 77.10 | 90.20 | 1.51/0.79 | 49.90 | 73.40 | 90.20 | 2.01/0.73 |
| Full | 71.30 | 84.10 | 93.10 | 1.29/0.61 | 53.80 | 74.10 | 91.30 | 1.89/0.64 |
Segmentation quality. As reported in Table 7, we examine the correlation between panoptic segmentation quality (PQ) and localization accuracy on the Japan_06 and Japan_07 queries. Higher PQ generally corresponds to higher recall and lower median translation error, indicating a positive correlation between segmentation quality and pose estimation accuracy.
Table 7: Ablation study on segmentation quality.
| Epoch | PQ | Japan_06 | Japan_07 | ||||||
|---|---|---|---|---|---|---|---|---|---|
| 2m-2° | 3m-3° | 5m-5° | T.e./R.e | 2m-2° | 3m-3° | 5m-5° | T.e./R.e | ||
| 10 | 44.38 | 49.50 | 78.00 | 94.90 | 2.02/0.25 | 43.20 | 71.20 | 92.60 | 2.17/0.26 |
| 20 | 53.28 | 53.10 | 80.20 | 95.20 | 1.95/0.25 | 49.00 | 73.30 | 92.30 | 2.04/0.25 |
| 30 | 63.74 | 57.00 | 85.30 | 97.60 | 1.81/0.23 | 50.50 | 77.30 | 94.70 | 1.99/0.25 |
5.4 Qualitative Results
Figure 4 presents qualitative visualizations. In urban scenes, LoD-Loc v4 achieves significantly tighter alignment than LoD-Loc v3, effectively suppressing geometric ambiguities by integrating surrounding 'stuff' context. In building-less scenes, LoD-Loc v3 fails entirely due to the absence of discrete building instances. In stark contrast, LoD-Loc v4 successfully drives accurate pose optimization by exploiting continuous road, vegetation, and water layouts. These compellingly illustrate the immense practical value of extending the building-only paradigm to panoptic coverage.
6 Conclusion
This paper presents LoD-Loc v4, a novel aerial localization paradigm that overcomes the fundamental limitations of traditional building-centric maps. Our solution is twofold: a scalable, highly automated pipeline generates AirPan, a massive aerial panoptic dataset that empowers robust zero-shot perception, while a new registration strategy reformulates 4-DoF pose estimation as a comprehensive alignment over Panoptic LoD 3D Maps. Extensive experiments demonstrate that by jointly leveraging discrete instance-level 'thing' and continuous 'stuff', LoD-Loc v4 not only achieves SOTA precision in dense urban areas but also sustains reliable localization in building-less regions where prior baselines fail, significantly advancing the practicality of global-scale aerial localization.
Limitations and Future Work. The current formulation localizes each query frame independently without exploiting the temporal consistency across sequential images. In textureless or exceptionally ambiguous regions, this lack of temporal context may occasionally limit pose stability. Incorporating motion models, temporal filtering, or multi-frame aggregation represents a critical direction for future work to seamlessly extend this panoptic alignment paradigm to continuous sequential localization.
Broader Impacts. This work can support UAV navigation in GNSS-denied environments. However, improved localization may also facilitate autonomous guidance and aerial surveillance when integrated with sensing, planning, and flight-control systems, raising privacy and misuse concerns. Our method extends existing LoD localization techniques using publicly available geographic data. Its abstract, untextured map representation contains less appearance detail than photorealistic maps, reducing some concerns about disclosing fine visual details. These properties do not eliminate privacy or misuse risks in downstream applications.
Acknowledgments
This work was supported by the National Natural Science Foundation of China under Grant No. 62406331.
References
[1] S. M. Azimi, C. Henry, L. Sommer, A. Schumann, and E. Vig. Skyscapes fine-grained semantic understanding of aerial scenes. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 7393–7403, 2019.
[2] D. Barath, J. Matas, and J. Noskova. MAGSAC: marginalizing sample consensus. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 10197–10205, 2019.
[3] R. Beche and S. Nedevschi. Claravid: A holistic scene reconstruction benchmark from aerial perspective with delentropy-based complexity profiling. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 26015–26025, 2025.
[4] B. Bescos, J. M. Fácil, J. Civera, and J. Neira. Dynaslam: Tracking, mapping, and inpainting in dynamic scenes. IEEE Robotics and Automation Letters, 3(4):4076–4083, 2018.
[5] Q. Bi, J. Yi, H. Zheng, H. Zhan, Y. Huang, W. Ji, Y. Li, and Y. Zheng. Learning frequency-adapted vision foundation model for domain generalized semantic segmentation. In Advances in Neural Information Processing Systems, volume 37, pages 94047–94072, 2024.
[6] J. Brejcha and M. Čadík. Geopose3k: Mountain landscape dataset for camera pose estimation in outdoor environments. Image and Vision Computing, 66:1–14, 2017.
[7] K. Chen, C. Liu, H. Chen, H. Zhang, W. Li, Z. Zou, and Z. Shi. RSPrompter: Learning to prompt for remote sensing instance segmentation based on visual foundation model. IEEE Transactions on Geoscience and Remote Sensing, 62:1–17, 2024.
[8] L. Chen, F. Liu, Y. Zhao, W. Wang, X. Yuan, and J. Zhu. Valid: A comprehensive virtual aerial image dataset. In Proceedings of the IEEE International Conference on Robotics and Automation, pages 2009–2016, 2020.
[9] S. Chen, X. Wu, M. W. Mueller, and K. Sreenath. Real-time geo-localization using satellite imagery and topography for unmanned aerial vehicles. In Proceedings of the IEEE/RSJ International Conference on Intelligent Robots and Systems, pages 2275–2281, 2021.
[10] Z. Chen, Y. Duan, W. Wang, J. He, T. Lu, J. Dai, and Y. Qiao. Vision transformer adapter for dense predictions. arXiv preprint arXiv:2205.08534, 2022.
[11] B. Cheng, I. Misra, A. G. Schwing, A. Kirillov, and R. Girdhar. Masked-attention mask transformer for universal image segmentation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 1290–1299, 2022.
[12] X. Cheng, L. Wang, Y. Liu, X. Liu, H. Tan, Y. Liu, M. Zhang, and S. Yan. PiLoT: Neural pixel-to-3d registration for UAV-based ego and target geo-localization. arXiv preprint arXiv:2603.20778, 2026.
[13] A. Couturier and M. A. Akhloufi. A review on absolute visual localization for uav. Robotics and Autonomous Systems, 135:103666, 2021.
[14] A. Couturier and M. A. Akhloufi. A review on deep learning for uav absolute visual localization. Drones, 8(11):622, 2024.
[15] Delft University of Technology. 3D BAG, 2025. https://3d.bk.tudelft.nl/projects/3dbag/.
[16] European Space Agency. Copernicus DEM, 2024. https://dataspace.copernicus.eu/.
[17] V. Fragoso, J. DeGol, and G. Hua. gDLS*: Generalized pose-and-scale estimation given scale and gravity priors. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 2210–2219, 2020.
[18] Geospatial Information Authority of Japan. Digital Elevation Model (DEM), 2026. https://www.gsi.go.jp/.
[19] Google. Google Earth Studio, 2018. https://www.google.com/earth/studio/.
[20] G. Gröger, T. H. Kolbe, C. Nagel, and K.-H. Häfele. OGC city geography markup language (CityGML) encoding standard, 2012. Open Geospatial Consortium.
[21] B. M. Haralick, C.-N. Lee, K. Ottenberg, and M. Nölle. Review and analysis of solutions of the three point perspective pose estimation problem. International Journal of Computer Vision, 13: 331–356, 1994.
[22] E. J. Hu, Y. Shen, P. Wallis, Z. Allen-Zhu, Y. Li, S. Wang, L. Wang, W. Chen, et al. LoRA: Low-rank adaptation of large language models. In Proceedings of the International Conference on Learning Representations, 2022.
[23] Institut national de l'information géographique et forestiere. RGE ALTI, 2024. https://geoservices.ign.fr/.
[24] M. Jia, L. Tang, B.-C. Chen, C. Cardie, S. Belongie, B. Hariharan, and S.-N. Lim. Visual prompt tuning. In Proceedings of the European Conference on Computer Vision, pages 709–727, 2022.
[25] P. Kaiser, J. D. Wegner, A. Lucchi, M. Jaggi, T. Hofmann, and K. Schindler. Learning aerial image segmentation from online maps. IEEE Transactions on Geoscience and Remote Sensing, 55(11):6054–6068, 2017.
[26] J. Kinnari, F. Verdoja, and V. Kyrki. Season-invariant GNSS-denied visual localization for UAVs. IEEE Robotics and Automation Letters, 7(4):10232–10239, 2022.
[27] A. Kirillov, K. He, R. Girshick, C. Rother, and P. Dollár. Panoptic segmentation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 9404–9413, 2019.
[28] A. Kirillov, E. Mintun, N. Ravi, H. Mao, C. Rolland, L. Gustafson, T. Xiao, S. Whitehead, A. C. Berg, W.-Y. Lo, et al. Segment anything. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 4015–4026, 2023.
[29] L. Kneip, D. Scaramuzza, and R. Siegwart. A novel parametrization of the perspective-three-point problem for a direct computation of absolute camera position and orientation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 2969–2976, 2011.
[30] D. G. Lowe. Distinctive image features from scale-invariant keypoints. International Journal of Computer Vision, 60:91–110, 2004.
[31] S. Lynen, B. Zeisl, D. Aiger, M. Bosse, J. Hesch, M. Pollefeys, R. Siegwart, and T. Sattler. Large-scale, real-time visual–inertial localization revisited. The International Journal of Robotics Research, 39(9):1061–1084, 2020.
[32] Y. Lyu, G. Vosselman, G.-S. Xia, A. Yilmaz, and M. Y. Yang. Uavid: A semantic segmentation dataset for uav imagery. ISPRS Journal of Photogrammetry and Remote Sensing, 165:108–119, 2020.
[33] Ministry of Land, Infrastructure, Transport and Tourism, Urban Policy Division. PLATEAU (3D City Model), 2020. https://www.geospatial.jp/ckan/dataset/plateau.
[34] I. Nigam, C. Huang, and D. Ramanan. Ensemble knowledge transfer for semantic segmentation. In Proceedings of the IEEE Winter Conference on Applications of Computer Vision, pages 1499–1508, 2018.
[35] OpenSceneGraph Project. OpenSceneGraph, 1999. http://www.openscenegraph.com/.
[36] OpenStreetMap Foundation. OpenStreetMap, 2025. https://www.openstreetmap.org/.
[37] V. Panek, Z. Kukelova, and T. Sattler. MeshLoc: Mesh-based visual localization. In Proceedings of the European Conference on Computer Vision, pages 589–609, 2022.
[38] PDOK. AHN3 / AHN4, 2023. https://www.pdok.nl/.
[39] S. Peng, J. Zhu, X. Li, K. Yang, M. Zhang, Y. Liu, and S. Yan. LoD-Loc v3: Generalized aerial localization in dense cities using instance silhouette alignment. arXiv preprint arXiv:2603.19609, 2026.
[40] N. Piasco, D. Sidibé, C. Demonceaux, and V. Gouet-Brunet. A survey on visual-based localization: On the benefit of heterogeneous data. Pattern Recognition, 74:90–109, 2018.
[41] M. Pietrantoni, M. Humenberger, T. Sattler, and G. Csurka. SegLoc: Learning segmentation-based representations for privacy-preserving visual localization. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 15380–15391, 2023.
[42] M. Rahnemoonfar, T. Chowdhury, A. Sarkar, D. Varshney, M. Yari, and R. R. Murphy. Floodnet: A high resolution aerial imagery dataset for post flood scene understanding. IEEE Access, 9: 89644–89654, 2021.
[43] G. Rizzoli, F. Barbato, M. Caligiuri, and P. Zanuttigh. Syndrone: Multi-modal uav dataset for urban scenarios. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 2210–2220, 2023.
[44] P.-E. Sarlin, D. DeTone, T. Malisiewicz, and A. Rabinovich. SuperGlue: Learning feature matching with graph neural networks. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 4938–4947, 2020.
[45] P.-E. Sarlin, D. DeTone, T.-Y. Yang, A. Avetisyan, J. Straub, T. Malisiewicz, S. R. Bulo, R. Newcombe, P. Kontschieder, and V. Balntas. Orienternet: Visual localization in 2d public maps with neural matching. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 21632–21642, 2023.
[46] P.-E. Sarlin, E. Trulls, M. Pollefeys, J. Hosang, and S. Lynen. Snap: Self-supervised neural maps for visual positioning and semantic understanding. In Advances in Neural Information Processing Systems, volume 36, pages 7697–7729, 2023.
[47] J. L. Schonberger and J.-M. Frahm. Structure-from-Motion revisited. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 4104–4113, 2016.
[48] J. L. Schönberger, M. Pollefeys, A. Geiger, and T. Sattler. Semantic visual localization. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 6896–6906, 2018.
[49] Y. Shi and H. Li. Beyond cross-view image retrieval: Highly accurate vehicle localization using satellite image. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 17010–17020, 2022.
[50] Y. Shi, X. Yu, D. Campbell, and H. Li. Where am i looking at? joint location and orientation estimation by cross-view matching. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 4064–4072, 2020.
[51] J. Sun, Z. Shen, Y. Wang, H. Bao, and X. Zhou. LoFTR: Detector-free local feature matching with transformers. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 8922–8931, 2021.
[52] Swiss Federal Office of Topography. swissALTI3D, 2024. https://www.swisstopo.admin.ch/.
[53] Swiss Federal Office of Topography. swissBUILDINGS3D, 2025. https://www.swisstopo.admin.ch/en/landscape-model-swissbuildings3d-2-0.
[54] C. Toft, W. Maddern, A. Torii, L. Hammarstrand, E. Stenborg, D. Safari, M. Okutomi, M. Pollefeys, J. Sivic, T. Pajdla, F. Kahl, and T. Sattler. Long-term visual localization revisited. IEEE Transactions on Pattern Analysis and Machine Intelligence, 44(4):2074–2088, 2020.
[55] Z. Wang, D. Shi, C. Qiu, S. Jin, T. Li, Z. Qiao, and Y. Chen. VecMapLocNet: Vision-based uav localization using vector maps in gnss-denied environments. ISPRS Journal of Photogrammetry and Remote Sensing, 225:362–381, 2025.
[56] Z. Wei, L. Chen, Y. Jin, X. Ma, T. Liu, P. Ling, B. Wang, H. Chen, and J. Zheng. Stronger fewer & superior: Harnessing vision foundation models for domain generalized semantic segmentation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 28619–28630, 2024.
[57] R. Wu, X. Cheng, J. Zhu, Y. Liu, M. Zhang, and S. Yan. UAVD4L: A large-scale dataset for UAV 6-DoF localization. In Proceedings of the International Conference on 3D Vision, pages 1574–1583, 2024.
[58] S. Yan, X. Cheng, Y. Liu, J. Zhu, R. Wu, Y. Liu, and M. Zhang. Render-and-compare: Cross-view 6-DoF localization from noisy prior. In Proceedings of the IEEE International Conference on Multimedia and Expo, pages 2171–2176, 2023.
[59] S. Yan, Y. Liu, L. Wang, Z. Shen, Z. Peng, H. Liu, M. Zhang, G. Zhang, and X. Zhou. Long-term visual localization with mobile sensors. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 17245–17255, 2023.
[60] J. Yi, Q. Bi, H. Zheng, H. Zhan, W. Ji, Y. Huang, Y. Li, and Y. Zheng. Learning spectral-decomposed tokens for domain generalized semantic segmentation. In Proceedings of the ACM International Conference on Multimedia, pages 8159–8168, 2024.
[61] A. R. Zamir, T. Wekel, P. Agrawal, C. Wei, J. Malik, and S. Savarese. Generic 3D representation via pose estimation and matching. In Proceedings of the European Conference on Computer Vision, pages 535–553, 2016.
[62] X. Zhao, W. Ding, Y. An, Y. Du, T. Yu, M. Li, M. Tang, and J. Wang. Fast segment anything. arXiv preprint arXiv:2306.01215, 2023.
[63] Z. Zheng, Y. Wei, and Y. Yang. University-1652: A multi-view multi-source benchmark for drone-based geo-localization. In Proceedings of the ACM International Conference on Multimedia, pages 1395–1403, 2020.
[64] J. Zhu, S. Yan, L. Wang, S. Zhang, Y. Liu, and M. Zhang. LoD-Loc: Aerial visual localization using LoD 3D map with neural wireframe alignment. In Advances in Neural Information Processing Systems, volume 37, pages 119063–119098, 2024.
[65] J. Zhu, S. Peng, L. Wang, H. Tan, Y. Liu, M. Zhang, and S. Yan. LoD-Loc v2: Aerial visual localization over low level-of-detail city models using explicit silhouette alignment. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 26610–26621, 2025.
[66] X. Zou, J. Yang, H. Zhang, F. Li, L. Li, J. Wang, L. Wang, J. Gao, and Y. J. Lee. Segment everything everywhere all at once. In Advances in Neural Information Processing Systems, volume 36, pages 19769–19782, 2023.
A Demo Video
The supplementary material includes a video showcasing the localization performance of LoD-Loc v4 across diverse scenes. The video features multiple aerial sequences varying in region, altitude, and viewing angle. We visualize the results by overlaying the projected Panoptic LoD 3D Map onto the query images based on the estimated poses. The sequences cover both building-dense urban areas and building-less scenes comprising only road, vegetation, and water. The visualizations demonstrate that LoD-Loc v4 not only achieves SOTA localization precision in dense urban environments but also sustains reliable localization in building-less regions where prior baselines fail.
B Architecture of the Segmentation Module
This section details the panoptic segmentation architecture designed to parse aerial query images into map-compatible 'thing' and 'stuff' masks. The network employs a Mask2Former-style framework paired with a BEiT-Adapter-Large backbone, PEFT via LoRA, and a custom panoptic head strictly tailored to our AirPan taxonomy.
Backbone. We utilize the BEiT-Adapter-Large backbone [10], initialized with COCO-Panoptic pretrained weights. The core BEiT encoder comprises 24 transformer blocks with an embedding dimension of 1024 and 16 attention heads. To balance computational efficiency and receptive field size, most layers apply local window attention (window size 14), while every sixth layer employs global window attention (window size 56). The drop-path rate is set to 0.3. Crucially, the core BEiT transformer blocks remain strictly frozen during aerial adaptation to preserve the robust general visual representations acquired during large-scale pretraining.
Adapter module. Following ViT-Adapter [10], lightweight adapter modules are incorporated to inject spatial inductive biases into the frozen ViT representations. Initially, a Spatial Prior Module (SPM) extracts CNN-style multi-scale features at downsampling rates. These features interact with the BEiT token sequence across four Interaction Blocks (transformer layers [0–5], [6–11], [12–17], and [18–23]). Within each block, an Injector fuses the CNN features into the ViT sequence via multi-scale deformable attention, while an Extractor projects the enriched ViT features back into dense feature maps. The final output head fuses the adapter and ViT features across all four scales, yielding the spatial representations requisite for dense panoptic prediction.
LoRA injection. To specialize the pretrained backbone for aerial imagery without the optimization risks and computational overhead of full fine-tuning, we inject LoRA modules [22] into the QKV projections of all 24 BEiT attention layers. We configure the LoRA rank to , scaling factor to , and dropout rate to 0.05. For an input feature , the adapted projection is formulated as:
where and denote the low-rank trainable matrices. During training, only the LoRA parameters, adapter modules, and Mask2Former heads are optimized, while the core BEiT blocks are frozen (). This PEFT strategy drastically reduces the trainable parameter count, mitigating the risk of overfitting on the aerial domain while maintaining the network's general representation capacity.
Panoptic head. We employ a Mask2Former panoptic head [11] configured with 100 learnable queries. The pixel decoder features a 6-layer multi-scale deformable-attention encoder with an embedding dimension of 256, 8 attention heads, 3 feature levels, and 4 sampling points. The transformer decoder comprises 9 layers with an embedding dimension of 256, 8 attention heads, and a feedforward dimension of 2048. Each query independently predicts a class label and a binary mask. These predictions are subsequently fused into panoptic outputs spanning five categories perfectly aligned with our map taxonomy: one 'thing' class (buildings), three 'stuff' classes (road, vegetation, water), and one background class. The background class is supervised during training but deliberately discarded by the downstream localization objective; additionally, unlabeled pixels (index 255) are excluded from all loss computations. The training objectives follow the standard Mask2Former protocol, employing a classification loss weight of 2.0, a binary mask loss weight of 5.0, a Dice loss weight of 5.0, and identical weights for the Hungarian matching costs.
C Details of the AirPan Dataset
C.1 Geographic Data Sources
The Panoptic LoD 3D Map is assembled from three complementary public data modalities: OSM vectors for semantics, DEM tiles for terrain elevation, and LoD building models for 3D geometry. This subsection details the acquisition and standardization of each modality prior to map fusion.
OpenStreetMap (OSM) vector data. We utilize the Overpass API to retrieve vector layers from OSM [36] within each target bounding box, encompassing road networks, vegetation polygons, water bodies, and coastlines. Our acquisition pipeline implements parallel requests and rate-limiting protocols, ensuring efficient batch processing across large-scale regions. The retrieved geometries are filtered by spatial tags and categorically mapped into three 'stuff' classes: road, vegetation, and water. All remaining unassigned polygons are classified as background.
Digital Elevation Models (DEM). Terrain elevation is sourced from region-specific official DEM products to preserve the highest available topographical resolution. Specifically, we utilize swissALT13D [52] at 2 m resolution for Switzerland, AHN3/AHN4 [38] at 0.5 m for the Netherlands, the GSI DEM [18] at 5 m or 10 m for Japan, Copernicus DEM [16] at 30 m for Italy, and RGE ALTI [23] at 5 m for France. All DEM tiles are acquired in GeoTIFF format, cropped to the target bounding box, and spatially aligned with the rasterized semantic map prior to terrain reconstruction.
LoD building models. LoD building models are collected from national and municipal 3D city model repositories. We employ PLATEAU [33] for Japan, swissBUILDINGS3D [53] for Switzerland, and 3D-BAG [15] for the Netherlands; for other European regions, we rely on open 3D model resources following the protocols of prior work [61]. All building models are converted into OBJ meshes and transformed into the EPSG:4978 geocentric reference frame, ensuring strict spatial consistency with the DEM surface and the downstream rendering engine.
C.2 Map Construction Details
The proposed automated pipeline converts raw geographic data into a renderable Panoptic LoD 3D Map through four sequential stages.
Stuff-region rasterization. We begin by rasterizing OSM land-use polygons into a semantic map at zoom level 18, which provides a practical balance between spatial detail and processing cost. Each pixel is then deterministically assigned a predefined semantic color corresponding to road, vegetation, water, building footprint, or background.
2.5D terrain construction. Subsequently, the rasterized map is elevated into a 3D structure utilizing the aligned DEM. Raster coordinates are converted from Web Mercator back to WGS84 and further transformed into a local projected coordinate system via pyproj. Elevation values are sampled from the DEM to construct a triangulated 2.5D terrain surface with metric heights.
Building instance injection. Following the instanced LoD pipeline [39], we instantiate the LoD building models via topological structure analysis before anchoring them onto the terrain. The untextured LoD mesh is partitioned into connected components, each treated as a discrete building instance. Each instance is assigned a unique 24-bit integer identifier, deterministically mapped to a unique RGB color via the bijective encoding:
supporting up to 16.7 million unique instances. The resulting colored building instances are injected into the terrain model and merged with the 'stuff' surface into a unified OSGB scene.
Coordinate alignment. We express the Panoptic LoD 3D Map and the camera poses from Google Earth Studio in the common EPSG:4978 geocentric frame. OSG then renders the map using matching camera intrinsics and extrinsics to generate the corresponding panoptic masks.
C.3 Annotation Pipeline
RGB image acquisition. We use Google Earth Studio [19] to generate synthetic aerial RGB sequences along predefined camera trajectories with varying altitudes and viewing angles. For each frame, we retain the camera pose, field of view, and image resolution for subsequent label rendering.
Panoptic annotation. We generate panoptic masks by rendering the corresponding Panoptic LoD 3D Map with OpenSceneGraph [35]. Camera poses and map geometry are expressed in a common geographic coordinate frame, and the rendering uses camera projection parameters and image resolution matching those of the RGB frames.
C.4 Dataset Composition Details
AirPan dataset. To the best of our knowledge, AirPan constitutes the largest aerial panoptic segmentation dataset currently available, containing 85,162 images. We reuse the camera poses and pose generation procedure from LoD-Loc v3 [39] and re-render the corresponding RGB images using Google Earth Studio. The dataset covers 43 UAV flight areas across Japan, Switzerland, China, France, Italy, and the Netherlands. The resulting data spans diverse land-use types, including commercial, industrial, residential, educational, and suburban regions. Table 8 provides a comprehensive breakdown of each geographical area within the dataset, detailing its name, image count, flight altitude range in meters, total geographical area in square kilometers, image resolution in pixels, and captured viewing angles in degrees. In addition, we render two building-less test sets, China-NB and Switzerland-NB, specifically to evaluate localization performance in building-less scenes.
To further enhance scene diversity and cross-domain robustness, we integrate four additional open datasets to construct an auxiliary set. After sample filtering, semantic label remapping, connected-component analysis for building instances, and manual correction, this auxiliary set contributes 25,419 images. Specifically, VALID [8] and ClaraVid [3] provide 6,690 and 16,316 synthetic aerial panoptic segmentation images, respectively. Aeroscapes [34] and FloodNet [42] provide 896 and 1,517 real-world aerial semantic segmentation images, respectively.
Data augmentation and splitting. We first hold out 11 geographic regions for localization testing: China_01-02, Switzerland_17-18, Japan_06-10, China-NB, and Switzerland-NB. Japan_09* is an adverse-weather variant of the held-out Japan_09 region and is also reserved for testing.
The remaining 32 regions comprise Netherlands_01-06, Switzerland_01-16, Japan_02-05, Japan_11, Italy_01-02, and France_01-03. Only the images from these regions, together with the 25,419 auxiliary images, are partitioned into training and validation sets at a ratio of 80:20. During training, we apply random horizontal flipping, multi-scale resizing to four resolutions (720 × 480, 896 × 608, 1024 × 768, and 1200 × 896), and random 768 × 768 cropping. Images larger than the crop size are further divided into overlapping patches, yielding approximately 110,906 training samples after patch extraction.
D Details of Baselines
We evaluate our method against three LoD-based localization baselines and two OSM-based baselines. All methods use the same query images and prior poses. For OrienterNet and VecMapLocNet, we use the released checkpoints. Both methods estimate planar location and yaw; height, roll, and pitch are retained from the prior pose.
LoD-Loc [64]. The implementation follows its default settings. Specifically, we utilize uniform sampling counts of 10, 10, 30, and 8 along the x, y, z, and yaw axes, respectively, alongside a weighting parameter . To adapt the method to our experimental setup, the primary modification involves deploying the Panoptic LoD 3D Map with a 3D sampling interval of 1 meter.
LoD-Loc v2 [65]. The implementation follows its default settings. The input image resolution for the segmentation module is resized to . During the coarse pose selection stage, the mask resolutions for both query and rendered candidates are configured to , , or (depending on the specific dataset), utilizing a sampling interval of 10 meters. The subsequent fine pose estimation stage uses the same mask resolutions and runs for 40 iterations with 2 beams. For particle generation, angular perturbations are constrained to , while translational
Table 8: Detailed characteristics of the regional datasets composing the AirPan dataset.
| Name | Area | Images | Height[m] | Coverage[km²] | Size[pixel] | View Angle[°] |
|---|---|---|---|---|---|---|
| Netherlands_01 | Amsterdam | 392 | 500 | 18.3879 | 1600×1200 | [0, 30] |
| Netherlands_02 | Amsterdam | 1242 | 200 | 17.3980 | 1600×1200 | [30, 50] |
| Netherlands_03 | Hague | 2048 | 300 | 16.9807 | 1600×1200 | [0, 30] |
| Netherlands_04 | Delft | 953 | 200 | 20.1190 | 1600×1200 | [0, 30] |
| Netherlands_05 | Amsterdam | 558 | 500 | 16.9844 | 1600×1200 | [30, 50] |
| Netherlands_06 | Tilburg | 2874 | 200 | 19.7211 | 1600×1200 | [0, 30] |
| Switzerland_01 | Basel | 4771 | 300, 400 | 1.7458 | 1920×1080 | 0, 45 |
| Switzerland_02 | Ecublens | 13563 | 400, 500 | 8.6432 | 1920×1080 | 0, 45 |
| Switzerland_03 | Zurich | 1783 | 300 | 13.0968 | 1600×1200 | [50, 70] |
| Switzerland_04 | Zurich | 3209 | 200 | 17.9719 | 1600×1200 | [0, 30] |
| Switzerland_05 | Lausanne | 2269 | 200 | 8.8370 | 1600×1200 | [30, 50] |
| Switzerland_06 | Geneva | 1916 | 200 | 17.9286 | 1600×1200 | [0, 30] |
| Switzerland_07 | Bern | 3209 | 300 | 15.9526 | 1600×1200 | [30, 50] |
| Switzerland_08 | Bern | 1043 | 200 | 17.5524 | 1600×1200 | [50, 70] |
| Switzerland_09 | Lucerne | 2665 | 200 | 15.4045 | 1600×1200 | [0, 30] |
| Switzerland_10 | Zurich | 3179 | 200 | 17.2618 | 1600×1200 | [30, 50] |
| Switzerland_11 | Geneva | 3202 | 200 | 2.7146 | 1600×1200 | [30, 50] |
| Switzerland_12 | Geneva | 3210 | 300 | 0.7120 | 1600×1200 | [0, 30] |
| Switzerland_13 | Geneva | 3209 | 200 | 13.5406 | 1600×1200 | [0, 30] |
| Switzerland_14 | Bill | 3078 | 200 | 17.2042 | 1600×1200 | [0, 30] |
| Switzerland_15 | Lausanne | 4300 | 500 | 10.1067 | 1600×1200 | [0, 30] |
| Switzerland_16 | Lausanne | 742 | 600, 700 | 0.8579 | 1920×1080 | 0, 45 |
| Switzerland_17 | Lausanne | 712 | 400, 500 | 3.2468 | 720×480 | [0, 30] |
| Switzerland_18 | Lausanne | 379 | 400, 500 | 5.1028 | 720×480 | [0, 30] |
| Switzerland-NB | Geneva | 234 | 200 | 1.2051 | 1600×1200 | [0, 30] |
| Japan_02 | Tokyo | 1440 | 350, 450 | 0.4028 | 1920×1080 | 0, 45 |
| Japan_03 | Tokyo | 3260 | 350, 450 | 0.9747 | 1920×1080 | 0, 45 |
| Japan_04 | Tokyo | 682 | 350, 450 | 0.7171 | 1920×1080 | 0, 45 |
| Japan_05 | Tokyo | 1000 | 350, 450 | 0.3302 | 1920×1080 | 0, 45 |
| Japan_06 | Tokyo | 495 | 350, 450 | 0.6754 | 1920×1080 | 0, 45 |
| Japan_07 | Tokyo | 875 | 350, 450 | 0.3283 | 1920×1080 | 0, 45 |
| Japan_08 | Tokyo | 750 | 450, 500 | 1.3225 | 1920×1080 | 0, 45 |
| Japan_09 | Tokyo | 381 | 450, 500 | 0.8281 | 1920×1080 | 0, 45 |
| Japan_09* | Tokyo | 381 | 450, 500 | 0.8281 | 1920×1080 | 0, 45 |
| Japan_10 | Tokyo | 450 | 450, 500 | 0.9025 | 1920×1080 | 0, 45 |
| Japan_11 | Tokyo | 450 | 450, 500 | 0.8464 | 1920×1080 | 0, 45 |
| China_01 | Changsha | 1604 | 120 | 1.6384 | 4056×3040 | 0, 45 |
| China_02 | Changsha | 2192 | [90, 150] | 1.4884 | 5280×3956 | [30, 60] |
| China-NB | Changsha | 269 | 120 | 1.1768 | 1204×896 | 0, 45 |
| Italy_01 | Florence | 155 | 400, 500 | 0.8778 | 1920×1080 | 0, 45 |
| Italy_02 | Florence | 2631 | 400, 500 | 0.1571 | 1920×1080 | 0, 45 |
| France_01 | Florence | 421 | 400, 500 | 0.4865 | 1920×1080 | 0, 45 |
| France_02 | Paris | 222 | 400, 500 | 0.2751 | 1920×1080 | 0, 45 |
| France_03 | Paris | 2764 | 400, 500 | 0.7890 | 1920×1080 | 0, 45 |
perturbations are sampled from a zero-mean Gaussian distribution with . A decay factor of is applied to the perturbations, generating candidate poses per iteration.
LoD-Loc v3 [39]. The implementation follows its default settings, with the input image resolution for the segmentation module set to . All other hyperparameter configurations for both the coarse pose selection and fine pose estimation stages are identical to those described for LoD-Loc v2.
OrienterNet [45]. We use orienternet_mgl. ckpt with 256 yaw bins over and restrict the search to around the prior yaw. Each query uses a prior-centered OSM patch at 2 pixels per meter. Images are rectified to a pure-nadir view using the prior orientation, resized according to the camera intrinsics and checkpoint configuration, and padded to multiples of 32, with intrinsics and validity masks updated accordingly.
VecMapLocNet [55]. We use last-step-checkpointing-v1.ckpt with 64 yaw bins searched over the full 360° range. Each query uses a prior-centered 512 m × 512 m OSM vector-map patch at 1 pixel per meter. Images are resized to a shorter side of 256 pixels while preserving the aspect ratio.
| RGB Images | Annotations | RGB Images | Annotations | RGB Images | Annotations |
|---|---|---|---|---|---|
Figure 5: Visualization of training samples. This figure displays pairs of synthetic RGB images and their corresponding panoptic annotations. The top four rows showcase samples of the Japan, Switzerland, and Netherlands regions from the AirPan dataset, while the bottom two rows feature samples from the integrated auxiliary dataset.
E Details of Experiments
E.1 Implementation Details
Training. Our panoptic segmentation module is trained on the large-scale training split containing approximately 110, 906 images (including sliced patches). To enhance scale invariance and scene diversity, we adopt a multi-scale training strategy where input images are dynamically resized to four varying scales (720 × 480, 896 × 608, 1024 × 768, and 1200 × 896), coupled with random crops of

Figure 6: Visualization of samples from the test datasets. Rows show samples from UAVD4L-LoDv2, Swiss-EPFLv2, Tokyo-LoDv3, China-NB, and Switzerland-NB.
768 × 768. To optimize the training process, we use the AdamW optimizer (, ) with a base learning rate of and a weight decay of 0.05. We employ a cosine annealing schedule featuring a linear warmup phase of 1000 iterations (warmup ratio of 0.001) and a minimum learning rate of . The network is trained for 30 epochs with a batch size of 1 per GPU. To further stabilize the training dynamics, we apply gradient clipping with a maximum norm of 0.01 and utilize an Exponential Moving Average (EMA) with a momentum of 0.0001. The network architecture utilizes a BEiT-Adapter-Large backbone coupled with a Mask2Former head. For parameter-efficient adaptation, the core backbone remains frozen while LoRA modules (, ) are injected into the attention layers, alongside tunable adapter structures. All training procedures were performed on seven NVIDIA A100 GPUs.
Inference. Inference is evaluated on test sets differing in region and viewpoint from the training set. During the perception phase, the input size is dynamically adapted to each dataset's native resolution (e.g., or ). We apply a minimum area of 10 pixels to filter building instances. In the pose optimization stage, consistent with LoD-Loc v2 [65], we set the number of iterations to 40, using 2 beams and an angular perturbation of . Translational perturbations are sampled from a zero-mean Gaussian distribution with . The decay factor is set to , and candidates are generated per iteration. Crucially, to accommodate the proposed panoptic framework, the multi-class silhouette alignment weights are set to for buildings, for road, for vegetation, and for water. All perception inference and localization processes were executed on a single NVIDIA RTX 4090 GPU.
E.2 Visualization of Training Data
Our training set comprises RGB images and their corresponding panoptic masks, derived from the designated training splits of the AirPan dataset and the integrated auxiliary dataset. It encompasses diverse geographic regions and land-use types to yield a total of 110,906 sliced samples. Figure 5 presents a visualization of selected samples from the training dataset. In the panoptic annotations, building instances are rendered with unique random colors to denote distinct entities, whereas continuous 'stuff' classes, such as road, vegetation, and water bodies, are depicted using fixed semantic colors.
E.3 Visualization of Test Data
As illustrated in Figure 6, the test data consists of five benchmarks:
- UAVD4L-LoDv2 [57]: A real-world dataset covering a 2.5 km² area. It comprises two sub-regions (China_01 and China_02) and features in-Traj. and out-of-Traj. queries.
- Swiss-EPFLv2 [65]: A real-world dataset covering an 8.2 km² area. It comprises two sub-regions (Switzerland_17 and Switzerland_18), featuring in-Place. and out-of-Place. queries.
- Tokyo-LoDv3 [39]: A synthetic dataset covering a 4.06 km² area of dense urban Tokyo. It contains five distinct sub-regions (Japan_06 through Japan_10), categorized into Grid-Traj. and Sequence-Traj. queries.
- China-NB: A synthetic building-less benchmark covering a 1.2 km² suburban area of Changsha, featuring road, vegetation, and water bodies.
- Switzerland-NB: A synthetic building-less benchmark covering a 2.0 km² suburban area of Geneva, featuring road and vegetation.
We evaluate geographic zero-shot generalization: all localization test regions are excluded from panoptic segmentation training, validation, checkpoint selection, and hyperparameter tuning.
Table 9: Quantitative comparison of different methods under adverse-weather condition.
| Method | Japan_09* | |||
|---|---|---|---|---|
| 2m-2° | 3m-3° | 5m-5° | T.e./R.e. | |
| Prior | 0.52 | 0.79 | 7.35 | 8.14/1.80 |
| LoD-Loc v2 | 1.80 | 3.10 | 8.70 | 14.69/0.99 |
| LoD-Loc v3 | 24.70 | 55.10 | 93.70 | 2.86/0.23 |
| LoD-Loc v4 | 52.00 | 81.40 | 96.90 | 1.97/0.25 |
E.4 Supplementary Experiments
To further evaluate the robustness of our method in more complex environments, we conduct localization experiments on Japan_09* with simulated adverse weather effects, including haze, overcast skies, and seasonal appearance changes.
Table 9 reports the results. LoD-Loc v4 consistently improves over LoD-Loc v3 across all recall thresholds and reduces median translation error. This demonstrates that 'stuff' region boundaries remain structurally stable even when building textures degrade under adverse conditions.