GuardAlign: Test-time Safety Alignment in Multimodal Large Language Models

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Zhu, Xingyu, Zhu, Beier, Fang, Junfeng, Wang, Shuo, Zhang, Yin, Wang, Xiang, He, Xiangnan
Format: Preprint
Veröffentlicht: 2026
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866914357819998208
author Zhu, Xingyu
Zhu, Beier
Fang, Junfeng
Wang, Shuo
Zhang, Yin
Wang, Xiang
He, Xiangnan
author_facet Zhu, Xingyu
Zhu, Beier
Fang, Junfeng
Wang, Shuo
Zhang, Yin
Wang, Xiang
He, Xiangnan
contents Large vision-language models (LVLMs) have achieved remarkable progress in vision-language reasoning tasks, yet ensuring their safety remains a critical challenge. Recent input-side defenses detect unsafe images with CLIP and prepend safety prefixes to prompts, but they still suffer from inaccurate detection in complex scenes and unstable safety signals during decoding. To address these issues, we propose GuardAlign, a training-free defense framework that integrates two strategies. First, OT-enhanced safety detection leverages optimal transport to measure distribution distances between image patches and unsafe semantics, enabling accurate identification of malicious regions without additional computational cost. Second, cross-modal attentive calibration strengthens the influence of safety prefixes by adaptively reallocating attention across layers, ensuring that safety signals remain consistently activated throughout generation. Extensive evaluations on six representative MLLMs demonstrate that GuardAlign reduces unsafe response rates by up to 39% on SPA-VL, while preserving utility, achieving an improvement on VQAv2 from 78.51% to 79.21%.
format Preprint
id arxiv_https___arxiv_org_abs_2602_24027
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle GuardAlign: Test-time Safety Alignment in Multimodal Large Language Models
Zhu, Xingyu
Zhu, Beier
Fang, Junfeng
Wang, Shuo
Zhang, Yin
Wang, Xiang
He, Xiangnan
Computer Vision and Pattern Recognition
Multimedia
Large vision-language models (LVLMs) have achieved remarkable progress in vision-language reasoning tasks, yet ensuring their safety remains a critical challenge. Recent input-side defenses detect unsafe images with CLIP and prepend safety prefixes to prompts, but they still suffer from inaccurate detection in complex scenes and unstable safety signals during decoding. To address these issues, we propose GuardAlign, a training-free defense framework that integrates two strategies. First, OT-enhanced safety detection leverages optimal transport to measure distribution distances between image patches and unsafe semantics, enabling accurate identification of malicious regions without additional computational cost. Second, cross-modal attentive calibration strengthens the influence of safety prefixes by adaptively reallocating attention across layers, ensuring that safety signals remain consistently activated throughout generation. Extensive evaluations on six representative MLLMs demonstrate that GuardAlign reduces unsafe response rates by up to 39% on SPA-VL, while preserving utility, achieving an improvement on VQAv2 from 78.51% to 79.21%.
title GuardAlign: Test-time Safety Alignment in Multimodal Large Language Models
topic Computer Vision and Pattern Recognition
Multimedia
url https://arxiv.org/abs/2602.24027