Skip to content

ReliableSAM-RS: Learning When and How to Repair Remote Sensing Masks

Youlin Li, Hongjie He, Yu Li, Tianlong Liang, Jingyu Zhao, Jonathan Li

cs.CV

Abstract

Bounding-box prompts enable Segment Anything Models to generate instance masks in remote sensing images, yet these masks often contain incomplete interiors, merged regions, and excess foreground along boundaries. Reliable correction requires both locating spatial errors and deciding whether a proposed edit improves the current mask. We present ReliableSAM-RS, a framework for diagnosis, refinement, and selection built on frozen SAM2.1 with 1.46M trainable parameters. A hierarchical reliability estimator assesses instance-level quality and predicts spatial errors. Guided by this evidence, a directional refiner generates gated additions and removals in mask logits. An action-value selector then compares six candidate masks through predicted gain quantiles and degradation probabilities. Across iSAID, NWPU VHR-10, and two WHU-Mix test sets, ReliableSAM-RS improves mean instance IoU by 3.6% to 9.7% relative to SAM2 using identical ground-truth box prompts. With boxes from the DINO and YOLO26m object detectors, refinement increases the cascaded system's mask AP for both detectors on all four evaluation sets. Fixed-candidate experiments show that the learned refiner achieves a larger mean gain than oracle selection among five SAM-only masks. In GT-box ROI evaluations, risk-aware selection reduces degradation rates by more than 50% compared with unconditional refinement while retaining at least 92.3% of its mean gain. These results establish diagnosis, directional correction, and candidate-relative selection as complementary components for improving remote sensing instance masks.

Create a lesson