Skip to content

Internal activation revision: Safeguarding vision-language models without updating parametersInternal Activation Revision: Safeguarding Vision Language Models Without Parameter Update

arXiv· arXiv:2501.16378· Qing Li, Jiahui Geng, Zongxiong Chen, Kun Song, Lei Ma, Fakhri Karray·Indexed by this site · 24 days ago· Originally publishedDefenses
AI summary

The researchers propose an internal activation revision method that revises the internal activations of vision-language models (VLMs) during generation, improving model safety without updating parameters. The paper finds that image inputs significantly shift the internal activations in the model's forward propagation, deviating them from the states triggered by text inputs, and the safety alignment of the large language model (LLM) embedded in the VLM is insufficient to handle this discrepancy, causing the model to be unable to resist even the simplest jailbreak attacks. The framework implements revision at both the layer and attention head levels, allowing control of model generation at different granularities, and combines three positive and negative sample construction strategies with two revision vector extraction methods to form multiple method variants. Experiments show that the method significantly improves the safety of various commonly used VLMs, reducing the attack success rate by an average of 48.94%, 34.34%, 43.92% and 52.98% on SafeBench, Safe-Unsafe, Unsafe and MM-SafetyBench, respectively, with little impact on model usefulness.

Read originalarxiv.org