論文解説
MESAM: Enhancing SAM2 for Few-Shot Segmentation through Semantic-Visual Memory Generation and Refinement
MESAM:意味-視覚メモリの生成と精緻化によるSAM2のFew-Shot Segmentation性能向上
- 課題 SAM2をfew-shot segmentationに適用すると、supportとqueryの外見の差によってメモリの照合が弱くなります。
- 手法 カテゴリのテキストに基づくGradCAMの意味メモリをSAM2のメモリ経路に入れ、DINOv2ベースの視覚メモリでcross-attentionによる精緻化と背景抑制を行います。
- 結果 PASCAL-5iとCOCO-20iの標準設定、およびCOCO-20iで学習したモデルのLVIS-92iクロスデータセット設定で、著者らが報告した平均mIoUでは既存のSAM2ベース手法を上回っています。
SAM2をFew-Shot Segmentationに使いにくい理由
SAM2は、ビデオでフレーム間の同じ物体をメモリとして照合するのが得意です。一方、few-shot segmentation(FSS)では、supportの画像の物体とqueryの画像の物体で外見が大きく異なります。そのため、supportのサンプルから作ったSAM2のメモリがqueryとうまく合いません。著者らは、既存のSAM2ベースの手法であるFSSAMが、supportに一部しか写っていない物体(例:ボートの船体だけがある場合、かばんの肩ひもだけがある場合)では、queryのうち見えている部分だけを分割すると報告しています。著者らは、この原因を、現在の手法が視覚的な手がかりだけでSAM2のメモリを作っているためだと解釈しています。

Figure 1 : Illustration of the large support-query appearance divergence challenge. With only partial visual cues provided by the support image, existing methods segment only visu- ally similar parts in the query, instead of the entire object. In contrast, with the refined semantic memory, our MESAM method yields better segmentation results. The orange and blue circles indicate foreground (FG) misses and background (BG) misactivations, respectively.
出典 · CC BY 4.0 · Tianyu Zou, Shengwu Xiong, Rui Wu, Ruilin Yao, Yi Rong · MESAM: Enhancing SAM2 for Few-Shot Segmentation through Semantic-Visual Memory Generation and Refinement · 論文の図を引用 · 元のPDFの2ページ目から図の部分を抽出しています。この論文は、この問題をメモリの構成段階で扱います。カテゴリのテキストから得た意味情報は、supportとqueryの外見差の影響を受けにくいという観察を出発点としています。そして、意味メモリをSAM2のメモリ経路に入れる方法を提案します。
意味メモリと視覚メモリの構成と精緻化
MESAMは、SVMGとISMRの2つのモジュールで構成されます。SVMGは3種類のメモリを作ります。1つ目はquery意味メモリで、CLIPのテキスト分類器から得たFGクラススコアにGradCAMを適用して作ったquery意味prior maskを、SAM2のメモリエンコーダに入れて作ります。2つ目はquery FG視覚メモリで、DINOv2の特徴からsupportの前景prototypeとquery特徴のコサイン類似度を求め、min-max正規化したprior maskとして作ります。3つ目はsupport適応視覚メモリで、supportマスクで背景の応答を除いたprior maskとして作ります。
ISMRは意味メモリを精緻化します。意味メモリをquery、query FG視覚メモリをkeyとvalueとしてcross-attentionを計算し、視覚の細部情報を取り込みます。このとき、support視覚メモリから得たコサイン類似度マップを使ってquery特徴の各位置の背景らしさを推定し、その値をattentionスコアに加えて背景の活性化を抑えます。著者らは、この抑制係数αを10に設定したと報告しています。精緻化された意味メモリは、SAM2のmemory attentionとmask decoderを経て最終的なマスクを出力します。
意味メモリが視覚メモリより有効な理由の分析
著者らは、FGとDISCの視覚メモリの代わりに意味メモリを使うと、mIoUが高くなるかをまず確認します。

Table 1 : Performance comparison between the visual memo- ries constructed in FSSAM and our semantic memory.
出典 · CC BY 4.0 · Tianyu Zou, Shengwu Xiong, Rui Wu, Ruilin Yao, Yi Rong · MESAM: Enhancing SAM2 for Few-Shot Segmentation through Semantic-Visual Memory Generation and Refinement · 論文の図を引用 · 元のPDFの3ページ目から図の部分を抽出しています。次に著者らは、prior maskのFPとFNの比率を比較しています。視覚メモリのprior maskはFPが高くFNが低い傾向があり、意味メモリはFPが低くFNが高くなっています。このパターンを説明するため、著者らは侵食と膨張のtoy実験を設計しました。その結果、対象の骨格を保存したskeleton-erosionは膨張メモリより良く、骨格を保存しなかったvanilla-erosionは性能が低くなりました。著者らはこれを根拠に、背景のノイズを入れることは前景情報の一部を失うことよりSAM2にとって有害であり、重要な前景特徴を保存することも重要だと解釈しています。

