Next Article in Journal
A Regionalized Uncertainty Budget for Sea-Level Trend and Acceleration Estimates in the China Seas and Their Adjacent Oceans
Previous Article in Journal
Deep Learning for Single-Frame Infrared Small and Dim Target Detection: A Paradigm-Oriented Review with Cross-Architecture Benchmarking
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

DGSRef: Decoupled Geometric-Semantic Refinement Network for High-Resolution Remote Sensing Segmentation

1
College of Electrical Engineering, Zhejiang University, Hangzhou 310027, China
2
College of Computer Science and Artificial Intelligence, Wenzhou University, Wenzhou 325035, China
*
Author to whom correspondence should be addressed.
Remote Sens. 2026, 18(17), 3011; https://doi.org/10.3390/rs18173011
Submission received: 9 July 2026 / Revised: 26 August 2026 / Accepted: 2 September 2026 / Published: 4 September 2026
(This article belongs to the Section AI Remote Sensing)

Highlights

What are the main findings?
  • DGSRef decouples coarse remote sensing segmentation refinement into geometric alignment and semantic residual correction.
  • The geometric alignment stage predicts a displacement field and transports coarse logits in the output space for boundary-sensitive refinement.
  • Experiments on ISPRS Vaihingen, ISPRS Potsdam, and LoveDA show consistent overall accuracy improvements with limited computational overhead.
What are the implications of the main findings?
  • Refining coarse predictions can improve high-resolution remote sensing segmentation without redesigning heavier decoders.
  • Explicit separation of spatial boundary correction and semantic residual correction provides a flexible refinement paradigm for existing segmentation architectures.

Abstract

High-resolution remote sensing semantic segmentation is essential for land-cover mapping, urban monitoring, and object-level geospatial analysis, but accurate prediction remains difficult because remote sensing images often contain complex backgrounds, shadows, weak object contrast, and complex texture variations. Moreover, spatial details lost during feature downsampling cannot be fully recovered by subsequent decoding. As a result, coarse predictions usually contain two coupled residual problems: spatial boundary displacement and local semantic inconsistency. To address these problems, we propose DGSRef (Decoupled Geometric-Semantic Refinement Network), a lightweight attachable refiner for improving coarse predictions from existing segmentation models. DGSRef treats coarse logits as semantic priors and refines them through two decoupled stages. In the geometric alignment stage, a displacement field is predicted to warp coarse logits in the output space, modeling boundary correction as spatial transport rather than direct reclassification. A Multi-Scale Semantic-Guided Structural Difference (MSGSD) module further provides semantic-guided structural cues for displacement estimation. In the semantic residual stage, gated residual logits are predicted to correct remaining local semantic inconsistencies without globally overwriting the aligned prediction. Experiments on ISPRS Vaihingen, ISPRS Potsdam, and LoveDA show that DGSRef improves diverse segmentation architectures with limited additional computation and parameters, confirming its effectiveness as a lightweight decoupled refinement framework.

1. Introduction

High-resolution remote sensing semantic segmentation assigns a semantic label to each image pixel and supports applications such as land-cover mapping, urban monitoring, infrastructure extraction, and geospatial analysis [1,2,3]. In these scenarios, region-level recognition alone is often insufficient. Small boundary displacements may change object shape, connectivity, and area estimation, especially for buildings, roads, and vehicles. Therefore, an effective segmentation model should preserve semantic consistency while accurately localizing fine-scale object boundaries.
High-resolution remote sensing images contain imaging conditions and appearance patterns that differ substantially from natural-scene images. Building and impervious-surface regions may have similar spectral or texture patterns, shadows may weaken object contrast, and roof or vegetation textures may create strong but non-semantic edges. Modern CNN- and Transformer-based segmentation networks usually rely on feature downsampling to enlarge the receptive field, reduce memory consumption, and make high-resolution image processing computationally tractable [4,5,6,7]. However, downsampling inevitably discards part of the fine boundary information, while decoder upsampling and feature fusion cannot fully recover the lost spatial details. The resulting coarse predictions often exhibit two coupled residual problems. One is boundary displacement, where the predicted contour is spatially shifted from the true object boundary. The other is local semantic inconsistency, where pixels around weakly contrasted boundaries, shadows, or texture-confused regions show unstable category responses. These two problems are related but require different operations: boundary displacement should be corrected by moving predictions to more appropriate spatial locations, whereas local semantic inconsistency should be corrected by adjusting category evidence.
Existing methods are closely related to this problem from three perspectives. First, remote sensing segmentation networks improve multi-scale context modeling and feature fusion to produce stronger coarse predictions, but residual boundary and local semantic errors may still remain. Second, boundary-aware, point-based, and cascaded refinement methods enhance local prediction quality by using edge supervision, uncertain-point reclassification, or repeated refinement. These methods can improve both boundary and local classification accuracy, but they generally formulate refinement as local reclassification, iterative prediction refinement, or feature-level decoupling rather than explicitly separating spatial displacement correction from semantic residual correction. Third, feature-alignment methods such as SFNet [8] reduce spatial mismatch in intermediate representations, but their correction is mainly performed in the feature space before final decoding. These observations motivate us to refine the final coarse logits directly and to separate geometric alignment from semantic residual correction.
A key limitation of a unified refinement design is that spatial correction and semantic correction are optimized through the same prediction update. Such an update must simultaneously decide where a prediction should move and which category it should represent. However, the two operations have different targets. Geometric correction modifies spatial correspondence and should mainly address boundary displacement, whereas semantic correction modifies category evidence and should mainly address local semantic inconsistency. When both targets are mixed, the model may over-correct reliable interior regions, weaken boundary-sensitive displacement cues, or confuse coordinate transport with class reclassification, particularly around weakly contrasted boundaries and texture-confused regions.
Figure 1 illustrates the motivation behind the proposed decoupled refinement design. A coarse prediction may already provide reliable semantic priors in object interiors, but its boundaries can be spatially displaced and its local semantic responses may be inconsistent around shadows, weakly contrasted boundaries, and texture-confused regions. These two residual problems should not be handled by the same operation: boundary displacement requires spatial correspondence correction, whereas local semantic inconsistency requires residual category-evidence adjustment.
Based on this observation, we propose DGSRef, a lightweight attachable refinement framework for coarse predictions from existing segmentation models. Instead of discarding the baseline output or re-segmenting the original image, DGSRef treats the coarse logits as semantic priors and refines them through two decoupled refinement stages. First, to correct boundary displacement, the geometric alignment stage predicts a displacement field and warps the coarse logits in the output space, treating boundary correction as spatial transport rather than direct reclassification. Within this stage, MSGSD combines low-level structural variations with high-level semantic guidance so that displacement estimation is less sensitive to non-semantic edges caused by textures and shadows. Second, to correct remaining local semantic inconsistencies after alignment, the semantic residual stage predicts gated residual logits without globally replacing the aligned prediction.
Accordingly, the main contributions of this work are summarized as follows:
  • We formulate high-resolution remote sensing segmentation refinement as a decoupled process that separates boundary displacement correction from local semantic consistency correction.
  • We design a lightweight geometric alignment branch with MSGSD to predict a dense displacement field and transport coarse logits in the output space, enabling boundary-sensitive correction while suppressing non-semantic texture and shadow edges.
  • We develop a gated semantic residual branch that predicts class-wise logit corrections after geometric alignment, improving local semantic consistency while avoiding unnecessary changes in reliable regions.
  • Extensive experiments on ISPRS Vaihingen, ISPRS Potsdam, and LoveDA demonstrate that DGSRef can be attached to representative segmentation architectures and refine coarse predictions with limited additional FLOPs and parameters. Ablation results further show that geometric alignment mainly contributes to boundary-sensitive refinement, while semantic residual correction improves overall semantic consistency.

2. Related Work

2.1. Semantic Segmentation in Remote Sensing

