TL;DR
PointSAM adapts Meta’s Segment Anything Model (SAM) to remote sensing images using only cheap, low-cost point annotations instead of expensive full masks. By introducing prototype-based regularization and an ingenious negative prompt calibration strategy, it successfully overcomes the classic self-training pitfalls of error accumulation and object crowding in aerial imagery.
What Problem Does This Paper Address?
Meta’s Segment Anything Model (SAM) has revolutionized image segmentation, but it hits a wall when applied to remote sensing images (RSIs). Aerial and satellite views introduce a massive domain shift: objects are densely packed, scales vary wildly, and many geographical features are completely absent from SAM's natural-image training data.
To bridge this gap, standard fine-tuning methods require full mask annotations, which are incredibly tedious and expensive to produce for complex aerial scenes. Weakly supervised approaches using single-point annotations (just clicking the center of an object) are much cheaper but introduce two major headaches:
- Confirmation Bias: Using point prompts in a self-training (pseudo-labeling) loop often causes the model to repeatedly learn from its own mistakes, leading to error accumulation.
- Semantic Ambiguity: In crowded aerial scenes (like parking lots or residential areas), a single positive point prompt can cause SAM to mistakenly group multiple adjacent objects into one giant mask because it lacks clear boundary information.
Methods
PointSAM tackles these challenges using a self-training framework enhanced by two novel components: Prototype-based Regularization (PBR) and Negative Prompt Calibration (NPC).
- Low-Rank Adaptation (LoRA): To keep computation light, the authors freeze SAM’s original layers and inject trainable low-rank matrices into the image encoder.
- Prototype-based Regularization (PBR): To stop the model from learning incorrect patterns during self-training, PointSAM extracts instance-level features from a frozen source SAM model. It clusters these features using a parameter-free algorithm (FINCH) to establish stable "target prototypes." During training, a First-In-First-Out (FIFO) memory bank tracks the moving student network's predictions. The Hungarian algorithm is then used to optimally match and align the predicted prototypes with the target prototypes, ensuring the model stays on the right track.
- Negative Prompt Calibration (NPC): To solve the object crowding problem, NPC exploits a simple prior: distinct object masks should not overlap. The model computes an Intersection over Union (IoU) matrix for all initial predicted masks. If two masks overlap beyond a threshold, PointSAM automatically treats the positive prompt of the neighboring object as a negative prompt for the target object. This dynamically forces SAM's mask decoder to shrink boundaries and cleanly separate adjacent objects.
Datasets
The authors evaluated PointSAM on three widely used remote sensing benchmarks:
- NWPU VHR-10: A 10-class very-high-resolution optical geospatial object detection dataset.
- WHU Building Dataset: A massive dataset containing over 220,000 independent buildings extracted from aerial imagery.
- HRSID (HRSID-inshore): A high-resolution Synthetic Aperture Radar (SAR) ship detection and instance segmentation dataset, which is particularly challenging due to speckle noise and complex backgrounds.
Key Insights and Ideas
- More Points $\neq$ Better Performance for Vanilla SAM: Counterintuitively, simply adding more manual point prompts often degrades performance in zero-shot models because it increases the likelihood of boundary noise. PointSAM successfully reverses this trend, maintaining stable and improving performance as prompt counts increase.
- Borrowing Negative Signals from Neighbors: Instead of requiring humans to meticulously click background areas to separate dense objects, PointSAM cleverly "borrows" the positive clicks of adjacent objects and repurposes them as negative constraints.
- Instance-Level over Pixel-Level Alignment: Traditional domain adaptation relies on pixel-level or logit-level constraints, which fail if the base model's initial predictions are poor. By mapping prompts directly to encoder features and using Hungarian matching, PointSAM achieves robust instance-level feature alignment without needing source domain data.
Key Results
PointSAM significantly outperformed direct testing with SAM, SAM2, and state-of-the-art source-free domain adaptation methods (like TENT, SHOT, and WeSAM) across all datasets.
- WHU Dataset: In a 1-point prompt setting, PointSAM achieved a 72.63% mIoU, vastly outperforming vanilla SAM (61.03%) and coming remarkably close to the fully supervised upper bound (77.15%).
- HRSID (SAR Images): On the highly noisy SAR dataset, PointSAM boosted the 3-point setting mIoU to 59.37%, compared to just 28.32% for direct SAM testing.
- Point-to-Box Downstream Task: The authors also tested PointSAM as a bounding box generator for oriented object detection. Combined with an H2RBox-v2 detector on the HRSID dataset, PointSAM achieved 59.5% $\text{AP}_{50}$, outperforming the vanilla SAM baseline by 15%.
Limitations and Future Work
While powerful, the authors note two primary limitations:
- Training Speed: The dual-branch teacher-student self-training architecture inherently slows down training speeds.
- Sparse Objects: The Negative Prompt Calibration (NPC) mechanism relies on overlapping mask proposals; consequently, it provides little to no benefit for isolated, sparsely distributed objects.
Future work will focus on integrating cross-image information to better distinguish foregrounds from backgrounds in sparse environments and incorporating multiple types of priors to bridge the remaining gap to fully supervised methods.
Summary updated