Skip to main content
QUICK REVIEW

[论文解读] AdaptiveClick: Clicks-aware Transformer with Adaptive Focal Loss for Interactive Image Segmentation

Jiacheng Lin, Jiajun Chen|arXiv (Cornell University)|May 7, 2023
CCD and CMOS Imaging SensorsEngineering被引用 3
一句话总结

AdaptiveClick 提出了一种点击感知的视觉 Transformer 模型,采用自适应焦点损失(AFL)以解决交互式图像分割中的交互模糊性问题。通过引入掩码自适应解码器和梯度自适应损失,其在九个数据集上显著提升了分割精度与鲁棒性,仅使用普通的 ViT 主干网络即实现了最先进性能。

ABSTRACT

Interactive Image Segmentation (IIS) has emerged as a promising technique for decreasing annotation time. Substantial progress has been made in pre- and post-processing for IIS, but the critical issue of interaction ambiguity, notably hindering segmentation quality, has been under-researched. To address this, we introduce AdaptiveClick -- a click-aware transformer incorporating an adaptive focal loss that tackles annotation inconsistencies with tools for mask- and pixel-level ambiguity resolution. To the best of our knowledge, AdaptiveClick is the first transformer-based, mask-adaptive segmentation framework for IIS. The key ingredient of our method is the Click-Aware Mask-adaptive transformer Decoder (CAMD), which enhances the interaction between click and image features. Additionally, AdaptiveClick enables pixel-adaptive differentiation of hard and easy samples in the decision space, independent of their varying distributions. This is primarily achieved by optimizing a generalized Adaptive Focal Loss (AFL) with a theoretical guarantee, where two adaptive coefficients control the ratio of gradient values for hard and easy pixels. Our analysis reveals that the commonly used Focal and BCE losses can be considered special cases of the proposed AFL. With a plain ViT backbone, extensive experimental results on nine datasets demonstrate the superiority of AdaptiveClick compared to state-of-the-art methods. The source code is publicly available at https://github.com/lab206/AdaptiveClick.

研究动机与目标

  • 为解决交互式图像分割中的交互模糊性,特别是类别间与类别内点击模糊性。
  • 克服训练过程中焦点损失导致的梯度淹没问题,该问题会阻碍模型收敛与分割质量的提升。
  • 开发一种掩码自适应框架,可动态生成并选择每轮点击的最优掩码。
  • 设计一种具有理论保障的广义损失函数,可将 BCE、FL 和 PL 作为特例统一于其中。
  • 建立一个稳健的端到端基线,适用于广义提示分割模型。

提出的方法

  • 提出一种点击感知的掩码自适应 Transformer 解码器(CAMD),包含像素级多尺度掩码 Transformer 解码器(PMMD)与点击感知注意力模块(CAAM),以增强点击与图像特征之间的交互。
  • 采用一种新颖的自适应焦点损失(AFL),引入两个自适应系数,以平衡难样本与易样本之间的梯度,防止梯度淹没。
  • AFL 损失具有理论基础,证明 BCE、焦点损失与加权焦点损失(PL)在特定参数取值下可作为其特例。
  • 利用多头注意力机制与可学习的点击嵌入,建模长距离依赖关系,以解决用户输入的模糊性。
  • 采用掩码选择策略,对每轮点击评估多个候选掩码,并基于与真实掩码的对齐程度选择最优掩码。
  • 通过结合 AFL 损失、Dice 损失与点击损失的混合损失函数进行模型优化,超参数通过在五个数据集上的消融实验进行调优。

实验结果

研究问题

  • RQ1如何在交互式图像分割中有效解决类别间与类别内交互模糊性?
  • RQ2焦点损失中的梯度淹没在基于视觉 Transformer 的交互式图像分割模型中在多大程度上降低模型性能?
  • RQ3能否设计一种广义损失函数,实现对难样本与易样本的自适应平衡,而无需事先了解类别分布?
  • RQ4与固定掩码基线相比,所提出的掩码自适应策略是否能提升分割精度与收敛速度?
  • RQ5所提出的 AFL 损失是否能在不同 IIS 模型与数据集上实现泛化,持续提升性能?

主要发现

  • AdaptiveClick 仅使用普通视觉 Transformer 主干网络,即在九个基准数据集上实现了最先进性能。
  • 模型对超参数变化具有鲁棒性,最优性能出现在 λ_cli=2、λ_afl=5、λ_dice=5 与 Q=10 次点击时。
  • 消融实验表明,当 δ=0.4 时,AFL 的分割性能最佳,优于标准焦点损失与 BCE 损失。
  • 所提出的 AFL 损失在理论上统一了 BCE、焦点损失与加权焦点损失(PL)作为特例,并具备梯度自适应的理论保障。
  • 掩码自适应策略显著降低了交互模糊性,支持每轮点击的动态掩码选择,从而提升了最终分割质量。
  • 模型在多种不同数据集上保持一致的高性能表现,表明其具备强大的泛化能力与对不同点击模糊程度的鲁棒性。

阅读本论文

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

在 Nubint 中阅读本论文

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