Skip to content

AnchorRep: Defending LLMs against cross-model adversarial transfer attacks with representation repulsionAnchorRep: Defending LLMs Against Cross-Model Adversarial Transfer via Representation Repulsion

arXiv: Jailbreaks, Prompt Injection, Poisoning & Defenses· arXiv:2609.32602· NeurIPS 2026· Gal Wertheizer, Rom Himelstein, Tomer Peretz, Avi Mendelson·Indexed by this site · 2026-10-01· Originally publishedDefenses

Quick read

Defenses

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

AnchorRep uses LoRA to push harmful-prompt representations away from a frozen anchor model, reducing cross-model GCG transfer ASR to 0–1.1% across five models, with BGR at 0%.

Threat modelCross-model transfer: The attacker has white-box access to a source model, optimizes adversarial prompts, and transfers them to a target with a different architecture, without querying the target during optimization. The defender does not see attack strings during training. Also evaluates direct white-box adaptive attacks on the defended target (including LoRA).

Questions
Adversarial attacks optimized on a single open-weight model can transfer and jailbreak models with different architectures; existing defenses mainly target same-model attacks, and safety numbers in cross-model evaluations often come with high gibberish or over-refusal.
Methods
AnchorRep uses lightweight LoRA to minimize the linear CKA between the defended model and a frozen anchor model on harmful prompts, supplemented by refusal direction, coherence, KL, and optional language model losses; training does not use adversarial examples.
Experiments and results
Across five models and four architecture families, cross-model ASR for 2000 transferred attacks is reduced to ≤1.1% (two of them 0%), with BGR at 0%. White-box adaptive attacks decrease ASR in 22 of 25 settings, while Embedding PGD and TAP can still partially bypass the defense.
Limitations and future work
Directions the authors identify include multi-anchor training, synergy with RLHF/DPO, and multi-model joint optimization; limitations and scale discussions are in Appendices H, K.3, L. Evaluation covers five defended models; baselines are retrained only on Llama-3 and Mistral.
Experimental setupLlama-3-8B、Mistral-7B et al. · AdvBench GCG transfer set (20 sources × 100)、HarmBench et al. · ASR、BGR et al.
Evaluated models
Llama-3-8BMistral-7BVicuna-7BQwen-1.5-14BPhi-3-medium-14B
Benchmarks
AdvBench GCG transfer set (20 sources × 100)HarmBenchOR-Bench HardXSTestFalseRejectMMLUMT-Bench
Metrics
ASRBGR∆OR∆XS∆MT∆MMLU
AI summaryAnchorRep uses a lightweight LoRA adapter to push the defended model's internal representations of harmful prompts away from those of a frozen anchor model, thereby defending against cross-model adversarial transfer attacks. Training uses only a small number of harmful prompts and does not require adversarial examples. Across five models and four architecture families, the method reduces the attack success rate of 2,000 transferred attacks to no more than 1.1%, with two models at 0%, and the largest reduction on Mistral, from 36% to 1.1%. The paper notes that existing defenses reduce transfer but at high cost, causing up to 77% degradation of benign outputs, or increasing over-refusals by up to 18%; because standard refusal metrics cannot capture such benign garbled outputs, the authors propose the Benign Garble Rate to quantify them. This work is a NeurIPS 2026 paper, and the code, configurations, and logs are publicly available.

