Manuscript Offprint
arXiv:2611.01551TopoDPO: Dense Preference Alignment for Structure-Sensitive Aerial Referring Segmentation
Huaiyuan Peng, Jisheng Dang, Wencan Zhang, Jingwen Zhao, Hong Peng, Wenjun Ma, Bin Hu, Fellow, IEEE, Qi Tian, Fellow, IEEE, Tat-Seng Chua
Abstract—Preference optimization for multimodal segmentation faces a granularity mismatch: dense masks contain spatially heterogeneous preference signals, whereas image-level objectives assign one shared nonlinear weight to all spatial margins. We introduce TopoDPO, a topology-aware dense preference alignment framework for structure-sensitive aerial referring segmentation. Topo-Prior mines informative preference pairs using connected-component discrepancy and macro-corner recall, while the dense objective applies the preference penalty to each local margin before spatial aggregation against a frozen supervised reference. On Topo-RS-Hard, a 4590-instance structural stress set, TopoDPO improves intersection over union (IoU) from 50.91% to 51.24% over image-level direct preference optimization (DPO) and reduces Betti-0 error from 1.34 to 0.90; paired image-cluster bootstrap intervals against image-level DPO exclude zero for all five reported metrics. Matched supervised controls and a complete factorial analysis separate the effects of topology-aware pair mining, localized correction, and dense reference-relative preference weighting. An unfiltered stratification over all 39 244 validation records further shows the clearest structural gains on samples with moderate or severe pre-alignment component-count errors. The code is publicly available at: https://github.com/phy709/TopoDPO.
Index Terms—aerial imagery, multimodal large language models, preference optimization, referring segmentation, topology-aware learning
I. INTRODUCTION
REFERRING segmentation maps an image and a natural-language query to the pixels of the described object. The task connects language grounding with dense visual prediction and is increasingly studied with multimodal large language models (MLLMs) and promptable segmentation decoders [1], [2], [3]. In aerial imagery, the same semantic target may be small, elongated, fragmented by occlusion, or embedded in a dense scene. A useful mask must therefore preserve not only region overlap but also the connectivity and geometry of the target.
Remote-sensing foundation models and multimodal systems such as SkySense, GeoChat, and EarthGPT strengthen semantic understanding of overhead imagery [4], [5], [6], but they do not specify how a language-conditioned mask should preserve a narrow connection, a hole, or a polygonal corner. Our problem begins at this interface between semantic grounding and structurally faithful dense decoding.
This requirement exposes a weakness of conventional evaluation and alignment. Intersection over Union (IoU) and Dice/F1 aggregate pixels by area. Removing a narrow bridge from a road or adding a small disconnected island may barely change these metrics, although the predicted topology changes. A related issue arises in image-level direct preference optimization (DPO), which averages the spatial log-likelihood margins and then applies one nonlinear preference penalty [7]. Consequently, every coordinate receives the same weight determined by the global mean margin. Positive margins at easy coordinates can cancel negative margins at locally incorrect coordinates before the sigmoid is evaluated. We call this global-margin coupling or local-margin cancellation. The claim is about aggregation order, not the removal of spatial normalization: both image-level and dense objectives retain a factor of .
As illustrated in Fig. 1, image-level DPO aggregates the spatial preference margins before applying the nonlinear penalty, whereas TopoDPO preserves local margins through nonlinear weighting before spatial aggregation. We propose TopoDPO to target these sparse structural errors. The first component, Topo-Prior, evaluates predictions offline using the absolute Betti-0 discrepancy and macro-corner recall, and uses these signals to mine chosen and rejected mask pairs. The second component, TopoDPO, preserves the two-dimensional preference-margin map and applies the DPO nonlinearity at each spatial position before averaging. The design does not require differentiating through connected-component or corner extraction during training. It can therefore be integrated with a large language backbone and a segmentation decoder using the same preference pairs as image-level DPO.
We study this design with Sa2VA-InternVL3-8B on Aerial-D and RISORS [8], [9]. Topo-RS-Hard is a fixed 4590-instance structural stress set drawn from a 39 244-instance public validation pool, complemented by an unfiltered analysis over the full pool. A same-protocol clDice baseline, paired image-cluster resampling, matched full-mask supervision, and a gradient-scale-matched disagreement-masked control isolate the effects of topology-aware curation and dense preference weighting [10].
The contributions are threefold:
We identify global-margin coupling in mask preference learning and introduce a spatially dense DPO objective that prevents local margins from canceling before nonlinear weighting.
We develop an offline topology-aware preference mining procedure based on connected components and macro
This work was supported in part by the National Natural Science Foundation of China under Grants 62227807 and U24B20186, in part by the Scientific and Technological Innovation 2030 Project of MOST, China, under Grants 2021ZD0200600 and 2021ZD0200408, and by the Supercomputing Center of Lanzhou University.
Huaiyuan Peng, Jisheng Dang, Jingwen Zhao, Wenjun Ma, Hong Peng, and Bin Hu are with the School of Information Science and Engineering, Lanzhou University, Lanzhou 730000, China.
Wencan Zhang and Tat-Seng Chua are with the School of Computing, National University of Singapore, Singapore 119077.
Qi Tian is with Huawei, Shenzhen 518129, China. Corresponding author: Bin Hu (e-mail: bh@bit.edu.cn).
Vanilla DPO (Image-level Reward)

TopoDPO (Pixel-level Dense Penalty) (Ours)