Figure 2 : The priors and the segmentation results of two visual memories (i.e., FG, DISC) and our semantic memory.
出典 · CC BY 4.0 · Tianyu Zou, Shengwu Xiong, Rui Wu, Ruilin Yao, Yi Rong · MESAM: Enhancing SAM2 for Few-Shot Segmentation through Semantic-Visual Memory Generation and Refinement · 論文の図を引用 · 元のPDFの3ページ目から図の部分を抽出しています。
Table 2 : The false positive (FP) and false negative (FN) rates of the prior masks used for generating FG and DISC visual memories, and our semantic memory.
出典 · CC BY 4.0 · Tianyu Zou, Shengwu Xiong, Rui Wu, Ruilin Yao, Yi Rong · MESAM: Enhancing SAM2 for Few-Shot Segmentation through Semantic-Visual Memory Generation and Refinement · 論文の図を引用 · 元のPDFの3ページ目から図の部分を抽出しています。
Figure 3 : Performance comparison between different memo- ries obtained under varying dilation and erosion ratios.
出典 · CC BY 4.0 · Tianyu Zou, Shengwu Xiong, Rui Wu, Ruilin Yao, Yi Rong · MESAM: Enhancing SAM2 for Few-Shot Segmentation through Semantic-Visual Memory Generation and Refinement · 論文の図を引用 · 元のPDFの4ページ目から図の部分を抽出しています。
Figure 7 : Qualitative comparisons between dilation, vanilla-erosion, and skeleton-erosion operations with varying target ratios.
出典 · CC BY 4.0 · Tianyu Zou, Shengwu Xiong, Rui Wu, Ruilin Yao, Yi Rong · MESAM: Enhancing SAM2 for Few-Shot Segmentation through Semantic-Visual Memory Generation and Refinement · 論文の図を引用 · 元のPDFの12ページ目から図の部分を抽出しています。標準設定とクロスデータセット設定の結果
標準設定では、MESAMはPASCAL-5iとCOCO-20iにおいて、SAM2ベースの比較手法より高い平均mIoUを報告しています。著者らは、視覚的な手がかりだけを使うSAM2ベースのモデルに対して、PASCAL-5iでは4.0%-11.9%(1-shot)、1.6%-12.2%(5-shot)、COCO-20iでは5.0%-12.0%(1-shot)、0.9%-11.8%(5-shot)の平均mIoU向上を報告しています。

Table 3 : Performance comparisons on PASCAL-5𝑖 . “5𝑖 ” shows the mIoU scores of 5 novel classes in fold 𝑖, “Mean” denotes the averaged mIoU score across all four folds. The best and second-best results are highlighted in bold and underlined, respectively.
出典 · CC BY 4.0 · Tianyu Zou, Shengwu Xiong, Rui Wu, Ruilin Yao, Yi Rong · MESAM: Enhancing SAM2 for Few-Shot Segmentation through Semantic-Visual Memory Generation and Refinement · 論文の図を引用 · 元のPDFの7ページ目から図の部分を抽出しています。
Table 4 : Performance comparisons on COCO-20𝑖 . “20𝑖 ” shows the mIoU scores of 20 novel classes in fold 𝑖, “Mean” denotes the averaged mIoU score across all four folds. The best and second-best results are highlighted in bold and underlined, respectively.
出典 · CC BY 4.0 · Tianyu Zou, Shengwu Xiong, Rui Wu, Ruilin Yao, Yi Rong · MESAM: Enhancing SAM2 for Few-Shot Segmentation through Semantic-Visual Memory Generation and Refinement · 論文の図を引用 · 元のPDFの7ページ目から図の部分を抽出しています。
Figure 5 : Qualitative comparisons between FSSAM and MESAM on PASCAL-5 𝑖 , COCO-20𝑖 and LVIS-92𝑖 under the 1-shot setting.
出典 · CC BY 4.0 · Tianyu Zou, Shengwu Xiong, Rui Wu, Ruilin Yao, Yi Rong · MESAM: Enhancing SAM2 for Few-Shot Segmentation through Semantic-Visual Memory Generation and Refinement · 論文の図を引用 · 元のPDFの8ページ目から図の部分を抽出しています。ただし、この数値は該当するクロスデータセットのプロトコルでの結果であり、標準設定と同じ条件でまとめて解釈することはしていません。

