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

双域鲁棒性:CLIP 需要鲁棒的文本编码器

Robustness in Both Domains: CLIP Needs a Robust Text Encoder

Elias Abad Rocamora, Christian Schlarmann, Naman Deep Singh, Yongtao Wu, Matthias Hein, Volkan Cevher

AI总结:

本文提出 LEAF,一种高效对抗微调方法,增强 CLIP 文本编码器鲁棒性,提升文本域零样本对抗准确率,并改善下游生成与检索性能。

摘要:

对抗性输入攻击可导致 CLIP 嵌入发生显著偏移。这会影响在流程中整合 CLIP 的模型(如文本到图像生成模型或大型视觉语言模型)的下游鲁棒性。尽管已有一些工作致力于使 CLIP 图像编码器具有鲁棒性,但文本编码器的鲁棒性仍未得到探索。在本工作中,我们填补了文献中的这一空白。我们提出了 LEAF:一种针对文本域的高效对抗性微调方法,能够扩展到大型 CLIP 模型。我们的模型显著提高了文本域的零样本对抗准确率,同时保持了鲁棒图像编码器所提供的视觉性能。当与文本到图像扩散模型结合时,我们可以在对抗噪声下提高生成质量。在多模态检索任务中,LEAF 在对抗噪声下比标准 CLIP 模型提高了召回率。最后,我们表明鲁棒的文本编码器有助于通过直接优化从嵌入中更好地重建输入文本。我们开源了我们的代码( https://github.com/LIONS-EPFL/LEAF )和模型( https://huggingface.co/LEAF-CLIP )。

英文摘要:

Adversarial input attacks can cause a significant shift of CLIP embeddings. This can affect the downstream robustness of models incorporating CLIP in the pipeline, such as text-to-image generative models or large vision language models. While some efforts have been done towards making the CLIP image encoders robust, the robustness of text encoders remains unexplored. In this work, we cover this gap in the literature. We propose LEAF: an efficient adversarial finetuning method for the text domain, with the ability to scale to large CLIP models. Our models significantly improve the zero-shot adversarial accuracy in the text domain, while maintaining the vision performance provided by robust image encoders. When combined with text-to-image diffusion models, we can improve the generation quality under adversarial noise. In multimodal retrieval tasks, LEAF improves the recall under adversarial noise over standard CLIP models. Finally, we show that robust text encoders facilitate better reconstruction of input text from its embedding via direct optimization. We open-source our code ( https://github.com/LIONS-EPFL/LEAF ) and models ( https://huggingface.co/LEAF-CLIP ).

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

↑