Skip to main content
QUICK REVIEW

[论文解读] Bridge the Points: Graph-based Few-shot Segment Anything Semantically

Anqi Zhang, Guangyu Gao|arXiv (Cornell University)|Oct 9, 2024
Natural Language Processing TechniquesComputer Science被引用 3
一句话总结

本文提出 GF-SAM,一种基于图的少样本语义分割框架,通过利用点-掩码对齐和弱连通分量聚类,实现仅需一次 SAM 掩码生成即可高效、自动且高精度地完成分割。通过动态选择前景和背景点提示,并利用基于图的聚类将细粒度点与粗粒度掩码对齐,该方法在 COCO-20 i 上达到 58.7% 的 mIoU,在 LVIS-92 i 上达到 35.2% 的 mIoU,显著缩短推理时间并消除对手动超参数的依赖。

ABSTRACT

The recent advancements in large-scale pre-training techniques have significantly enhanced the capabilities of vision foundation models, notably the Segment Anything Model (SAM), which can generate precise masks based on point and box prompts. Recent studies extend SAM to Few-shot Semantic Segmentation (FSS), focusing on prompt generation for SAM-based automatic semantic segmentation. However, these methods struggle with selecting suitable prompts, require specific hyperparameter settings for different scenarios, and experience prolonged one-shot inference times due to the overuse of SAM, resulting in low efficiency and limited automation ability. To address these issues, we propose a simple yet effective approach based on graph analysis. In particular, a Positive-Negative Alignment module dynamically selects the point prompts for generating masks, especially uncovering the potential of the background context as the negative reference. Another subsequent Point-Mask Clustering module aligns the granularity of masks and selected points as a directed graph, based on mask coverage over points. These points are then aggregated by decomposing the weakly connected components of the directed graph in an efficient manner, constructing distinct natural clusters. Finally, the positive and overshooting gating, benefiting from graph-based granularity alignment, aggregate high-confident masks and filter out the false-positive masks for final prediction, reducing the usage of additional hyperparameters and redundant mask generation. Extensive experimental analysis across standard FSS, One-shot Part Segmentation, and Cross Domain FSS datasets validate the effectiveness and efficiency of the proposed approach, surpassing state-of-the-art generalist models with a mIoU of 58.7% on COCO-20i and 35.2% on LVIS-92i. The code is available in https://andyzaq.github.io/GF-SAM/.

研究动机与目标

  • 解决现有少样本语义分割方法中因依赖迭代提示优化或启发式掩码合并而导致的效率低下与缺乏自动化的问题。
  • 克服细粒度点提示与粗粒度 SAM 生成掩码之间存在的错位问题。
  • 消除少样本分割流水线中对手动超参数调优和冗余掩码生成的依赖。
  • 通过利用图连通性与点-掩码关系中的语义一致性,实现高精度的一次性掩码生成。
  • 在保持标准少样本分割基准测试高 mIoU 的同时,提升跨域泛化能力并减少推理时间。

提出的方法

  • 引入正负对齐(PNA)模块,通过参考图像中的前景和背景参照,动态选择点提示。
  • 构建有向图,其中节点表示点,边表示掩码覆盖关系,实现点与掩码之间的粒度对齐。
  • 对有向图进行连通性分析,识别弱连通分量,作为语义一致点的自然聚类。
  • 应用正向门控机制,基于聚类级别的覆盖一致性保留高置信度掩码,以覆盖更大目标区域。
  • 实施过冲门控机制,通过评估聚类内部的覆盖自一致性,过滤靠近物体边界的误报。
  • 通过两阶段门控机制聚合最终预测结果,减少冗余的 SAM 调用,提升鲁棒性,且无需额外超参数。
(a) Performance-efficiency comparison of FSS models. The numbers inside the points represent the numbers of parameters.
(a) Performance-efficiency comparison of FSS models. The numbers inside the points represent the numbers of parameters.

实验结果

研究问题

  • RQ1基于图的点-掩码关系连通性分析,能否提升少样本语义分割的效率与精度?
  • RQ2如何有效利用前景和背景上下文,在无需迭代优化的情况下引导动态点提示选择?
  • RQ3掩码覆盖图中的弱连通分量在少样本分割中,能在多大程度上作为语义分组的自然聚类?
  • RQ4聚类内部掩码覆盖的自一致性,能否减少误报并消除掩码合并中对手动设计度量的依赖?
  • RQ5所提方法在多样化的少样本分割基准测试中(包括跨域与长尾场景)的泛化能力如何?

主要发现

  • 所提出的 GF-SAM 框架在 COCO-20 i 少样本分割基准上实现了 SOTA 的 58.7% mIoU。
  • 在 LVIS-92 i 数据集上,GF-SAM 达到 35.2% mIoU,优于现有通用模型。
  • 通过仅需一次 SAM 掩码生成,显著缩短推理时间,消除了迭代优化循环。
  • 基于图的聚类机制实现了自动、无超参的点提示分组,提升了鲁棒性并降低了对手工设计度量的依赖。
  • 正向门控与过冲门控机制有效过滤误报并提升预测置信度,且无需额外超参数。
  • 大量消融实验表明,PNA 模块与图聚类组件在所有基准数据集上均对性能提升至关重要。
(b) Comparison with previous generalist and specialist models on various FSS datasets.
(b) Comparison with previous generalist and specialist models on various FSS datasets.

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。