Remote sensing semantic segmentation aims to assign pixel-level land-cover or object categories to high-resolution aerial or satellite imagery. Early fully convolutional networks such as FCN [9] established the encoder–decoder paradigm for dense prediction. SegNet [10], U-Net [11], and RefineNet [12] further demonstrated the effectiveness of encoder–decoder structures and multi-level feature fusion for preserving spatial details. Context aggregation methods such as DeepLab [5], PSPNet [4], OCRNet [13], HRNet [14], and UPerNet [15] improve segmentation by enlarging the effective receptive field, modeling object-level context, or maintaining high-resolution representations. In remote sensing, where large-scale contextual cues and local object details coexist, foreground-aware and object-sensitive methods such as FarSeg [1] and FactSeg [2] improve the recognition of geospatial objects under complex backgrounds. Remote-sensing-specific architectures further address multi-scale representation and efficient decoding: UNetFormer [3] combines convolutional features with global–local Transformer modeling, EIGNet [16] introduces edge information to improve geometric awareness, and AerialFormer [17] strengthens multi-scale context aggregation for aerial image segmentation.
Recently, Transformer-based models, visual foundation models, and advanced generic backbones have further improved representation learning for dense prediction. SETR [18] and Swin Transformer [19] introduced Transformer-based representation learning into segmentation and general vision backbones. SegFormer [6] adopts a hierarchical Transformer encoder and lightweight decoder, while Mask2Former [7] reformulates segmentation as a mask classification problem. DINOv2 [20] provides strong self-supervised visual representations, and SAM [21] and SAM2 [22] have motivated promptable and general-purpose segmentation paradigms. Recent backbone designs such as SegNeXt [23] and LSKNet [24] further strengthen spatial modeling and large-kernel context aggregation. More recently, Mamba-based architectures have also been introduced into remote sensing semantic segmentation. UNetMamba [25] adopts a U-Net-like architecture with a Mamba-based segmentation decoder to efficiently model high-resolution representations, together with a train-time local supervision module to enhance local-content perception. Despite these advances, most segmentation networks still rely on feature downsampling to control memory and computational cost. This design inevitably produces coarse predictions near object boundaries. Therefore, DGSRef does not replace the baseline segmentation network, but instead serves as a lightweight attachable refinement module that operates on coarse logits from different segmentation architectures.

2.2. Boundary and Prediction Refinement

Boundary quality is critical for high-resolution remote sensing segmentation because small spatial deviations may affect object shape, connectivity, and area estimation. Existing boundary-aware methods mainly improve predictions through auxiliary boundary supervision, local reclassification, post-processing, or cascaded refinement. DenseCRF [26] refines segmentation maps by enforcing local appearance consistency, while boundary-aware methods such as Boundary-Aware Feature Propagation [27], joint segmentation-boundary learning [28], and Gated-SCNN [29] introduce boundary detection or edge-aware losses to encourage boundary-sensitive features. In remote sensing, MSEONet [30] further enhances boundary representation by explicitly modeling edge cues and multi-scale semantic information. However, low-level edge responses in aerial images may also be triggered by roof textures, shadows, vegetation patterns, and other intra-class variations, which can introduce non-semantic boundary cues.
Another line of work refines coarse predictions by focusing computation on uncertain or difficult regions. PointRend [31] adaptively samples uncertain points and predicts fine-grained labels for those locations, which can improve both boundary quality and local classification accuracy. SegFix [32] improves boundary localization by propagating interior predictions toward boundary regions. CascadePSP [33] performs repeated refinement to improve high-resolution prediction quality. Recent remote sensing studies have further explored boundary-aware and decoupled segmentation strategies. IDGBR [34] combines discriminative coarse segmentation with diffusion-based generative refinement to recover high-frequency boundary details from coarse predictions. DDFNet [35] decouples and fuses spatial- and frequency-domain representations and introduces high-order geometric priors based on gradient and curvature information to improve boundary precision. These methods are effective in different settings. However, their refinement or decoupling mechanisms differ substantially from ours. IDGBR relies on iterative generative denoising to refine coarse masks, while DDFNet performs decoupling primarily in the feature representation and frequency domains. Point-wise reclassification and repeated prediction updates also do not explicitly formulate boundary displacement as spatial transport of coarse logits. In contrast, DGSRef separates refinement into geometric alignment and semantic residual correction, so that boundary displacement and local semantic inconsistency are handled by different operations.

2.3. Geometric Alignment

Geometric alignment methods estimate spatial transformations or offsets to match features, images, or predictions across different locations. FlowNet [36] and RAFT [37] predict dense displacement fields for correspondence estimation. Spatial Transformer Networks [38] introduce differentiable spatial transformations into neural networks, and Deformable Convolutional Networks [39] learn adaptive sampling offsets inside convolutional feature extraction. These methods show that explicit spatial transformation is useful when prediction errors are caused by local misalignment rather than only by category-evidence uncertainty.
In semantic segmentation, alignment is often performed in the feature space to improve multi-level feature fusion or boundary localization. SFNet [8] learns semantic flow to align high-level semantic features with low-level high-resolution features before prediction, reducing the mismatch introduced by repeated downsampling, upsampling, and feature fusion. Deformable and offset-based segmentation modules also adapt sampling positions to better capture object structures. Recent boundary-refinement methods such as IDGBR [34] instead operate on coarse predictions, but perform correction through iterative generative denoising rather than explicit displacement-based transport. These methods mainly address either intermediate feature alignment or unified prediction refinement. In contrast, DGSRef predicts a displacement field for the coarse segmentation logits and performs differentiable warping directly in the output space after the baseline prediction. The subsequent semantic residual stage is separately responsible for correcting remaining category-evidence inconsistencies.

3. Methodology

3.1. Overview

Figure 2 illustrates the overall architecture of DGSRef. The proposed framework follows a two-stage refinement design built on top of a baseline semantic segmentation network. Given an input image, the baseline network extracts multi-stage features and predicts coarse logits Z c . DGSRef does not directly take the raw RGB image as an additional input. Instead, it uses the coarse logits and lightweight projected backbone features as refinement cues, which keeps the refiner attached to the baseline prediction rather than turning it into another full image decoder.
DGSRef refines the coarse logits through two decoupled stages. The first stage performs geometric alignment. It uses a low-level structural feature and high-level semantic guidance to predict a displacement field Δ p . Here, Δ p is a two-channel coordinate-offset field, not a semantic feature map; it is used to spatially warp the coarse logits and produce aligned logits Z w . The second stage performs semantic residual refinement, where residual logits Δ z and a spatial gate G high are predicted from the aligned logits and high-level semantic features. Here, Δ z denotes class-wise logit residuals rather than spatial offsets. This design allows the geometric stage to focus on boundary displacement and the semantic stage to compensate for remaining local semantic inconsistencies.

3.2. Flow-Based Geometric Refinement

The geometric alignment stage corrects boundary misalignment by explicitly predicting a displacement field. As shown in Figure 2, the coarse logits are combined with the structural feature F struct produced by the MSGSD module. The resulting feature is fed into a lightweight flow head to predict a low-resolution displacement field Δ p l R 2 × H l × W l . The low-resolution field contains horizontal and vertical offsets, denoted by Δ p x and Δ p y . It is first bilinearly upsampled and then rescaled from low-resolution pixel units to full-resolution pixel units:
Δ p ˜ = Up bilinear ( Δ p l ) , Δ p = W W l Δ p ˜ x , H H l Δ p ˜ y .
For the default 512 × 512 input and 128 × 128 refiner grid, both scale factors are 4. At an output location ( x , y ) , the source sampling position is ( x , y ) = ( x + Δ p x ( x , y ) , y + Δ p y ( x , y ) ) . The aligned class logit is then obtained by bilinear interpolation:
Z w c ( x , y ) = ( i , j ) N ( x , y ) Z c , c ( i , j ) max ( 0 , 1 | x i | ) max ( 0 , 1 | y j | ) ,
where N ( x , y ) denotes the four neighboring integer-grid locations around ( x , y ) , and Z c denotes the coarse logits resized to the image resolution. Out-of-bound sampling locations are handled using border padding.
This formulation makes the geometric role of the flow branch explicit: it cannot directly reclassify pixels, but transports the coarse prediction to reduce local spatial displacement near object boundaries. The boundary-weighted warp supervision in Section 3.5 further encourages the displacement field to focus on boundary regions rather than acting as a generic feature-extraction module.

3.3. Multi-Scale Semantic-Guided Structural Difference Module