Prompt: "Please segment the dark rectangular building just to the right of the lighter rectangular building in the center right."
Fig. 1. Image-level DPO compresses a spatial preference signal into one scalar, whereas TopoDPO applies the nonlinear preference penalty to the spatial margin before aggregation. The masks illustrate representative localized structural errors addressed by the proposed dense alignment objective.
corners, avoiding online differentiation through discrete structural operators.
- We establish the effect with a focused structural stress test and full-pool analysis, topology-loss and matched supervised controls, a factorial ablation of pair selection and objective granularity, and paired image-cluster bootstrap intervals.
A. Language-Guided Dense Prediction
Promptable segmentation models provide pixel-level decoding [11], [12]. LISA and PixelLM connect language-model hidden states to segmentation decoders for reasoning segmentation, while Sa2VA supports dense grounded understanding of images and videos [1], [2], [3]. GeoChat and EarthGPT extend grounded multimodal understanding to overhead imagery [5], [6]. Our contribution is orthogonal to backbone design and focuses on alignment after supervised fine-tuning (SFT) for structurally faithful dense prediction.
B. Preference Alignment for Multimodal Models
DPO replaces explicit reward-model training with a classification objective over preferred and rejected outputs [7]. Multimodal variants such as mDPO and task preference optimization adapt preference learning to visual conditioning and differentiable vision heads [13], [14]. POPEN further introduces preference optimization and preference-based ensembling for large vision-language model (LVLM) reasoning segmentation [15]. These methods establish the relevance of preference feedback to dense multimodal tasks, but they do not target component-level defects in aerial masks.
Recent segmentation-specific studies are the closest comparisons. RN-DPO normalizes mask preferences by their disagreement-region size to stabilize medical segmentation under noisy judges [16]. Active Preference Alignment selects
high-disagreement samples and learns a quality judge for Mars terrain segmentation [17]. TopoDPO instead uses explicit structural diagnostics to mine pairs and applies the DPO nonlinearity separately to each spatial margin. It retains full-image normalization, so it is complementary to disagreement-region normalization rather than an earlier name for the same operation. Mask preferences can differ at sparse structural pixels even when most coordinates agree. Unlike token-level methods that align one-dimensional sequences, TopoDPO retains two-dimensional spatial margins and the same pairwise supervision, avoiding a shared nonlinear weight across easy and difficult pixels.
C. Topology-Aware Segmentation
Persistent-homology and skeleton-based objectives complement region-overlap losses [18], [10]. Topology-preserving segmentation converts persistence information into an end-to-end loss, while homotopy warping identifies critical pixels using digital topology [19], [20]. clDice compares soft skeletons for tubular structures, and the recent SCNP method couples neighboring logits to prioritize poorly classified local neighborhoods [10], [21]. These approaches demonstrate that similar IoU values can conceal meaningfully different structures. TopoDPO differs by using structural operators for offline pair selection rather than differentiating through a topology surrogate at every update.
Topology-sensitive evaluation is equally important. Boundary IoU isolates contour fidelity that mask IoU can underweight, and average path length similarity (APLS) evaluates route consistency after road masks are converted to graphs [22], [23]. Such measures are valuable but are not interchangeable: a boundary can be locally accurate while a network is disconnected, and two masks can have the same number of components while differing in route connectivity. Our selected diagnostics intentionally remain simple enough to audit across thousands of language-conditioned predictions. Betti-0 captures component-count failures, while macro-corner recall probes coarse polygonal geometry; ordinary overlap metrics remain necessary to detect semantic extent errors.
A recent method named Topo-R1 trains a vision-language model (VLM) with group relative policy optimization (GRPO) to detect and classify synthetic topological anomalies in existing masks [24]. In contrast, our task is language-guided mask generation, and our output and optimization target are segmentation pixels rather than anomaly boxes and labels. Conventional topology objectives directly train a segmentation network with a differentiable surrogate. Our approach instead uses discrete topology and geometry measures to mine preference pairs offline, then trains with a dense preference objective. This distinction motivates the cDice baseline in our experiments. We report both area metrics and structural measures because neither family alone describes mask quality.
III. METHOD
A. Problem Formulation
Given an aerial image and a referring expression , a multimodal segmenter predicts a binary mask . A language model produces the hidden state of a segmentation token; a projection layer converts it to a prompt embedding; and a SAM-2 mask decoder generates logits
For a target mask Y, we define the per-pixel log likelihood as the negative binary cross-entropy (BCE)-with-logits loss:
A preference example contains a chosen mask and a rejected mask for the same . We initialize both policy and reference branches from the same supervised checkpoint. The reference policy is a frozen SFT snapshot and is evaluated without gradient updates. Only the policy low-rank adaptation (LoRA) parameters are optimized; the visual encoder, segmentation-token projection, and mask decoder are frozen in both branches. This construction keeps the reference distribution fixed throughout alignment and makes the likelihood ratio consistent with the standard DPO interpretation.
B. Image-Level Preference Objective
Image-level mask DPO first averages the likelihood map,
and minimizes
where . Equation (4) mixes coordinates before the nonlinear penalty. Its central limitation is therefore not that averaging alone forces sigmoid saturation. Rather, the global mean assigns one common nonlinear weight to all coordinates and permits oppositely signed local margins to cancel before that weight is computed.
C. Topology-Aware Preference Mining
Topo-Prior constructs mask preferences from supervised-model predictions without additional human ranking. It targets semantically plausible predictions whose remaining errors are predominantly structural. Given a ground-truth mask Y and an SFT prediction , the pipeline first computes IoU and retains the candidate when
Predictions below 0.40 usually contain gross localization or category errors, for which topology refinement is not the primary problem. Predictions above 0.95 contain little disagreement and may be dominated by boundary annotation noise. We call (5) the IoU golden zone. It controls the semantic difficulty of the preference pairs; the structural tests below determine whether a retained candidate is informative.
- Connectivity Oracle: Motivated by the use of Betti numbers in topology-preserving segmentation [25], [19], we measure connectivity by the absolute connected-component discrepancy
using 8-connectivity [26]. A nonzero value detects both fragmentation, which increases the number of components, and erroneous fusion, which can decrease it. We exclude empty targets and annotations with at least ten connected components so that the component-count signal remains focused on coherent referred entities. Betti-0 therefore provides a compact and auditable connectivity diagnostic for large-scale preference mining.
- Geometric Oracle: Connectivity alone cannot detect a rectangular building that remains connected but loses its corners. We therefore extract external contours and simplify them with the Douglas Peucker algorithm [27]. The simplification tolerance is 1% of contour arc length. Let and be the resulting ground-truth and predicted corner sets. Macro-corner recall is
where pixels at the fixed mask resolution. A candidate triggers the geometric rule when . The fixed evaluation resolution and tolerance provide a consistent criterion across all pair construction and evaluation runs while accommodating contour discretization and annotation variation.
The ground truth serves as the chosen mask , and the SFT prediction serves as the rejected mask , when the candidate satisfies (5) and triggers either (6) or the corner rule. This procedure yields 8762 preference pairs: 4053 from Aerial-D and 4709 from RISORS, covering 7561 unique images. The recorded selection triggers include 7270 topology-broken pairs and 1492 corner-smoothed pairs. Fig. 2 summarizes the offline construction and subsequent optimization.
This construction separates diagnostic computation from gradient computation. Connected-component counting and polygon simplification are performed once during data preparation, so their discreteness does not enter back-propagation. The resulting pair retains ordinary mask supervision: the chosen mask is the annotation and the rejected mask is a model prediction for the same image and query pair. This separation makes Topo-Prior modular: structural diagnostics can be changed or extended during pair construction without redesigning the segmentation decoder or the dense preference objective.
The training and evaluation pools are disjoint. Training preferences are mined exclusively from the training splits.

