UniBuild: Unified Building Mapping From Multi-Source Optical Remote Sensing Imagery With Detail Decoding and Geometry Regularization

Wei Huang, Chenying Liu, Yilei Shi, Xiao Xiang ZhuarXiv 2026

TL;DR

UniBuild is a unified framework for building extraction that generalizes across diverse optical remote sensing sensors and resolutions, from 0.05m aerial imagery to 10m Sentinel-2 data. By combining a visual foundation model backbone with a novel detail-preserving decoder and geometry-aware losses, it produces sharp, well-separated building footprints that are ready for GIS applications.

What Problem Does This Paper Address?

Extracting building footprints from satellite and aerial imagery is a cornerstone of urban planning and disaster response. However, the field faces three major hurdles:

  1. Domain Sensitivity: Most models are "dataset-specific." A model trained on high-resolution aerial photos of Munich often fails when applied to lower-resolution satellite imagery of Nairobi due to differences in sensor characteristics and architectural styles.
  2. Detail Loss: Deep neural networks typically downsample images to extract high-level semantics, which often results in "blobby" buildings with blurred boundaries and rounded corners.
  3. Geometric Merging: In lower-resolution imagery, the narrow gaps between adjacent buildings often disappear into "mixed pixels," causing models to merge separate structures into a single, massive polygon.

UniBuild aims to solve these by creating a single, robust model capable of handling multi-source imagery while respecting the inherent geometry of man-made structures.

Methods

The UniBuild architecture (visualized in Figure 2) is built on three main pillars:

  • Foundation Model Backbone: It leverages DINOv3, a powerful visual foundation model, to extract rich, transferable semantic features.
  • HR-DPT Decoder: To recover lost spatial details, the authors designed a High-Resolution Dense Prediction Transformer (HR-DPT) decoder. Unlike standard decoders that simply upsample, this branch injects shallow, high-resolution spatial cues back into the deep semantic stream using gated residual fusion.
  • Geometry-Aware Regularization: The authors introduce two novel loss functions to enforce structural realism:
  • Direction-aware Loss ($\mathcal{L}_{dir}$): Uses structure tensors to align the predicted orientation of building edges with the ground truth, preventing "zigzag" or fragmented contours (see Figure 4).
  • Saddle-aware Loss ($\mathcal{L}_{sad}$): Specifically targets the "saddle" areas—the narrow gaps between buildings. It applies a higher penalty to false building detections in these gaps, ensuring adjacent buildings remain distinct even in blurry, low-resolution shots.
Overview of the UniBuild architecture, featuring the DINOv3 backbone and the HR-DPT decoder.

Datasets

The authors trained and evaluated UniBuild on a massive, heterogeneous collection of data summarized in Table I (Figure 6):

  • 10 Public HR Datasets: Including Potsdam (0.05m), INRIA (0.3m), WHU-Mix (0.5m), and SpaceNet2 (0.3m).
  • 2 Self-collected LR Datasets: Large-scale datasets derived from PlanetScope (4.8m) and Sentinel-2 (10m) imagery, with labels sourced from OpenStreetMap (OSM).
  • Zero-shot Evaluation: The model was tested on unseen datasets like Waterloo, Massachusetts, and ISPRS-Pforzheim to prove its generalization capabilities.
Summary of the 12 datasets used for training and evaluation.

Key Insights and Ideas

  • Semantics vs. Geometry: While foundation models like DINOv3 provide excellent semantic understanding (knowing that something is a building), they struggle with precise localization (knowing exactly where the edge is). The HR-DPT decoder acts as the necessary bridge between these two worlds.
  • The Power of Multi-Dataset Training: Instead of fine-tuning on a per-dataset basis, UniBuild uses a unified training scheme. This forces the model to learn sensor-invariant features, making it significantly more robust to new, unseen environments.
  • Resolution-Adaptive Supervision: The saddle-aware loss is only activated for low-resolution batches. This targeted approach allows the model to handle the specific challenges of satellite imagery without compromising the precision of high-resolution aerial mapping.

Key Results

UniBuild consistently outperformed state-of-the-art models like SegFormer and BuildFormer across all tested resolutions.

  • Quantitative Gains: On average across 12 datasets, UniBuild improved the Intersection over Union (IoU) from 74.03% to 76.27% and the Boundary-IoU (a stricter metric for edge quality) from 61.06% to 65.60% compared to a strong DINOv3 baseline.
  • Qualitative Improvements: As shown in Figure 5, UniBuild produces much cleaner masks than competing models. It successfully separates dense rows of buildings where other models see a single mass and maintains sharp, rectangular corners.
  • Zero-Shot Versatility: The model demonstrated impressive "out-of-the-box" performance on unseen domains and even proved capable of zero-shot building change detection (identifying new or demolished buildings between two time periods) without any specific training for that task.
Fig. 4. Qualitative comparison with competing models, DINOv3-B-DPT, and UniBuild. UniBuild uses the corresponding single-dataset trained checkpoint for each dataset. Rows 1–4 show examples from INRIA, WHU-Mix, GF-7, and Planet (bilinearly upsampled to 1 m), respectively. For each row, the columns present the RGB image, predictions from different methods, and the ground-truth building label.

Limitations and Future Work

Despite its strengths, UniBuild faces a few remaining challenges:

  • The 10m Barrier: While it supports 10m Sentinel-2 imagery, extracting fine details at this resolution remains extremely difficult, as small buildings are often smaller than a single pixel.
  • Label Noise: Training on multi-source data often involves noisy or outdated labels (especially from OSM), which can limit the model's peak performance.
  • Vectorization: Currently, the conversion from pixel masks to vectorized GIS footprints is a post-processing step. The authors suggest that moving toward an end-to-end raster-to-vector framework is a promising future direction.

The code and trained models are available at https://github.com/zhu-xlab/UniBuild.

Summary updated

BibTeX
@misc{huang2026unibuild,
  author = {Wei Huang and Chenying Liu and Yilei Shi and Xiao Xiang Zhu},
  title = {{UniBuild: Unified Building Mapping From Multi-Source Optical Remote Sensing Imagery With Detail Decoding and Geometry Regularization}},
  year = {2026},
  eprint = {2609.37031},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.37031},
}
Figure