The proposed module provides boundary-sensitive structural features for flow prediction. As illustrated in Figure 2, it takes the second-stage backbone feature as the low-level structural input, denoted as F low = F ( 2 ) , and the fourth-stage backbone feature as the high-level semantic guidance, denoted as F high = F ( 4 ) . The second-stage feature retains relatively fine spatial details, while the fourth-stage feature provides stronger category-level context.
The low-level feature is first projected into a compact representation,
F proj = ReLU BN Conv 1 × 1 ( F low ) .
Two consecutive Multi-Scale Difference Blocks then extract local structural variations at two receptive fields. For the first block,
R 1 = Conv 3 × 3 d = 1 ( F proj ) ; Conv 3 × 3 d = 2 ( F proj ) , Δ F 1 = BN Conv 3 × 3 ReLU BN ( R 1 ) , F 1 = ReLU Δ F 1 + F proj .
A second block with the same structure is applied to F 1 to obtain F 2 .
The high-level semantic feature is separately projected as guidance and combined with F 2 ,
F guide = Conv 1 × 1 ( F high ) , F cmp = Conv 1 × 1 [ F 2 ; F guide ] ,
where [ · ; · ] denotes channel-wise concatenation. Here, GAP ( · ) denotes global average pooling. The spatial and channel gates and the gated structural response are
G s = σ Conv 7 × 7 ( F cmp ) , G c = σ Conv 1 × 1 GAP ( F cmp ) , F gated = F 2 G s G c .
For concise notation, we denote the first-block structural response as F edge and the deeper multi-scale response as F base = F 2 . The final structural representation is expressed as
F struct = F edge + F base + F gated .
Here, F edge denotes the learned local structural residual produced by the first difference block rather than a hand-crafted edge map.
The resulting structural feature F struct is used by the flow head to estimate the displacement field.
The basic structural extraction unit is the Multi-Scale Difference Block shown in Figure 3. Two parallel 3 × 3 convolutions with dilation rates 1 and 2 capture local structural responses at different receptive fields. Their outputs are concatenated, normalized, activated, and transformed by a 3 × 3 convolution, followed by a residual connection that preserves the original representation. This learnable multi-scale design provides structural cues for displacement prediction without relying on a fixed hand-crafted edge operator.

3.4. Semantic Residual Refinement

The semantic residual stage compensates for local semantic inconsistencies that remain after geometric alignment. The warped logits already contain the current category distribution and usually preserve reliable interior predictions. Therefore, this stage is designed as a conservative residual corrector rather than a heavy decoder that re-predicts the entire segmentation map. Before entering the semantic branch, the warped logits are detached as
Z ^ w = sg ( Z w ) ,
where sg ( · ) denotes the stop-gradient operation. Thus, Z ^ w and Z w have exactly the same numerical values in the forward pass, but Z ^ w is treated as a constant during back-propagation:
Z ^ w Z w = 0 .
Therefore, Z ^ w should be interpreted as the detached version of the geometrically aligned logits rather than a separate prediction. This prevents gradients from the semantic residual branch from propagating through Z w to the displacement prediction stage, while the geometric branch remains directly optimized by L warp .
This separation helps the displacement field focus on spatial transport, while the semantic branch focuses on residual category-evidence correction.
As shown in Figure 4, the detached aligned logits Z ^ w are downsampled to the feature resolution and concatenated with the projected high-level semantic feature F sem from F ( 4 ) . The semantic residual branch then produces two outputs with different roles. The SimpleRefineHead predicts the class-wise residual logits Δ z over the whole image, which indicates what category-score correction should be added after geometric alignment. In parallel, the gate head predicts a spatial modulation map G high , which controls where and to what extent the residual correction should be applied. Therefore, Δ z is a dense logit-residual map rather than a displacement field, while G high is a spatial confidence-like weight for conservative residual modulation.
The use of the gate is motivated by the risk of over-correction. Directly adding a full-image residual map to the aligned logits may overwrite reliable interior predictions and disturb the geometric alignment obtained by the first stage. Although the gate is implemented by a simple 1 × 1 convolution followed by a sigmoid function, it does not need to extract complex new features. Its role is to perform spatial selection for the already predicted residual logits: it suppresses unnecessary updates in reliable aligned regions and allows stronger correction where the aligned logits remain semantically inconsistent with high-level contextual cues. It is therefore not intended as an additional boundary-sharpening mechanism, but as a lightweight controller that makes semantic residual correction conservative. The final prediction is computed as
Z f = Z ^ w + G high Δ z .
Because Z ^ w is numerically identical to Z w in the forward pass, Equation (10) preserves the geometrically aligned prediction while allowing only the gated semantic residual to modify its class evidence.
Since this branch only predicts residual logits after alignment, we use a lightweight SimpleRefineHead instead of a full decoder. The head takes the concatenated aligned logits and semantic feature as input, first projects them into a compact hidden representation with a 1 × 1 projection layer, then applies a lightweight depth-wise convolutional refinement block to capture local contextual variations, and finally maps the refined feature to class-wise residual logits through a 1 × 1 output layer. This design keeps the semantic branch focused on residual category-score correction rather than full image re-segmentation. The same lightweight template can also be used by the flow head with different output channels: the flow head predicts the two-channel displacement field Δ p , while the semantic residual head predicts the class-wise logit residual Δ z .

3.5. Loss Functions

DGSRef is optimized with three complementary terms, each corresponding to a specific part of the refinement process. The warp loss supervises the geometric alignment stage, the refined-logit loss supervises the final prediction after semantic residual correction, and the flat-region semantic decoupling term suppresses unnecessary semantic changes in non-boundary regions. Let Y denote the ground-truth label map. We use M v , M b , and M f to denote the valid-pixel mask, boundary-region mask, and flat-region mask, respectively.
The boundary-region mask M b is constructed directly from class transitions in the ground-truth label map. A pixel is first marked as a boundary pixel if its label differs from that of a horizontally or vertically adjacent valid pixel. The resulting transition mask is then dilated using 5 × 5 max pooling to form a boundary band with an approximate radius of two pixels. The flat-region mask is defined as the complement of the dilated boundary band:
M f = 1 M b .
No prediction-confidence threshold or image-gradient criterion is used to construct M f .
We first define a weighted cross-entropy loss:
L wce ( Z , Y ; W ) = i W i CE ( Z i , Y i ) i W i + ϵ .
Here, i indexes spatial locations, CE ( · ) denotes pixel-wise cross-entropy, and ϵ > 0 is a small constant used for numerical stability.
The two stages use different spatial weights:
W flow = M v 0.2 M f + 10.0 M b , W res = M v 1.0 M f + 1.5 M b ,
where the coefficients reflect the different supervision priorities of the two stages. The geometric branch places substantially stronger emphasis on boundary regions to encourage displacement correction, whereas the semantic residual branch uses only mild boundary reweighting to retain broader semantic supervision. These coefficients are empirically fixed and kept unchanged across all reported experiments.
For the geometric stage, the loss is applied to the warped logits Z w . Although the supervision is defined on the logits, its gradients are back-propagated through the differentiable warping operation to train the displacement field Δ p . The warp loss is defined as
L warp = L wce ( Z w , Y ; W flow ) .
For the semantic residual stage, the loss is applied to the final logits Z f . This term trains the residual head and the gate to correct remaining local semantic inconsistencies after geometric alignment:
L res = L wce ( Z f , Y ; W res ) .
In non-boundary regions, the coarse prediction is generally more reliable and should not be unnecessarily altered by semantic residual correction. Therefore, we introduce a flat-region semantic decoupling term that constrains the final prediction to remain close to the detached coarse prediction outside the boundary band. Let
P c , i = softmax sg Z c , i ,
and
P f , i = softmax Z f , i .
The flat-region semantic decoupling loss is defined as
L sem - flat = i M v , i M f , i D KL P c , i P f , i i M v , i M f , i + ϵ .
Here, D KL ( · · ) denotes the Kullback–Leibler divergence. The stop-gradient operation prevents this regularizer from modifying the coarse prediction used as the reference. This term suppresses unnecessary semantic changes in non-boundary regions and encourages the semantic residual branch to focus on the remaining local inconsistencies after geometric alignment.
The final objective is
L = λ warp L warp + λ res L res + λ sem L sem - flat ,
where λ warp , λ res , and λ sem balance geometric alignment, final semantic prediction, and flat-region semantic decoupling, respectively.

4. Results

This section reports the experimental results of DGSRef. We first describe the experimental setup, including datasets, implementation settings, and evaluation metrics. We then compare DGSRef with representative segmentation and refinement methods on the ISPRS Vaihingen and Potsdam datasets, followed by qualitative visualization, computational complexity analysis, ablation experiments, and an additional cross-architecture evaluation on LoveDA.

4.1. Experimental Setup

4.1.1. Datasets and Evaluation Metrics

