TL;DR
BASeg is a new boundary-aware framework for remote sensing semantic segmentation that fixes the common problem of irregular, "wavy" object edges in satellite imagery. By combining a frozen DINOv3 backbone with a novel, parameter-free Mahalanobis-Angle Boundary Loss (MABL), it explicitly enforces structural and directional consistency. The approach achieves state-of-the-art accuracy across multiple benchmarks while remaining highly computationally efficient.
What Problem Does This Paper Address?
In remote sensing, accurately segmenting objects like buildings and roads from satellite or aerial imagery is incredibly challenging due to massive scale variations, complex backgrounds, and high object density. While deep learning models have come a long way, they still struggle to output clean, sharp boundaries. Instead of crisp, rectilinear geometries, predicted building contours often appear jagged or wavy.
The authors identify two main culprits behind this issue:
- Inadequate Loss Functions: Most existing segmentation losses rely heavily on pixel-wise classification or standard Euclidean distance, which treats all spatial directions equally and ignores boundary shape and directional consistency.
- Dataset Limitations: Current widely used benchmarks lack diversity in city morphology (urban layouts), and segmentation performance on generative, AI-synthesized imagery remains largely unexplored.
Methods
To solve these issues, the authors introduce two key components: a novel loss function (MABL) and a dual-branch architecture (BASeg).
Mahalanobis-Angle Boundary Loss (MABL)
MABL is a plug-and-play, parameter-free loss function that can be integrated into any segmentation network. It consists of two parts:
- Angle Loss: This component computes local boundary orientations using image gradients and explicitly penalizes directional discrepancies between predicted and ground-truth edges. This forces the model to draw straight, well-aligned contours.
- Mahalanobis Distance-Based Boundary Loss: Unlike Euclidean distance, Mahalanobis distance accounts for the covariance of a connected region. This allows the loss to dynamically adapt to an object's specific scale, elongation, and orientation (e.g., long roads or rectangular buildings).
BASeg Architecture
The BASeg framework leverages a frozen DINOv3 foundation model for robust feature extraction and processes features through two main modules:
- Global Visual State-Space Module (GSM): A hierarchical encoder that uses specialized rectangular convolutions (3×5, 5×3) to capture structured urban objects, combined with a 2D Selective Scan (Mamba-based) module and coordinate attention to model long-range spatial dependencies.
- Cross-Feature Fusion Module (CFM): Fuses global contextual information with fine-grained local details using a parallel branch structure and cross-attention mechanisms.
Datasets
The model was evaluated on four distinct datasets, including a substantial new benchmark introduced by the authors:
- GCD-25k (New): A newly established dataset containing 25,000 satellite images across 10 major global cities (spanning 5 continents) to ensure high morphological diversity. It features fine-grained annotations for background, buildings, and roads.
- HSRS (Hybrid-Synthetic-Real-Segmentation): A dataset containing 3,000 images that mixes real samples with synthetic images generated by a fine-tuned SDXL model to test performance on generative AI imagery.
- LoveDA Urban & ISPRS Vaihingen: Standard, widely accepted public remote sensing benchmarks.
Key Insights and Ideas
- Directional Supervision is Crucial: Standard cross-entropy loss doesn't care if a boundary is wavy or straight as long as the pixels are mostly correct. Explicitly penalizing the angle of the boundary gradient forces geometric regularity.
- Moving Beyond Euclidean Space: Treating boundary distance uniformly in all directions fails for elongated objects. Incorporating the spatial covariance matrix via Mahalanobis distance creates an instance-level shape prior that respects object geometry.
- Foundation Models + State-Space Models: Combining the strong representation power of a frozen DINOv3 backbone with the efficient long-range dependency tracking of Mamba blocks (SSMs) yields an excellent balance between local detail and global context.
Key Results
- State-of-the-Art Performance: BASeg + MABL outperformed all competing state-of-the-art models (including RS3Mamba, Samba, and PyramidMamba) across all four benchmarks. On the new GCD-25k dataset, it achieved a 68.86% mIoU, a 2.77% absolute improvement over the previous best method.
- Architecture-Agnostic Gains: When MABL was dropped into other architectures like PyramidMamba and Samba, it consistently boosted their mIoU across all datasets (yielding gains up to 2.25%), proving its broad applicability.
- High Efficiency: Despite its superior accuracy, BASeg is highly practical. It requires approximately 3.8× fewer FLOPs and 66.6% fewer parameters than PyramidMamba.
Limitations and Future Work
Not discussed in the paper.
Summary updated