利用SAM生成语义提示,通过图推理提升跨域少样本分割精度
SAM-Aware Graph Prompt Reasoning Network for Cross-Domain Few-Shot Segmentation
- 用SAM生成带语义的视觉提示,构建图结构推理其关系
- 在四个数据集上达到新最好结果,显著提升跨域泛化能力
- 适合研究少样本分割与模型泛化性的学者参考
跨域少样本分割(CD-FSS)的核心挑战是训练与推理阶段之间的域差异,可能存在于输入数据或目标类别中。现有模型难以从有限的训练域样本中学习能泛化到未知域的特征表示。相比之下,大规模视觉模型SAM在数千万张来自不同域和类别的图像上预训练,具备优异的泛化能力。本文提出一种基于SAM的图提示推理网络(GPRN),充分利用SAM引导特征表示学习并提升预测精度。具体而言,设计了SAM感知提示初始化模块(SPI),将SAM生成的掩码转换为富含高层语义信息的视觉提示;由于SAM常将物体分割成多个子区域,可能导致同一语义对象的提示特征不一致或碎片化,因此进一步提出图提示推理(GPR)模块,通过构建提示间的图结构,推理其相互关系,使每个提示能聚合相似提示的信息,实现全局语义一致性。随后,每个提示将其语义信息嵌入对应掩码区域以辅助特征学习。为在测试阶段优化分割掩码,还设计了非参数自适应点选择模块(APS),从查询预测中选择代表性点提示并反馈给SAM,以修正不准确的分割结果。在四个标准CD-FSS数据集上的实验表明,本方法达到新的最先进水平。代码已开源:https://github.com/CVL-hub/GPRN。
原文摘要 · Abstract (English)
The primary challenge of cross-domain few-shot segmentation (CD-FSS) is the domain disparity between the training and inference phases, which can exist in either the input data or the target classes. Previous models struggle to learn feature representations that generalize to various unknown domains from limited training domain samples. In contrast, the large-scale visual model SAM, pre-trained on tens of millions of images from various domains and classes, possesses excellent generalizability. In this work, we propose a SAM-aware graph prompt reasoning network (GPRN) that fully leverages SAM to guide CD-FSS feature representation learning and improve prediction accuracy. Specifically, we propose a SAM-aware prompt initialization module (SPI) to transform the masks generated by SAM into visual prompts enriched with high-level semantic information. Since SAM tends to divide an object into many sub-regions, this may lead to visual prompts representing the same semantic object having inconsistent or fragmented features. We further propose a graph prompt reasoning (GPR) module that constructs a graph among visual prompts to reason about their interrelationships and enable each visual prompt to aggregate information from similar prompts, thus achieving global semantic consistency. Subsequently, each visual prompt embeds its semantic information into the corresponding mask region to assist in feature representation learning. To refine the segmentation mask during testing, we also design a non-parameter adaptive point selection module (APS) to select representative point prompts from query predictions and feed them back to SAM to refine inaccurate segmentation results. Experiments on four standard CD-FSS datasets demonstrate that our method establishes new state-of-the-art results. Code: https://github.com/CVL-hub/GPRN.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。