Fig. 2. Overview of TopoDPO. Topo-Prior mines structurally informative mask preferences offline. During training, TopoDPO computes margins between the policy and reference branches on the mask grid and applies a pixel-wise preference penalty with a supervised segmentation anchor.
Topo-RS-Hard is constructed only for diagnosis from the public validation records of Aerial-D and RISORS. Its non-compactness filter is
Combining this filter with the structural oracles yields 4590 instances from 39244 validation records. Topo-RS-Hard concentrates evaluation on structurally challenging cases, while the complete 39244-record analysis in Section IV-B provides the complementary unfiltered view.
The two structural oracles are designed to capture complementary failure modes rather than provide a complete characterization of mask topology. The Betti-0 discrepancy detects changes in the number of connected components, making it sensitive to fragmentation and erroneous fusion. However, it cannot distinguish predictions with identical component counts but different spatial connectivity. Macro-corner recall provides an additional geometric criterion for identifying deviations in coarse polygonal structures, particularly when the predicted mask remains connected. The logical OR between these criteria allows a preference pair to be retained when either type of structural defect is present, without requiring the two errors to occur simultaneously.
The IoU golden zone serves a different purpose. It restricts preference construction to predictions with sufficient semantic overlap while retaining nontrivial mask discrepancies. Consequently, the structural criteria operate on predictions that have already achieved a moderate degree of target localization. The selected thresholds define a fixed mining protocol rather than
universally optimal criteria, and their suitability may vary with mask resolution, annotation granularity, and object morphology. Similarly, the exclusion of highly fragmented ground-truth masks restricts the current component-count diagnostic to targets for which this criterion provides a more interpretable structural signal.
Importantly, these criteria determine which prediction errors enter preference optimization, not how individual pixels are weighted during training. The resulting pairs contain ground-truth masks as chosen responses and SFT predictions as rejected responses, while the subsequent dense objective operates on their reference-relative likelihood margins. This separation distinguishes the structural prior used for sample selection from the spatial preference-weighting mechanism and permits the two components to be examined independently through the factorial ablation.
D. Pixel-Level Dense Preference Alignment
For each coordinate, define the preference margin between the policy and reference branches
TopoDPO moves the spatial aggregation outside the nonlinear penalty:
This ordering retains coordinate-specific margins through the preference nonlinearity. We average over all spatial positions, preserving the same full-image normalization used by image-level DPO. Pixels on which the chosen and rejected masks agree remain in the normalization but contribute zero preference gradient, enabling a controlled comparison that changes only the order of nonlinear weighting and spatial aggregation.
The distinction from image-level DPO is the location of the nonlinear operation. Image-level DPO applies one penalty to the mean margin; two masks with the same mean receive the same loss even if one has a localized severe error and the other has weak errors distributed over the image. Equation (10) evaluates the local margins first, so a negative margin at a structural coordinate is not canceled algebraically by positive margins elsewhere before the sigmoid is evaluated. Topo-Prior identifies preference pairs exhibiting structural defects, while the dense objective applies reference-relative local correction without differentiating through the offline structural diagnostics. A disagreement-masked BCE control in Section IV-B evaluates conventional supervised correction on the same disagreement support.
We add a supervised anchor to limit drift from the segmentation task:
The BCE term retains calibrated per-pixel supervision, while Dice counteracts the imbalance between foreground and background [28]. The coefficient balances alignment and retention, and sets the balance inside the supervised anchor. The main configuration uses and . The ablation in Section IV-C examines the former.
E. Gradient Analysis
We next compare how the two objectives propagate a local margin. Let
so that , and let . For a coordinate , differentiating the image-level objective gives
Every coordinate is multiplied by the same saturation factor, which depends on the global mean. If most contributions make strongly positive, approaches zero. A locally negative structural margin then receives a small derivative because the objective has already compressed the map.
For the dense objective, the corresponding derivative is
The saturation factor now depends on the local margin. When , its magnitude approaches as the error becomes more severe, even if other coordinates have positive margins. Conversely, an already preferred coordinate with a large positive margin receives little pressure. Equations (13) and (14) explain why changing the aggregation order can concentrate optimization on local disagreements.
The same distinction can be stated directly at the loss level. Let and . Then
Because f is strictly convex, Jensen's inequality gives
with equality only when the local margins are identical. The dense objective is therefore sensitive not only to the mean preference margin but also to its spatial heterogeneity: a few strongly negative local margins cannot be compensated by large positive margins elsewhere before the nonlinear penalty is applied. This provides a complementary view of the local-margin-cancellation mechanism.
The analysis characterizes the loss-level weighting induced by the two objectives. Both derivatives retain the factor, and unchanged pixels remain in that denominator. The same full-image normalization is retained in the disagreement-masked BCE control, so the comparison isolates the correction rule on identical disagreement support without introducing sample reweighting by disagreement area. The experiments in Section IV then evaluate how this local weighting mechanism translates into structural correction at the network level.
F. Relation to Disagreement-Masked BCE
The chosen mask in our preference pairs is the ground truth. This permits an exact comparison with supervised correction on the disagreement pixels. Let and . For Bernoulli mask likelihoods, the local preference margin reduces to
Thus, for , dense DPO applies a logistic loss to the reference-centered logit , whereas disagreement-masked BCE applies the same loss family directly to . For , the dense preference loss is the constant and has zero gradient. More explicitly, with and , their correction gradients are
(18)
Consequently, the dense correction weight depends on the improvement relative to the frozen SFT prediction, while the masked-BCE weight depends on the current prediction alone. At the shared initialization , dense DPO assigns magnitude to every disagreement-pixel logit gradient; masked BCE generally assigns different magnitudes according to the SFT confidence. The fixed factor in (20) matches their mean initial absolute gradient magnitude, not their pixelwise weights or subsequent training dynamics. Dense DPO therefore changes the reference-dependent weighting of ordinary GT-labeled disagreement pixels; it does not introduce additional pixel labels or an explicit differentiable topology loss.
IV. EXPERIMENTS
A. Setup
- Datasets and Splits: We use Aerial-D and RISORS for aerial referring segmentation and EarthVQA for general remote-sensing multimodal supervision [8], [9], [29]. The SFT mixture contains 116 000 training records: 40 000 Aerial-D records, a 46 000-record RISORS stream constructed with controlled repetition to balance the segmentation mixture, and 30000 EarthVQA records. Thus, 86000 records provide referring-segmentation supervision and 30000 provide visual-question-answering supervision.
Topo-Prior operates only on predictions for the Aerial-D and RISORS segmentation training records; EarthVQA records are not used for preference-pair construction. This procedure yields the 8762 preference pairs described above. Quantitative segmentation evaluation is performed on the public validation records with ground-truth masks, and no validation record is used for SFT or preference-pair construction. The combined Aerial-D and RISORS validation pool contains 39 244 records. From this pool, the fixed Topo-RS-Hard diagnostic subset contains 3721 Aerial-D and 869 RISORS instances (4590 total), corresponding to 2581 unique images; several images have multiple referring expressions. The clDice outputs were matched to the original records by the tuple of image basename and prompt, including multiplicity, before aggregation. This exact multiset match prevents an apparent gain caused by dropping failed or duplicate predictions.
We use a controlled post-SFT alignment protocol in which the image-level DPO and TopoDPO variants share the same SFT initialization, backbone, preference data, optimization schedule, and frozen reference. This design isolates the effect of objective granularity within the matched DPO comparison. Additional published-method baselines are evaluated on the same diagnostic records; the comparisons with these baselines are method-level comparisons unless their training conditions are matched. Topo-RS-Hard provides a focused evaluation of structurally difficult masks, while the complete 39 244-record Aerial-D+RISORS validation pool provides an unfiltered complementary analysis. For the full-pool stratification, records are grouped only by the pre-alignment SFT Betti-0 discrepancy, with no IoU golden-zone or output-dependent filtering from the aligned models.
- Model and Optimization: The backbone is Sa2VA-InternVL3-8B, combining InternVL3-8B with a SAM-2 mask decoder [3], [30], [12]. LoRA with rank 16 and scaling factor 32 is applied to language-model projection layers. Training uses one GPU, micro-batch size 1, and gradient accumulation 16, giving an effective batch size of 16. The implementation uses the XTuner training stack [31]. We train with AdamW [32] for one epoch using learning rate , cosine decay, and 5% warmup. For TopoDPO, , , and . The SFT checkpoint is frozen as the reference branch; only policy LoRA parameters are updated, while the visual encoder, projection, and mask decoder remain frozen. Images are encoded at , and mask logits are evaluated at .
The image-level and pixel-level DPO comparisons use the same backbone, frozen reference, optimizer, number of steps, and preference pairs. We also include RN-DPO [16], a region-normalized segmentation preference baseline, and SCNP [21], a local structural-supervision baseline. Their results are evaluated on the same fixed Topo-RS-Hard records. The clDice model is trained as a supervised topology-loss baseline and is not initialized from a preference-optimized checkpoint. The continued-SFT control reuses exactly the 8762 Topo-Prior samples and matches the number of updates and optimizer schedule, but replaces preference optimization with BCE and Dice supervision.
We further include a disagreement-masked BCE control that matches the spatial correction support of TopoDPO while replacing reference-relative preference weighting with ordinary supervised correction. This provides a stringent test of the contribution from the dense preference rule itself. For each Topo-Prior pair, we define the disagreement indicator as . Let denote the per-pixel BCE-with-logits loss. The masked correction objective is
We deliberately retain the same normalization as TopoDPO rather than normalizing by the number of disagreement pixels, . The latter would additionally reweight training examples according to disagreement area, confounding localized supervision with a change in sample weighting. Apart from the correction objective, this control uses exactly the same Topo-Prior pairs, policy initialization, LoRA configuration, optimizer, learning-rate schedule, number of updates, and supervised anchor as TopoDPO.
A direct use of (19), however, gives a substantially different correction-gradient scale from dense DPO. We therefore match the two correction terms at the common initialization without tuning on validation data. At this initialization, policy and reference margins coincide, and direct differentiation of (10) yields an absolute logit-gradient magnitude of at every disagreement pixel. For masked BCE, the corresponding magnitude before scaling is . We compute once over the 8762 training pairs
(20)
and then keep fixed for the complete run. The resulting control objective is
Thus, at initialization, the two correction terms have the same average absolute logit-gradient magnitude on the same disagreement support. The scale in (20) is computed only from training-pair logits and labels and is fixed for the complete run. This matched control compares reference-relative dense correction with conventional masked BCE under the same data, correction support, and initial average gradient scale.
- Metrics: We report per-instance IoU, F1, and precision together with Betti-0 error and macro-corner recall. IoU measures intersection divided by union, while F1 is the harmonic mean of pixel precision and recall. Betti-0 error is the absolute difference in 8-connected component counts, and macro-corner recall follows (7). Binary predictions use a 0.5 threshold, and the main table reports the arithmetic mean over the fixed records. The metric set jointly evaluates semantic coverage, component-count fidelity, and recovery of coarse annotated geometry.
TABLE I
RESULTS ON TOPO-RS-HARD (4590 RECORDS). TOPO-PRIOR SUPERVISED CONTROLS USE THE SAME 8762 SAMPLES AND MATCHED TRAINING SCHEDULES; MASKED BCE ALSO MATCHES THE INITIAL CORRECTION-GRADIENT SCALE. BEST VALUES ARE BOLD.
| Method | Alignment/loss | IoU | F1 | Precision | Δβ₀ | Corner recall |
|---|---|---|---|---|---|---|
| SFT baseline (2025) [3] | BCE+Dice | 47.88 | 56.04 | 59.97 | 2.77 | 63.59 |
| SFT + clDice (2021) [10] | Topology loss | 48.57 | 56.76 | 60.54 | 2.37 | 64.51 |
| SFT + SCNP (2026) [21] | Local structural loss | 48.90 | 57.12 | 59.95 | 2.27 | 65.06 |
| Topo-Prior continued SFT (ours) | BCE+Dice | 49.63 | 57.92 | 60.08 | 2.12 | 65.38 |
| Topo-Prior masked BCE (ours) | Disagreement pixels | 50.72 | 59.03 | 60.18 | 1.18 | 67.21 |
| Vanilla DPO (2023) [7] | Image level | 50.91 | 59.16 | 59.62 | 1.34 | 67.58 |
| RN-DPO (2026) [16] | Region-normalized DPO | 49.12 | 57.32 | 60.31 | 2.08 | 65.19 |
| TopoDPO (Ours) | Pixel level | 51.24 | 59.45 | 60.27 | 0.90 | 67.83 |
TABLE II
PAIRED IMAGE-CLUSTER BOOTSTRAP COMPARISONS WITH PREFERENCE-OPTIMIZATION BASELINES ON TOPO-RS-HARD. WE RESAMPLE 2581 UNIQUE IMAGES WITH REPLACEMENT FOR 50 000 REPLICATES, KEEPING MULTIPLE REFERRING EXPRESSIONS FROM ONE IMAGE IN THE SAME CLUSTER. DIFFERENCES ARE TOPODPO MINUS THE INDICATED BASELINE; POSITIVE VALUES FAVOR TOPODPO FOR IoU, F1, PRECISION, AND CORNER RECALL, WHILE NEGATIVE VALUES FAVOR TOPODPO FOR BETTI-0 ERROR. DIFFERENCES AND INTERVALS FOR PERCENTAGE METRICS ARE EXPRESSED IN PERCENTAGE POINTS; BETTI-0 ERROR IS AN ABSOLUTE DIFFERENCE.
| Baseline | Metric | Mean difference | 95% confidence interval |
|---|---|---|---|
| Vanilla DPO (2023) [7] | IoU | +0.33 | [+0.24, +0.43] |
| F1 | +0.30 | [+0.20, +0.40] | |
| Precision | +0.65 | [+0.52, +0.79] | |
| Δβ₀ | -0.44 | [-0.50, -0.38] | |
| Corner recall | +0.26 | [+0.04, +0.48] | |
| RN-DPO (2026) [16] | IoU | +2.12 | [+1.86, +2.37] |
| F1 | +2.13 | [+1.86, +2.41] | |
| Precision | -0.04 | [-0.29, +0.24] | |
| Δβ₀ | -1.18 | [-1.34, -1.03] | |
| Corner recall | +2.64 | [+2.22, +3.07] |
B. Results on the Structural Hard Set
Table I compares the proposed method with supervised, topology-loss, and preference-optimization baselines, including the recent RN-DPO [16] and SCNP [21], on the fixed Topo-RS-Hard diagnostic set.
Table II uses paired image-cluster resampling so that repeated prompts from the same aerial scene remain in the same bootstrap unit. Against Vanilla DPO [7], the 95% confidence intervals exclude zero for all five metrics. Against RN-DPO [16], the intervals exclude zero for IoU, F1, Betti-0 error, and corner recall, whereas the precision interval [-0.29, +0.24] includes zero. Using the two-decimal values in Table I, the precision mean difference is -0.04 percentage points.
The matched supervised controls in Table I progressively isolate the contribution of the proposed alignment rule. Continued SFT reuses the same Topo-Prior samples and optimization schedule with ordinary BCE+Dice supervision. The disagreement-masked BCE control further matches the exact correction support, 1/(HW) normalization, supervised anchor, and initial average absolute logit-gradient scale of TopoDPO. Under these matched conditions, TopoDPO improves IoU from 50.72% to 51.24% and reduces Betti-0 error from 1.18 to 0.90 relative to masked BCE. This matched mean-performance comparison, together with the factorial ablation in Table III, helps distinguish dense preference weighting from localized error-pixel supervision.
Table I shows higher IoU and lower Betti-0 error than the evaluated structural-loss baselines and RN-DPO [16], although clDice [10] has the highest precision. Relative to image-level DPO [7], TopoDPO improves IoU from 50.91% to 51.24% and Betti-0 error from 1.34 to 0.90, with a smaller corner-recall gain (67.58% to 67.83%). Comparisons with other published baselines are method-level rather than fully matched.
Fig. 3 stratifies Topo-RS-Hard by geometric complexity and coarse target category. The complexity statistic increases for elongated objects, highly indented boundaries, and shapes with large perimeter relative to area. Betti-0 error rises with this statistic for every model, especially in the highest-complexity bins, while TopoDPO remains below the SFT and image-level DPO curves across all displayed bins. The consistent separation across complexity levels shows that the aggregate connectivity gain is distributed across a broad range of difficult object geometries.
Across roads and networks, buildings and facilities, and nature and water, TopoDPO has the lowest Betti-0 error in each displayed group, suggesting that the connectivity gain is not confined to a single target family. Corner recall complements this connectivity analysis for artificial facilities.
- Unfiltered Full-Validation-Pool Stratification: We expand the analysis to all 39 244 Aerial-D+RISORS validation records without the Topo-RS-Hard or IoU golden-zone filters, grouping records only by the frozen SFT model's pre-alignment Betti-0 discrepancy. Because grouping is fixed before preference alignment and uses neither Vanilla DPO nor TopoDPO outputs, it provides an unfiltered view of how the relative structural effect varies with baseline error.

