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

利用双曲几何进行有害提示检测与净化

Harnessing Hyperbolic Geometry for Harmful Prompt Detection and Sanitization

University of Genoa(热那亚大学);Sapienza University of Rome(罗马大学);University of Cagliari(卡利亚里大学)

Igor Maljkovic, Maria Rosaria Briglia, Iacopo Masi, Antonio Emanuele Cinà, Fabio Roli

AI总结:

本文提出HyPE和HyPS方法,利用双曲几何空间检测和净化有害提示,提升视觉语言模型的安全性与鲁棒性。

摘要:

视觉语言模型(VLMs)通过在共享嵌入空间中对文本和视觉信息对齐,已成为图像合成、描述生成和检索任务的关键。然而,这种灵活性也使它们容易受到恶意提示攻击,产生危险内容,引发安全问题。现有防御措施要么依赖黑名单过滤,容易被绕过,要么依赖重型分类器系统,成本高且在嵌入级攻击下脆弱。本文提出两个互补组件:双曲提示 Espial(HyPE)和双曲提示 Sanitization(HyPS)。HyPE是一种轻量级异常检测器,利用双曲空间的结构几何特性来建模良性提示并检测有害提示作为异常。HyPS在此基础上应用可解释的归因方法,识别并选择性地修改有害词汇,消除不安全意图同时保留用户提示的原始语义。通过在多个数据集和对抗性场景中的广泛实验,证明了我们的框架在检测准确性和鲁棒性方面均优于现有防御措施。HyPE和HyPS共同提供了一种高效、可解释且坚固的方法,以保护VLMs免受恶意提示的滥用。

英文摘要:

Vision-Language Models (VLMs) have become essential for tasks such as image synthesis, captioning, and retrieval by aligning textual and visual information in a shared embedding space. Yet, this flexibility also makes them vulnerable to malicious prompts designed to produce unsafe content, raising critical safety concerns. Existing defenses either rely on blacklist filters, which are easily circumvented, or on heavy classifier-based systems, both of which are costly and fragile under embedding-level attacks. We address these challenges with two complementary components: Hyperbolic Prompt Espial (HyPE) and Hyperbolic Prompt Sanitization (HyPS). HyPE is a lightweight anomaly detector that leverages the structured geometry of hyperbolic space to model benign prompts and detect harmful ones as outliers. HyPS builds on this detection by applying explainable attribution methods to identify and selectively modify harmful words, neutralizing unsafe intent while preserving the original semantics of user prompts. Through extensive experiments across multiple datasets and adversarial scenarios, we prove that our framework consistently outperforms prior defenses in both detection accuracy and robustness. Together, HyPE and HyPS offer an efficient, interpretable, and resilient approach to safeguarding VLMs against malicious prompt misuse.

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

↑