ISPRS Vaihingen: The Vaihingen dataset [40] contains 33 high-resolution aerial image tiles with a ground sampling distance of approximately 9 cm. The images consist of near-infrared, red, and green channels and are annotated into common land-cover categories, including impervious surfaces, buildings, low vegetation, trees, and cars.
ISPRS Potsdam: The Potsdam dataset [40] contains 38 aerial image tiles with a ground sampling distance of approximately 5 cm. We use the RGB channels in the experiments and follow the same semantic label setting as the standard ISPRS benchmark.
LoveDA: The LoveDA dataset [41] contains 5987 remote sensing images collected from urban and rural regions. Its large appearance variation, heterogeneous object scales, and pronounced urban–rural distribution differences make it suitable for evaluating whether a refinement module remains effective beyond the two ISPRS benchmarks.
Evaluation metrics: We report mean F1 score (mF1), mean intersection over union (mIoU), and overall pixel accuracy (aAcc) to evaluate region-level segmentation quality. Boundary quality is evaluated using mean Boundary IoU (mBIoU) [42] and mean Boundary F-score (mBF). For the ISPRS datasets, we additionally report the class-wise Boundary IoU of Building and Car, denoted as B-BIoU and C-BIoU, respectively. Computational complexity is measured using floating-point operations in GFLOPs and model parameters in millions.

4.1.2. Implementation Details

As shown in Table 1, all models are implemented using MMSegmentation. PSPNet uses a ResNet-101 backbone, SegFormer uses MiT-B2, and UPerNet is adopted as the decoder for DINOv2-B and LSKNet-T. In the following tables, these complete segmentation systems are abbreviated as PSPNet, SegFormer, DINOv2-B, and LSKNet-T, respectively. The notation “+DGSRef” indicates that the proposed refinement module is attached to the corresponding baseline. Unless otherwise specified, the paired baseline/DGSRef experiments use a frozen-baseline refinement setting: the baseline segmentation network is fixed, and only DGSRef is trained on top of its coarse predictions. End-to-end joint training is evaluated separately in Section 5.3 as an optional strategy.
In the default setting, the warped logits are detached before being fed into the semantic residual branch, i.e., Z ^ w = sg ( Z w ) . This operation blocks gradients from the semantic residual loss to the geometric alignment stage while preserving the forward value of the aligned logits.

4.2. Comparison with Representative Methods

Table 2 compares DGSRef with representative CNN-based, Transformer-based, point-based, Mamba-based, and remote-sensing-specific segmentation methods. PointRend [31] and MSEONet [30] are evaluated with the PSPNet-based setting to provide a direct comparison between alternative refinement strategies and DGSRef under a common baseline. The remaining standalone methods are included to indicate the overall performance of representative segmentation architectures. Accordingly, the paired baseline/refinement rows provide the primary evidence for evaluating the effectiveness of DGSRef.

4.2.1. Results on Vaihingen

DGSRef improves the PSPNet baseline under the default frozen-refiner setting. Specifically, mIoU increases from 75.92% to 76.40%, aAcc increases from 87.66% to 87.82%, and mBIoU increases from 59.89% to 60.35%. The improvement is particularly clear for the Car boundary score, where DGSRef improves PSPNet from 67.47% to 69.14%. DGSRef also improves the SegFormer, DINOv2-B, and LSKNet-T baselines. UNetMamba achieves 76.17% mIoU and 60.61% mBIoU, providing a competitive Mamba-based reference under the same evaluation setting. Overall, the paired results show that DGSRef improves residual prediction errors across different baseline architectures without replacing their original segmentation structures.

4.2.2. Results on Potsdam

DGSRef also yields consistent improvements on Potsdam. For PSPNet, DGSRef increases mIoU from 83.18% to 83.30% and mBF from 55.60% to 56.75%. For SegFormer, DGSRef improves mIoU from 83.52% to 83.61%. For DINOv2-B, DGSRef improves mIoU from 76.37% to 76.90% and mBF from 45.53% to 46.96%. For LSKNet-T, DGSRef further improves both semantic and boundary-sensitive metrics. The region-level gains are relatively modest for several already strong baselines, suggesting that their coarse predictions leave limited residual errors for further correction. More noticeable improvements are observed in several boundary-sensitive metrics; for example, mBF increases from 55.60% to 56.75% for PSPNet and from 56.42% to 57.63% for LSKNet-T. UNetMamba obtains 83.02% mIoU and provides a competitive Mamba-based reference under the same evaluation setting. These observations are consistent with the role of DGSRef as a lightweight residual refinement module rather than a replacement for the underlying segmentation architecture.

4.3. Qualitative Results

Figure 5 presents qualitative comparisons on the ISPRS Vaihingen and Potsdam datasets. These examples are selected to illustrate typical refinement cases involving building boundaries, local misalignment, and regions with complex texture interference. Compared with the baseline predictions, DGSRef produces more spatially coherent object contours and reduces local boundary offsets. This observation is consistent with the quantitative gains in mBIoU, mBF, and class-wise boundary scores reported in Table 2.

4.4. Computational Complexity Analysis

DGSRef introduces limited additional computation and parameters across the evaluated systems. For example, the PSPNet configuration increases from 256.44 to 258.84 GFLOPs and from 65.60M to 65.73M parameters. Similarly, the LSKNet-T configuration increases from 213.50 to 215.62 GFLOPs and from 31.79M to 31.92M parameters. In the ablation setting, the complete DGSRef model adds only 2.40 GFLOPs over PSPNet, corresponding to approximately 0.94% relative overhead, and increases the parameter count by about 0.13M. These results show that the refinement gains are obtained without introducing a heavy decoder or an iterative refinement cascade.

4.5. Ablation Study

We conduct ablation experiments on the ISPRS Vaihingen dataset using the same frozen PSPNet baseline to evaluate the contributions of the flow alignment stage, the MSGSD module, and semantic residual refinement. To keep the analysis focused, Table 3 reports three overall segmentation metrics and four boundary-sensitive metrics.
Adding flow-based geometric alignment improves mIoU from 75.92% to 76.14%, mBIoU from 59.89% to 60.25%, and mBF from 54.08% to 54.91%, supporting the use of output-space logit transport for correcting local spatial misalignment. Introducing MSGSD further increases mIoU to 76.28%, mBIoU to 60.43%, and mBF to 55.31%, indicating that semantic-guided multi-scale structural differences provide useful cues for displacement prediction.
The semantic residual branch then increases mF1 from 86.30% to 86.38% and mIoU from 76.28% to 76.40%, while the Car boundary score increases from 68.75% to 69.14%. The slight decreases in mBIoU and mBF relative to the geometric-only configuration indicate that the semantic branch is not an additional boundary-sharpening operator. Instead, geometric alignment determines where coarse logits should be spatially relocated, whereas semantic residual refinement determines how the remaining category evidence should be adjusted after alignment. By first reducing spatial misalignment, the semantic branch can focus on residual category correction rather than simultaneously learning coordinate displacement and reclassification.
Overall, the ablation results support the intended functional separation of the two stages: geometric alignment contributes mainly to spatial boundary correction, while semantic residual refinement improves overall semantic consistency.

Sensitivity Analysis of Loss Coefficients

To evaluate the sensitivity of the proposed method to the balancing coefficients in Equation (19), we conduct a one-at-a-time sensitivity analysis for PSPNet+DGSRef on the Vaihingen dataset. Specifically, one coefficient is varied while the other two are fixed at their default values of λ warp = 1.0 , λ res = 1.0 , and λ sem = 0.075 . The results are reported in Table 4.
The performance remains relatively stable over the tested ranges. Varying λ warp from 0.5 to 2.0 results in mIoU values between 76.36% and 76.40%, while varying λ res over the same range produces mIoU values between 76.38% and 76.40%. Similarly, changing λ sem from 0 to 0.15 leads to only small variations in mIoU and mBIoU. Across all tested settings, the ranges are 76.35–76.40% for mIoU and 60.34–60.44% for mBIoU.
These results indicate that the proposed refinement framework is not highly sensitive to moderate changes in the three balancing coefficients. We therefore retain λ warp = 1.0 , λ res = 1.0 , and λ sem = 0.075 as the default configuration, which provides stable overall performance without requiring exhaustive coefficient tuning.

4.6. Additional Evaluation on LoveDA

The LoveDA experiment evaluates whether DGSRef remains useful when attached to different segmentation systems on a dataset with greater scene and appearance variation. Since the main purpose of this experiment is to evaluate the attachable refinement ability of DGSRef, we report paired baseline/DGSRef results for each architecture.
DGSRef improves mIoU and aAcc for all four evaluated baseline systems on LoveDA. The largest mIoU improvement is obtained with PSPNet, where DGSRef increases mIoU from 49.23% to 50.19%. SegFormer gains 0.49 points in mIoU and 0.80 points in aAcc, while DINOv2-B and LSKNet-T also obtain consistent region-level improvements. These results indicate that DGSRef can refine coarse predictions produced by different segmentation architectures under more heterogeneous remote sensing scenes.
Figure 6 further visualizes the refinement behavior on LoveDA. The visualizations show that DGSRef can improve the spatial consistency of several coarse predictions. This observation is consistent with the region-level improvements reported in Table 5, while the visual gains vary across scenes and baseline architectures.
Figure 7 presents two representative difficult cases on LoveDA. Densely distributed buildings contain several closely spaced boundaries, which can lead to incomplete local geometric correction, while thin roads may exhibit local discontinuity or inaccurate width preservation after refinement. These examples complement the quantitative results by showing where fine boundary recovery remains challenging.

