When a text-only language model is turned into a vision-language model, a small trained module called the connector is bolted on. It translates image features into the language model's input space. The model's safety training does not reliably survive this step. On MM-SafetyBench, LLaVA-1.5-7B answers 5.25% of harmful "illegal activity" requests when they arrive as text, but 79.38% when the same request is printed into an image (MM-SafetyBench). Nobody knows how much of this failure comes from the connector's design and how much from the base model. The reason is cost. Finding out means training many connectors and then running behavioral safety evaluations on each. A behavioral evaluation is only meaningful once the connector is trained well enough that the model can actually read the image.
We propose a cheap signal, measured early in connector training, that predicts each candidate's eventual cross-modal safety. It needs only forward passes and no text generation. The signal is built from a known fact about safety-tuned language models: their refusals are carried by a single direction in their hidden states (Refusal in Language Models Is Mediated by a Single Direction). We measure how much of that refusal direction a harmful request still triggers when it comes in through the image instead of through text. If this "refusal transfer ratio," read off at a small fraction of training, ranks connectors by their final attack success rate, then safety can become a first-class criterion when choosing connectors. It would cost little more than the utility screening labs already do. The study also answers a question no one has measured: whether connector choice matters for safety at all.
Core Claim
The claim has two parts, and either can fail. The first part is about the world. Under a matched training recipe, connector design choices produce substantial spread in cross-modal attack success rate. These choices include the connector type, how many visual tokens it emits, its depth, and how much text-only safety data is mixed into connector training. The second part is about method. A representation-level score computed on the base language model's own refusal direction ranks these connectors more faithfully early in training than either behavioral attack success rate measured at the same checkpoint or generic training-free architecture-ranking scores.
Several studies motivate the bet. Transfer Safety Awareness for Cross-Modal Safety Drift shows that the middle-layer refusal machinery stays quiet when harm is conveyed visually. In its examples, visual danger cues receive under 3% of attention mass, against 16% for explicit harmful words. That paper treats the architecture as a black box and repairs the problem after the fact. When Think-with-Image Meets Safety shows that how an image enters the computation shifts hidden states toward a safety-relevant direction: a linear safety readout's AUC rises from 0.850 to 0.942. Its lever is an inference-time reasoning procedure, not a trainable module. We turn both observations into a measurement over connector designs.
The Score
Let $r_\ell$ be the refusal direction at layer $\ell$ of the frozen base language model. Following Refusal in Language Models Is Mediated by a Single Direction, it is the normalized difference between mean hidden states on harmful and harmless text prompts. For a paired set of harmful requests, each request appears as plain text $x^{t}$ and as an image-mediated version $x^{v}$. The image versions include typographic renderings, generated images, and image-plus-benign-text compositions. Write $h_\ell(\cdot)$ for the hidden state at the last prompt position and $b_\ell$ for the mean projection on matched benign inputs. The refusal transfer ratio for a candidate connector is
$$ \mathrm{RTR}_\ell = \frac{\mathbb{E}\left[\langle h_\ell(x^{v}), r_\ell\rangle\right] - b_\ell^{v}}{\mathbb{E}\left[\langle h_\ell(x^{t}), r_\ell\rangle\right] - b_\ell^{t}}. $$
A ratio near 1 means the image route triggers as much refusal signal as the text route. A ratio near 0 means the connector bypasses the refusal machinery. Because the language model is frozen, $r_\ell$ and the text-side denominator are computed once and shared by every candidate. Each candidate therefore needs only a few hundred forward passes on image inputs. The layer $\ell$ is chosen once, on the base model, using the layer-scaling probe of Layer-Aware Representation Filtering. That method finds the "safety-sensitive" layers of a text model by scaling each layer's weights and watching refusal behavior change. It was demonstrated on Llama 3 and 3.1 text models only, and its authors list multimodal models as future work. This study supplies part of that.
Compositional harm is a known weak spot. In SIUO-style cases, text and image are each benign, so there is no natural text twin. We construct the text twin by writing out the joint meaning in words. We report the score's accuracy on these cases separately, because we expect it to be weaker there.
Research Program
The first deliverable is a ground-truth table that does not yet exist. It covers a few dozen connectors, each fully trained under one recipe and each scored on safety and utility. We fix the vision encoder (CLIP ViT-L/14) and the language model (a safety-tuned 7B chat model), as in the connector study To Preserve or To Compress. That paper compared linear, two-layer MLP, average-pooling, Q-Former, and C-Abstractor connectors on perception and reasoning. It found, for example, 66.43% versus 54.09% fine-grained perception accuracy for MLP versus Q-Former. It measured no safety at all, and it compared five fixed designs by hand.
Our search space spans those five connector families. Within each family we vary output token count, depth, and the fraction of text-only refusal data mixed into instruction tuning. Every candidate gets the same data and the same number of steps, and we save checkpoints along training. Final labels are attack success rate on MM-SafetyBench (typography, generated-image, and combined splits), unsafe rate on VLSBench, SIUO, and FigStep, and utility on MM-Vet (MM-Vet) and MMBench.
The second deliverable is the predictor study. At checkpoints covering a small fraction of training up to the end, we compute the refusal transfer ratio and every competing signal. We then measure how well each signal at each checkpoint rank-correlates with final safety. The result is a curve of ranking quality against GPU-hours, and that curve is the main object of the paper.
The third deliverable uses the score as a fitness function in a small evolutionary search over a widened space. The widened space adds per-layer choices of where visual tokens are injected, using discrete switches in the style of Adaptable Adapters, which selected adapter layers in BERT with Gumbel-Softmax switches but only for language understanding utility. We report what the search finds and what it costs.
Baselines
The naive reference point is selection on utility alone, which is current practice. One picks the connector with the best MMBench or MM-Vet score and accepts its safety. A version of this is the LLaVA-1.5-7B MLP connector, for which MM-SafetyBench reports 77.33% attack success rate on its tiny split. Random selection within the trained pool is a second floor. Beating these means the score's top pick has clearly lower final attack success rate at matched MM-Vet utility.
The strongest low-cost competitor for ranking is behavioral evaluation at the same early checkpoint. We generate responses to the same few hundred paired prompts, grade them with the same judge, and rank candidates by early attack success rate. This is a fair fight. Both signals see the same prompts and the same checkpoints, and we count both the forward-pass cost and the generation-plus-judging cost. The score beats it if its Kendall's $\tau$ against final attack success rate is higher at early checkpoints, or equal at lower cost. We expect behavioral evaluation to win once connectors are well trained. The question is the crossover point.
The strongest existing architecture-ranking competitors are training-free scores from the architecture search literature. We use SynFlow and NASWOT. We also use the robustness score $R$ from Zero-cost Proxy for Adversarial Robustness Evaluation, which combines the smallest eigenvalue of the neural tangent kernel with input-loss curvature. That paper reports a Kendall's $\tau$ of 0.33 on Tiny-RobustBench for image classifiers. EZNAS-A, an evolved training-free score, reports $\tau$ = 0.65 on NASBench-201 CIFAR-10 (EZNAS). There is no reported result on Lacuna for any of these scores predicting multimodal safety, so we compute them ourselves on our pool at the same checkpoints.
Two ablations isolate the key ingredient. In the first, $r_\ell$ is replaced by a random unit direction. In the second, the score is replaced by plain cosine similarity between image-route and text-route hidden states. If the second ablation matches the full score, then generic cross-modal alignment, not refusal geometry, is doing the work, and our mechanistic claim fails.
For the safety outcome itself, the strongest post-hoc defense is Safety-awareness Representation Transfer (SRT) from Transfer Safety Awareness. It steers hidden states toward a text-derived refusal vector at inference time and reports Qwen3-VL-8B unsafe rate falling from 34.09% to 1.47% on VLSBench and from 46.7% to 19.76% on SIUO. We apply it, with its 300 harmful and 217 benign calibration samples, on top of both the utility-selected connector and the score-selected connector. We also include the safety system prompt, reported to bring LLaVA-1.5-7B from 77.33% to 15.68% on MM-SafetyBench tiny.
Why not just…?
Why not just train every candidate and run the safety benchmark? For a handful of connectors this is the right answer, and our ground-truth table does exactly that. The problem is scale. Each added design dimension multiplies the number of full training runs, and the survey A Survey of Methods for Low-Power Deep Learning notes that search compute can exceed the savings it buys. If early behavioral evaluation ranks as well as our score at every checkpoint, then the score has no reason to exist, and the cost curve will show it.
Why not just apply SRT to whatever connector you have? This is the most serious threat, because SRT's VLSBench numbers are very strong. Three things remain open. SRT needs a clean refusal direction to transfer, and its authors say safety may sit in different layers in different architectures. Its SIUO residual is about one in five. It never asks whether some connectors make steering easier. We test SRT on top of every connector in the pool. If SRT erases the safety differences between connectors, we will report that connector choice is irrelevant once steering is applied and present the score only as a diagnostic.
Why not just add a safety system prompt? It is free and helps a lot on simple attacks. However, MM-SafetyBench reports combined-attack success rates often above 70% across models, and When Think-with-Image Meets Safety finds that text-only prefixes do not produce the internal safety shift. We include the prompt on every candidate, so prompt plus a better connector can be compared directly with prompt alone.
Why not just add a smoothing defense on the vision encoder? Feature-space smoothing with a learned denoiser (Feature-Space Adversarial Robustness Certification) drives FOA attack success rate from 81% to 0.2%. It certifies robustness against small $\ell_2$ pixel-level perturbations, though, and adds about 0.28 s per image. Typographic and compositional attacks are not small perturbations, so we expect it to leave those intact. We will run it on the typography split to confirm.
Decisive Checks
Three results decide the project.
The first is whether connector design matters. If the spread in final MM-SafetyBench combined-split attack success rate across utility-matched connectors is within the variation across random seeds, the architectural question is closed. That negative result is itself new, and we stop there.
The second is the ranking-quality curve. The score must beat both early behavioral evaluation and the strongest training-free baseline at some early checkpoint. It must also beat the random-direction and plain-similarity ablations. Otherwise the refusal-geometry story is wrong.
The third is transfer. A score calibrated with one language model must still rank connectors for a second, differently aligned language model. This also directly probes the cross-architecture stability concern raised by the SRT authors. We will report separately where the score fails on compositional SIUO cases, and whether its failures there match SRT's.
References
- MM-SafetyBench: A Benchmark for Safety Evaluation of Multimodal Large Language Models
- Refusal in Language Models Is Mediated by a Single Direction
- Transfer Safety Awareness for Cross-Modal Safety Drift in Multimodal Large Language Models
- When Think-with-Image Meets Safety: What Determines Multimodal Jailbreak Robustness?
- Layer-Aware Representation Filtering: Purifying Finetuning Data to Preserve LLM Safety Alignment
- To Preserve or To Compress: An In-Depth Study of Connector Selection in Multimodal Large Language Models
- MM-Vet: Evaluating Large Multimodal Models for Integrated Capabilities
- Adaptable Adapters
- Zero-cost Proxy for Adversarial Robustness Evaluation
- EZNAS: Evolving Zero-Cost Proxies For Neural Architecture Scoring
- A Survey of Methods for Low-Power Deep Learning and Computer Vision
- Feature-Space Adversarial Robustness Certification for Multimodal Large Language Models