BiPA: Bilevel Prompt Adaptation for Underwater Instance Segmentation

Long Ma, Hao-Ze Zheng, Yu-Hang Mao, Jin-Yuan Liu, Cheng-Pei Xu +4 more
1/1/2026

No official code found. Best implementation: ZeAstra/BiPA (5 stars, Apache-2.0, last commit 2026-06-28).

Abstract

Underwater instance segmentation is essential for fine-grained scene understanding. However, underwater imagery exhibits a strong domain gap from in-air vision due to severe degradation (e.g., turbidity).

Show full abstract

Consequently, despite its general segmentation ability, SAM degrades sharply underwater. In this work, we propose BiPA, which effectively adapts SAM to the underwater domain. To be concrete, we construct an underwater SAM with dual prompts and introduce a foreground-attentive injection block to enhance local foreground representation. We formulate dense prompt learning as a bilevel optimization, explicitly capturing the mutual dependency between prompt and model. To make this tractable, we design a two-stage learning strategy. The first stage adapts the dense prompt itself, updating it with Bayesian optimization to learn efficiently. The second stage fine-tunes the model parameters under the frozen optimized prompt, which finally enables effective cross-domain adaptation. Extensive experiments and analyses verify the superiority and efficiency of BiPA. The code is publicly available at https://github.com/ZeAstra/BiPA.

Semantic Scholar

Code Implementations(1)

ZeAstra/BiPACommunity68%
Apache-2.0

BiPA:Bilevel Prompt Adaptation for Underwater Instance Segmentation

51Mar 7, 20265 months agoApache-2.0

Similar Papers

Cite this paper

@article{ma2026bipa,
  title  = {BiPA: Bilevel Prompt Adaptation for Underwater Instance Segmentation},
  author = {Long Ma and Hao-Ze Zheng and Yu-Hang Mao and Jin-Yuan Liu and Cheng-Pei Xu and Xin-Wei Xue and Yi Wang and Xiang-Jian He and Wei-Min Wang},
  year   = {2026},
  url    = {https://api.semanticscholar.org/CorpusID:e0fe6c96f861d7898e43d64a67202ac73dba17bb},
  journal = {Computer Vision and Pattern Recognition}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/e0fe6c96f861d7898e43d64a67202ac73dba17bb.svg)](https://codeofpaper.com/paper/e0fe6c96f861d7898e43d64a67202ac73dba17bb)

Discussion