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

Wenzheng Jiang, Xuankun Rong, Yuanzhao Zhai, Dawei Feng, Huaimin WangarXiv 2026

TL;DR

ReFrame is a training-free, test-time safety framework designed to protect black-box Multimodal Large Language Models (MLLMs) from cross-modal jailbreaks and oversensitivity. By leveraging a lightweight, locally deployed MLLM, ReFrame decouples incoming requests into distinct "risk" and "utility" cards, structurally rewriting prompts and routing images to ensure safe execution without sacrificing model utility.

What Problem Does This Paper Address?

Aligning MLLMs for safety is notoriously difficult because harmful intent often emerges from the complex interaction between text and images, rather than from a single modality in isolation. Current safety alignment techniques generally fall into two categories, both of which face severe practical bottlenecks:

  1. Training-time fine-tuning: Extremely costly to maintain and too slow to adapt to newly emerging zero-day exploits.
  2. Internal-state inspection: Relies on accessing gradients, attention maps, or hidden states—information completely hidden from users interacting with commercial black-box APIs like GPT-4 or Gemini.

Furthermore, existing methods struggle with a safety-utility imbalance, frequently resulting in over-refusal (blocking benign requests that happen to mention sensitive topics like medicine or chemistry).

Figure 1: Limitations of existing multimodal safety alignment methods, highlighting the necessity of black- box approaches at test time.

The authors identify two core cognitive obstacles inherent to MLLMs that cause these vulnerabilities:

  • Utility Dominance: MLLMs are fundamentally optimized to be helpful. When a prompt contains an explicit surface task, this utility objective can completely overshadow implicit safety constraints, causing the model to overlook latent risks.
  • Reasoning Inertia: Due to their autoregressive nature, once an MLLM is tricked by a "jailbreak wrapper" into generating the first few tokens of a malicious trajectory, it experiences an inertia that reinforces compliance and weakens its internal safety guardrails.

Methods

To counter these obstacles without modifying or inspecting the downstream black-box MLLM, the authors introduce ReFrame, a test-time input transformation pipeline driven by two cooperative agents sharing a lightweight, locally deployed MLLM (such as Qwen3VL-8B-Instruct).

Figure 3: Overall pipeline of ReFrame. Given a multimodal input, the evidence-generation agent first generates a risk card and a utility card (Section 4.1). The rewrite-and-routing agent then synthesizes the cards into a safe proxy prompt and an image-routing decision before calling the downstream MLLM (Section 4.2).
  1. Evidence-Generation Agent: This agent analyzes the joint text-image request and splits its findings into two complementary profiles:
  2. Risk Card: Identifies the true underlying intent, isolates the unsafe core, and outlines an abstract rewrite plan.
  3. Utility Card: Pinpoints the benign task goals, extracts reusable context, and creates a sanitized textual "visual projection" of the image.
  4. Rewrite-and-Routing Agent: This agent compiles the cards to make structural adjustments before the request ever hits the downstream black-box API. If a risk is detected, it strips away adversarial rules and rewrites the prompt toward a safe, adjacent objective (e.g., shifting a request on "how to hack a bank" into a educational prompt about "how to safeguard a bank account").
  5. Image Routing: Crucially, the framework also decides whether to forward the original image. Withholding the image prevents adversarial visual features from triggering unsafe compliance, while utilizing the text-based visual projection preserves necessary context.

Datasets

The authors evaluated ReFrame across a diverse suite of benchmarks to test safety, awareness, and standard utility:

  • Jailbreak Defense: MM-SafetyBench, MML-mirror, and MML-base64 (focusing on deeply concealed or obfuscated multimodal attacks).
  • Safety Awareness: SIUO (evaluating real-world situational safety risks).
  • Oversensitivity: MOSSBench (measuring how often a model incorrectly refuses benign prompts).
  • Normal Utility: POPE (for visual hallucination assessment) and MMMU (covering Math, Physics, and Computer Science subsets to evaluate high-level reasoning).

Key Insights and Ideas

  • Make Safety Part of Utility: The core fix for Utility Dominance is to stop treating safety as an implicit constraint. By explicitly rewriting safety requirements directly into the prompt as a core objective, the model's natural drive to be helpful is redirected toward generating a safe response.
  • Disrupting Trajectories Early: To defeat Reasoning Inertia, defenses must intervene before token generation begins. Stripping out adversarial formatting and complex rules breaks the chain of logic that jailbreakers rely on to force compliance.
  • The Power of the Dual-Card Design: Separating risk evaluation from utility preservation prevents the defense from becoming overly defensive. The risk card determines what to remove, while the utility card explicitly outlines what can safely be kept, maintaining a high standard of helpfulness.

Key Results

ReFrame was validated against prominent black-box models including GPT-4, Gemini-3-Flash, and Qwen3.5-Flash, consistently outperforming existing test-time baselines like Self-Reminder and ECSO.

  • Jailbreak Mitigation: On the highly challenging MML-mirror benchmark, ReFrame raised GPT-4's safety score from a baseline of 23.36 to 99.80, while simultaneously boosting its utility score from 49.56 to 98.72.
  • Oversensitivity Reduction: ReFrame successfully mitigated over-refusal tendencies on MOSSBench, maintaining high safety while ensuring benign requests were fulfilled.
  • Utility Preservation: Unlike rigid image-to-text conversion methods that tank performance on complex reasoning tasks, ReFrame actually improved average accuracy on normal benchmarks (like MMMU and POPE) from 37.28 to 45.95 on GPT-4, acting as a task clarifier.
  • Efficiency: ReFrame achieves this balance with a modest runtime overhead of 0.84 seconds per sample on a single A100 GPU, making it significantly faster than heavier multi-stage verification systems.

Limitations and Future Work

While highly effective, ReFrame's primary limitation is its dependence on the local lightweight MLLM. If the local model misreads visual text or fails to catch a subtle image-grounded risk, the downstream rewrite plan will be flawed. Additionally, the current implementation primarily targets static, single-turn interactions; adaptive, multi-turn conversational attacks remain an open challenge.

The authors suggest that future iterations could replace fixed agent prompts with self-evolving prompts to better counter adaptive adversaries.

Summary updated

BibTeX
@misc{jiang2026reframe,
  author = {Wenzheng Jiang and Xuankun Rong and Yuanzhao Zhai and Dawei Feng and Huaimin Wang},
  title = {{ReFrame: Evidence-Guided Test-Time Safety Alignment in Multimodal Large Language Models}},
  year = {2026},
  eprint = {2608.21100},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2608.21100},
}
Figure