SPARK: Aligning Representations at the KV Memory Layer to Defend Vision-Language Models Against JailbreaksSPARK: Representation-Level KV Memory Alignment for Safer Vision-Language Models
SPARK repairs multimodal KV memory by head-energy mixing during the prefill phase, reducing LLaVA-OV's ToViLaG pure-image jailbreak ASR from 70.6% to 4.7%, with MMMU at 47.8 (original model 48.4).
Attackers use harmful text, adversarial images, or cross-modal jailbreaks to bypass aligned VLMs; the defense rewrites the KV cache once after prefill, without changing parameters. Evaluation includes white-box adaptive joint prompt–image attacks, and a mix bypass that sets gh⋆ to 0.
- Vision-language models can still be bypassed by jailbreaks distributed across text and images, while language-side alignment and broad inference-time representation editing also suppress useful capabilities. The authors aim to modify only the multimodal KV memory formed during prefill, without changing parameters.
- SPARK has two stages: a one-time diagnostic adapter finds KV displacement subspaces related to harmful completions and projects them out orthogonally; then a lightweight residual repair is learned, and Canny edges anchor the keys. At inference, the original and repaired memories are mixed in closed form by per-head subspace energy Eh, without using a harmfulness classifier.
- On LLaVA-OV-7B, ToViLaG pure image ASR drops from 70.6% to 4.7%, MMMU is 47.8 (original model 48.4). MM-SafetyBench drops from 39.2% to 12.4%. On text-dominated jailbreaks, Steer is lower; under white-box adaptive joint attack, SPARK is 20.3%.
- The authors state that the subspace comes from 1k VLSafe samples; an overly loose Eh quantile or out-of-distribution attacks may leak unsafe outputs, and SPARK cannot replace safety checks and adversarial testing. The structural prior uses Canny; the authors say that learned or task-adaptive anchoring may be stronger.
- Evaluated models
- LLaVA-OneVision-7BChameleon-7BQwen2-VL-7BInternVL2-4B
- Benchmarks
- VLSafeToViLaGMM-SafetyBenchMMMURealWorldQA
- Metrics
- ASRMMMU accuracyRealWorldQA accuracyBenign Refusal Rateprefill overhead
SPARK is a two-stage framework that reduces jailbreak risk in vision-language models by repairing multimodal KV memory during the prefill stage, without modifying model parameters at inference time. The first stage uses a one-time diagnostic adapter to locate harm-related directions in multimodal key and value representations, and the second stage projects out these directions, learns a lightweight residual repair, and anchors the repaired keys with image structural priors to maintain visual grounding. The method mixes the repaired and original memory at the head-level coefficient, which is determined by the energy of the intervened relevant subspace, and requires no explicit harm classifier at inference time.
Paper analysis
What problem does this paper attempt to solve?
Multimodal jailbreaks bypass unimodal safety; the authors aim to do selective repair in the prefill KV memory.
After vision-language models split harmful intent across text and images, unimodal safety mechanisms are insufficient, and overly broad inference-time editing suppresses useful representations; the authors aim to modify only the multimodal KV memory formed during prefill, without changing inference-time parameters.
- Scenario: The authors state that VLMs are already strong at multimodal reasoning, but harmful prompts, adversarial images, and cross-modal jailbreaks can still bypass the alignment behavior inherited from the language backbone. The task is to keep the intervention local enough to preserve representations needed for benign reasoning.
- Limitations of existing work: The authors argue that unsafe outputs do not themselves mark the internal direction of behavioral shift; harmful–benign contrasts also mix ordinary image and prompt differences into the residual. Steering, projection, and activation revision can improve refusal, but broad edits also suppress representations needed for benign reasoning.
- Core observation: The authors ask whether one can isolate safety-related displacement on a fixed input, localize it to the KV states that constitute attention memory, and scale by how strongly these directions are expressed at inference time. This separates "what to suppress, how to restore the useful information that was suppressed, and how much each attention head should change."
- Propose SPARK: A two-stage, KV-memory-targeted repair. Stage 1 uses a one-time diagnostic adapter on harmful calibration inputs to find harm-calibrated key and value displacement subspaces and orthogonally project them; Stage 2 learns a lightweight residual repair on the projected cache and anchors the repaired keys with an image structural prior. At inference, no explicit harmful classifier is used; instead, the intervention-related subspace energy Eh gives per-head mixing coefficients gh⋆.
- Threat model:
- Goal: Reduce the success rate of multimodal jailbreaks that spread harmful intent across text and images, while preserving general capabilities.
- Knowledge and attack surface: Evaluation includes template jailbreaks, stress damage (cropping, noise, near-white), and white-box adaptive joint prompt–image attacks targeting gh⋆; also a mix bypass that sets gh⋆ to 0 for each target head.
- Defender capabilities: No modification of inference-time model parameters; write the KV cache once after multimodal prefill, and reuse it during generation.
- Victim systems: Tested as LLaVA-OneVision-7B, Chameleon-7B, and in supplementary experiments Qwen2-VL-7B, InternVL2-4B.
What related research exists?
The authors place SPARK between inference-time representation intervention and safety subspaces, but what it modifies is the prefill KV memory.
Multimodal Safety and Inference-Time Alignment
- Language backbone alignment and multimodal failure: The authors cite that safety alignment may degrade after multimodal adaptation, and adversarial images can combine with text to bypass aligned behavior [3, 11, 25]. Defense directions include safety instruction tuning [3], prompt-level guardrails [24, 28], and inference-time representation intervention [10, 12, 18, 20, 22].
- Steering and activation revision: Steering edits directions related to safety or refusal; AutoSteer additionally localizes these directions and uses an internal prober to decide whether to enable the edit [18, 22]. Internal Activation Revision and head-wise methods also target activations [5, 10]. HiddenDetect shows that LVLM hidden states carry predictable signals of jailbreaks [8].
- Relation to this work: The authors state that SPARK adopts the same representation-level perspective, but edits attention memory: how K and V move when harmfully biased completions are controlled, and writes only once during prefill, rather than steering in the residual stream during decoding.
Safety Subspaces and Behavioral Displacement
- VLM-Guard and InferAligner: VLM-Guard estimates a safety direction from representation contrasts and projects it out [12]; InferAligner also uses internal states at inference time [20].
- Problem with contrastive residuals: The authors point out that harmful–benign contrasts change both input and behavior, so the residual also contains ordinary image and prompt changes. SPARK instead measures input-matched displacement: on a fixed harmful calibration input, a temporary Diagnostic Stress Adapter (DSA) induces a controlled safety-degrading perturbation, see Eq. (1).
Fact Editing and KV Cache Compression
- ROME, MEMIT, and H2O, Scissorhands: The authors write Transformer attention as Eq. (2) and state that keys determine addressing and values carry retrieved content [6, 17]. Previous methods edit factual associations via relevant memory pathways (ROME, MEMIT), or compress the attention cache at test time (H2O, Scissorhands) [14–16, 27].
- Difference: The authors state that SPARK is neither: it edits the attention KV cache for multimodal safety, projects out harm-calibrated K/V directions, restores useful structure, and mixes original and repaired memory with per-head coefficients derived from current KV states.
Baseline Methods and Benchmarks
- Baselines: Undefended LLaVA [9], Safety SFT [3], Steer/AutoSteer [22] (decoding-time hidden-state steering), VLM-Guard [12], OmniSteer [18], and Projection-AlwaysOn (SPARK with all target heads gh⋆=1). Safety SFT on Chameleon additionally does a fixed-seed hyperparameter sweep.
- Benchmarks: VLSafe [3]; the authors' own ToViLaG [21] text, image, and text+image partitions (each n=500); MM-SafetyBench [13]; capability side MMMU [26] and RealWorldQA [23] (each n=500), plus cross-modal stress sets with noise, near-white, and cropping.
The authors position their contributions as four points: an input-matched KV subspace from temporary diagnostic perturbations on a fixed input; project-and-repair with key-side structural anchoring and query-side separation; a closed-form per-head mixing gh⋆ derived from subspace energy Eh and not relying on a learned harmful detector; and evaluation of safety, utility, robustness, and overhead, with ablations of the subspace, recovery loss, and adaptive mixing.
How does the paper address this problem?
First use a one-time DSA to determine the KV displacement subspace, then project, repair, and mix in closed form by Eh.
SPARK splits safety intervention in KV space into diagnosis and repair: Stage 1 finds and removes harm-calibrated displacement directions, Stage 2 restores information lost to projection, and at inference the original and repaired caches are interpolated by per-head subspace energy (Figure 1).
Problem setup and intervention location
- Input and memory: The frozen VLM is denoted fθ, input x=(xv, xt). Keys and values at layer l, head h are K=H WK, V=H WV (Eq. (3)). The authors intervene on a set of layers and heads selected on a validation set; layer subscripts are omitted unless otherwise stated. Default target is vision-biased later layers 18–24.
- Prefill-only: The prefill KV cache is a persistent representation through which multimodal evidence constrains subsequent autoregressive decoding. SPARK intervenes once after multimodal prefill; the repaired memory persists through the whole generation, without repeated steering at decoding time.
- Mixing form: For strength gh∈[0,1], Kout=(1−gh)K+gh Ks, and Vout similarly (Eq. (11)). gh=0 leaves that head unchanged, gh=1 uses the full projected and repaired representation. There are no sample-level or layer-level coefficients.
Stage 1: harm-calibrated KV displacement
- DSA: Freeze fθ, train a rank-rDSA Diagnostic Stress Adapter (∆WDSA) on a harmful calibration set Dh to induce shifts biased toward unsafe completions. Main experiments use rDSA=16, Dh is 1K harmful VLSafe discovery samples. For the same input, record key and value activations of the base and DSA-perturbed models; residuals are ∆XK, ∆XV (Eq. (4)).
- Subspace: SVD is applied separately to the stacked token-level residuals (Eq. (5)), keeping the first rs right singular vectors as PK, PV. Main experiments use rs=8. The authors state that decomposing activation residuals rather than ∆WDSA is because the hidden representation H varies with tokens, samples, and modalities, and the directions in activation space are what is subsequently edited.
- Hard projection: Orthogonal projectors ΠK=PK PK⊤, ΠV=PV PV⊤. After projection, K⊥=K(I−ΠK), and V⊥ similarly (Eq. (6)), making the projected results orthogonal to these bases. The extracted directions need not be "harm-only" components. After subspace extraction, the DSA is discarded; PK, PV are frozen.
Stage 2: restorative KV alignment
- Residual adapter: An independent lightweight adapter ϕ produces ∆Kϕ, ∆Vϕ from model representations, added to the projected cache to obtain Ks, Vs (Eq. (7)). It does not re-project, but restores information under three constraints. Stage 2 is trained on 3K contrastive sample pairs; weights for Lrecon, Lground, Lsep are (1.0, 0.6, 0.4). Optimizer AdamW, learning rate 2e−4, batch size 32, 3 epochs, backbone frozen.
- Structural anchoring Lground: The authors do not use the model's own visual features to match Ks, because that would restore the appearance that produced the completion; by default, training-free Canny edges [1] are used as a layout anchor. C(xv) is passed through the frozen visual pathway and frozen key projection to obtain Gedge, constraining only keys (Eq. (8)). Default thresholds are Tlow=100, Thigh=200. The authors state that keys participate in QK⊤ addressing, while values carry content after weights are formed, so the structural prior is applied only to keys.
- Suppressing subspace reconstruction Lrecon: Penalizes energy of repaired Ks, Vs on the frozen displacement bases (Eq. (9)). Since after projection this term comes only from the residual, the adapter is encouraged to restore information outside the subspace.
- Query-side separation Lsep: Q is not edited, but query alignment with suppressed key directions is penalized (Eq. (10)). The authors state that KV projection removes calibrated directions from memory, and Lsep reduces query components in the same key-space directions.
Per-head minimal intervention strength
- Energy and objective: Intervention-relevant subspace energy Eh(x)=‖K PK‖F²+‖V PV‖F² (Eq. (12)); the authors emphasize this is energy on these bases, not a harmfulness score. Mixed residual energy Lres and rewriting cost Lint enter the total objective LSPARK=α Lres+β Lground+γ Lrecon+δ Lsep+λ Lint (Eq. (15)).
- Closed-form solution: If the repair branch already lies outside the Stage 1 bases, the gh-dependent part separates per head as Jh(gh)=α(1−gh)² Eh+λ gh (Eq. (16)). Clipping to [0,1] gives gh⋆=clip(1−λ/(2α Eh), 0, 1) (Eq. (18)). When Eh=0, gh⋆=0; when Eh≤λ/(2α), no edit is made (Eq. (19)). The authors state that gh⋆ comes from a trade-off between current KV state energy and editing cost, not an estimate of P(harmful|x), and there is no binary indicator or learned detector.
- Quantile calibration: On a benign pool Db (n=3,000) disjoint from Stages 1–2 and MMMU/RWQA, λ/(2α) is set to the 90th percentile of benign per-head Eh. Under this rule, 90% of benign (sample, head) pairs have gh⋆=0; because one input contains multiple target heads, about 86% of benign inputs have no intervention on any target head, and 14% have at least one head with gh⋆>0. The authors call this 14% the input-level intervention rate, not the false positive rate of a harmfulness classifier.
Data partitions and success determination
- Four disjoint partitions: Discovery uses 1k harmful VLSafe for subspace extraction; alignment uses 3k safe/unsafe contrastive pairs (prompt-matched) to train Stage 2, where MS-COCO safe images are paired with ToViLaG adversarial contexts, covering violence, illegal acts, self-harm, and explicit content; coefficient calibration uses 3k benign multimodal VQA prompts to determine the Eh percentile, separated from MMMU/RWQA test IDs; evaluation is on unseen safety and capability tests. Stage 1 uses unfiltered response activation trajectories, not static refusal labels.
- Determination: Harmfulness is scored by an instruction-tuned LLM reviewer using a fixed binary rubric; Appendix S7 gives three criteria, tie rules, and the full prompt. Human audit consistency is κhuman-human=0.89, κLLM-human=0.84 (n=500). ASR is reported on VLSafe and the three self-built ToViLaG partitions; the authors note that the original ToViLaG is a generative toxicity dataset and does not define these partitions.
What experiments did the paper conduct?
On the main table, SPARK reduces image jailbreak ASR, but text jailbreak is often worse than Steer, with capability close to the original model.
Experimental setup
- Models: Main backbone LLaVA-OneVision-7B, full defense comparisons also include Chameleon-7B. The same protocol (per-backbone Eh percentile and layer calibration) is also applied to Qwen2-VL-7B and InternVL2-4B, but the full Steer/OmniSteer grid is not rerun on the latter two.
- Data: VLSafe text; ToViLaG text, image, and text+image partitions, each n=500, constructed by the authors for VQA-style jailbreak testing. Capability is MMMU and RealWorldQA, each n=500. There is also a cross-modal stress set, and supplementary MM-SafetyBench.
- Baselines: Undefended model, Safety SFT, Steer, AutoSteer, VLM-Guard, OmniSteer, Projection-AlwaysOn. Table 2 is a matched-protocol reproduction under shared decoding; filtering-only comparisons are in Appendix S8.
- Metrics and review: Lower ASR is safer; higher MMMU and RealWorldQA accuracy is better utility. The instruction-tuned LLM reviewer uses a fixed binary rubric; κhuman-human=0.89, κLLM-human=0.84 (n=500).
- Implementation and repetition: Layers 18–24, rs=8, rDSA=16. Seeds {13, 17, 23}. Subspace discovery about 2.1 GPU hours, training about 3.4 GPU hours, on 8×A100-80GB. The authors report paired bootstrap p<0.01。Table 2 为均值,方差在附录。
主结果
Table 2(ASR ↓ / Acc ↑;‡ 表示该行 SPARK 优于最强非 SPARK 防御,配对 bootstrap p<0.01):
Swipe horizontally to read the table
设置 LLaVA 原模型 LLaVA SPARK Chameleon 原模型 Chameleon SPARK VLSafe 文本 ASR 60.0 3.1 67.8 10.2‡ ToViLaG 文本 ASR 44.8 2.4 51.6 11.9‡ ToViLaG 图像 ASR 70.6 4.7‡ 52.0 31.4 ToViLaG 文本+图像 ASR 30.0 7.4 56.1 9.1‡ RealWorldQA 61.8 60.7 60.0 58.8 MMMU 48.4 47.8 32.0 31.2 - 作者解读:在 LLaVA-OV 上,SPARK 的 ToViLaG 纯图像 ASR 最低(4.7%,次优 6.8–7.3%),MMMU/RWQA 接近原模型(47.8/48.4,60.7/61.8)。Steer 在 VLSafe 文本(2.0 对 3.1)、ToViLaG 文本(1.6 对 2.4)和文本+图像(1.2 对 7.4)上更低;作者认为这与语言主导的越狱以及解码时隐状态 steering 一致。
- Chameleon:SPARK 在 VLSafe 文本(10.2%)、ToViLaG 文本(11.9%)和文本+图像(9.1,Steer 为 9.4)上取得该行最低 ASR,防御侧 MMMU 最高(31.2,VLM-Guard 为 27.2)。纯图像上 Steer 更低(29.3 对 31.4),SPARK 仍低于 OmniSteer(40.8)和 VLM-Guard(37.9)。
- 图像差距:作者称 LLaVA 与 Chameleon 的 4.7% 对 31.4% 反映早期融合和保守门控。在 Chameleon 纯图像有害查询上强制投影把 ASR 降到 26.7%,但增加良性拒答并降低 MMMU(附录 S14,Table S25)。Safety SFT 在 Chameleon 上最佳扫描检查点只有 14.8 MMMU,SPARK 为 31.2;作者因此把 SPARK 当作训练时对齐的互补推理时层。
子空间、混合与其他骨干
- 子空间构造:Figure 2(a)–(b) 为样本残差堆叠上的奇异值谱与累积能量,作者据此保留 rs=8。图 (c) 标注:input-matched ∆X 为 ASR 5.2、MMMU 47.9;有害–良性对比 18.0/47.6;对 ∆WDSA 做 SVD 为 23.5/47.5;随机基 30.4/47.2;良性 VQA 子空间 34.6/47.4。作者称独立估计的基在种子与发现集变化下仍大幅重叠(投影相似度 S(Ua, Ub),附录 S9,Table S22)。
- 按头能量:Figure 3 画在样本良性/有害图像、层 18–24 上。作者称大多数头低于 T=λ/(2α)(自然图像池上为 6.2),有害分布有更重的尾部,而不是在 Eh=T 处分开。Eh≤T 时 gh⋆=0。第 90 百分位时,14% 的良性输入和 80% 的有害输入至少有一个头 gh⋆>0. Lower truncation increases benign output refusal (80th percentile row 9.4%); the 95th percentile leaks unsafe contexts (harmful validation ASR 11.5%, vs 5.2% at the 90th percentile). The authors state that false triggers concentrate on structurally dense images with naturally high Eh; forcing gh⋆=1 on all heads drops AI2D from 62.4% to 31.2% (selective gh⋆ is 62.0%, Appendix S14).
- Qwen2-VL and InternVL2: Appendix Table S23. Qwen2-VL: VLSafe text 45.2%→9.8%, ToViLaG image 58.4%→14.2%, MMMU 49.1 vs base 50.3, RWQA 55.6 vs 56.8. InternVL2-4B: VLSafe text 48.7%→12.7%, ToViLaG image 62.1%→17.6%, MMMU 44.2 vs 45.8, RWQA 50.9 vs 52.4. The authors state that utility drops are small but uneven, consistent with partial rather than identical transfer.
Community benchmarks, adaptive attacks, and ablations
- MM-SafetyBench: Under the same LLM reviewer and decoding settings, SPARK's ASR is 12.4%, base 39.2%, lower than reproduced OmniSteer (14.8%) (Appendix S17).
- Adaptive attacks: A white-box adaptive attack targeting gh⋆ raises SPARK's ASR to 15.9–20.3% (joint 20.3%; AutoSteer under the same protocol is 22.7%). The mix bypass (gh⋆=0 on each target head) reaches 38.6%. The authors state this indicates limited robustness to adaptive evasion. The undefended model under the joint adaptive setting is 54.6% (abstract; Table S38 same number).
- Table 3 ablations (LLaVA-OneVision; full SPARK ASR 5.2, MMMU 47.9): removing Lground is 6.1 / 42.1; Lground on both keys and values is 5.1 / 44.5; removing Lsep is 9.8 / 47.5; always projection (gh=1) is 5.0 / 45.9. On RealWorldQA, the benign refusal rate with Lsep is stated by the authors to be statistically unchanged (1.2% vs 1.3%). The main text also states that always projection drops ASR and MMMU together (45.9 vs gated 47.9).
Other ablations and analyses
- Canny (Table 1, White-ASR / MMMU / RWQA): No structural prior 12.7 / 42.1 / 54.9; default Tlow=100, Thigh=200 is 8.9 / 47.9 / 60.7. The authors state that relative to no prior, White-ASR −3.8, MMMU +5.8. Tlow/Thigh 50/150 is 9.1 / 47.8 / 60.6, 150/250 is 9.2 / 47.6 / 60.5.
- Structural anchors (Table S36): Shuffled edges 14.1 / 40.6 / 52.8; blurred Canny 9.2 / 47.4 / 60.1; Sobel 9.0 / 47.8 / 60.6; HED 9.3 / 47.7 / 60.5. The authors state that shuffled positions are worse than removing the prior, Sobel/HED/blurred Canny are close to default, and the gain comes from spatial correspondence, not Canny specifically; input blur and CLIP remain below SPARK.
- Typographic jailbreaks (Table S37, n=500 pure image harmful): SPARK 4.7±0.3 ASR, MMMU 47.8±0.3; Gaussian blur only 28.6±1.1 / 47.2±0.4; no Canny anchor 10.4±0.6 / 44.3±0.4.
- Diagnostics (Table 4, means): Aimg→unsafe (harmful) from 0.41 to 0.19; basis removal ASR from random patches 33.8 to identified directions 11.3 (layers 18–24); harmful→safe nearest centroid rate from 28.4% to 58.2%. The authors state these checks support intervention-relevant directions, not a single causal mechanism.
- Layers and overhead: The authors state that middle layers 12–16 are weaker, correcting only deep layers 24–28 is insufficient, and 18–24 gives the best balance. Prefill overhead +1.6%, no per-token decoding overhead (Table S18); by comparison, AutoSteer has +7.8% decoding overhead per token. Figure 5 shows end-to-end overhead vs batch size; the authors state prefill overhead is modest. In cross-modal stress, the authors state the largest relative ASR reduction is on cropping attacks (Appendix S3, Table S3); Table S38 lists Stress White subset base 49.1, OmniSteer 11.7, SPARK 8.9.
What are some points that can be further explored?
The authors state that 1k calibration, overly loose Eh quantiles, and out-of-distribution attacks may leak unsafe outputs.
Limitations and future directions noted by the authors
- Evaluation scope: The Limitations state that template jailbreaks, stress damage, and white-box adaptive attacks were evaluated (Appendix S17).
- Calibration and leakage: The subspace uses 1k VLSafe samples; overly loose Eh percentiles or OOD attacks may leak unsafe outputs (Section S5).
- Structural prior: The authors state that SPARK does not require Canny; it is treated here as a deterministic, training-free structural prior; learned or task-adaptive anchors may be stronger.
- Not a substitute for other checks: The authors state that SPARK is not a substitute for safety checks and adversarial testing.
- Strength in conclusions: The conclusion states that safety–utility improvements are seen on several visual and cross-modal partitions, with smaller gains on text-centric jailbreaks and adaptive mixed attacks.
Experimental coverage
- Backbones: Full defense comparisons are on LLaVA-OneVision-7B and Chameleon-7B; Qwen2-VL-7B and InternVL2-4B use the same SPARK protocol, and the paper states that the full Steer/OmniSteer grid was not reproduced on the latter two.
- Partitions and scale: Discovery 1k, alignment 3k, coefficient calibration 3k, disjoint from evaluation; ToViLaG three self-built partitions and MMMU, RealWorldQA each n=500; review consistency audit n=500.
- Attacks and defense comparisons: Table 2 includes undefended, Safety SFT, Steer, AutoSteer, VLM-Guard, OmniSteer; also always-projection, adaptive attacks targeting gh⋆, and mix bypass with gh⋆=0.
- Ablations: Table 3 varies Lground, Lsep, and gh; Table 1 and Table S36 vary structural anchors; Figure 2(c) compares input-matched, harmful–benign, SVD of ∆W, random bases, and benign VQA subspaces.
- Statistics and overhead: Main results are means over seeds {13, 17, 23}, paired bootstrap p<0.01; the paper reports prefill +1.6% and no per-token decoding overhead, subspace discovery about 2.1 GPU hours, training about 3.4 GPU hours.
Summarize the main content of the paper
SPARK repairs prefill KV with head-energy mixing; image jailbreak ASR drops, but the text side is not always the lowest.
SPARK is an inference-time defense that does not change VLM parameters and rewrites the KV cache once after prefill, to handle jailbreaks spread across text and images.
- Problem: Language-side alignment does not cover multimodal jailbreaks; unsafe outputs do not directly give the internal directions to suppress, and harmful–benign contrasts also mix in ordinary image and prompt differences. Broad steering or always-projection also lowers useful capability.
- Method: A one-time DSA produces key and value displacements on fixed harmful inputs; SVD takes an rs=8 subspace, then the adapter is discarded and orthogonal projection is applied. Stage 2 restores information with a lightweight residual, anchors only keys with Canny edges, and penalizes subspace reconstruction and query alignment. Each head mixes original and repaired caches with a closed-form gh⋆ from subspace energy Eh; the threshold is the 90th percentile of benign per-head Eh, which the authors state is not a harmfulness probability.
- Safety results: On LLaVA-OneVision-7B, ToViLaG pure image ASR goes from 70.6% to 4.7% (Table 2, lowest in that row). MM-SafetyBench from 39.2% to 12.4%. Under white-box adaptive joint attack it is 20.3% (undefended 54.6%), and setting all gh⋆ to 0 gives 38.6%.
- Exceptions: On LLaVA's VLSafe text, ToViLaG text, and text+image, Steer has lower ASR (2.0, 1.6, 1.2 vs SPARK's 3.1, 2.4, 7.4). On Chameleon pure image, Steer is 29.3 and SPARK is 31.4.
- Utility and overhead: LLaVA's MMMU is 47.8 (original model 48.4), RealWorldQA is 60.7 (original model 61.8). Always projection MMMU is 45.9. Prefill overhead +1.6%, and the authors state there is no per-token decoding overhead. The authors conclude that selectively repairing intervention-relevant KV subspaces can mitigate multimodal jailbreaks, especially when harmful evidence is in the visual modality; gains are smaller on text-centric jailbreaks and adaptive mixed attacks, and it is not a substitute for safety checks and adversarial testing.