arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2212.03588cs.CV
收藏

ZegCLIP:面向零样本语义分割的CLIP适配

ZegCLIP: Towards Adapting CLIP for Zero-shot Semantic Segmentation

The University of Adelaide(阿德莱德大学);Sichuan University(四川大学)

Ziqin Zhou, Bowen Zhang, Yinjie Lei, Lingqiao Liu, Yifan Liu

AI总结:

提出单阶段ZegCLIP,通过三个简单设计保留CLIP零样本能力,实现高效像素级分割,在三个基准上大幅超越现有方法,推理加速约5倍。

摘要:

近年来,CLIP已被应用于像素级零样本学习任务,采用两阶段方案。总体思路是先生成类别无关的区域提议,然后将裁剪的提议区域输入CLIP,利用其图像级零样本分类能力。虽然有效,但该方案需要两个图像编码器,一个用于提议生成,一个用于CLIP,导致流程复杂且计算成本高。在本工作中,我们追求一种更简单高效的单阶段解决方案,直接将CLIP的零样本预测能力从图像级扩展到像素级。我们的研究从基线开始,即通过比较CLIP提取的文本与补丁嵌入之间的相似性来生成语义掩码。然而,这种范式可能严重过拟合已见类别,无法泛化到未见类别。为解决此问题,我们提出三个简单而有效的设计,并发现它们能显著保留CLIP固有的零样本能力,提高像素级泛化能力。整合这些修改后,我们构建了一个高效的零样本语义分割系统,称为ZegCLIP。通过在三个公开基准上的大量实验,ZegCLIP在“归纳式”和“直推式”零样本设置下均展现出优越性能,大幅超越现有最先进方法。此外,与两阶段方法相比,我们的单阶段ZegCLIP在推理时实现了约5倍的加速。我们已在https://github.com/ZiqinZhou66/ZegCLIP.git发布代码。

英文摘要:

Recently, CLIP has been applied to pixel-level zero-shot learning tasks via a two-stage scheme. The general idea is to first generate class-agnostic region proposals and then feed the cropped proposal regions to CLIP to utilize its image-level zero-shot classification capability. While effective, such a scheme requires two image encoders, one for proposal generation and one for CLIP, leading to a complicated pipeline and high computational cost. In this work, we pursue a simpler-and-efficient one-stage solution that directly extends CLIP's zero-shot prediction capability from image to pixel level. Our investigation starts with a straightforward extension as our baseline that generates semantic masks by comparing the similarity between text and patch embeddings extracted from CLIP. However, such a paradigm could heavily overfit the seen classes and fail to generalize to unseen classes. To handle this issue, we propose three simple-but-effective designs and figure out that they can significantly retain the inherent zero-shot capacity of CLIP and improve pixel-level generalization ability. Incorporating those modifications leads to an efficient zero-shot semantic segmentation system called ZegCLIP. Through extensive experiments on three public benchmarks, ZegCLIP demonstrates superior performance, outperforming the state-of-the-art methods by a large margin under both "inductive" and "transductive" zero-shot settings. In addition, compared with the two-stage method, our one-stage ZegCLIP achieves a speedup of about 5 times faster during inference. We release the code at https://github.com/ZiqinZhou66/ZegCLIP.git.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