Table 12 : Performance comparisons under COCO-20 𝑖→ PASCAL-5𝑖 cross-dataset setting. The 1-shot results are re- ported, where the best results are highlighted in bold.
出典 · CC BY 4.0 · Tianyu Zou, Shengwu Xiong, Rui Wu, Ruilin Yao, Yi Rong · MESAM: Enhancing SAM2 for Few-Shot Segmentation through Semantic-Visual Memory Generation and Refinement · 論文の図を引用 · 元のPDFの15ページ目から図の部分を抽出しています。メモリ構成とISMR設計のアブレーション実験
COCO-20iの1-shotで行ったアブレーション実験では、メモリ構成を分けて比較しています。意味メモリのみを使った設定Aの平均mIoUは58.9%でした。

Table 6 : Ablation study on the effect of different memories.
出典 · CC BY 4.0 · Tianyu Zou, Shengwu Xiong, Rui Wu, Ruilin Yao, Yi Rong · MESAM: Enhancing SAM2 for Few-Shot Segmentation through Semantic-Visual Memory Generation and Refinement · 論文の図を引用 · 元のPDFの8ページ目から図の部分を抽出しています。この結果は、各バリアントが取り除いた、または変えた構成要素の役割を示していますが、すべての要素が同じ大きさで寄与するという意味ではありません。

Table 7 : Ablation study on the effect of different ISMR.
出典 · CC BY 4.0 · Tianyu Zou, Shengwu Xiong, Rui Wu, Ruilin Yao, Yi Rong · MESAM: Enhancing SAM2 for Few-Shot Segmentation through Semantic-Visual Memory Generation and Refinement · 論文の図を引用 · 元のPDFの8ページ目から図の部分を抽出しています。適用範囲と限界
著者らは、5-shot設定では複数のsupportサンプルのprior maskとコサイン類似度マップを単純平均するため、複数のsupport情報を十分に活用できず、5-shotでの向上が相対的に小さいと説明しています。また、MESAMは対象データセットに合わせるためパラメータを更新する学習過程を必要とするため、学習を行わない手法と比べると計算負担が残ります。
本論文の結果は、PASCAL-5i、COCO-20i、LVIS-92iで報告された設定に限った結果です。特に、COCO-20iのアブレーション実験とクロスデータセットの結果は、それぞれの条件のもとで読む必要があります。
論文情報
- 著者
- Tianyu Zou, Shengwu Xiong, Rui Wu, Ruilin Yao, Yi Rong
- 学会・ジャーナル
- arXiv · プレプリント
- 公開日
- 2026年11月6日
- 登録日
- 2026年11月9日
- 更新日
- 2026年11月6日
- バージョン
- v1
- arXiv
- 2611.08943
- カテゴリ
- cs.CV
- ライセンス
- CC BY 4.0
- 掲載内容
- 論文情報・解説・論文の図
この解説は、Refivuの韓国語解説をAIで翻訳したものです。不正確な翻訳や誤りが含まれる可能性があります。論文と図の利用条件は各出典に従います。
アブストラクト
This paper investigates how to leverage the powerful capabilities of the Segment Anything Model 2 (SAM2) to tackle few-shot segmentation (FSS) tasks. One major challenge lies in the substantial appearance differences between the support and query images, which may diminish the effectiveness of the memory-matching process in SAM2. Through systematic analysis, we find that the memory generated based on the categorical semantic information is robust to this appearance divergence and is more compatible with SAM2. Based on these observations, we propose a new Memory-Enhanced SAM2 (MESAM) method, which first introduces a Semantic-Visual Memory Generation (SVMG) module to separately construct a query semantic memory, a query foreground visual memory, and a support adaptive visual memory. Then, in our designed Interactive Semantic Memory Refinement (ISMR) module, we further enrich the obtained semantic memory with fine-grained visual details, and suppress its misatcivated background responses. Extensive experiments on the PASCAL-$5^i$, COCO-$20^i$, and LVIS-$92^i$ datasets demonstrate that MESAM consistently outperforms existing FSS methods, achieving new state-of-the-art segmentation performance. Our source code is available at: \href{https://github.com/tianyu-zou/MESAM}{https://github.com/tianyu-zou/MESAM}.
この論文を引用
Tianyu Zou, Shengwu Xiong, Rui Wu, Ruilin Yao, Yi Rong (2026). MESAM: Enhancing SAM2 for Few-Shot Segmentation through Semantic-Visual Memory Generation and Refinement. arXiv:2611.08943v1. https://arxiv.org/abs/2611.08943v1
BibTeX
@misc{zou2026mesam,
title = {{MESAM: Enhancing SAM2 for Few-Shot Segmentation through Semantic-Visual Memory Generation and Refinement}},
author = {Tianyu Zou and Shengwu Xiong and Rui Wu and Ruilin Yao and Yi Rong},
year = {2026},
eprint = {2611.08943},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/2611.08943v1}
}