VLMGuard:从野生未标记视觉语言提示中引导恶意提示检测器
VLMGuard: Bootstrapping Malicious Prompt Detectors from Unlabeled Vision-Language Prompts in the Wild
AI总结:
研究针对视觉语言模型易受恶意输入影响的问题,提出VLMGuard框架,利用野生未标记用户提示,通过自动恶意估计分数区分良性和恶意样本,训练二进制提示分类器,无需额外人工标注,效果优于现有方法。
摘要:
视觉语言模型对于视觉和文本信息的上下文理解至关重要。然而,它们易受对抗性操纵输入的影响,存在重大风险。检测这些恶意提示对于维持对VLM生成的信任至关重要。开发保护提示分类器的一个主要挑战是缺乏大量标记的良性和恶意数据。为了解决这个问题,我们引入了VLMGuard,这是一个新颖的学习框架,它利用野生未标记的用户提示进行恶意提示检测。这些未标记的提示在VLM在开放世界中部署时自然出现,包含良性和恶意信息。为了利用未标记的数据,我们提出了一种自动恶意估计分数,用于区分这个未标记混合物中的良性和恶意样本,从而能够在其上训练二进制提示分类器。值得注意的是,我们的框架不需要额外的人工注释,并且对现实的提示变化具有鲁棒性,为实际应用提供了强大的灵活性和实用性。大量实验表明,VLMGuard取得了优异的检测结果,平均比现有方法提高了5.39%的AUROC。
英文摘要:
Vision-language Models (VLMs) are essential for contextual understanding of both visual and textual information. However, their vulnerability to adversarially manipulated inputs presents significant risks, leading to compromised outputs and raising concerns about the reliability in VLM-integrated applications. Detecting these malicious prompts is thus crucial for maintaining trust in VLM generations. A major challenge in developing a safeguarding prompt classifier is the lack of a large amount of labeled benign and malicious data. To address the issue, we introduce VLMGuard, a novel learning framework that leverages the unlabeled user prompts in the wild for malicious prompt detection. These unlabeled prompts, which naturally arise when VLMs are deployed in the open world, consist of both benign and malicious information. To harness the unlabeled data, we present an automated maliciousness estimation score for distinguishing between benign and malicious samples within this unlabeled mixture, thereby enabling the training of a binary prompt classifier on top. Notably, our framework does not require extra human annotations and is robust to realistic prompt variations, offering strong flexibility and practicality for real-world applications. Extensive experiments show that VLMGuard achieves superior detection results, improving AUROC by 5.39% on average over the state-of-the-art method. Disclaimer: This paper may contain offensive examples; reader discretion is advised. Code is available at: https://github.com/radiolab-ntu/vlmguard.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。