(a)

(b)
(c)
Fig. 3. Stratified Topo-RS-Hard analysis: (a) Betti-0 error by geometric complexity; (b) Betti-0 error by target category; (c) corner recall by target category. Shaded regions and error bars indicate 95% confidence intervals.

Fig. 4. Unfiltered full-validation-pool stratification by pre-alignment structural-error severity. All 39 244 Aerial-D and RISORS validation records are grouped by the frozen SFT model's Betti-0 discrepancy, with no IoU-based inclusion filter. The vertical axis reports the reduction in Betti-0 error of TopoDPO relative to Vanilla DPO; positive values favor TopoDPO. Error bars are 95% image-cluster bootstrap confidence intervals.
Fig. 4 shows that the Betti-0 advantage of TopoDPO becomes larger as the pre-alignment structural error increases. When the SFT Betti-0 discrepancy is 0, TopoDPO reduces Betti-0 error by 0.058 on average relative to Vanilla DPO (95% image-cluster bootstrap confidence interval [0.035, 0.080]). The reduction is 0.152 for discrepancy 1 ([-0.095, 0.326]), 0.176 for discrepancy 2–4 ([0.103, 0.250]), and 0.400 for discrepancy ≥ 5 ([0.187, 0.605]). Thus, the same severity-dependent structural correction observed on Topo-RS-Hard remains visible over the unfiltered full validation population, with the clearest separation occurring on moderate and severe component-count failures.
C. Ablation and Parameter Sensitivity
Table III crosses pair selection with objective granularity on Topo-RS-Hard. Pixel-level DPO improves Betti-0 error under both pair-selection rules, while Topo-Prior improves both image-level and pixel-level objectives. The supervised-anchor study further shows that balancing preference alignment with segmentation supervision is important for retaining area accuracy while improving structure.
-
Factorial Effects: With Topo-Prior fixed, moving from image-level to pixel-level penalization decreases Betti-0 error from 1.34 to 0.90 and increases IoU from 50.91% to 51.24%. Under random selection, pixel-level penalization gives a smaller change, reducing Betti-0 error from 2.06 to 1.85 and increasing IoU from 49.18% to 49.52%. Conversely, Topo-Prior improves either objective relative to random pairs. These crossed effects support complementary roles: topology-aware selection determines which failures receive supervision, while dense DPO determines how local margins within each pair are weighted.
-
Supervised-Anchor Weight: Block B tests . Removing the anchor lowers IoU and increases Betti-0 error, showing the importance of retaining supervised segmentation guidance during preference alignment. Increasing the weight to 1.0 constrains adaptation and yields slightly weaker component fidelity. Among the tested settings, provides the best balance, reaching 51.24% IoU and 0.90 Betti-0 error.
D. Qualitative Results
Fig. 5 shows representative non-compact targets. The baselines broadly localize the referred objects but leave fragmentation, extent errors, holes, or rounded artificial corners, while TopoDPO produces more coherent masks. In the ground-track-field example, SFT and Vanilla DPO preserve the correct instance but contain interior omissions; for the basketball court, image-level DPO extends into neighboring structure; and for the narrow water channel, small missing sections alter continuity. These examples qualitatively match the measured improvements in connectivity and coarse geometry.
E. General Multimodal Capability Retention
To examine retention of general remote-sensing multimodal capability after segmentation-specific preference alignment, we evaluate the models on a fixed random sample of 1000 held-out EarthVQA validation questions [29]. EarthVQA supervision is included during the preceding SFT stage but is not used during preference alignment. SFT obtains 71.90% accuracy and TopoDPO obtains 72.30%. The comparable held-out performance indicates that the topology-sensitive alignment stage preserves the general multimodal capability learned during SFT.
TABLE III
FACTORIAL ABLATIONS AND ANCHOR SENSITIVITY ON TOPO-RS-HARD
| ID | Pair selection | Objective/configuration | IoU | F1 | Corner recall | |
|---|---|---|---|---|---|---|
| A1 | Random | Image-level DPO | 49.18 | 58.31 | 2.06 | 64.72 |
| A2 | Random | Pixel-level DPO | 49.52 | 58.78 | 1.85 | 65.12 |
| A3 | Topo-Prior | Image-level DPO | 50.91 | 59.16 | 1.34 | 67.58 |
| A4 | Topo-Prior | Pixel-level DPO | 51.24 | 59.45 | 0.90 | 67.83 |
| B1 | Topo-Prior | 48.93 | 58.85 | 1.55 | 65.87 | |
| B2 | Topo-Prior | 51.24 | 59.45 | 0.90 | 67.83 | |
| B3 | Topo-Prior | 50.85 | 58.90 | 1.02 | 67.75 |
Input Image
SFT
Vanilla DPO
TopoDPO (Ours)

