Skip to content

SafeCoDe: Regulating Multimodal Large Language Model Decoding for Context-Aware SafetySteering Multimodal Large Language Models Decoding for Context-Aware Safety

arXiv· arXiv:2509.19212· Zheyuan Liu, Zhangchen Xu, Guangyao Dou, Xiangchi Yuan, Zhaoxuan Tan, Radha Poovendran, Meng Jiang·Indexed by this site · 24 days ago· Originally publishedDefenses
AI summary

The researchers propose SafeCoDe, a lightweight, model-agnostic decoding framework that achieves context-aware safety by regulating multimodal large language model (MLLM) decoding. The framework first contrasts real images with Gaussian noise images to highlight tokens sensitive to visual context, then combines scene-level reasoning with token-level adjustment to adjust refusals according to predicted safety determinations. On multiple MLLM architectures and benchmarks covering under-sensitivity, over-sensitivity, and general safety evaluation, the method consistently improves context-sensitive refusal behavior while maintaining model helpfulness.

Read originalarxiv.org