Immune: Improving Safety Against Jailbreaks in Multi-modal LLMs via Inference-Time Alignment

Soumya Suvra Ghosal, Souradip Chakraborty, Vaibhav Singh, Tianrui Guan, Mengdi Wang +5 more
2/9/2026

No official code found. Best implementation: itsvaibhav01/Immune (28 stars, last commit 2025-06-11). 1 more below.

Abstract

With the widespread deployment of Multimodal Large Language Models (MLLMs) for visual-reasoning tasks, improving their safety has become crucial. Recent research indicates that despite training-time safety alignment, these models remain vulnerable to jailbreak attacks. In this work, we first highlight an important safety gap to describe that alignment achieved solely through safety training may be insufficient against jailbreak attacks. To address this vulnerability, we propose Immune, an inference-time defense framework that leverages a safety reward model through controlled decoding to defend against jailbreak attacks. Additionally, we provide a mathematical characterization of Immune, offering insights on why it improves safety against jailbreaks. Extensive evaluations on diverse jailbreak benchmarks using recent MLLMs reveal that Immune effectively enhances model safety while preserving the model’s original capabilities. For instance, against text-based jailbreak attacks on LLaVA-1.6, Immune reduces the attack success rate by 57.82% and 16.78% compared to the base MLLM and state-of-the-art defense strategy, respectively.

View on arXivView PDF

Code Implementations(2)

[CVPR2025] Official Repository for IMMUNE: Improving Safety Against Jailbreaks in Multi-modal LLMs via Inference-Time Alignment

281Shell, PythonNov 21, 20241 years ago
aiai-safetyjailbreakllmmultimodal+1 more

Improving Safety Against Jailbreaks in Multi-modal LLMs via Inference-Time Alignment

00CSS, TeXNov 21, 20241 years ago
alignmentdefencejailbreakllmmllm+2 more

Similar Papers

Cite this paper

@article{ghosal2026immune,
  title  = {Immune: Improving Safety Against Jailbreaks in Multi-modal LLMs via Inference-Time Alignment},
  author = {Soumya Suvra Ghosal and Souradip Chakraborty and Vaibhav Singh and Tianrui Guan and Mengdi Wang and Ahmad Beirami and Furong Huang and Alvaro Velasquez and Dinesh Manocha and A. S. Bedi},
  year   = {2026},
  eprint = {2411.18688},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2411.18688},
  journal = {CVPR 2024 2024}
}

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/2411.18688.svg)](https://codeofpaper.com/paper/2411.18688)

Discussion