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

使用增量随机平滑快速认证视觉-语言模型

Fast Certification of Vision-Language Models Using Incremental Randomized Smoothing

Iowa State University(爱荷华州立大学);New York University(纽约大学)

A K Nirala, A Joshi, C Hegde, S Sarkar

AI总结:

本文提出开放词汇认证(OVC)方法,利用增量随机平滑和缓存技巧为CLIP等开放词汇模型提供快速对抗鲁棒性认证,实现约两个数量级加速。

摘要:

诸如CLIP等深度视觉-语言模型的一个关键优势在于它们能够实现零样本开放词汇分类;用户能够在推理时通过自然语言提示定义新的类别标签。然而,尽管基于CLIP的零样本分类器在一系列领域偏移上展现出了具有竞争力的性能,但它们仍然极易受到对抗攻击的影响。因此,确保此类模型的鲁棒性对于其在现实世界中的可靠部署至关重要。在这项工作中,我们引入了开放词汇认证(Open Vocabulary Certification, OVC),这是一种通过随机平滑技术为CLIP等开放词汇模型设计的快速认证方法。给定一个基础“训练”提示集及其对应的已认证CLIP分类器,OVC依赖于这样一个观察:带有新提示的分类器可以被视为基础训练集中邻近分类器的扰动版本。因此,OVC可以使用增量随机平滑的变体快速认证新分类器。通过使用缓存技巧,我们在新提示的认证过程中实现了约两个数量级的加速。为了实现进一步的(启发式)加速,OVC使用多元正态分布来近似给定输入处的嵌入空间,从而无需通过视觉骨干网络的前向传播进行采样。我们通过在CIFAR-10和ImageNet测试数据集上使用多个视觉-语言骨干网络进行实验评估,证明了OVC的有效性。

英文摘要:

A key benefit of deep vision-language models such as CLIP is that they enable zero-shot open vocabulary classification; the user has the ability to define novel class labels via natural language prompts at inference time. However, while CLIP-based zero-shot classifiers have demonstrated competitive performance across a range of domain shifts, they remain highly vulnerable to adversarial attacks. Therefore, ensuring the robustness of such models is crucial for their reliable deployment in the wild. In this work, we introduce Open Vocabulary Certification (OVC), a fast certification method designed for open-vocabulary models like CLIP via randomized smoothing techniques. Given a base "training" set of prompts and their corresponding certified CLIP classifiers, OVC relies on the observation that a classifier with a novel prompt can be viewed as a perturbed version of nearby classifiers in the base training set. Therefore, OVC can rapidly certify the novel classifier using a variation of incremental randomized smoothing. By using a caching trick, we achieve approximately two orders of magnitude acceleration in the certification process for novel prompts. To achieve further (heuristic) speedups, OVC approximates the embedding space at a given input using a multivariate normal distribution bypassing the need for sampling via forward passes through the vision backbone. We demonstrate the effectiveness of OVC on through experimental evaluation using multiple vision-language backbones on the CIFAR-10 and ImageNet test datasets.

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

↑