Skip to content

Steering Multimodal Large Language Models Decoding for Context-Aware Safety

Sep 2025 · arXiv.org · Vol abs/2509.19212 · 6 citations · 81 references
Computer Science

TL;DR

Safety-aware Contrastive Decoding (SafeCoDe) is introduced, a lightweight and model-agnostic decoding framework that dynamically adjusts token generation based on multimodal context that consistently improves context-sensitive refusal behaviors while preserving model helpfulness.

Abstract

Multimodal Large Language Models (MLLMs) are increasingly deployed in real-world applications, yet their ability to make context-aware safety decisions remains limited. Existing methods often fail to balance oversensitivity (unjustified refusals of benign queries) and undersensitivity (missed detection of visually grounded risks), leaving a persistent gap in safety alignment. To address this issue, we introduce Safety-aware Contrastive Decoding (SafeCoDe), a lightweight and model-agnostic decoding framework that dynamically adjusts token generation based on multimodal context. SafeCoDe operates in two stages: (1) a contrastive decoding mechanism that highlights tokens sensitive to visual context by contrasting real and Gaussian-noised images, and (2) a global-aware token modulation strategy that integrates scene-level reasoning with token-level adjustment to adapt refusals according to the predicted safety verdict. Extensive experiments across diverse MLLM architectures and safety benchmarks, covering undersensitivity, oversensitivity, and general safety evaluations, show that SafeCoDe consistently improves context-sensitive refusal behaviors while preserving model helpfulness.

View source

Similar papers

Preprint Aug 2026

ReFrame: Evidence-Guided Test-Time Safety Alignment in Multimodal Large Language Models

ReFrame is a training-free multimodal input reframing framework where two agents share a lightweight locally deployed MLLM: the evidence-generation agent constructs complementary risk and utility evidence, and the rewrite-and-routing agent converts it into a safe proxy prompt and image-routing decision before calling t...

Wenzheng Jiang, Xuan-Kun Rong, Yuan-Zhao Zhai et al. · 0 citations
#artificial intelligence Preprint Sep 2026

Transfer Safety Awareness for Cross-Modal Safety Drift in Multimodal Large Language Models

Motivated by the observation that safety signals from unsafe text processing can be transferred, safety-awareness representation transfer (SRT) is proposed, a lightweight direction-refinement method that mitigates cross-modal safety drift with a frozen MLLM backbone.

Tian-Qi Xiao, Shiyao Cui, Ming-Hao Zhang et al. · 0 citations
Preprint Aug 2026

COMIC: Reference-Aware Safety Gating for Multimodal Large Language Models

It is suggested that multimodal safety cannot be enforced reliably without modeling the requested operation, the visual target to which it applies, and the confidence of that grounding.

Md Abdullahil Oaphy, Anhao Xiang, Zongxing Xie et al. · 0 citations
Preprint Sep 2026

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

This work proposes a streaming recognition and gated LoRA framework for intrinsic VLM safety, which is trained from unsafe prefixes, transition statements, and safe continuations, so that it learns to redirect unsafe generations back to safe responses after activation.

Cao-Yuan Ma, Tian Gu, Wen-Pu Liu et al. · 0 citations
Preprint Aug 2026

MMAligner: Safeguarding Multimodal Large Language Models through Representation Calibration

Experiments show that MMAligner raises the average refusal rate on unsafe multimodal inputs to 99% with less than 2% utility degradation and minimal training data, substantially improving the safety-utility trade-off over existing baselines.

Shenyi Zhang, Keyan Guo, Zihao Wang et al. · 1 citation
Preprint Aug 2026

BabelSteering: Multilingual Safety Alignment via English Steering Vectors

The findings suggest that activation steering may provide a practical, low- cost mechanism for extending English-derived safety signals to other languages, and introduce a multilingual translation-and-evaluation pipeline to facilitate future work on cross-lingual safety interventions.

Emma V. Stein, Dominik Meier, T. Ruas et al. · 1 citation

Related blog posts

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.