Skip to content

Posterior reweighting framework explains and mitigates contextual jailbreaks in multimodal large modelsUnderstanding In-Context Multimodal Jailbreaks via Posterior Reweighting

arXiv: Jailbreaks, Prompt Injection, Poisoning & Defenses· arXiv:2609.10613· Xu Zhang, Dev Mistry, Xiang Xu, Ren Wang·Indexed by this site · 2026-10-01· Originally publishedAttacks

Translation in progress — untranslated text is omitted.

Quick read

Defenses

Based on the paper PDF (AI-generated); refer to the original

AI summaryThe paper proposes a posterior reweighting framework that models safety-aligned multimodal large language models (MLLMs) as competing between safe and harmful behavior modes, treats harmful examples in the context as inference-time evidence, and dynamically changes the model's posterior preference for the two types of behavior. This perspective formalizes jailbreaks as an evidence accumulation process and gives predictable scaling laws with respect to the number of examples, harmful proportion, adversarial strength, and semantic diversity. Based on this, the authors propose a posterior-aware inference-time defense that adaptively injects benign counter-evidence according to estimated risk, suppressing harmful posterior drift under a fixed intervention budget while maintaining model utility, achieving a better robustness–utility trade-off compared with existing context defenses. The authors state that this framework can provide a unified understanding and mitigation of in-context learning jailbreaks in MLLMs.

Questions
Safety-aligned multimodal large models can be induced to output unsafe content at inference time by harmful examples in the context, but existing work lacks mechanistic explanations of how success rates vary with context composition, and inference-time defenses often sacrifice utility.
Methods
View the aligned model as a mixture of safe and harmful latent generation modes, treat context examples as evidence that updates the posterior, and derive scaling laws that vary with the number of examples, harmful proportion, adversarial strength, and semantic diversity. The defense is gated by a harmfulness detector and injects benign examples as counter-evidence only in the uncertain risk interval.
Experiments and results
ASR increases monotonically with k, r, perturbation strength, and number of categories m, and maintains the same trend in multi-turn and holdout configurations; the overall RMSE on the holdout set is 3.54%. On Qwen3-VL-8B, the gated defense achieves lower ASR than ICD, unconditional injection, AdaShield, and ECSO, with a Utility of 71.5.
Limitations and future work
The authors state that harmful contexts with high semantic diversity and stronger adaptive attacks remain difficult to control via inference-time control. Experiments cover image, text, and mixed attacks, as well as adaptive black-box attacks against detectors; latency overhead is 17.6% on Qwen3-VL-2B and 9.4% on 30B-A3B.

Related papers

Show 3 more papers
Read originalarxiv.org