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

模型是否共享安全表示?面向安全视觉生成的跨模型引导

Do Models Share Safety Representations? Cross-Model Steering for Safe Visual Generation

University of Modena and Reggio Emilia(摩德纳和雷吉奥艾米利亚大学);University of Pisa(比萨大学);Amazon Prime Video(亚马逊prime视频)

Tobia Poppi, Silvia Cappelletti, Sara Sarto, Florian Schiffers, Garin Kessler, Marcella Cornia, Lorenzo Baraldi, Rita Cucchiara

AI总结:

本文提出首个跨模型安全引导框架,通过源语言模型估计安全方向并迁移至目标生成器,无需目标侧不安全数据即可实现安全控制,且不牺牲生成质量。

摘要:

生成建模的最新进展使安全控制成为核心挑战,但现有方法大多针对特定模型,需要为每种新架构重新训练或定制干预。在这项工作中,我们探究安全是否可以被表示为一种可移植的潜在方向,一次性学习并在异构生成器之间重用。我们引入了首个跨模型安全引导框架,其中从成对的安全-不安全提示中在源大语言模型中估计安全方向,通过仅在良性数据上拟合的轻量级对齐传输到目标生成器,并在推理时应用。关键的是,我们的流程从未访问目标侧的不安全数据,从而隔离了安全是否可以通过共享表示几何进行转移。除了单个全局方向,我们还识别了一种多向量扩展,捕获类别特定的安全行为,实现更具选择性的控制。我们在文本到图像和文本到视频生成中评估了我们的方法,跨越不同的源-目标模型对。跨模型转移的安全方向实现了与在目标模型上使用不安全数据本地学习的方向相当的ASR降低和CLIP-Score/FID权衡,同时不需要目标侧的不安全数据。这表明安全改进不以生成质量为代价。我们的结果指向了一种模块化的安全观:安全相关行为并非纯粹模型局部,而是可以通过跨模型持续的潜在方向进行控制。这为轻量级、可重用的安全机制开辟了新路径,且无需目标侧不安全数据。

英文摘要:

Recent progress in generative modeling has made safety control a central challenge, yet existing approaches remain largely model-specific, requiring retraining or tailored interventions for each new architecture. In this work, we ask whether safety can be represented as a portable latent direction, learned once and reused across heterogeneous generators. We introduce the first framework for cross-model safety steering, in which a safety direction is estimated in a source LLM from paired safe-unsafe prompts, transported to a target generator through a lightweight alignment fitted on benign data alone, and applied at inference time. Crucially, our pipeline never accesses unsafe data on the target side, isolating whether safety can be transferred through shared representation geometry. Beyond a single global direction, we also identify a multi-vector extension that captures category-specific safety behaviors, enabling more selective control. We evaluate our approach in text-to-image and text-to-video generation across diverse source-target model pairs. Across models, transferred safety directions achieve ASR reduction and CLIP-Score/FID trade-offs comparable to directions learned natively on the target model using unsafe data, while requiring no target-side unsafe data. This indicates that safety improvements do not come at the expense of generation quality. Our results point to a modular view of safety: safety-relevant behavior is not purely model-local, but can be controlled through latent directions that persist across models. This suggests a new path toward lightweight, reusable safety mechanisms that do not require target-side unsafe data.

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

↑