Prompt text: "Please segment the ground track field is on the left of the gray tiny basketball court."

Prompt text: "Please segment a basketball court on the top."

Prompt text: "Please segment the dark water channel just north of the small house on the left."
Fig. 5. Qualitative comparison on structurally complex examples. Red baseline masks contain fragmentation, holes, or boundary smoothing; green TopoDPO masks are more coherent in the displayed cases.
F. Interpretation and Scope
The two preference objectives have identical local-margin gradients at their shared initialization. In particular, when the policy equals the frozen reference, every local margin and its spatial mean are zero, so both (13) and (14) assign a weight of to each margin. Their difference arises only after optimization creates spatially heterogeneous policy-reference margins. Accordingly, the gradient analysis characterizes how subsequent updates are weighted; it does not by itself establish that structural pixels received larger weights throughout training. The matched image-level comparison and the factorial ablation instead evaluate the net effect of this change in weighting under the same preference pairs and training protocol.
The evaluation measures different, noninterchangeable properties of the predicted masks. Betti-0 error compares component counts, so equal values do not imply the same component identities or connections. Macro-corner recall tests recovery of simplified annotated corners but does not penalize additional predicted corners directly. Consequently, the reported structural results should be interpreted as improved component-count fidelity and coarse geometric recall, not as a guarantee of topological equivalence or route connectivity. Moreover, TopoRS-Hard intentionally selects non-compact validation targets with structural errors diagnosed before alignment. It provides a stress test of the intended failure mode rather than an estimate of the prevalence of these errors in arbitrary overhead images. The full-pool stratification offers a complementary check for component-count improvements, while broader claims about segmentation quality outside the evaluated datasets would require additional evidence.
V. CONCLUSION
We presented TopoDPO, a topology-aware dense preference-alignment framework for aerial referring segmentation. TopoPrior mines structurally informative mask preferences offline, while TopoDPO preserves local preference margins through nonlinear weighting before spatial aggregation. On Topo-RS-Hard, TopoDPO reduces Betti-0 error by 32.8% relative to image-level DPO while improving IoU from 50.91% to 51.24%; paired image-cluster intervals against image-level DPO exclude zero for all five reported differences. Matched disagreement-masked BCE controls and factorial ablations further separate localized supervision, topology-aware pair selection, and dense preference weighting. Across all 39244 validation records, the clearest structural gains occur on samples with larger pre-alignment component-count errors.
REFERENCES
[1] X. Lai, Z. Tian, Y. Chen et al., “LISA: Reasoning segmentation via large language model,” in Proc. IEEE/CVF Conf. Comput. Vis. Pattern Recognit. (CVPR), Seattle, 2024, pp. 9579–9589.
[2] Z. Ren, Z. Huang, Y. Wei, Y. Zhao, D. Fu, J. Feng, and X. Jin, “PixelLM: Pixel reasoning with large multimodal model,” in Proc. IEEE/CVF Conf. Comput. Vis. Pattern Recognit. (CVPR), Seattle, 2024, pp. 26 374–26 383.
[3] H. Yuan, X. Li, T. Zhang, Z. Huang, S. Xu, S. Ji, Y. Tong, L. Qi, J. Feng, and M.-H. Yang, “Sa2VA: Marrying SAM2 with LLaVA for Dense Grounded Understanding of Images and Videos,” 2025, arXiv:2501.04001. [Online]. Available: https://arxiv.org/abs/2501.04001
[4] X. Guo, J. Lao, B. Dang, Y. Zhang, L. Yu, L. Ru et al., “SkySense: A Multi-modal Remote Sensing Foundation Model Towards Universal Interpretation for Earth Observation Imagery,” in Proc. IEEE/CVF Conf. Comput. Vis. Pattern Recognit. (CVPR), Seattle, 2024, pp. 27672–27683.
[5] K. Kuckreja, M. S. Danish, M. Naseer et al., “GeoChat: Grounded large vision-language model for remote sensing,” in Proc. IEEE/CVF Conf. Comput. Vis. Pattern Recognit. (CVPR), Seattle, 2024, pp. 27831–27840.
[6] W. Zhang, M. Cai, T. Zhang et al., “EarthGPT: A universal multi-modal large language model for multi-sensor image comprehension in remote sensing domain,” 2024, arXiv:2401.16822. [Online]. Available: https://arxiv.org/abs/2401.16822
[7] R. Rafailov, A. Sharma, E. Mitchellell, C. D. Manning, S. Ermon, and C. Finn, “Direct preference optimization: Your language model is secretly a reward model,” in Advances in Neural Information Processing Systems, vol. 36, 2023, pp. 53728–53741.
[8] L. Marnoto, A. Bernardino, and B. Martins, “Generalized referring expression segmentation on aerial photos,” 2025, arXiv:2512.07338. [Online]. Available: https://arxiv.org/abs/2512.07338
[9] Z. Zhao, X. Xu, B. Huang, H. Chen, and F. Pu, “RSAM: Vision-Language Two-Way Guidance for Referring Remote Sensing Image Segmentation,” Remote Sensing, vol. 17, no. 24, p. 3960, 2025.
[10] S. Shit, J. C. Paetzold, A. K. Sekuboyina et al., “ciDice: A Novel Topology-Preserving Loss Function for Tubular Structure Segmentation,” in Proc. IEEE/CVF Conf. Comput. Vis. Pattern Recognit. (CVPR), Nashville, 2021, pp. 16560–16569.
[11] A. Kirillov, E. Mintun, N. Ravi et al., “Segment anything,” in Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), Paris, 2023, pp. 4015–4026.
[12] N. Ravi, V. Gabeur, Y.-T. Hu et al., “SAM 2: Segment Anything in Images and Videos,” in International Conference on Learning Representations (ICLR), 2025. [Online]. Available: https://proceedings.iclr.cc/paper_files/paper/2025/hash/45c1f6a8cbf2da59ebf2c802b4f742cd-Abstract-Conference.html
[13] F. Wang, W. Zhou, J. Y. Huang, N. Xu, S. Zhang, H. Poon, and M. Chen, “mDPO: Conditional Preference Optimization for Multimodal Large Language Models,” in Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing (EMNLP), Miami, FL, USA, 2024, pp. 8078–8088.
[14] Z. Yan, Z. Li, Y. He, C. Wang, K. Li, X. Li et al., “Task preference optimization: Improving multimodal large language models with vision task alignment,” in Proc. IEEE/CVF Conf. Comput. Vis. Pattern Recognit. (CVPR), 2025, pp. 29 880–29 892.
[15] L. Zhu, T. Chen, Q. Xu, X. Liu, D. Ji, H. Wu, D. W. Soh, and J. Liu, “POPEN: Preference-Based Optimization and Ensemble for LVLM-Based Reasoning Segmentation,” in Proc. IEEE/CVF Conf. Comput. Vis. Pattern Recognit. (CVPR), 2025, pp. 30231–30240.
[16] H. Kalisch, C. Seibold, J. Kleesiek, K. Herrmann, and F. Jonske, “Region-normalized DPO for medical image segmentation under noisy judges,” 2026, arXiv:2601.23222. [Online]. Available: https://arxiv.org/abs/2601.23222
[17] J. Li, M. Li, J. Wang, Y. Liu, and Y. Wang, “Learning to select, learning to judge: Active preference alignment for Mars terrain segmentation,” in Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) Findings, 2026, pp. 8887–8896.
[18] J. R. Clough, N. Byrne, I. Oksuz, V. A. Zimmer, J. A. Schnabel, and A. P. King, “A topological loss function for deep-learning based image segmentation using persistent homology,” IEEE Transactions on Pattern Analysis and Machine Intelligence, vol. 44, no. 12, pp. 8766–8778, 2022.
[19] X. Hu, F. Li, D. Samaras, and C. Chen, “Topology-preserving deep image segmentation,” in Advances in Neural Information Processing Systems, vol. 32, 2019, pp. 5657–5668.
[20] X. Hu, “Structure-aware image segmentation with homotopy warping,” in Advances in Neural Information Processing Systems, vol. 35, 2022, pp. 24046–24059.
[21] J. M. Valverde, D. P. Papadopoulos, R. Larsen, and A. B. Dahl, “Towards high-quality image segmentation: Improving topology accuracy by penalizing neighbor pixels,” in Proc. IEEE/CVF Conf. Comput. Vis. Pattern Recognit. (CVPR), 2026, pp. 13123–13133.
[22] B. Cheng, R. Girshick, P. Dollár, A. C. Berg, and A. Kirillov, “Boundary IoU: Improving object-centric image segmentation evaluation,” in Proc. IEEE/CVF Conf. Comput. Vis. Pattern Recognit. (CVPR), 2021, pp. 15334–15342.
[23] A. Van Etten, D. Lindenbaum, and T. M. Bacastow, “SpaceNet: A remote sensing dataset and challenge series,” 2018, arXiv:1807.01232. [Online]. Available: https://arxiv.org/abs/1807.01232
[24] M. Xu, Q. Hu, X. Hu, S. Abousamra, X. Yu, W. Lyu, K. Qi, D. Samaras, and C. Chen, “Topo-R1: Detecting topological anomalies via vision-language models,” 2026, arXiv:2603.13054. [Online]. Available: https://arxiv.org/abs/2603.13054
[25] H. Edelsbrunner, D. Letscher, and A. Zomorodian, “Topological persistence and simplification,” Discrete & Computational Geometry, vol. 28, no. 4, pp. 511–533, 2002.
[26] A. Rosenfeld and J. L. Pfaltz, “Sequential operations in digital picture processing,” Journal of the ACM, vol. 13, no. 4, pp. 471–494, 1966.
[27] D. H. Douglas and T. K. Peucker, “Algorithms for the reduction of the number of points required to represent a digitized line or its caricature,” The Canadian Cartographer, vol. 10, no. 2, pp. 112–122, 1973.
[28] F. Milletari, N. Navab, and S.-A. Ahmadi, “V-Net: Fully Convolutional Neural Networks for Volumetric Medical Image Segmentation,” in Proc. Int. Conf. 3D Vis. (3DV), Stanford, 2016, pp. 565–571.
[29] J. Wang, Z. Zheng, Z. Chen, A. Ma, and Y. Zhong, “EarthVQA: Towards Queryable Earth via Relational Reasoning-Based Remote Sensing Visual Question Answering,” in Proceedings of the AAAI Conference on Artificial Intelligence, vol. 38, no. 6, 2024, pp. 5481–5489.
[30] J. Zhu, W. Wang, Z. Chen, Z. Liu, S. Ye, L. Gu et al., “InternVL3: Exploring advanced training and test-time recipes for open-source multimodal models,” 2025, arXiv:2504.10479. [Online]. Available: https://arxiv.org/abs/2504.10479
[31] XTuner Contributors, “XTuner: A toolkit for efficiently fine-tuning LLM,” https://github.com/InternLM/xtuner, 2023.
[32] I. Loschilov and F. Hutter, “Decoupled weight decay regularization,” in International Conference on Learning Representations (ICLR), 2019.