5. Discussion

5.1. Role of Decoupled Refinement

The ablation results support the motivation of separating geometric alignment from semantic residual correction. The flow refinement stage and MSGSD module mainly improve boundary-sensitive metrics, indicating that output-space logit warping can correct part of the spatial displacement in coarse predictions. In contrast, the semantic residual branch further improves region-level metrics after alignment, but does not always increase all boundary metrics. This behavior suggests that the two stages play complementary roles: geometric alignment focuses on spatial correspondence and boundary-sensitive refinement, whereas semantic residual correction mainly improves local semantic consistency.
This separation is important because boundary displacement and semantic inconsistency require different operations. A displacement field modifies where coarse logits are sampled, while residual logits modify category evidence after alignment. The results in Table 3 show that treating these two operations separately provides a more interpretable refinement process than directly replacing the coarse prediction with a heavy decoder cascade.

5.2. Boundary Behavior and Generalization on LoveDA

Compared with the ISPRS benchmarks, LoveDA introduces stronger urban–rural distribution shifts, larger appearance variation, and more diverse object layouts, making residual refinement more challenging. Under these conditions, the boundary-sensitive gains of DGSRef become more architecture-dependent. DGSRef improves mBIoU for SegFormer and DINOv2-B, whereas PSPNet and LSKNet-T show slight decreases; mBA likewise exhibits small architecture-dependent fluctuations. This indicates that improvements in region-level semantic accuracy do not necessarily translate into uniform boundary gains on LoveDA, where coarse-prediction errors may arise not only from boundary displacement but also from category confusion and domain-related appearance changes.
The failure cases in Figure 7 provide a complementary explanation. Closely packed buildings introduce competing local boundary transitions, while thin roads may occupy only a few pixels on the low-resolution refinement grid, limiting the spatial detail available for displacement estimation. Similar difficulties may also arise under strong shadow occlusion because reduced local contrast can weaken the structural cues used by the geometric branch. The semantic residual stage can improve category consistency in such regions, but it may also slightly modify already aligned boundaries; therefore, it should not be interpreted as a dedicated boundary-sharpening operator.
Future work could investigate adaptive or higher-resolution displacement prediction to better handle extremely thin structures, densely packed small objects, and regions with unreliable local structural cues.

5.3. Effect of Training Strategy

The main experiments adopt a frozen-refiner setting, where the baseline segmentation network is fixed and DGSRef is trained as an additional refinement module. This setting keeps the refinement process lightweight and avoids retraining the entire segmentation system. To examine whether joint optimization can further improve performance, we additionally evaluate an end-to-end training variant, where the baseline network and DGSRef are optimized together.
As shown in Table 6, end-to-end training provides a small additional improvement over the frozen-refiner setting. The mIoU increases from 76.40% to 76.49%, and mBF increases from 55.07% to 55.57%. These results indicate that joint optimization can further benefit DGSRef, but the improvement is moderate. Therefore, the frozen-refiner setting is adopted as the default configuration in the main comparison because it provides competitive performance while preserving the lightweight and attachable-refiner nature of the proposed refinement framework.

5.4. Limitations

DGSRef is designed to refine coarse predictions that already contain useful semantic priors; if the baseline severely misclassifies a region or misses important category information, the refiner may have limited ability to reconstruct the missing semantics. Its low-resolution displacement prediction may also limit recovery of extremely thin structures or densely packed small objects, and strong shadow occlusion can weaken local structural cues. In addition, the semantic residual branch improves overall category consistency but may slightly alter boundary-sensitive metrics in some cases, as observed in the ablation study and LoveDA evaluation. Future work may therefore explore adaptive or higher-resolution displacement estimation, uncertainty-aware residual correction, and stronger structure-aware supervision.

6. Conclusions

This paper introduced DGSRef, a lightweight boundary-oriented refinement framework for high-resolution remote sensing semantic segmentation. DGSRef treats the coarse logits from an existing segmentation model as meaningful semantic priors and refines their residual errors through decoupled geometric alignment and semantic residual correction. The geometric stage predicts a displacement field to warp coarse logits in the output space, while MSGSD provides semantically filtered structural features for displacement estimation. The semantic residual stage then corrects remaining local semantic inconsistencies without replacing reliable aligned predictions. Experiments on Vaihingen and Potsdam show that DGSRef consistently improves multiple paired baseline/DGSRef architectures with limited additional FLOPs and parameters, especially on boundary-sensitive metrics. LoveDA experiments further show consistent mIoU and overall-accuracy gains, while also revealing architecture-dependent fluctuations in several boundary metrics. Future work will investigate stronger supervision for displacement learning, repeated-run statistical evaluation, and adaptive refinement policies.

Author Contributions

Conceptualization, J.W. and C.X.; methodology, J.W.; software, J.W.; validation, J.W.; formal analysis, J.W., S.C. and C.X.; investigation, J.W.; data curation, J.W.; writing—original draft preparation, J.W.; writing—review and editing, J.W., S.C., C.X. and X.L.; supervision, S.C., C.X. and X.L.; project administration, X.L.; funding acquisition, X.L. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported by the National Key Research and Development Program of China (Grant No. 2024YFF1400900).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The ISPRS Vaihingen and Potsdam datasets used in this study are publicly available from the ISPRS 2D Semantic Labeling Contest at https://www.isprs.org/resources/datasets/benchmarks/UrbanSemLab/2d-sem-label-vaihingen.aspx (accessed on 20 January 2026) and https://www.isprs.org/resources/datasets/benchmarks/UrbanSemLab/2d-sem-label-potsdam.aspx (accessed on 20 January 2026), respectively. The LoveDA dataset is publicly available at https://github.com/Junjue-Wang/LoveDA (accessed on 18 March 2026). The processed data splits, trained models, and source code are available from the corresponding author upon reasonable request.

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
DGSRefDecoupled Geometric-Semantic Refinement Network
MSGSDMulti-Scale Semantic-Guided Structural Difference
GSDGround Sampling Distance
IoUIntersection over Union
mIoUMean Intersection over Union
BIoUBoundary Intersection over Union
FLOPsFloating-Point Operations

