atlas

Research map / Detection and segmentation / Open-set and few-shot detection

BLO-SAM: Bi-level Optimization Based Finetuning of the Segment Anything Model for Overfitting-Preventing Semantic Segmentation

ICML 2024 · Detection and segmentation › Open-set and few-shot detection · approach: Interactive and referring segmentation

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes BLO-SAM, which finetunes SAM's mask decoder (LoRA plus transposed convolutions and MLP head) with a learnable prompt embedding under bi-level optimization on two disjoint halves of a tiny training set, enabling prompt-free semantic segmentation with less overfitting.

Problem

SAM needs manual prompts for segmentation and finetuning it on very small labeled datasets (especially medical) overfits, as it updates weights and prompt-like embeddings on the same data.

Approach

Treat the learnable prompt embedding as a hyper-parameter: optimize SAM's weights on one data split (lower level) and the prompt embedding on a disjoint validation split (upper level), using one-step unrolled gradient approximations, so no manual prompts are needed at inference.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use bi-level optimization to train model weights on D1 and prompt embeddings on disjoint D2 instead of jointly optimizing both on the combined data (ablation)BLO-SAM · Human body and teeth, 4 examplesDice scoreHelped
Use second-order rather than first-order gradients for prompt embedding optimization (ablation)BLO-SAM · Human body and teeth, 4 examplesDice scoreHelped
Finetune all three SAM components rather than only the mask decoder (ablation)BLO-SAM · Human body and teeth, 4 examplesDice scoreHelped
Finetune the image encoder with LoRA (ablation)BLO-SAM · Human body and teeth, 4 examplesDice scoreMixed
Finetune the prompt encoder convolution layers (ablation)BLO-SAM · Human body and teeth, 4 examplesDice scoreMixed
Set LoRA rank to 4 rather than other tested ranks (ablation)BLO-SAM · Human body and teeth, 4 examplesDice scoreHelped
Fully finetune all SAM parameters instead of using BLO-SAM (ablation)BLO-SAM · Human body, 4 examplesDice score: 75.5% vs 47.5%Hurt
Increase training examples from 4 to 512 (ablation)BLO-SAM · Human bodyDice scoreHelped
Increase the trade-off parameter λ toward a middle-ground setting rather than an extreme (ablation)BLO-SAM · Human body and teeth, 4 examplesDice scoreHelped
Use a very large LoRA rank (ablation)BLO-SAM · Human body and teeth, 4 examplesDice scoreHurt

Surprising findings

Limitations

Experimental setup

Datasets: CelebAMask-HQ Car segmentation (Kaggle) TikTok dances human body segmentation Children's dental panoramic radiographs Kvasir-SEG JSRT lung

Benchmarks: CelebAMask-HQ Car segmentation TikTok dances body Children's dental panoramic radiographs (teeth) Kvasir-SEG JSRT lung

Metrics: Dice score

Baselines: DeepLabV3 SwinUnet HSNet SSP SAM Med-SA SAMed FT-SAM

Builds on: Segment Anything Model LoRA SAMed Med-SA DARTS-style unrolled bi-level optimization

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy