SafeRI: Recognition and Intervention for Token-Level Safety Intervention in Large Vision Language Models

Caoyuan Ma, Tian Gu, Wenpu Liu, Weichu Xie, Shuai Dong +9 more
9/3/2026
cs.CV
lora-peft-merging

No confident code implementation found for this paper. 3 possible matches can be shown below.

Abstract

Existing safety alignment methods for vision-language models usually modify the model behavior globally: once the safety parameters are trained or loaded, they participate in both unsafe and already-safe generations. This always-on intervention can unnecessarily perturb the model's original reasoning path and degrade general multimodal capabilities.

Show full abstract

We argue that safety alignment should be an on-demand intervention rather than a permanent modification to every decoding trajectory. To this end, we propose a streaming recognition and gated LoRA framework for intrinsic VLM safety. During autoregressive generation, a lightweight recognizer estimates whether the current pre-token generation state is safe or unsafe. Its output updates the LoRA gate for the following decoding step; otherwise, generation follows the frozen-backbone policy. The LoRA module is trained from unsafe prefixes, transition statements, and safe continuations, so that it learns to redirect unsafe generations back to safe responses after activation. Experiments across multiple safety and general-purpose benchmarks demonstrate the effectiveness of our method in post-alignment settings.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 3 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{ma2026saferi,
  title  = {SafeRI: Recognition and Intervention for Token-Level Safety Intervention in Large Vision Language Models},
  author = {Caoyuan Ma and Tian Gu and Wenpu Liu and Weichu Xie and Shuai Dong and Yuqi Xu and Ji Zhao and Ziyue Wang and Wenzheng Chang and Taiqiang Wu and Yongfu Zhu and Wenqi Shao and Zheng Wang and Yinqiang Zheng},
  year   = {2026},
  eprint = {2609.03544},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2609.03544v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2609.03544.svg)](https://codeofpaper.com/paper/2609.03544)

Discussion