References

  1. Zheng, Z.; Zhong, Y.; Wang, J.; Ma, A. Foreground-aware relation network for geospatial object segmentation in high spatial resolution remote sensing imagery. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Seattle, WA, USA, 14–19 June 2020; pp. 4096–4105. [Google Scholar]
  2. Ma, A.; Wang, J.; Zhong, Y.; Zheng, Z. Factseg: Foreground activation-driven small object semantic segmentation in large-scale remote sensing imagery. IEEE Trans. Geosci. Remote Sens. 2021, 60, 5606216. [Google Scholar] [CrossRef] [Scilit]
  3. Wang, L.; Li, R.; Zhang, C.; Fang, S.; Duan, C.; Meng, X.; Atkinson, P.M. Unetformer: A unet-like transformer for efficient semantic segmentation of remote sensing urban scene imagery. ISPRS J. Photogramm. Remote Sens. 2022, 190, 196–214. [Google Scholar] [CrossRef] [Scilit]
  4. Zhao, H.; Shi, J.; Qi, X.; Wang, X.; Jia, J. Pyramid scene parsing network. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Honolulu, HI, USA, 21–26 July 2017; pp. 2881–2890. [Google Scholar]
  5. Chen, L.C.; Papandreou, G.; Kokkinos, I.; Murphy, K.; Yuille, A.L. Deeplab: Semantic image segmentation with deep convolutional nets, atrous convolution, and fully connected crfs. IEEE Trans. Pattern Anal. Mach. Intell. 2017, 40, 834–848. [Google Scholar] [CrossRef] [Scilit]
  6. Xie, E.; Wang, W.; Yu, Z.; Anandkumar, A.; Alvarez, J.M.; Luo, P. SegFormer: Simple and efficient design for semantic segmentation with transformers. In Proceedings of the Advances in Neural Information Processing Systems, Online, 6–14 December 2021; Volume 34, pp. 12077–12090. [Google Scholar]
  7. Cheng, B.; Misra, I.; Schwing, A.G.; Kirillov, A.; Girdhar, R. Masked-attention mask transformer for universal image segmentation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, New Orleans, LA, USA, 19–24 June 2022; pp. 1290–1299. [Google Scholar]
  8. Li, X.; You, A.; Zhu, Z.; Zhao, H.; Yang, M.; Yang, K.; Tan, S.; Tong, Y. Semantic flow for fast and accurate scene parsing. In Proceedings of the European Conference on Computer Vision; Springer: Berlin/Heidelberg, Germany, 2020; pp. 775–793. [Google Scholar]
  9. Long, J.; Shelhamer, E.; Darrell, T. Fully convolutional networks for semantic segmentation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Boston, MA, USA, 7–12 June 2015; pp. 3431–3440. [Google Scholar]
  10. Badrinarayanan, V.; Kendall, A.; Cipolla, R. Segnet: A deep convolutional encoder-decoder architecture for image segmentation. IEEE Trans. Pattern Anal. Mach. Intell. 2017, 39, 2481–2495. [Google Scholar] [CrossRef] [Scilit]
  11. Ronneberger, O.; Fischer, P.; Brox, T. U-net: Convolutional networks for biomedical image segmentation. In Proceedings of the Medical Image Computing and Computer-Assisted Intervention; Springer: Berlin/Heidelberg, Germany, 2015; pp. 234–241. [Google Scholar]
  12. Lin, G.; Milan, A.; Shen, C.; Reid, I. Refinenet: Multi-path refinement networks for high-resolution semantic segmentation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Honolulu, HI, USA, 21–26 July 2017; pp. 1925–1934. [Google Scholar]
  13. Yuan, Y.; Chen, X.; Wang, J. Object-contextual representations for semantic segmentation. In Proceedings of the European Conference on Computer Vision; Springer: Berlin/Heidelberg, Germany, 2020; pp. 173–190. [Google Scholar]
  14. Sun, K.; Zhao, Y.; Jiang, B.; Cheng, T.; Xiao, B.; Liu, D.; Mu, Y.; Wang, X.; Liu, W.; Wang, J. High-resolution representations for labeling pixels and regions. arXiv 2019, arXiv:1904.04514. [Google Scholar]
  15. Xiao, T.; Liu, Y.; Zhou, B.; Jiang, Y.; Sun, J. Unified perceptual parsing for scene understanding. In Proceedings of the European Conference on Computer Vision, Munich, Germany, 8–14 September 2018; pp. 418–434. [Google Scholar]
  16. Ni, Y.; Liu, J.; Cui, J.; Yang, Y.; Wang, X. Edge guidance network for semantic segmentation of high-resolution remote sensing images. IEEE J. Sel. Top. Appl. Earth Obs. Remote Sens. 2023, 16, 9382–9395. [Google Scholar] [CrossRef] [Scilit]
  17. Hanyu, T.; Yamazaki, K.; Tran, M.; McCann, R.A.; Liao, H.; Rainwater, C.; Adkins, M.; Cothren, J.; Le, N. AerialFormer: Multi-resolution transformer for aerial image segmentation. Remote Sens. 2024, 16, 2930. [Google Scholar] [CrossRef] [Scilit]
  18. Zheng, S.; Lu, J.; Zhao, H.; Zhu, X.; Luo, Z.; Wang, Y.; Fu, Y.; Feng, J.; Xiang, T.; Torr, P.H.; et al. Rethinking semantic segmentation from a sequence-to-sequence perspective with transformers. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Nashville, TN, USA, 19–25 June 2021; pp. 6881–6890. [Google Scholar]
  19. Liu, Z.; Lin, Y.; Cao, Y.; Hu, H.; Wei, Y.; Zhang, Z.; Lin, S.; Guo, B. Swin Transformer: Hierarchical Vision Transformer Using Shifted Windows. In Proceedings of the IEEE/CVF International Conference on Computer Vision, Montreal, QC, Canada, 11–17 October 2021; pp. 10012–10022. [Google Scholar]
  20. Oquab, M.; Darcet, T.; Moutakanni, T.; Vo, H.; Szafraniec, M.; Khalidov, V.; Fernandez, P.; Haziza, D.; Massa, F.; El-Nouby, A.; et al. Dinov2: Learning robust visual features without supervision. arXiv 2023, arXiv:2304.07193. [Google Scholar]
  21. Kirillov, A.; Mintun, E.; Ravi, N.; Mao, H.; Rolland, C.; Gustafson, L.; Xiao, T.; Whitehead, S.; Berg, A.C.; Lo, W.Y.; et al. Segment anything. In Proceedings of the IEEE/CVF International Conference on Computer Vision, Paris, France, 2–3 October 2023; pp. 4015–4026. [Google Scholar]
  22. Ravi, N.; Gabeur, V.; Hu, Y.T.; Hu, R.; Ryali, C.; Ma, T.; Khedr, H.; Rädle, R.; Rolland, C.; Gustafson, L.; et al. Sam 2: Segment anything in images and videos. In Proceedings of the International Conference on Learning Representations, Singapore, 24–28 April 2025; Volume 2025, pp. 28085–28128. [Google Scholar]
  23. Guo, M.H.; Lu, C.Z.; Hou, Q.; Liu, Z.; Cheng, M.M.; Hu, S.M. Segnext: Rethinking convolutional attention design for semantic segmentation. In Proceedings of the Advances in Neural Information Processing Systems, New Orleans, LA, USA, 28 November–9 December 2022; Volume 35, pp. 1140–1156. [Google Scholar]
  24. Li, Y.; Li, X.; Dai, Y.; Hou, Q.; Liu, L.; Liu, Y.; Cheng, M.M.; Yang, J. Lsknet: A foundation lightweight backbone for remote sensing. Int. J. Comput. Vis. 2025, 133, 1410–1431. [Google Scholar] [CrossRef] [Scilit]
  25. Zhu, E.; Chen, Z.; Wang, D.; Shi, H.; Liu, X.; Wang, L. UNetMamba: An Efficient UNet-Like Mamba for Semantic Segmentation of High-Resolution Remote Sensing Images. IEEE Geosci. Remote Sens. Lett. 2025, 22, 6001205. [Google Scholar] [CrossRef] [Scilit]
  26. Krähenbühl, P.; Koltun, V. Efficient inference in fully connected crfs with gaussian edge potentials. In Proceedings of the Advances in Neural Information Processing Systems, Granada, Spain, 12–15 December 2011; Volume 24. [Google Scholar]
  27. Ding, H.; Jiang, X.; Shuai, B.; Liu, A.Q.; Yang, G. Boundary-aware feature propagation for scene segmentation. In Proceedings of the IEEE/CVF International Conference on Computer Vision, Seoul, Republic of Korea, 27 October–2 November 2019; pp. 6819–6829. [Google Scholar]
  28. Zhen, M.; Li, J.; Fang, Z.; Swaminathan, A.; Shan, Y.; Li, N. Joint semantic segmentation and boundary detection using iterative pyramid contexts. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Seattle, WA, USA, 14–19 June 2020; pp. 13666–13675. [Google Scholar]
  29. Takikawa, T.; Acuna, D.; Jampani, V.; Fidler, S. Gated-scnn: Gated shape cnns for semantic segmentation. In Proceedings of the IEEE/CVF International Conference on Computer Vision, Seoul, Republic of Korea, 27 October–2 November 2019; pp. 5229–5238. [Google Scholar]
  30. Huang, W.; Deng, F.; Liu, H.; Ding, M.; Yao, Q. Multiscale Semantic Segmentation of Remote Sensing Images Based on Edge Optimization. IEEE Trans. Geosci. Remote Sens. 2025, 63, 5616813. [Google Scholar] [CrossRef] [Scilit]
  31. Kirillov, A.; Wu, Y.; He, K.; Girshick, R. Pointrend: Image segmentation as rendering. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Seattle, WA, USA, 14–19 June 2020; pp. 9799–9808. [Google Scholar]
  32. Yuan, Y.; Xie, J.; Chen, X.; Wang, J. Segfix: Model-agnostic boundary refinement for segmentation. In Proceedings of the European Conference on Computer Vision, Glasgow, UK, 23–28 August 2020; pp. 489–506. [Google Scholar]
  33. Cheng, B.; Girshick, R.; Dollár, P.; Kirillov, A.; Schwing, A. Cascadepsp: Toward class-agnostic and very high-resolution segmentation via global and local refinement. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Seattle, WA, USA, 14–19 June 2020; pp. 8890–8899. [Google Scholar]
  34. Wang, H.; Hu, K.; Guo, X.; Li, H.; Tao, C. A Gift From the Integration of Discriminative and Diffusion-Based Generative Learning: Boundary Refinement Remote Sensing Semantic Segmentation. IEEE Trans. Pattern Anal. Mach. Intell. 2026, 48, 5892–5909. [Google Scholar] [CrossRef] [Scilit]
  35. Li, X.; Xu, F.; Zhang, J.; Yu, A.; Lyu, X.; Gao, H.; Zhou, J. Dual-domain decoupled fusion network for semantic segmentation of remote sensing images. Inf. Fusion 2025, 124, 103359. [Google Scholar] [CrossRef] [Scilit]
  36. Dosovitskiy, A.; Fischer, P.; Ilg, E.; Hausser, P.; Hazirbas, C.; Golkov, V.; Van Der Smagt, P.; Cremers, D.; Brox, T. Flownet: Learning optical flow with convolutional networks. In Proceedings of the IEEE/CVF International Conference on Computer Vision, Santiago, Chile, 7–13 December 2015; pp. 2758–2766. [Google Scholar]
  37. Teed, Z.; Deng, J. Raft: Recurrent all-pairs field transforms for optical flow. In Proceedings of the European Conference on Computer Vision; Springer: Berlin/Heidelberg, Germany, 2020; pp. 402–419. [Google Scholar]
  38. Jaderberg, M.; Simonyan, K.; Zisserman, A. Spatial transformer networks. In Proceedings of the Advances in Neural Information Processing Systems, Montreal, QC, Canada, 7–12 December 2015; Volume 28. [Google Scholar]
  39. Dai, J.; Qi, H.; Xiong, Y.; Li, Y.; Zhang, G.; Hu, H.; Wei, Y. Deformable convolutional networks. In Proceedings of the IEEE/CVF International Conference on Computer Vision, Venice, Italy, 22–29 October 2017; pp. 764–773. [Google Scholar]
  40. Rottensteiner, F.; Sohn, G.; Jung, J.; Gerke, M.; Baillard, C.; Benitez, S.; Breitkopf, U. The ISPRS benchmark on urban object classification and 3D building reconstruction. ISPRS Ann. Photogramm. Remote Sens. Spat. Inf. Sci. 2012, 1, 293–298. [Google Scholar] [CrossRef] [Scilit]
  41. Wang, J.; Zheng, Z.; Ma, A.; Lu, X.; Zhong, Y. LoveDA: A remote sensing land-cover dataset for domain adaptation. In Proceedings of the Advances in Neural Information Processing Systems, Virtual, 6–14 December 2021; pp. 25568–25581. [Google Scholar]
  42. Cheng, B.; Girshick, R.; Dollár, P.; Kirillov, A.; Schwing, A. Boundary IoU: Improving object-centric image segmentation evaluation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Nashville, TN, USA, 19–25 June 2021; pp. 15334–15342. [Google Scholar]
