Show HN:MultiMatte,一个可提示的图像背景移除模型
Show HN: MultiMatte, a Promptable Image Background Removal Model

原始链接: https://usefeyn.com/blog/multimatte/

Feyn 推出了 **MultiMatte**,这是一个强大的背景移除模型,允许用户通过文本提示提取特定对象。MultiMatte 基于 Meta 的 SAM 3 构建,通过从二值掩码转向连续的 Alpha 遮罩,显著提升了分割精度。这种方法使模型能够精准捕捉头发等精细、半透明或模糊的细节,而这些细节通常是二值化模型难以处理的。 为了构建 MultiMatte,研究人员对 1949 万个参数应用了低秩自适应微调(LoRA),这仅占原始模型权重的 2.27%。这种高效的更新在保留 SAM 3 核心文本对齐能力的同时,大幅提升了分割性能。在 DIS-VD 基准测试中,MultiMatte 的 S-measure 指标达到 0.901,远超 SAM 3 的 0.667。 在包括复杂伪装和高分辨率场景在内的多项基准测试中,MultiMatte 的表现均持续优于 SAM 3。该模型旨在简化使用流程,适配器已预先合并到发布权重中,用户可通过 `nobg` 库直接集成。用户可前往 [usefeyn.com/multimatte](https://usefeyn.com/multimatte) 使用自己的图像进行测试。

Feyn 发布了 **MultiMatte**,这是一个开源的、支持提示词的图像背景移除模型。与传统将所有前景元素分离的模型不同,MultiMatte 允许用户指定保留的具体对象(例如,在同一画面中保留狗的同时移除碗)。 该模型基于 Meta 的 SAM 3 构建,通过使用 Alpha 遮罩(alpha mattes)改进了标准的二值掩码。这种方法为像素分配不透明度值,从而能够更出色地处理毛发、发丝和运动模糊等复杂边缘。基准测试显示,其性能较 SAM 3 有显著提升,在 DIS5K 数据集上的 S-measure 相对提高了 34.6%。 MultiMatte 是 Feyn 背景移除技术的第二个迭代版本。用户可以在线测试该工具,通过 GitHub 上的“NoBg”库获取代码,或在 Hugging Face 上查看模型卡片。
相关文章

原文

We’re introducing MultiMatte, a background removal model you can aim with words. MultiMatte keeps the object you name and removes everything else.

Try MultiMatte on your own images at usefeyn.com/multimatte.

MultiMatte is built on SAM 3 (Meta, 2025). We used low-rank fine-tuning to modify 19.49M of its 860M parameters. That update touches only 2.27% of the model weights, yet MultiMatte improves substantially on image segmentation. On the DIS-VD benchmark, it scores a 0.901 S-measure against SAM 3’s 0.667.

Prompt steering drag to compare

From Segmentation to Matting

SAM 3 is a concept-promptable detector. Given a phrase, the model returns binary masks for every matching object. These masks classify each pixel as either inside or outside the object. This binary approach fails on fine or translucent elements with fuzzy boundaries, like hair or a blurred screen.

MultiMatte addresses this gap with alpha mattes. Instead of assigning a boolean to each pixel, an alpha matte assigns a continuous opacity value to every pixel. Fuzzy boundaries can then be described as they actually appear.

Alpha mattes earn their keep on benchmarks. Across five high-resolution DIS splits, SAM 3 scores between 0.649 and 0.703. MultiMatte scores between 0.893 and 0.923.

Training MultiMatte

SAM 3 is not one network but several aligned parts: a vision tower, a CLIP text tower, a geometry encoder, a detection encoder and decoder, and a mask decoder. The ability to aim the model with a phrase lives in the alignment between those parts. Our objective was to carry this ability over to matting.

We trained the model with PEFT, using LoRA (Hu et al., 2021). Every targeted linear layer kept its pretrained weight frozen and learned two small matrices that added a low-rank update alongside it. Training this way let us retain SAM 3’s text alignment and original vocabulary while improving its segmentation ability.

The rank-16 adapter followed the configuration principles in Thinking Machines’ LoRA analysis (2025). It targeted the attention and MLP projections in every tower, including the CLIP text tower. We merged the final adapter into the released weights, so inference doesn’t require a separate adapter library.

The training run used 19,953 images spanning salient objects, camouflage, high-resolution subjects, hair, and marine scenes. We trained for 14,000 steps with the semantic segmentation objective SAM 3 already uses: focal loss (Lin et al., 2017) plus Dice loss.

For prompt supervision, we used 4,949 images with human-written labels, so 24.8% of the training set named the specific object in each image. This was enough to teach the new matte head to use the text alignment SAM 3 already has.

Results

We report S-measure, which rewards complete subjects and faithful shapes on a scale from 0 to 1, and mean absolute error over opacity values, where lower is better.

Prompt-free S-measure for SAM 3 and MultiMatte on twelve benchmark splits.
SplitSAM 3MultiMatteChange
DIS-VD0.6670.901+0.233
DIS-TE10.6670.901+0.234
DIS-TE20.7030.923+0.220
DIS-TE30.6850.921+0.235
DIS-TE40.6490.893+0.244
DAVIS-S (no sibling in training mix)0.9130.979+0.066
HRSOD-TE0.9300.969+0.039
UHRSD-TE0.8770.961+0.084
DUTS-TE0.8920.954+0.062
DUT-OMRON (no sibling in training mix)0.7920.901+0.109
COD10K-TE0.7870.934+0.148
CAMO-TE0.8270.914+0.086
Higher is better.

MultiMatte improves on SAM 3 in every split. We treat changes below 0.002 S-measure or 0.0005 MAE as measurement noise.

DAVIS-S and DUT-OMRON are the strongest generalization checks because neither has a sibling in the training mix. MultiMatte reaches its highest absolute score on DAVIS-S at 0.979 and lifts DUT-OMRON from 0.792 to 0.901.

Concept names help even without fine-tuning. On DIS-VD, a real concept name adds 0.150 S-measure to SAM 3 with no gradient steps and still adds 0.036 to MultiMatte. The prompt pathway survived the retrain and contributes on its own. CAMO’s named scores use the same annotator’s phrasing style seen during training, so that result measures in-family prompt generalization rather than cross-domain prompting.

Run MultiMatte

MultiMatte is built with NoBg, the same library we used to train FeyNoBg. Install it with pip install nobg:

from nobg import AutoModel, AutoProcessor

model = AutoModel.from_pretrained("feyninc/multimatte")
processor = AutoProcessor.from_pretrained("feyninc/multimatte")

# Uses the model's generic default prompt.
cutout = model.predict(processor, "photo.jpg")
cutout.save("output.png")

# Names the concept to keep.
cutout = model.predict(processor, "photo.jpg", "the dog")

predict returns an RGBA cutout. Pass return_type="tensor" for the raw matte. The adapter is already merged into the released weights for ease of use.

Try MultiMatte on your own images at usefeyn.com/multimatte.

MultiMatte and NoBg are built by Feyn. Find us on X, GitHub, or LinkedIn.

Acknowledgements

MultiMatte is built on Meta’s SAM 3. FlowDIS (Sargsyan and Navasardyan, 2026) supplied the human-written DIS5K phrases used for training and evaluation. Thinking Machines’ LoRA analysis informed the adapter configuration. We are grateful to the dataset authors whose released work made the training mix and evaluation possible.

References

[1] Meta. "SAM 3: Segment Anything with Concepts." arXiv:2511.16719 (2025).

[2] Hu et al. "LoRA: Low-Rank Adaptation of Large Language Models." arXiv:2106.09685 (2021).

[3] Thinking Machines Lab. "LoRA Without Regret" (2025). https://thinkingmachines.ai/blog/lora/

[4] Lin et al. "Focal Loss for Dense Object Detection." arXiv:1708.02002 (2017).

[5] Sargsyan and Navasardyan. "FlowDIS: Language-Guided Dichotomous Image Segmentation with Flow Matching." CVPR 2026. arXiv:2605.05077.

Cite this note

@note{multimatte2026,
  title  = {MultiMatte: Keep What You Want, Cut the Rest},
  author = {Hichri, Hafedh and Nigam, Shreyash and Feyn Research},
  year   = {2026},
  venue  = {Feyn Field Notes}
}
联系我们 contact @ memedata.com