AnchorRep uses a lightweight LoRA adapter to push the defended model's internal representations of harmful prompts away from those of a frozen anchor model, thereby defending against cross-model adversarial transfer attacks. Training uses only a small number of harmful prompts and does not require adversarial examples. Across five models and four architecture families, the method reduces the attack success rate of 2,000 transferred attacks to no more than 1.1%, with two models at 0%, and the largest reduction on Mistral, from 36% to 1.1%. The paper notes that existing defenses reduce transfer but at high cost, causing up to 77% degradation of benign outputs, or increasing over-refusals by up to 18%; because standard refusal metrics cannot capture such benign garbled outputs, the authors propose the Benign Garble Rate to quantify them. This work is a NeurIPS 2026 paper, and the code, configurations, and logs are publicly available.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Cross-model transfer jailbreaks exploit shared representation geometry; existing defenses are not targeted at this threat and have high utility costs.

    Jailbreaks optimized on open-weight models transfer to independently deployed models with different architectures; existing defenses are not designed for this cross-model threat.

    • Scenario and importance: The authors state LLMs are used in safety-critical applications; gradient attacks such as GCG, PAIR, AutoDAN, and TAP, when optimized on a source model, consistently break target models from different architecture families (transferability). The open-weight ecosystem gives attackers more source models to choose from, and production systems with similar architectures inherit the vulnerability even if not probed.
    • Shortcomings of existing methods: Representation engineering (Circuit Breakers, RepBend, RMU, CRL) and input-layer methods are primarily designed and evaluated for attacks on the same model. The authors state they can achieve strong safety numbers in cross-model transfer, but at a high utility cost: OR-Bench over-refusal increases up to 18%, and Circuit Breakers on Llama-3 produce incoherent outputs for 77% of benign replies (Table 2).
    • Core observation: The authors state cross-model transfer is geometrically consistent with shared internal representations, making it a natural defense target. Across 20 LLMs, higher within-family CKA corresponds to higher GCG transfer ASR (Figure 1); Table 1 shows that on three architecturally consistent families, the within-family Spearman ρ between harmful-prompt middle-layer CKA and transfer ASR is +0.910 (p<0.01).
    • What this paper proposes: AnchorRep uses lightweight LoRA adapters to push the defended model's internal representations on harmful prompts away from those of a frozen anchor model on the same prompts. Training uses only a small batch of harmful prompts, without adversarial examples. The authors also introduce Benign Garble Rate (BGR) to quantify degraded benign outputs that standard refusal metrics fail to capture.
    • Threat model:
      • Goal: An attacker optimizes adversarial prompts on a source model to transfer to a target with a different architecture and induce unsafe responses.
      • Knowledge: In the cross-model setting, the attacker has white-box access to the source model and does not query the target during optimization. There is also an adaptive setting: direct white-box access to the defended target (including LoRA) (Section 4.2).
      • Capability: The defender has no attack strings during training. Attack strings are only used at evaluation.
      • Victim system: Standalone deployed, instruction-tuned LLMs whose architecture can differ from the source model. Main experiments use Llama-3-8B, Mistral-7B, Vicuna-7B, Qwen-1.5-14B, Phi-3-medium-14B.
  2. What related research exists?

    Related work divides into transfer attacks and defenses, representation similarity diagnostics, and the robustness–accuracy trade-off of invariance regularization.

    Adversarial Transfer and Existing Defenses

    • GCG (Zou et al., 2023): Optimizes adversarial suffixes that transfer across models. Other attacks include PAIR (Chao et al., 2023), TAP (Mehrotra et al., 2023), AutoDAN (Liu et al., 2023).
    • Two defense classes: input-level perturbation, represented by SmoothLLM (Robey et al., 2023); representation engineering, including Circuit Breakers (Zou et al., 2024), RepBend (Yousefpour et al., 2025), CRL (Simko et al., 2025). RMU (Li et al., 2024) also appears as a baseline.
    • Schwinn and Geisler (2024): The authors state this shows embedding-space attacks can bypass all representation-engineering defenses, and AnchorRep shares this limitation. The authors state that, to their knowledge, no existing defense is designed or evaluated for cross-model transfer.

    Representation Similarity and Adversarial Transfer

    • Angell et al. (2025): Nearest-neighbor similarity correlates with jailbreak transfer success.
    • Li et al. (2025): Training-data overlap drives both similarity and transfer. Ball et al. (2025), Klause and Bunzel (2025), Gupta et al. (2025) discuss whether adversarial perturbations themselves (such as token patterns in GCG suffixes) predict transfer.
    • Positioning: The authors state this work is diagnostic; AnchorRep turns the similarity–transfer relationship into an explicit defense. The relationship is consistent with the Platonic Representation Hypothesis (Huh et al., 2024). Similarity metrics use CKA from Kornblith et al. (2019).

    Robustness–Accuracy Tradeoffs in Invariance Regularization

    • Tsipras et al. (2019), Zhao et al. (2019): Invariance regularization can improve robustness, but harms standard accuracy unless balanced with an auxiliary objective.
    • TRADES (Zhang et al., 2019), ARAT (Waseda et al., 2024): Explicitly trade off adversarial and clean-data objectives. The authors state AnchorRep's auxiliary losses play the same role, restricting representation reshaping to the harmful-prompt subspace.
    • Refusal direction: Arditi et al. (2024) state refusals are mediated by a single direction; Zou et al. (2023)'s representation engineering and Li et al. (2023)'s inference-time intervention are used to construct this direction.

    Baseline Methods and Benchmarks

    • Baselines: Table 2 compares Circuit Breakers, RMU, RepBend, CRL on Llama-3 and Mistral; Vicuna, Qwen-1.5-14B, Phi-3 report only AnchorRep, as the authors state existing methods were not retrained on these targets.
    • Benchmarks/datasets: The main safety evaluation is 20 sources × 100, 2000 GCG transfer prompts in total (no overlap with training); training uses 30 harmful prompts from an AdvBench pool, 500 benign prompts from WikiText-2, and 200 boundary prompts from the XSTest safe subset. Utility is MMLU (5-shot) and MT-Bench; the main over-refusal metric is OR-Bench Hard (1320), with XSTest as a secondary diagnostic; out-of-distribution is HarmBench, with over-refusal also validated on FalseReject. Attack adjudication uses a multi-stage pipeline ending in WildGuard, and jailbreaks of defended models are additionally human-reviewed.

    The authors position this work as: not targeting a single attack, but using representation divergence to break cross-model shared geometry; training requires no attack-specific data; and using BGR to measure degraded outputs invisible to refusal metrics.

  3. How does the paper address this problem?

    Use LoRA to minimize harmful-prompt CKA with a frozen anchor, then use four auxiliary losses to preserve benign behavior.

    AnchorRep minimizes linear CKA between the defended model and a frozen anchor on harmful prompts at an intermediate layer, and uses refusal direction, coherence, KL, and optional language model losses to constrain the representation landing point, so that the push-away acts only on the harmful subspace.

    Problem Setting and Formalization

    • Goal: Simultaneously reduce compliance on adversarial prompts, preserve benign generation, avoid over-refusal, and train without attack-specific data. The authors state that no single objective can cover all three, so the main representation objective is used with auxiliary losses.
    • CKA: For N shared prompts and hidden representation matrices X_i at the target layer, linear CKA compares sample-wise relational structure rather than raw activations. The paper gives

    CKA(X1,X2)=HSIC(K̃1,K̃2)/√(HSIC(K̃1,K̃1)·HSIC(K̃2,K̃2)) CKA approaching 1 indicates shared relational structure, approaching 0 indicates geometric divergence; because it operates on Gram matrices, it is dimension-independent.

    • Core loss: L_CKA = CKA(X_d^adapted, X_a), minimized at intermediate layer ℓ, pushing the defender away from shared representation directions that the authors believe mediate cross-model transfer.

    CKA Push-Away and Anchors

    • Adapter: Lightweight LoRA (rank 32) added to all layers; CKA is computed at the middle layer, ℓ = ⌊0.5 · L⌋. fp32 for ≤8B, fp16 throughout for 14B (the authors state fp32 exceeds single-GPU memory).
    • Anchor: Selected per model from the ablation in Appendix D; the reported configuration uses a cross-family anchor, which the authors state is best, while same-family anchors also reduce ASR to a smaller degree.
    • Push-away scope: Which prompts enter the push-away loss is a per-model hyperparameter (Appendix J.4). Restricting to harmful prompts most directly targets the attack subspace; a broader scope (benign-only or all prompts) can improve stability for some defenders.
    • Figure 2: Minimizing CKA with the anchor on harmful prompts; four auxiliary losses constrain benign behavior; the labeled result is a 0.63 decrease in harmful-prompt CKA and a 0.01 change in benign CKA (Q7/L3 pair).

    Auxiliary Losses

    • Refusal direction: L_refusal encourages adapted hidden states on harmful prompts to align with a precomputed direction r (cosine, negated). r is the normalized difference between mean hidden states for refusal and compliance, computed once per model before training and frozen: 15 harmful prompts at the target layer, extracted under prompt-only and prompt-plus-refusal conditions (10 refusal templates).
    • Coherence: Weighted MSE pulls adapted representations toward the base model. Benign and boundary prompts have weight w_i = 5, harmful prompts w_i = 1. Refusal direction, coherence, CKA, and r itself all use the same intermediate layer ℓ and the last prompt token under left padding.
    • KL: On benign and boundary prompts (including XSTest), constrains the output distribution between base and adapted models.
    • Optional LM loss: When the base model's refusal is weak, cross-entropy with reference refusal responses; when the base model's refusal is strong, δ = 0.
    • Total objective: L = γ·L_CKA + α·L_refusal + β·L_coherency + ε·L_KL + δ·L_LM. The authors describe this as a coupled push-pull-anchor system: the push-away suppresses transfer, the refusal direction provides the landing point, and coherence and KL preserve benign behavior. The selected configuration in Table 4 is α = 0.15, β = 1.0, δ = 0.04, ε = 0.8, γ = 0.7 (Mistral, anchor Qwen-1.5-7B).

    Training Data and Success Determination

    • Data: 30 harmful prompts uniformly randomly sampled from the 520-prompt pool of AdvBench; 500 benign prompts from WikiText-2; 200 boundary prompts from the XSTest safe subset, used for KL and coherence. The training subset and evaluation attacks use a pre-determined random split, with zero overlap with the held-out 2000 GCG transfer set. Adversarial prompts are used only at evaluation time. Full training prompts are in Appendix I.
    • Safety determination: ASR is the proportion of adversarial prompts producing unsafe responses, split into self and transfer. Judgment goes through a five-stage pipeline (Appendix A.1): degenerate output, gibberish, quality scoring, refusal keywords, with boundary cases sent to WildGuard. Appendix A.11 states the overall F1 of Pipeline + WildGuard is 0.778 and accuracy 0.836. All jailbreaks of the defended model are manually reviewed per Appendix B, a protocol that overturns automatic labels that only touch the prompt surface without executable content.
    • Utility and over-refusal: MMLU (5-shot), MT-Bench; BGR is the proportion of benign responses judged as gibberish on OR-Bench (main text Table 2 and appendix tables use the 1320-prompt protocol of OR-Bench Hard). The primary over-refusal metric is OR-Bench Hard, with XSTest as a secondary diagnostic. The Regime in Table 2 requires simultaneously ASR ≤ 2%, BGR = 0%, and ∆OR ≤ 8%.
  4. What experiments did the paper conduct?

    Transfer ASR reduced to 0–1.1% across five models with BGR at 0; among 25 white-box adaptive settings, 22 decreased.

    Experimental Setup

    • Defended models: Five instruction-tuned LLMs: Llama-3-8B, Mistral-7B, Vicuna-7B, Qwen-1.5-14B, Phi-3-medium-14B, which the authors describe as spanning four architecture families. Similarity diagnostics additionally use about 20 LLMs (Figure 1).
    • Attacks and data: The main safety set is 2000 GCG prompts (20 sources × 100, identical across targets). Self ASR uses 100 optimized on the defended model; Transfer ASR aggregates 1900 from the remaining 19 sources. White-box adaptive attacks are GCG, Embedding PGD, PAIR, AutoDAN, TAP, 100 each, optimized directly on the target (including LoRA). Out-of-distribution is HarmBench (100 × 5 sources). Cross-prompt GCG is reported on Mistral-7B.
    • Baselines: CB, RMU, RepBend, CRL on Llama-3 and Mistral. The latter three targets report only AnchorRep.
    • Metrics: ASR (after human review); BGR (OR-Bench, %); ∆OR, ∆XS, ∆MT, ∆MMLU, with arrows indicating the preferred direction for each column. In Table 3, ∆ASR is post-defense minus baseline (percentage points).
    • Evaluation: Attack adjudication uses a multi-stage pipeline with WildGuard; jailbreaks of defended models are human-reviewed per Appendix B. The paper does not report the number of repetitions.
    • Training: 30 harmful + 500 benign + 200 boundary; LoRA rank 32, all layers, CKA at 50% depth.

    Main Results

    Table 2 (2000 GCG; ASR human-reviewed; BGR on OR-Bench). Self / Transfer are ASR (%).

    Swipe horizontally to read the table

    ModelMethodSelfTransferBGR∆OR
    Llama-3CB0077.1−48.6
    Llama-3RMU41.00.1+0.1
    Llama-3RepBend41.00.1+9.2
    Llama-3CRL00.128.4−1.1
    Llama-3AnchorRep11.10−7.7
    MistralCB21.022.1−2.4
    MistralRMU7333.90.4+0.2
    MistralRepBend31.910.0+9.9
    MistralCRL51.833.6+17.6
    MistralAnchorRep21.00+4.1
    VicunaAnchorRep00.00+6.1
    Qwen-1.5-14BAnchorRep20.40+6.2
    Phi-3AnchorRep00.00−1.0

    The table lists only ASR, BGR, ∆OR. The same table also reports: Llama-3 AnchorRep ∆XS 0.0, ∆MT +0.11, ∆MMLU −0.4; Mistral AnchorRep −0.4, −0.05, −1.5; Vicuna −2.0, +0.11, −0.3; Qwen-1.5-14B +0.8, −0.09, −0.1; Phi-3 +2.0, +0.40, 0.0. CRL on Mistral has ∆MT −2.36, ∆MMLU −32.3. In the Regime column, only the five AnchorRep rows are ✓.

    • Authors' interpretation: Only AnchorRep consistently enters the target regime (transfer ASR ≤ 2%, BGR = 0%, ∆OR ≤ 8%). CB has high garbling (BGR 77.1% on Llama-3, 22.1% on Mistral); CRL on Mistral has both garbling and over-refusal; RepBend increases over-refusal with remaining transfer leakage; RMU on Mistral does not suppress transfer (self ASR 73%).
    • Authors state the safety–utility tradeoff is not a tuning artifact; its persistence across architectures suggests that suppressing transfer without harming benign behavior requires targeting shared representation geometry; methods that directly force refusals tend to perturb utility.
    • Abstract numbers: The authors state that across five models and four architecture families, cross-model ASR for 2000 transferred attacks is reduced to ≤1.1% (two at 0%), with the largest reduction on Mistral (36% → 1.1%). The contributions list also writes transfer ASR reduced to 0–2% (7B–14B). Table 2's Transfer column is 0.0–1.1%, Self column 0–2%.

    White-Box Adaptive Attacks

    Table 3 is ∆ASR (percentage points), post-defense minus baseline, 100 per attack, optimized directly on the target. Absolute ASR is in Appendix F; not all absolute values are given in the main text.

    Swipe horizontally to read the table

    AttackLlama-3MistralVicunaQwen-1.5-14BPhi-3
    GCG0−36−32−32−12
    Emb. PGD−28−42−6−4−8
    PAIR−50−10−14−2−10
    AutoDAN−4−74−380−12
    TAP−80−14−2+6
    • What was tested → results: Although training never saw attack strings, 22 of 25 attack–target settings show decreased ASR. Absolute values given in the main text: Embedding PGD retains 40–88% ASR on the 14B models; TAP is 42% on Llama-3, baseline 50%.
    • Authors' interpretation: Discrete-token attacks (GCG, PAIR, AutoDAN) and Embedding PGD on smaller models decrease more. Continuous-space Embedding PGD and semantically rewriting TAP partially bypass the defense; the authors consider this consistent with operations outside the subspace targeted by the CKA repulsion, citing Schwinn and Geisler on embedding-space attacks bypassing representation-layer defenses.

    Out-of-Distribution, Cross-Prompt, and Layer Depth

    • HarmBench (Table 21; 5 × 100, human-reviewed per Appendix B): AnchorRep reduces combined ASR from 5.3% to 2.7%, largest on Mistral (11.8% → 2.0%). The authors state the reduction varies with baseline vulnerability, consistent with an explanation of a shared transfer-mediating direction.
    • FalseReject (Table 38): Three of five defenses change ≤ 5% relative to baseline (Llama-3 −4.4, Qwen-1.5-14B +1.0, Phi-3 −5.0); Mistral −8.0, Vicuna +12.8, with directions matching their respective ∆OR.
    • Cross-prompt (Appendix F.3, Mistral-7B): A GCG suffix optimized for one prompt is applied unchanged to unrelated target prompts; baseline transfer rate is 51.3%, with little variation across donor class, target class, and optimization-loss level; after AnchorRep, the same condition drops to 1.8%. The authors argue this is hard to explain by prompt-specific attack signatures and looks more like GCG finding a direction shared by successful suffixes. The contributions list writes 51% → 1.8%.
    • Layer depth (Table 18): Shallow layers (25% depth) make benign behavior unstable, with BGR 12.2% on Mistral (Appendix Table 17), and ∆OR across five models ranging from −34% to +52%. Deep layers (62.5%) preserve utility but fail to suppress attacks (up to 20% ASR on Llama-3). Only 50% depth simultaneously approaches zero ASR and zero BGR across five models. Figure 3 (post-defense Mistral vs. anchor Llama-2): harmful-prompt representations diverge at 50% depth (∆ = −0.48), benign geometry changes ∆ = −0.07.

    Other Ablations and Analyses

    • γ ablation (Table 4, Mistral, anchor Qwen-1.5-7B; auxiliary losses fixed): weak γ=0.18 gives ASR 0/0.0, ∆OR +76.4, ∆MT −1.42, harmful CKA 0.541, benign CKA 0.951; removing CKA (γ=0) gives ASR 0/0.0, ∆OR +32.4, ∆MT −0.29, benign CKA 0.963; CKA-dominated γ=1.4 gives ASR 0/0.5, ∆OR +49.0, ∆MT −2.34, benign CKA 0.142; the chosen γ=0.7 gives ASR 2/1.1, ∆OR +4.1, ∆MT −0.05, harmful CKA 0.277, harmful-GCG CKA 0.353, boundary CKA 0.663, benign CKA 0.965. The authors state all settings push transfer to roughly 0% ASR, and only the intermediate γ preserves utility.
    • Similarity–transfer correlation (Table 1, 13 model pairs, three architecture-consistent families, outliers excluded): same-family Spearman ρ, harmful middle-layer CKA +0.910, Variance Explained +0.722, RSA (harmful) +0.739, Distance Ratio +0.571 (all p<0.01);跨族分别为 −0.336、−0.509、−0.685、−0.298。Figure 1 右图同族分箱:Low(<0.91)均值迁移 ASR 7.6%(n=16),Medium(0.91–0.96)36.4%(n=20),High(>0.96) 53.4% (n=14), annotated in the figure as 7.0× higher.
    • LoRA subsets and multiple layers: The authors state that restricting LoRA updates to layer subsets degrades performance (Appendix E.4); multi-layer strategies do not outperform a single mid-layer intervention (Appendix E.3), possibly due to cross-layer gradient dilution.
    • Hollow compliance: The authors state that after a successful defense, on prompts the baseline would comply with, the model often gives fluent, tonally matched responses that touch the surface of the request but contain no executable content (Appendices B, G). They distinguish this from refusal (blocking the response) and garbling (breaking fluency).
    • Evaluation pipeline thresholds (Appendix A.1): garbled neural classifier confidence > 0.85; automatic success is sc ≥ 0.15 and sh ≥ 0.70; automatic failure is sh < 0.25, or sh < 0.40 and sc < 0.05; boundaries go to WildGuard.
  5. What are some points that can be further explored?

    The authors list multi-anchor, synergy with RLHF/DPO, and multi-model joint optimization; limitations are written in the appendix.

    Limitations and future directions identified by the authors

    • Future directions (Section 5, Future directions): multi-anchor training (pushing away from multiple reference models), synergy with RLHF/DPO, and joint optimization with multiple models. The authors state preliminary ensemble source results in Appendix K.7 show robustness to best-of-2 suffix selection.
    • Location of limitations (Section 5): The authors state Limitations, scale considerations, and other analyses (CB's MT-Bench anomaly, CKA estimator comparison) are discussed in Appendices H, K.3, and L. The main text does not elaborate on specific sentences from these appendix entries.
    • Shared known limitation (Related Work): Schwinn and Geisler show that embedding-space attacks can bypass all representation engineering defenses, and the authors state AnchorRep shares this limitation. Section 4.2 reports partial bypasses by Embedding PGD and TAP.
    • CKA-only failure mode (Section 3.3, Section 5): Full-strength CKA repulsion broadly perturbs representations and harms benign outputs; the authors quantify this with BGR and state it appears in the CKA-only prototype (Table 4, Run 2) and in existing defenses.

    Experimental coverage

    • Defended models are Llama-3-8B, Mistral-7B, Vicuna-7B, Qwen-1.5-14B, Phi-3-medium-14B, 5 in total; CB, RMU, RepBend, CRL comparisons are only on Llama-3 and Mistral, and the authors state existing methods were not retrained for the latter three targets (Table 2).
    • Main transfer set is 20 sources × 100 GCG, totaling 2000; Self is 100, Transfer is 1900 from the remaining 19 sources. White-box adaptive is 100 per attack for five attacks. Similarity analysis uses the 20 LLMs in Figure 1; Table 1 uses three architecturally consistent families with outlier exclusion and pair-level aggregation.
    • Training uses 30 harmful prompts from the 520 in the AdvBench pool, 500 benign prompts from WikiText-2, and 200 boundary prompts from the XSTest safe subset; zero overlap with the 2000 evaluation set. HarmBench is 100 × 5; OR-Bench Hard is 1320; FalseReject reports changes in five defenses relative to baseline.
    • Attack adjudication is a five-stage pipeline plus WildGuard; jailbroken defended models are further manually reviewed per Appendix B. The paper does not report the number of experimental repetitions. Appendix A.11 gives Pipeline + WildGuard F1 of 0.778 and accuracy of 0.836.
    • Layer depth, anchor, and LoRA subsets are in Appendices E, D, and E.4, respectively; the main ablation of γ is on Mistral with anchor Qwen-1.5-7B (Table 4). Cross-prompt experiments are reported on Mistral-7B.
  6. Summarize the main content of the paper

    AnchorRep uses representation push-away to reduce cross-model transfer and maintains BGR at 0 with auxiliary losses.

    AnchorRep is a representation-divergence defense against cross-model jailbreak transfer: it uses LoRA to push the internal geometry on harmful prompts away from a frozen anchor, and training does not use adversarial examples.

    • Problem: An attacker with white-box access to an open-weight model can transfer attacks such as GCG to targets with different architectures that were not queried during optimization. The authors argue that transfer is consistent with shared representation geometry within families (same-family harmful middle-layer CKA and GCG transfer ASR have Spearman ρ of +0.910). Existing representation defenses can reduce ASR across models, but CB has a BGR of 77.1% on Llama-3, and OR-Bench over-refusal can increase by up to 18 percentage points.
    • Method: Minimize linear CKA with the anchor at the middle layer, plus a refusal direction, a weighted coherence to the base model, KL on benign and boundary prompts, and an optional LM loss when the base model's refusal is weak. LoRA rank 32, all layers updated, CKA at 50% depth; the reported configuration uses a cross-family anchor. Success is determined by a multi-stage pipeline plus WildGuard, then human review; degraded benign outputs are measured by BGR on OR-Bench.
    • Main results: In Table 2, the five targets have Transfer ASR 0.0–1.1%, Self ASR 0–2%, BGR all 0, and only AnchorRep simultaneously satisfies ASR ≤ 2%, BGR = 0%, ∆OR ≤ 8%. The abstract states that Mistral drops from 36% to 1.1%, and two models reach 0%.
    • Adaptive and generalization: Of the 25 white-box settings in Table 3, 22 have negative or zero ∆ASR; Phi-3 has TAP at +6. Embedding PGD retains 40–88% ASR on the 14B models, and TAP is 42% on Llama-3 (baseline 50%). HarmBench combined ASR goes from 5.3% to 2.7%. Cross-prompt GCG on Mistral-7B goes from 51.3% to 1.8%.
    • Authors' conclusions: Cross-model robustness can be obtained by shaping representation geometry without attack-specific training. The repulsion must be balanced with auxiliary losses, otherwise over-refusal or benign representation collapse occurs (Table 4: removing CKA gives ∆OR +32.4%, γ=1.4 gives benign CKA 0.142). The authors state that the middle layer is the intervention point that simultaneously approaches zero ASR and zero BGR, and they plan to continue with multi-anchor, RLHF/DPO synergy, and multi-model joint optimization.

Related papers

Show 3 more papers
Read originalNeurIPS 2026