Figure 1. Motivation and progressive refinement behavior of DGSRef. The coarse prediction Z c produced by the baseline model may contain boundary displacement and local semantic inconsistencies. The geometric alignment stage predicts a displacement field Δ p , visualized as sparse arrows near object boundaries, and warps the coarse logits to obtain Z w . The semantic residual stage then predicts residual logits Δ z and a spatial gate to conservatively correct remaining local semantic inconsistencies, producing the final prediction Z f .
Figure 1. Motivation and progressive refinement behavior of DGSRef. The coarse prediction Z c produced by the baseline model may contain boundary displacement and local semantic inconsistencies. The geometric alignment stage predicts a displacement field Δ p , visualized as sparse arrows near object boundaries, and warps the coarse logits to obtain Z w . The semantic residual stage then predicts residual logits Δ z and a spatial gate to conservatively correct remaining local semantic inconsistencies, producing the final prediction Z f .
Remotesensing 18 03011 g001
Figure 2. Main architecture of DGSRef. The baseline segmentation network predicts coarse logits Z c . In the geometric refinement stage, MSGSD provides semantic-guided structural cues for predicting the displacement field Δ p , which is then used to warp the coarse logits into the aligned logits Z w . The semantic refinement stage predicts a gated residual correction from the aligned logits and high-level semantic features, and produces the final logits Z f . In the segmentation masks, green, cyan, and blue denote Tree, Low vegetation, and Building, respectively.
Figure 2. Main architecture of DGSRef. The baseline segmentation network predicts coarse logits Z c . In the geometric refinement stage, MSGSD provides semantic-guided structural cues for predicting the displacement field Δ p , which is then used to warp the coarse logits into the aligned logits Z w . The semantic refinement stage predicts a gated residual correction from the aligned logits and high-level semantic features, and produces the final logits Z f . In the segmentation masks, green, cyan, and blue denote Tree, Low vegetation, and Building, respectively.
Remotesensing 18 03011 g002
Figure 3. Structure of the Multi-Scale Difference Block (MSD Block). Two parallel 3 × 3 convolutions with different dilation rates extract local structural variations at multiple receptive fields. The symbol d denotes the dilation rate; a larger d expands the receptive field without increasing the kernel size. Their outputs are concatenated and transformed before being added back to the input through a residual connection.
Figure 3. Structure of the Multi-Scale Difference Block (MSD Block). Two parallel 3 × 3 convolutions with different dilation rates extract local structural variations at multiple receptive fields. The symbol d denotes the dilation rate; a larger d expands the receptive field without increasing the kernel size. Their outputs are concatenated and transformed before being added back to the input through a residual connection.
Remotesensing 18 03011 g003
Figure 4. Semantic residual refinement module of DGSRef. The detached aligned logits Z ^ w are concatenated with the projected high-level semantic feature F sem as the input to the semantic refinement stage. A lightweight SimpleRefineHead predicts class-wise residual logits Δ z , while a separate 1 × 1 convolution followed by a sigmoid function predicts the spatial gate G high . Since this stage only corrects residual semantic inconsistencies after geometric alignment, the SimpleRefineHead acts as a residual predictor rather than a full segmentation decoder.
Figure 4. Semantic residual refinement module of DGSRef. The detached aligned logits Z ^ w are concatenated with the projected high-level semantic feature F sem as the input to the semantic refinement stage. A lightweight SimpleRefineHead predicts class-wise residual logits Δ z , while a separate 1 × 1 convolution followed by a sigmoid function predicts the spatial gate G high . Since this stage only corrects residual semantic inconsistencies after geometric alignment, the SimpleRefineHead acts as a residual predictor rather than a full segmentation decoder.
Remotesensing 18 03011 g004
Figure 5. Qualitative visualization on the ISPRS Vaihingen and Potsdam datasets. For each example, the first row shows the input image, ground truth, and predictions of representative comparison methods, while the second row shows the baseline prediction and the DGSRef-refined prediction. Red boxes highlight representative regions for detailed visual comparison.
Figure 5. Qualitative visualization on the ISPRS Vaihingen and Potsdam datasets. For each example, the first row shows the input image, ground truth, and predictions of representative comparison methods, while the second row shows the baseline prediction and the DGSRef-refined prediction. Red boxes highlight representative regions for detailed visual comparison.
Remotesensing 18 03011 g005
Figure 6. Qualitative visualization on the LoveDA dataset. Each example shows the input image, ground truth, baseline prediction, and DGSRef-refined prediction. LoveDA contains heterogeneous urban and rural scenes, providing a complementary qualitative evaluation under more complex domain variations. Blue boxes highlight representative regions for detailed visual comparison.
Figure 6. Qualitative visualization on the LoveDA dataset. Each example shows the input image, ground truth, baseline prediction, and DGSRef-refined prediction. LoveDA contains heterogeneous urban and rural scenes, providing a complementary qualitative evaluation under more complex domain variations. Blue boxes highlight representative regions for detailed visual comparison.
Remotesensing 18 03011 g006
Figure 7. Representative failure cases on LoveDA, including densely distributed buildings and thin road structures. Blue boxes highlight representative regions for detailed visual comparison.
Figure 7. Representative failure cases on LoveDA, including densely distributed buildings and thin road structures. Blue boxes highlight representative regions for detailed visual comparison.
Remotesensing 18 03011 g007
Table 1. Implementation settings used in the experiments.
Table 1. Implementation settings used in the experiments.
ItemSetting
FrameworkMMSegmentation
OptimizerAdamW
Training iterations40k
Learning-rate schedulePolynomial decay
Batch size4
Input crop size 512 × 512
DINOv2-B crop size 518 × 518
Data augmentationRandom resize, random crop, and random horizontal flip
Resize ratio [ 0.5 , 2.0 ]
HardwareSingle NVIDIA GeForce RTX 4060 GPU with 8 GB memory
LR 2 × 10 5
Weight decay0.01
Loss coefficients λ warp = λ res = 1.0 , λ sem = 0.075
Stop-gradientEnabled before semantic residual branch
Table 2. Quantitative comparison on the ISPRS Vaihingen and Potsdam datasets. All accuracy and boundary metrics are reported in percentage (%). PSPNet uses ResNet-101, SegFormer uses MiT-B2, and UPerNet is used as the decoder for DINOv2-B and LSKNet-T. The row “+DGSRef” denotes attaching DGSRef to the corresponding baseline. B-BIoU and C-BIoU denote the Boundary IoU of Building and Car, respectively. Bold values indicate the best result among methods compared under the same baseline setting.
Table 2. Quantitative comparison on the ISPRS Vaihingen and Potsdam datasets. All accuracy and boundary metrics are reported in percentage (%). PSPNet uses ResNet-101, SegFormer uses MiT-B2, and UPerNet is used as the decoder for DINOv2-B and LSKNet-T. The row “+DGSRef” denotes attaching DGSRef to the corresponding baseline. B-BIoU and C-BIoU denote the Boundary IoU of Building and Car, respectively. Bold values indicate the best result among methods compared under the same baseline setting.
DatasetMethodmF1mIoUaAccmBIoUmBFB-BIoUC-BIoUFLOPs (G)Params (M)
VaihingenDeepLabV3+ [5]84.0473.0286.6455.8050.0064.2457.55198.1047.21
Mask2Former [7]86.1476.0187.5759.9555.8468.4967.9785.8763.00
UNetFormer [3]85.5375.1487.3458.5153.5266.7365.0111.7511.73
EIGNet [16]85.9575.7787.6459.4655.0667.8266.9844.8034.48
AerialFormer [17]86.0075.8787.7959.7455.1768.7265.7149.9442.71
UNetMamba [25]86.2176.1787.8360.6155.7869.5468.4320.9014.88
PSPNet [4]86.0575.9287.6659.8954.0868.5367.47256.4465.60
   +PointRend [31]86.3676.3988.0060.1254.7668.5567.48259.7865.80
   +MSEONet [30]85.9275.6687.3659.1553.7065.8167.60286.5273.14
   +DGSRef86.3876.4087.8260.3555.0768.3969.14258.8465.73
