用双曲空间让视觉语言模型识别并管理不安全内容。
Hyperbolic Safety-Aware Vision-Language Models
- 用双曲空间构建安全与不安全内容的层级关系
- 模型能准确识别不安全内容,且可动态重定向查询
- 适合需要内容安全与灵活控制的应用场景
解决视觉语言模型(如 CLIP)检索不安全内容的问题是其实现真实应用的关键一步。现有方法依赖于知识擦除技术,虽能减少不当输出,但削弱了模型对安全与不安全内容的辨别能力。本文提出一种新范式:从知识擦除转向安全意识,利用双曲空间的固有层次结构,将安全与不安全内容编码为蕴含关系层次,分别置于双曲空间的不同区域。所提出的 HySAC 模型采用蕴含损失函数,建模安全与不安全图文对之间的层级与非对称关系。该建模在传统欧氏嵌入的视觉语言模型中难以实现,使模型具备对不安全内容的感知能力,可同时作为多模态不安全内容分类器和灵活的内容检索器,支持动态将不安全查询引导至更安全替代结果或保留原输出。大量实验表明,该方法不仅提升安全识别能力,还建立了一个更适应、更可解释的内容审核框架。源代码见 https://github.com/aimagelab/HySAC。
原文摘要 · Abstract (English)
Addressing the retrieval of unsafe content from vision-language models such as CLIP is an important step towards real-world integration. Current efforts have relied on unlearning techniques that try to erase the model's knowledge of unsafe concepts. While effective in reducing unwanted outputs, unlearning limits the model's capacity to discern between safe and unsafe content. In this work, we introduce a novel approach that shifts from unlearning to an awareness paradigm by leveraging the inherent hierarchical properties of the hyperbolic space. We propose to encode safe and unsafe content as an entailment hierarchy, where both are placed in different regions of hyperbolic space. Our HySAC, Hyperbolic Safety-Aware CLIP, employs entailment loss functions to model the hierarchical and asymmetrical relations between safe and unsafe image-text pairs. This modelling, ineffective in standard vision-language models due to their reliance on Euclidean embeddings, endows the model with awareness of unsafe content, enabling it to serve as both a multimodal unsafe classifier and a flexible content retriever, with the option to dynamically redirect unsafe queries toward safer alternatives or retain the original output. Extensive experiments show that our approach not only enhances safety recognition but also establishes a more adaptable and interpretable framework for content moderation in vision-language models. Our source code is available at https://github.com/aimagelab/HySAC.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。