Abstract
With recent breakthroughs in large-scale modeling, the Segment Anything Model (SAM) has demonstrated significant potential in a variety of visual applications. However, due to the lack of underwater domain expertise, SAM and its variants face performance limitations in end-to-end underwater instance segmentation tasks, while their higher computational requirements further hinder their application in underwater scenarios. To address this challenge, we propose a large-scale underwater instance segmentation dataset, UIIS10K, which includes 10,048 images with pixel-level annotations for 10 categories. Then, we introduce UWSAM, an efficient model designed for automatic and accurate segmentation of underwater instances. UWSAM efficiently distills knowledge from the SAM ViT-Huge image encoder into the smaller ViT-Small image encoder via the Mask GAT-based Underwater Knowledge Distillation (MG-UKD) method for effective visual representation learning. Furthermore, we design an End-to-end Underwater Prompt Generator (EUPG) for UWSAM, which automatically generates underwater prompts instead of explicitly providing foreground points or boxes as prompts, thus enabling the network to locate underwater instances accurately for efficient segmentation. Comprehensive experimental results show that our model is effective, achieving significant performance improvements over state-of-the-art methods on multiple underwater instance datasets. Datasets and codes are available at https://github.com/LiamLian0727/UIIS10K.
Introduction
Underwater instance segmentation—the task of identifying and outlining every individual object in a marine image—is notoriously difficult. Standard computer vision models often struggle with the "underwater tax": light scattering, color attenuation (which turns environments blue or green), and low visibility. While the Segment Anything Model (SAM) has revolutionized general segmentation, it faces three major hurdles in marine research: domain blindness regarding underwater optics, high computational weight that prevents deployment on Autonomous Underwater Vehicles (AUVs), and a dependency on manual prompts like bounding boxes or clicks.
The UIIS10K Benchmark
To address the scarcity of high-quality underwater data, this work introduces UIIS10K, a large-scale benchmark dataset. It comprises 10,048 images with over 41,000 pixel-level annotations across 10 diverse categories, including fish, corals, ruins, robots, and humans. This dataset provides the necessary scale and diversity to train robust models capable of handling complex marine environments.
The UWSAM Framework
The proposed UWSAM framework adapts SAM for automated, efficient underwater use through two key innovations:
- Mask GAT-based Underwater Knowledge Distillation (MG-UKD): This method distills the expertise of a massive "Teacher" model (SAM ViT-Huge) into a lightweight "Student" model (ViT-Small). By employing a Graph Attention Network (GAT), the model learns to exploit the natural spatial clustering of marine life (e.g., schools of fish), improving accuracy even when visual features are partially obscured.
- End-to-end Underwater Prompt Generator (EUPG): To enable fully autonomous operation, the EUPG module integrates a channel attention mechanism to mitigate light attenuation and a Region Proposal Network (RPN) to generate internal prompt embeddings. This eliminates the need for external human prompts.
Experimental Results
Evaluations on the UIIS10K dataset demonstrate the superiority of the UWSAM approach. The UWSAM-Teacher achieved a state-of-the-art mAPs of 44.6, significantly outperforming general-purpose models like Mask R-CNN and previous underwater-specific methods.
Crucially, the UWSAM-Student maintains a high performance of 38.7 mAPs while utilizing only 47.39M parameters. As shown in the performance-efficiency plot, the student model offers a compelling balance, making it viable for real-time deployment on resource-constrained AUV platforms where the full SAM model would be too heavy to run.
Conclusion
UWSAM successfully bridges the gap between large-scale foundation models and specialized underwater perception. By providing both a massive new dataset and an efficient, prompt-free architecture, this work paves the way for more capable autonomous marine robotics. Future research will focus on extending this framework to video streams for real-time navigation and enhancing robustness in extreme turbidity.
Summary updated