SegFormer [6]86.1876.1488.1159.8754.6968.5465.5522.4124.47
   +DGSRef86.4376.5188.2160.2755.1269.0666.9424.6924.60
DINOv2-B [20]84.5673.9087.4257.4651.4067.1457.75159.16118.84
   +DGSRef84.9674.4387.5558.0252.6067.4859.72162.07119.01
LSKNet-T [24]86.3976.4387.9160.2754.8468.7367.99213.5031.79
   +DGSRef86.5076.6088.0560.6155.7268.9668.12215.6231.92
PotsdamDeepLabV3+ [5]89.3480.9989.2956.6851.8462.7078.36198.1047.21
Mask2Former [7]90.2782.5290.1559.5754.9565.8780.8085.8763.00
UNetFormer [3]89.9782.0489.9658.7254.2465.5680.0311.7511.73
EIGNet [16]90.0582.1889.6658.9954.5065.7082.0944.8034.48
AerialFormer [17]90.7483.3190.6660.5655.7668.1881.2249.9442.71
UNetMamba [25]90.5883.0290.5063.0758.7473.5382.7720.9014.88
PSPNet [4]90.6783.1890.6160.1655.6066.8381.33256.4465.60
   +PointRend [31]90.7083.2290.6160.2755.6867.0881.27259.7865.80
   +MSEONet [30]88.7479.9788.1754.2148.8451.4681.08286.5273.14
   +DGSRef90.7483.3090.6660.5256.7567.1281.77258.8465.73
SegFormer [6]90.8883.5290.8960.2355.3266.9480.4622.4124.47
   +DGSRef90.9383.6191.0560.4556.4867.3380.8324.6924.60
DINOv2-B [20]86.4376.3786.2651.0745.5353.8672.47159.16118.84
   +DGSRef86.7876.9086.8251.6546.9655.3472.85162.07119.01
LSKNet-T [24]90.8583.4690.7060.6256.4267.6581.21213.5031.79
   +DGSRef90.8983.5490.8961.1557.6368.6581.90215.6231.92
Table 3. Ablation study of DGSRef on the ISPRS Vaihingen dataset under the default frozen-refiner setting. All reported metrics are in percentage (%). A check mark indicates that the corresponding module is adopted, while “–” indicates that it is not used. Bold values indicate the best result for each metric.
Table 3. Ablation study of DGSRef on the ISPRS Vaihingen dataset under the default frozen-refiner setting. All reported metrics are in percentage (%). A check mark indicates that the corresponding module is adopted, while “–” indicates that it is not used. Bold values indicate the best result for each metric.
FlowMSGSDSemanticmF1mIoUaAccmBIoUmBFB-BIoUC-BIoU
86.0575.9287.6659.8954.0868.5367.47
86.2076.1487.7460.2554.9168.7668.21
86.3076.2887.7760.4355.3168.8968.75
86.3876.4087.8260.3555.0768.3969.14
Table 4. Sensitivity analysis of the loss coefficients for PSPNet+DGSRef on the Vaihingen dataset. Only one coefficient is varied at a time, while the remaining coefficients are fixed at their default values ( λ warp = 1.0 , λ res = 1.0 , and λ sem = 0.075 ). All metrics are reported in percentage (%).
Table 4. Sensitivity analysis of the loss coefficients for PSPNet+DGSRef on the Vaihingen dataset. Only one coefficient is varied at a time, while the remaining coefficients are fixed at their default values ( λ warp = 1.0 , λ res = 1.0 , and λ sem = 0.075 ). All metrics are reported in percentage (%).
Coefficient SettingmIoUmBIoU
λ warp = 0.5 76.3960.40
λ warp = 1.0 (default)76.4060.35
λ warp = 2.0 76.3660.35
λ res = 0.5 76.3860.41
λ res = 1.0 (default)76.4060.35
λ res = 2.0 76.3860.41
λ sem = 0 76.3960.39
λ sem = 0.05 76.3560.34
λ sem = 0.075 (default)76.4060.35
λ sem = 0.15 76.3760.44
Table 5. Additional cross-architecture evaluation on LoveDA. All accuracy and boundary metrics are reported in percentage (%). Bold values indicate the better result within each baseline/DGSRef pair.
Table 5. Additional cross-architecture evaluation on LoveDA. All accuracy and boundary metrics are reported in percentage (%). Bold values indicate the better result within each baseline/DGSRef pair.
BaselinemIoUaAccmBIoUmBA
PSPNet49.2368.0834.3748.61
    +DGSRef50.1968.3434.2548.53
SegFormer53.7870.8337.0548.68
     +DGSRef54.2771.6337.1548.92
DINOv2-B46.2664.4531.9546.82
     +DGSRef46.5465.1432.2946.97
LSKNet-T50.2768.6134.6847.49
     +DGSRef50.4868.8934.6547.80
Table 6. Comparison between the default frozen-refiner setting and end-to-end joint training on ISPRS Vaihingen. Bold values indicate the best result for each metric.
Table 6. Comparison between the default frozen-refiner setting and end-to-end joint training on ISPRS Vaihingen. Bold values indicate the best result for each metric.
Training StrategymF1mIoUaAccmBIoUmBF
Frozen refiner86.3876.4087.8260.3555.07
End-to-end86.4476.4987.8960.4655.57
Gain+0.06+0.09+0.07+0.11+0.50
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Wang, J.; Li, X.; Chen, S.; Xia, C. DGSRef: Decoupled Geometric-Semantic Refinement Network for High-Resolution Remote Sensing Segmentation. Remote Sens. 2026, 18, 3011. https://doi.org/10.3390/rs18173011

AMA Style

Wang J, Li X, Chen S, Xia C. DGSRef: Decoupled Geometric-Semantic Refinement Network for High-Resolution Remote Sensing Segmentation. Remote Sensing. 2026; 18(17):3011. https://doi.org/10.3390/rs18173011

Chicago/Turabian Style

Wang, Junlu, Xiaorun Li, Shuhan Chen, and Chaoqun Xia. 2026. "DGSRef: Decoupled Geometric-Semantic Refinement Network for High-Resolution Remote Sensing Segmentation" Remote Sensing 18, no. 17: 3011. https://doi.org/10.3390/rs18173011

APA Style

Wang, J., Li, X., Chen, S., & Xia, C. (2026). DGSRef: Decoupled Geometric-Semantic Refinement Network for High-Resolution Remote Sensing Segmentation. Remote Sensing, 18(17), 3011. https://doi.org/10.3390/rs18173011

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop