arXiv:2411.10411cs.CVcs.AI2024-11CVPR被引 11

利用Stable Diffusion注意力机制实现免训练无监督交互分割

Repurposing Stable Diffusion Attention for Training-Free Unsupervised Interactive Segmentation

  • 将注意力张量视为马尔可夫转移算子,构建迭代马尔可夫链
  • 提出的马尔可夫图噪声更少、语义边界更清晰、区域值更均匀
  • 无需训练即可达到顶尖性能,适合快速部署与低资源场景

基于交互点提示的图像分割技术显著降低了获取高质量语义标签的人工成本。当前最先进的无监督方法依赖自监督预训练模型生成伪标签,并用于训练点提示分割模型。本文提出一种全新的无监督、免训练方法,仅基于Stable Diffusion的自注意力机制。我们将自注意力张量解释为马尔可夫转移算子,通过迭代构建马尔可夫链。对每个像素沿马尔可夫链达到相对概率阈值所需的迭代次数进行像素级计数,得到马尔可夫-迭代图(简称马尔可夫图)。相比原始注意力图,我们的马尔可夫图具有更低噪声、更锐利的语义边界和更均匀的区域内值。我们将其集成到一个简单但高效的截断最近邻框架中,实现基于交互点提示的分割。尽管完全免训练,实验表明该方法在点击次数(NoC)指标上表现优异,多数数据集上超越了现有基于训练的无监督方法。代码已公开于 https://github.com/mkarmann/m2n2。

原文摘要 · Abstract (English)

Recent progress in interactive point prompt based Image Segmentation allows to significantly reduce the manual effort to obtain high quality semantic labels. State-of-the-art unsupervised methods use self-supervised pre-trained models to obtain pseudo-labels which are used in training a prompt-based segmentation model. In this paper, we propose a novel unsupervised and training-free approach based solely on the self-attention of Stable Diffusion. We interpret the self-attention tensor as a Markov transition operator, which enables us to iteratively construct a Markov chain. Pixel-wise counting of the required number of iterations along the Markov chain to reach a relative probability threshold yields a Markov-iteration-map, which we simply call a Markov-map. Compared to the raw attention maps, we show that our proposed Markov-map has less noise, sharper semantic boundaries and more uniform values within semantically similar regions. We integrate the Markov-map in a simple yet effective truncated nearest neighbor framework to obtain interactive point prompt based segmentation. Despite being training-free, we experimentally show that our approach yields excellent results in terms of Number of Clicks (NoC), even outperforming state-of-the-art training based unsupervised methods in most of the datasets. Code is available at https://github.com/mkarmann/m2n2.

图像分割免训练Stable Diffusion注意力机制

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。