arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.05113cs.CVcs.AIcs.LG
收藏

LlavaGuard:一个基于开放VLM的视觉数据集与模型安全防护框架

LlavaGuard: An Open VLM-based Framework for Safeguarding Vision Datasets and Models

TU Darmstadt(达姆施塔特工业大学);DFKI(德国人工智能研究中心);Centre for Cognitive Science, Darmstadt(达姆施塔特认知科学中心)

Lukas Helff, Felix Friedrich, Manuel Brack, Kristian Kersting, Patrick Schramowski

AI总结:

LlavaGuard提出基于开放VLM的视觉安全防护框架,构建高质量人类标注多模态安全数据集,训练0.5B至7B模型,在安全合规评估准确性和策略灵活性上超越现有方法,并成功应用于大规模数据集标注和文生图模型审核。

摘要:

本文介绍了LlavaGuard,一套基于视觉语言模型(VLM)的视觉安全防护工具,旨在应对大规模数据与模型时代对可靠护栏的迫切需求。为此,我们建立了一个新颖的开放框架,描述了可定制的安全分类体系、数据预处理、数据增强和训练设置。为了训练VLM安全防护模型,我们进一步构建了一个具有高质量人类专家标注的多模态安全数据集,其中每张图像都标注了安全评级、类别和理由。我们还采用了先进的数据增强技术,以支持针对特定情境的评估。由此得到的LlavaGuard模型规模从0.5B到7B不等,可作为一种多功能工具,用于根据灵活的策略评估视觉内容的安全合规性。在综合实验中,LlavaGuard在准确性和灵活处理不同策略方面均优于最先进的安全防护工具和视觉语言模型。此外,我们展示了LlavaGuard在两个实际应用中的性能:大规模数据集标注和文本到图像模型的审核。我们公开了整个框架,包括数据集、模型权重和训练代码。

英文摘要:

This paper introduces LlavaGuard, a suite of VLM-based vision safeguards that address the critical need for reliable guardrails in the era of large-scale data and models. To this end, we establish a novel open framework, describing a customizable safety taxonomy, data preprocessing, augmentation, and training setup. For teaching a VLM safeguard on safety, we further create a multimodal safety dataset with high-quality human expert annotations, where each image is labeled with a safety rating, category, and rationale. We also employ advanced augmentations to support context-specific assessments. The resulting LlavaGuard models, ranging from 0.5B to 7B, serve as a versatile tool for evaluating the safety compliance of visual content against flexible policies. In comprehensive experiments, LlavaGuard outperforms both state-of-the-art safeguards and VLMs in accuracy and in flexibly handling different policies. Additionally, we demonstrate LlavaGuard's performance in two real-world applications: large-scale dataset annotation and moderation of text-to-image models. We make our entire framework, including the dataset, model weights, and training code.

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

↑