When a large vision-language model answers a question about an image, it is doing two things at once: following the visual content, and staying inside the safety rules it was taught on text alone. These two jobs are known to come apart. A prohibited instruction can be typed into the image itself and read as pixels, bypassing text-side safety training with an 82.50% attack success rate across open-source models FigStep. An entirely benign photo paired with an entirely benign question can combine into a dangerous request that 13 of 15 tested models failed to refuse Safe Inputs but Unsafe Output. And a Trojan planted in a model's architecture code can switch off safety checks on a secret trigger while leaving clean accuracy untouched Architectural Backdoors in Vision-Language Model Supply Chains via Representation Steering. Meanwhile, a separate line of work has shown that the mathematics used to detect whether a piece of text was memorized during training (membership inference) and the mathematics used to detect whether text was machine-generated are, by the Neyman–Pearson lemma, the same mathematics: both are optimally a likelihood ratio between the model's distribution and the human-text distribution Machine Text Detectors are Membership Inference Attacks. That unification is strictly text-only and has never touched safety, backdoors, or images.
This proposal takes the unified likelihood-ratio view across the modality boundary and asks a question nobody has asked: when a multimodal model abandons its safety alignment, does the text it emits carry a readable statistical fingerprint? The existing clues point yes — jailbroken responses show unusually low perplexity, i.e. confident, fluent decoding FigStep, and backdoored multimodal models show abnormally stable confidence that ignores input perturbations Probing Semantic Insensitivity for Inference-Time Backdoor Defense in Multimodal Large Language Model — but no one has audited these signatures with calibrated likelihood ratios, and no one knows how to calibrate the reference distribution when generation is conditioned on an image. We propose to build that calibration and turn it into a black-box auditor: a detector that reads only the input image, the prompt, and the emitted tokens — no weights, no hidden states, no labeled attack examples — and flags responses that came from an unaligned decoding state, whether that state was induced by a typographic jailbreak, a cross-modal "safe + safe = unsafe" trap, or an architectural backdoor.
Core Claim
The audited quantity is not whether the output is harmful in content — that is a job for a classifier, and it fails when the payload wording is benign — but whether the output came from a decoding state that ignored the safety policy. We claim this state is visible in two per-response statistics. The first is the grounding ratio: how much the image inflates the model's confidence in its own words, measured as the gap between the model's image-conditioned token likelihoods and those of an unconditioned reference language model of comparable scale. The second is conditioning sensitivity: how much that confidence changes when the image is swapped for neutral or perturbed versions. Genuinely image-grounded answers should show high grounding and high sensitivity; canned refusals should show low grounding (refusal templates barely depend on the picture); and the hypothesis under test is that safety failures occupy distinguishable regions of this plane, with jailbroken compliance (which follows visual content) and trigger-driven compliance (which ignores visual content, per the semantic-insensitivity phenomenon) landing in different quadrants — a mechanism-level separation that a single scalar cannot give.
Two Statistics, One Open Calibration Question
Let $P_\theta(x_t \mid x_{<t}, I)$ be the audited vision-language model's probability of token $x_t$ given the preceding tokens $x_{<t}$ and image $I$, and let $P_{\mathrm{ref}}(x_t \mid x_{<t})$ be a reference language model that never sees the image. For a response of length $T$, the grounding ratio is
$$\Lambda(x, I) \;=\; \frac{1}{T}\sum_{t=1}^{T}\Big[\log P_\theta(x_t \mid x_{<t}, I) \;-\; \log P_{\mathrm{ref}}(x_t \mid x_{<t})\Big],$$
a conditional-generation generalization of the two-model contrastive score that Binoculars introduced for machine-text detection Spotting LLMs With Binoculars: Zero-Shot Detection of Machine-Generated Text. The conditioning sensitivity is
$$\Sigma(x, I) \;=\; \mathrm{Var}_{\tilde{I} \sim \mathcal{N}(I)}\Big[\tfrac{1}{T}\textstyle\sum_t \log P_\theta(x_t \mid x_{<t}, \tilde{I})\Big],$$
where $\mathcal{N}(I)$ is a small set of image substitutions — a blank image, a random image, and mild pixel perturbations of $I$ — chosen because even a blank image is known to shift aligned models' refusal behavior Images are Achilles' Heel of Alignment: Exploiting Visual Vulnerabilities for Jailbreaking Multimodal Large Language Models. The calibration question, left open by the unimodal theory of Machine Text Detectors are Membership Inference Attacks, is what the null should be: we will compare three candidates — an unconditioned reference model, a smaller multimodal reference model $P_{\mathrm{ref}}(x_t \mid x_{<t}, I)$, and a self-null in which the audited model itself is rerun on a blank image. One honesty note inherited from that paper: variance-based statistics like $\Sigma$ do not fit its Gaussian likelihood-ratio optimality framework, so we treat $\Sigma$ as an auxiliary axis whose value is empirical, not as a claim of optimality.
Research Program
The program has three parts. First, a measurement study: we map responses from safe, jailed, and triggered model states into the $(\Lambda, \Sigma)$ plane under each of the three null calibrations, establishing where each failure mode actually lands rather than assuming it. Second, we test whether an attack-agnostic auditor — a simple region classifier fit on the plane using only one attack family, then applied zero-shot to the others — separates unsafe states from safe compliant answers and from refusals. The evaluation standard follows the privacy-auditing convention of reporting true positive rates at very low false-positive rates, at or below 1%, rather than balanced accuracy, because an auditor that flags many innocent answers will be switched off Membership Inference Attacks From First Principles. Third, we test the auditor against the hardest target in the file: trigger-gated representation steering Architectural Backdoors in Vision-Language Model Supply Chains via Representation Steering, whose own defense requires internal hidden-state access, answering whether these backdoors leave an external footprint at all. The relation to prior probing work is one of inversion, not duplication: Trap on Text perturbs the text prompt and watches confidence to catch targeted label-flipping backdoors Probing Semantic Insensitivity for Inference-Time Backdoor Defense in Multimodal Large Language Model, while we perturb the image and use token-level likelihood ratios, which is necessary precisely for attacks like FigStep where the text side is benign by construction. BDetCLIP showed contrastive prompting detects CLIP backdoors at 0.938 AUROC Test-Time Multimodal Backdoor Detection by Contrastive Prompting, but it is restricted to dual-encoder classification and cannot audit open-ended generative models at all.
Baselines
The do-nothing reference point is the deployed model with no output-side audit: its detection rate is zero by construction, and its known failure level is the benchmark floor — on SIUO, 13 of 15 models scored below a 50% safe rate with the best (GPT-4V) at 53.26% Safe Inputs but Unsafe Output. The simplest real baseline is a global perplexity threshold on the response under the audited model alone; this is the classic approach that calibration was invented to fix, since common phrasing gets low loss everywhere and unusual phrasing gets high loss even when memorized To Trust or Not To Trust Prediction Scores for Membership Inference Attacks, and contrastive methods dominate it in the unified evaluation Machine Text Detectors are Membership Inference Attacks. No reported result found on Lacuna for a perplexity-only number on any of the multimodal safety benchmarks, so we will run it ourselves under the same data and tuning budget. The strongest existing competitor is BEAT, the black-box probe-concatenation defense for backdoor unalignment, which reports 99.6% AUROC across Llama-3, Mistral-7B, and GPT-3.5-turbo and over 96% AUROC on jailbreaks treated as natural backdoors Probe before You Talk: Towards Black-box Defense against Backdoor Unalignment for Large Language Models. BEAT is text-only, so we will run a faithful multimodal adaptation — caption the image, then apply its probe and Earth-Mover's-Distance test to the caption-augmented prompt — on identical data, with thresholds tuned on the same disjoint development split and the same per-response generation budget. Beating BEAT means higher TPR at FPR at or below 1% on cross-modal attacks it was never designed for, at lower latency, since its probe demands an extra sampling pass. For the backdoor experiments we also run Trap on Text's text-perturbation test, which reduced attack success to 0.00% on ScienceQA with LLaVA under BadNet at 90.22% clean performance Probing Semantic Insensitivity for Inference-Time Backdoor Defense in Multimodal Large Language Model in its original targeted-VQA setting; BDetCLIP cannot be run on generative models and serves only as a reported-performance reference point. Finally, the key ablation isolates our ingredient: plain unimodal Binoculars applied to vision-language model outputs, scoring the response against a reference language model with no conditioning and no image substitutions. If that ablation matches the full auditor, the multimodal calibration is unjustified and the simpler method should win — we will say so.
Why not just…?
Why not just fine-tune a harmful-content classifier on the outputs? This is the most serious alternative, and for overtly toxic FigStep-style content it may well suffice. It falls short in the cases this proposal targets: backdoor unalignment follows whatever instruction accompanies the trigger, so the payload can be benignly worded, and a supply-chain backdoor can even force refusals, which no toxicity classifier flags. Perplexity-style output filters already failed against semantic triggers in BEAT's evaluation Probe before You Talk, and supervised filters need labels per attack family. The decisive experiment is built in: tune the classifier on one attack family and test zero-shot transfer to the others, exactly as we do for our auditor; if it transfers as well, it wins on simplicity and we will report that.
Why not just run BEAT on a caption of the image? We include it as our strongest baseline rather than argue around it. It should struggle where the payload never becomes text — continuous adversarial perturbations On the Adversarial Robustness of Multi-Modal Foundation Models and representation steering live in pixel and hidden-state space — and FigStep's own authors found OCR-style extraction defenses largely ineffective, suggesting the caption route is weak even for typographic attacks. But if the captioned BEAT matches us on SafeBench, the honest conclusion is that captioning plus probing is the cheaper system for that regime, and our claim narrows to the latent-payload regimes.
Why not just threshold the response's perplexity? Cited evidence says this fails on heterogeneous data: intrinsic sample difficulty makes absolute loss meaningless To Trust or Not To Trust Prediction Scores for Membership Inference Attacks, and the unified MIA/detection evaluation shows single-model likelihood is consistently beaten by contrastive scoring Machine Text Detectors are Membership Inference Attacks. We still run it as the naive baseline; if it somehow wins on multimodal safety data, that is itself a finding about how weak the safety signal is.
Why not just OCR every input image? FigStep explicitly evaluated OCR detection as a defense and found it largely ineffective, alongside system-prompt hardening and noise injection FigStep. It also offers zero coverage of photographic traps like SIUO, where no text is in the image at all, and of steering backdoors, where the trigger is a pixel pattern. Our auditor is output-side by design so it does not depend on recognizing the trigger's form.
Proposed Experiments
Experiment one maps the signature plane on three public benchmarks: SafeBench's 500 harmful questions across 10 topics FigStep, SIUO's 269 verified cross-modal cases Safe Inputs but Unsafe Output, and the Safe-Image/Safe-Text split of USB, available as USB on Hugging Face, where open models like VILA and LLaVA score above 80% attack success USB: A Comprehensive and Unified Safety Evaluation Benchmark for Multimodal Large Language Models. We generate matched triples per query — the response actually produced under attack, a safe compliant answer to a benign variant, and a genuine refusal — on open-source models named in these benchmarks (LLaVA, MiniGPT-4, CogVLM, VILA), compute $(\Lambda, \Sigma)$ under each null calibration, and report cluster separation. Experiment two replicates trigger-gated representation steering on an open vision-language model following the published setup (nearly 100% attack success rate on VQA with 0% clean-accuracy impact) Architectural Backdoors, and tests whether the black-box plane separates triggered from clean outputs, benchmarked against the paper's white-box Isolation Forest defense; this is the decisive test of whether supply-chain backdoors leave any external footprint. Experiment three is the transfer matrix: fit the auditor's decision regions on FigStep data only, then evaluate zero-shot on SIUO, USB-SIST, and the steering attack, reporting AUROC and TPR at 1% and 0.1% FPR, with the same protocol applied to the harmful-content classifier and captioned BEAT so the comparison is symmetric. Experiment four measures the cost side: auditor flag rate on USB's harmless-prompt split, where the safest deployed model, Claude 3.5 Sonnet, still over-refused 25.82% of benign requests USB — our auditor flags for human review rather than refusing, so its false-positive cost is a review queue, not a denied user — plus per-response latency, where the efficiency precedent is BDetCLIP's 3.8 minutes versus 253 minutes for STRIP on 50,000 samples Test-Time Multimodal Backdoor Detection by Contrastive Prompting. As an implementation sanity check, we first validate our scoring code by reproducing Binoculars-style behavior on MIMIR and RAID via the unified evaluation of Machine Text Detectors are Membership Inference Attacks; no reported per-domain numbers for Binoculars on those benchmarks were found on Lacuna, so the check is qualitative consistency, not numeric matching. The decisive checks are three: whether jailbreak compliance and trigger compliance land in genuinely different regions of the $(\Lambda, \Sigma)$ plane, confirming mechanism-level separation; whether zero-shot transfer across attack families beats both the supervised classifier and captioned BEAT at low FPR; and whether the auditor catches representation-steering backdoors without any internal access — a question the literature has left completely unanswered.
References
- $\mathsf{FigStep}$ : Jailbreaking Large Vision-Language Models via Typographic Visual Prompts
- Safe Inputs but Unsafe Output: Benchmarking Cross-modality Safety Alignment of Large Vision-Language Models
- Architectural Backdoors in Vision-Language Model Supply Chains via Representation Steering
- Machine Text Detectors are Membership Inference Attacks
- Probing Semantic Insensitivity for Inference-Time Backdoor Defense in Multimodal Large Language Model
- Spotting LLMs With Binoculars: Zero-Shot Detection of Machine-Generated Text
- Images are Achilles' Heel of Alignment: Exploiting Visual Vulnerabilities for Jailbreaking Multimodal Large Language Models
- Membership Inference Attacks From First Principles
- Test-Time Multimodal Backdoor Detection by Contrastive Prompting
- To Trust or Not To Trust Prediction Scores for Membership Inference Attacks
- Probe before You Talk: Towards Black-box Defense against Backdoor Unalignment for Large Language Models
- On the Adversarial Robustness of Multi-Modal Foundation Models
- USB: A Comprehensive and Unified Safety Evaluation Benchmark for Multimodal Large Language Models