Skip to content

Improving LLM defense robustness through refusal feature adversarial trainingRobust LLM safeguarding via refusal feature adversarial training

arXiv· arXiv:2409.20089· ICLR 2025· Lei Yu, Virginie Do, Karen Hambardzumyan, Nicola CanceddaUniversity of Toronto; Meta FAIR; Meta; University College LondonIndexed by this site · 2026-10-14· Originally publishedDefenses

Quick read

Defenses

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

The authors propose ReFAT, which ablates refusal features during fine-tuning to simulate attacks, and say that across three LLMs the ASR of various attacks decreases with lower overhead.

Threat modelAttackers use input manipulation or ablation of refusal features on the residual stream to make instruction-tuned LLMs stop refusing harmful requests. The paper specifies per attack: GCG is white-box, PAIR is black-box; AutoDAN is a genetic algorithm, HumanJailbreaks are human templates. Success is determined by an output harmfulness classifier.

Questions
Adversarial attacks can bypass LLM safety refusals, while fine-tuning that dynamically simulates attacks has high evaluation cost. The authors seek more compute-efficient adversarial training so that models still refuse harmful requests under attack.
Methods
The authors say attacks generally bypass refusal by ablating a refusal feature in the residual stream (the mean difference in activations between harmful and harmless prompts). ReFAT removes this direction with some probability during supervised fine-tuning, and no longer ablates at evaluation time.
Experiments and results
In Table 1, the RFA attack ASR for the three models under ReFAT is 10.4%, 21.1%, and 18.8%, with forward/backward at 1.5/1. The authors state that the ASR for multiple attacks is lower than for the undefended model; on individual cells, LAT, CAT, or R2D2 is lower.
Limitations and future work
The authors state that if refusal features are computed only from Alpaca harmless instructions, non-English or colloquial attacks may still succeed. The appendix acknowledges that hyperparameters could be searched further. Experiments evaluated three instruction models and five attacks; LAT only has the released Llama checkpoint, and Gemma's R2D2 was not run to completion.
Experimental setupMeta-Llama-3-8B-Instruct、Mistral-7B-Instruct-v0.2 et al. · HarmBench、AdvBench et al. · ASR、MMLU et al.
Evaluated models
Meta-Llama-3-8B-InstructMistral-7B-Instruct-v0.2gemma-7b-itgemma-2b-it
Benchmarks
HarmBenchAdvBenchMMLUMT-BenchXSTestAlpacaUltraChat
Metrics
ASRMMLUMT-BenchXSTest compliance rateforward/backward passes
AI summaryThe paper proposes ReFAT, an LLM adversarial training algorithm that simulates input-level attacks through refusal feature ablation (RFA), improving robustness against various adversarial attacks on three mainstream LLMs. The authors find that various adversarial attacks can bypass LLM defenses through the same mechanism—ablating a dimension in the residual stream embedding space called the refusal feature—and further show that RFA approximates the worst-case perturbation that cancels model safety. Compared to existing adversarial training methods, ReFAT has significantly lower computational overhead when training these models.

The paper proposes ReFAT, an LLM adversarial training algorithm that simulates input-level attacks through refusal feature ablation (RFA), improving robustness against various adversarial attacks on three mainstream LLMs. The authors find that various adversarial attacks can bypass LLM defenses through the same mechanism—ablating a dimension in the residual stream embedding space called the refusal feature—and further show that RFA approximates the worst-case perturbation that cancels model safety. Compared to existing adversarial training methods, ReFAT has significantly lower computational overhead when training these models.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Adversarial attacks bypass defenses by ablating refusal features; ReFAT simulates this operation during fine-tuning to improve robustness.

    How to mitigate adversarial attacks on LLM safety refusals under acceptable computational cost.

    • Scenario: The authors say LLMs have entered high-risk applications, but carefully crafted inputs can bypass safety mechanisms and generate harmful, sensitive, or false content. Gradient suffixes, rewriting by another LLM, genetic algorithms, and other attacks differ in surface approach, making it hard to find a unified target for defense.
    • Existing shortcomings: The authors say effective adversarial training often requires dynamically simulating attacks during fine-tuning, and a single attack may require thousands of model evaluations, making the overhead such that adversarial training is hard to use as a general tool. The authors also list the opacity of jailbreak mechanisms as a difficulty in designing defenses.
    • Core observation: The authors say multiple attacks share the same mechanism: ablating a refusal feature in the residual stream, making harmful requests look more like harmless ones. The authors further say that refusal feature ablation (RFA) approximately cancels the worst-case perturbation to model safety.
    • What this paper does: The authors propose Refusal Feature Adversarial Training (ReFAT): during safety fine-tuning, RFA is used to simulate input-level attacks, so the model still refuses harmful instructions when this malicious direction is missing, while preserving general capabilities such as Q&A as much as possible.
    • Threat model:
      • Goal: The attack makes the model give compliant answers to harmful requests; the defense aims to reduce attack success rate while minimizing loss of general capability.
      • Knowledge: The paper states this separately per method, with no unified assumption. GCG is a white-box suffix attack; PAIR is black-box, iteratively rewritten by an attacker LLM. AutoDAN is written as a genetic algorithm; HumanJailbreaks are wild human templates. RFA directly modifies residual stream activations.
      • Capability: The attacker can modify user-side inputs; in RFA evaluation, it can also modify intermediate representations along the refusal direction. The paper does not write these as the same attacker.
      • Victim system: Instruction-tuned decoder LLMs. Experiments use three open-source instruction models. Success is determined by a classifier on the harmfulness of the model output.
  2. What related research exists?

    Related work covers adversarial attacks, adversarial training, representation engineering, and linear refusal features.

    Adversarial Attacks

    • GCG (Zou et al., 2023b): Uses greedy coordinate gradient search for suffixes that trigger unsafe responses. The authors state that its adversarial examples can transfer from smaller open-source models to larger proprietary models.
    • PAIR and AutoDAN: PAIR from Chao et al. (2023) has an attacker LLM repeatedly query the target and rewrite jailbreak prompts. AutoDAN from Liu et al. (2023) uses a hierarchical genetic algorithm to generate high-perplexity jailbreaks. The introduction also mentions automatic prompt search from Shin et al. (2020), and Yu et al. (2023), Andriushchenko et al. (2024).
    • Human templates and continuous activation attacks: Related work lists manual prompt engineering (Shen et al., 2023; Anil et al., 2024, etc.), and work that performs continuous adversarial attacks on activations, breaks alignment, or triggers forgetting (Zou et al., 2023a; 2024; Schwinn et al., 2023; Arditi et al., 2024).

    Defenses and Adversarial Training

    • Prompts and introspection: Modifying system prompts to remind about harmful requests (Xie et al., 2023; Zheng et al., 2024), or having the model introspect for alignment checks (Cao et al., 2023). The authors state that results can sometimes be overly cautious, refusing normal instructions.
    • Adversarial training: One line adds continuous perturbations to input token embeddings (Zhu et al., 2019; Jiang et al., 2020; Xhonneux et al., 2024), another perturbs the residual stream to increase the likelihood of undesirable responses (Casper et al., 2024; Sheshadri et al., 2024). R2D2 from Mazeika et al. (2024) fine-tunes on a dynamic GCG adversarial pool.
    • Representation engineering: Zou et al. (2024) attempt to short-circuit the model's internal processes that aggregate information relevant to unsafe requests. Another line fine-tunes models so that steering vectors can be added to the residual stream at evaluation time to control safety (Stickland et al., 2024; Cao et al., 2024).

    Linear Features in Activation Space

    • Linear representations: The authors cite Mikolov et al. (2013), Elhage et al. (2022), Park et al. (2023), stating that features are often linear directions in activation space.
    • Contrastive features: Harmlessness, truthfulness, sentiment, and refusal (Arditi et al., 2024) are often estimated from contrastive input pairs and used for inference-time behavior control, or to remove specific knowledge from parameters (Rimsky et al., 2023; Burns et al., 2023; Ravfogel et al., 2020, etc.). The paper surveys these uses without critiquing each one.

    Baselines and Benchmarks

    • Baseline methods: Refusal training RT (same refusal data as ReFAT but pRFA=0), R2D2, continuous adversarial training CAT, latent adversarial training LAT.
    • Benchmarks/datasets: Robustness uses HarmBench and AdvBench; general capability uses MMLU, MT-Bench, and compliance on XSTest. The refusal features used for analysis are additionally sampled from AdvBench and Alpaca.

    The authors place the paper at the intersection of adversarial training and representation engineering: refusal feature ablation is treated as a representation modification used to approximate adversarial perturbations in adversarial training, thus avoiding the need to search for discrete attacks during fine-tuning.

  3. How does the paper address this problem?

    ReFAT ablates dynamically recomputed refusal features with probability during forward passes on harmful samples, then supervises fine-tuning to refuse responses.

    The overall approach is to first write jailbreaks as an ablation of the refusal feature on the residual stream, then use the same ablation as an adversarial perturbation in supervised fine-tuning, i.e., ReFAT. At evaluation time, no ablation is performed.

    Refusal feature and ablation

    • Representation location: The residual stream of layer l in a decoder Transformer is the previous layer's hidden state plus attention and MLP updates. The authors focus on the residual at each layer of the last token of the user turn, taken as the position where the model decides to refuse or comply.
    • Definition: Following Arditi et al. (2024), the mean difference is used. The harmful set and harmless set each have 500 items, from AdvBench and Alpaca, respectively. The refusal feature at layer l is the difference between the means of the last-token residuals of the two sets: r(l)HH=1/(|Dharmful|)∑x∈ Dharmfulh(l)(x)−1/(|Dharmless|)∑x∈ Dharmlessh(l)(x). The authors treat it as a one-dimensional linear direction of input harmfulness.
    • Inference-time ablation: Unlike Arditi et al., after projecting out the refusal direction, the authors add back the average activation of harmless prompts along that direction: h′(l)(x)← h(l)(x)−r̂r̂⊤h(l)(x)+r̄(l)Dharmless. The reason is that in early small-scale experiments, zeroing the direction directly hurt performance, which the authors think may be out-of-distribution; Appendix D says that on Llama-3-8B-Instruct, refusal features of harmless samples are not concentrated near zero.

    How attacks are written as the same operation

    • Discrete attacks: On 400 malicious requests from HarmBench, GCG, PAIR, AutoDAN, and HumanJailbreaks are run on three LLMs. Only samples judged as successful jailbreaks by the official HarmBench classifier are kept, and the offset of "adversarial prompt mean minus original prompt mean" is computed at each layer.
    • Control: The cosine similarity of this offset with the opposite of the refusal feature is compared against the direction of the mean difference after randomly splitting the harmful and harmless sets in half. In addition, the comparison set and original/adversarial prompt pairs are projected onto the first two principal components of the harmful–harmless representation.
    • Causal intervention: For already successful adversarial prompts, the refusal direction is reset to the mean of un-attacked harmful prompts along that direction, so the attack cannot change this direction, and then the attack success rate is measured. This is an analysis intervention, not a training algorithm.

    Treating RFA as the worst-case perturbation

    • Safety score: For (harmful instruction, refusal response, compliant response), the authors measure safety with z, the log-likelihood ratio of the refusal response to the compliant response. An adversary adds a perturbation δ to the residual stream to make the model prefer compliance; adversarial training then minimizes z over the allowed perturbation set, then maximizes z over parameters.
    • Approximation test: Take HarmBench instructions that the model refuses under direct requests. For each prompt, 100 perturbed inferences are done: 99 random unit-norm noises plus the normalized refusal feature at that layer. Optimality is defined as the average rank of the refusal feature when sorted by z. The authors use this to treat RFA as an attack simulation in adversarial training, without further gradient search.

    ReFAT training

    • Loss: The data is divided into harmful requests–refusal responses and harmless requests–helpful responses. The total loss is the sum of the two. Harmful samples, with probability pRFA, have the refusal direction removed at each layer in the forward pass before fitting the refusal response; with probability 1-pRFA, no ablation is done; harmless samples are never ablated. The training-time ablation does not include the harmless mean patch of Equation 3. The authors say adding this term costs one more computation, and in initial experiments training was slower with little performance gain; the paper does not report the difference.
    • Dynamic features: Parameters and activations change during fine-tuning, so every k=4 steps, n=32 samples are drawn from the refusal set and utility set each, and refusal features at each layer are recomputed using Equation 2. The authors say this requires only a small number of extra forward passes, with no extra backward passes to search for perturbations.
    • At evaluation time: No refusal feature ablation is performed. The authors explicitly note this differs from work that adds steering vectors at evaluation time.
    • Implementation choices: All three instruction models use LoRA on all linear sublayers. Appendix A, Table 4: learning rate 2e-5, 1 epoch, AdamW, max length 512, gradient clipping 1.0; batch size 32 and LoRA rank 128 for Llama and Mistral, 8 and 64 for Gemma; LoRA alpha is 32 for all. Refusal feature ablation layers are [8,32] for Llama/Mistral and [7,28] for Gemma. The authors say ablating the last 75% or 50% of layers tends to be more stable, and more than 1 epoch tends to overfit with higher average ASR. pRFA is 0.5, which the authors say best balances safety with and without attacks; 0.25, 0.5, 0.75, and 1.0 were searched, and the paper does not report scores for each value.
  4. What experiments did the paper conduct?

    The authors claim ReFAT reduces ASR for multiple attacks on three models, and that forward/backward overhead is lower than R2D2, CAT, and LAT.

    Experimental Setup

    • Models under test: Meta-Llama-3-8B-Instruct, Mistral-7B-Instruct-v0.2, gemma-7b-it (written as Llama3-8B, Mistral-7B, Gemma-7B in Table 1). LAT only uses the already released Llama-3-8B checkpoints from Sheshadri et al. (2024); the authors state they did not train it themselves due to resource constraints. Gemma's R2D2 was not completed due to memory and instability.
    • Data: Training uses the adversarial training data from Zou et al. (2024): 5000 harmful requests, 5000 UltraChat harmless conversations, plus 150 XSTest requests that look dangerous but should not be refused; the reference answers for these samples are generated by Llama-3-8B-Instruct. Robustness evaluation uses the standard behavior on 200 shorter-context items from HarmBench, plus 200 AdvBench items that do not overlap with HarmBench, for a total of 400. Utility is MMLU, MT-Bench, and the compliance rate on the 100 held-out XSTest items.
    • Baselines: RT, R2D2, CAT, LAT. R2D2 and CAT use the same refusal-plus-utility data as ReFAT; the "refusal loss" uses completions provided by Zou et al. (2024) and generated by an uncensored LLM, which the authors did not run themselves.
    • Attacks and metrics: GCG, PAIR, AutoDAN, HumanJailbreaks, and RFA from Equation 3. Implemented as the HarmBench versions with default hyperparameters, except that PAIR's attack model is changed from GPT-4 to Mixtral-8x7B-v0.1. Lower ASR is better. The ASR and XSTest compliance rates in Table 1 are the average of three reviewers: the official HarmBench classifier (fine-tuned from Llama-2-13B), Llama-Guard-2 (fine-tuned from Llama-3-8B), and the Gemma-2B version of StrongReject. The paper does not state the classification threshold or report the number of repetitions.
    • Utility evaluation: MMLU is the standard score. MT-Bench uses Prometheus instead of GPT-4; the authors state its scores correlate with GPT-4 grading rubrics. Hyperparameters were first compared on a small set of 40 AdvBench items, then the full evaluation was run.
    • Cost columns: In Table 1, Forward/Backward are the extra forward and backward passes relative to ordinary fine-tuning.

    Main Results

    According to Table 1. The no-attack column is the proportion of harmful answers to HarmBench requests when no attack is applied; GCG, PAIR, and RFA are attack success rates. Model names follow Table 1.

    Swipe horizontally to read the table

    Model and defenseNo attackGCGPAIRRFA
    Llama3-8B undefended10.427.129.953.3
    Llama3-8B+ReFAT7.6013.311.510.4
    Mistral-7B undefended41.163.569.785.6
    Mistral-7B+ReFAT5.7916.621.821.1
    Gemma-7B undefended28.761.438.492.8
    Gemma-7B+ReFAT5.1711.68.7518.8
    • Authors' summary: The authors state that ReFAT reduces the average ASR for every attack and every model, and that it is the only defense effective against the RFA attack. In the same RFA column of the table, the lowest values among the other defenses are Llama+CAT 36.5, Mistral+R2D2 44.6, and Gemma+RT 44.2, all higher than the corresponding ReFAT values.
    • Not the lowest in every cell: On Llama's GCG, LAT is 9.06 and CAT is 11.8, both lower than ReFAT's 13.3; on Mistral's AutoDAN, R2D2 is 27.4, lower than ReFAT's 28.5; on Gemma's HumanJailbreaks, CAT is 9.35, lower than ReFAT's 9.90. The authors state that RT often fails to improve and sometimes harms robustness: Llama+RT's GCG is 28.3 and HumanJailbreaks is 7.22, both higher than the undefended 27.1 and 7.13. Llama+CAT's HumanJailbreaks is 7.98, also higher than 7.13.
    • Utility and cost: The authors state that the utility data makes the impact on general capability negligible overall. ReFAT's MT-Bench/MMLU/XSTest are Llama 6.98/65.2/97.6 (undefended 7.24/65.9/97.2), Mistral 6.94/58.2/88.4 (7.02/58.9/92.4), Gemma 6.53/52.4/88.7 (6.60/52.0/89.2). Forward/backward is 1.5/1, R2D2 is 2566/6, and CAT and LAT are 11/11. The authors state that by total forward-plus-backward passes, ReFAT is on average 1,700 times cheaper than R2D2 and 10 times cheaper than CAT/LAT.

    AutoDAN, outside the table but still part of Table 1: Llama undefended 2.07, ReFAT 0.85; Mistral 77.4, 28.5; Gemma 13.0, 6.54. HumanJailbreaks: Llama 7.13, 5.54; Mistral 72.9, 6.5; Gemma 26.2, 9.90.

    Whether Attack and Refusal Features Align in the Same Direction

    • What was measured: Three models, four discrete attacks; only on the subset judged successful by the official classifier, the cosine similarity between the representation shift at each layer and the negative refusal feature is computed (Figure 2), as well as a two-dimensional PCA of layer 16 of Llama-3-8B-Instruct (Figure 3).
    • Results: The authors state that the shifts from all four attacks align in the opposite direction to the refusal feature, with average cosine similarity higher than random directions, and that this difference is higher than random in high-dimensional space; the shading in Figure 2 is a 99% confidence interval. The main text does not give per-layer cosine values. The caption of Figure 3 states that the positions and lengths of the two types of arrows were adjusted for readability; the authors state the two directions are similar, and this alignment already appears in middle layers. A footnote states that alignment appears in all layers except the earliest few; Appendix C states that original prompts and adversarial prompts separate from early layers, and the upper-layer adversarial representations are closer to the Alpaca safe-instruction cluster. The attached text does not include cluster coordinates.
    • Restoration experiment: After restoring the refusal feature of successful adversarial prompts to the mean of the original harmful prompts according to Equation 5, the authors state that the ASR of all four attacks drops substantially and the attacks largely fail (Figure 4). The main text does not give per-bar readings. Here the evaluation is the official HarmBench classifier, not the three-reviewer average of Table 1.

    Generation Scores After Restoring the Refusal Feature

    • What was measured: After clamping the refusal feature of three LLMs according to Equation 5, MMLU and MT-Bench are measured again (Table 5), to check whether the ASR drop in Section 3.3 comes from worse generation.
    • Results: Llama goes from 65.9/7.24 to 65.5/7.07, Mistral from 58.9/7.02 to 58.1/6.97, and Gemma from 52.0/6.60 to 51.8/6.74. The authors state that no significant change is seen on either benchmark, and that clamping does not break generation coherence but only fixes the level of caution about input safety at a higher value. The paper does not report test statistics for this comparison.

    Post-Training Response Patterns and Samples Still Jailbreakable

    • What was measured: Applying what the authors call the strongest attack, RFA, to AdvBench instructions, comparing the original Llama-3-8B-Instruct with the ReFAT version (Table 2); then examining samples where GCG still jailbreaks the ReFAT model (Table 3).
    • Results: The authors state that RFA often makes the original model enter a helpful mode with a compliant or friendly opening and continue with harmful content. The ReFAT model can also be led to a verbally compliant opening, but then refuses the request or explains why the input is harmful. Table 2 states that both models respond to these three instructions with standard refusals when no attack is applied.
    • Authors' interpretation: The failure samples in Table 3 bring the model into a linguistic context very different from the Alpaca harmless instructions used to compute the refusal feature. The authors state that the model is still not vigilant enough about malicious content when asked to answer in a language other than English, or to speak in an underrepresented colloquial variant of English.

    Other Ablations and Analyses

    • pRFA: Appendix A chooses 0.5 from 0.25, 0.5, 0.75, 1.0; ASR per value is not reported.
    • Ablated layers: Comparing all layers, last 75%, last 50%, last 25%; the chosen range is in Table 4, and per-group scores are not reported.
    • Epoch: The authors state that more than 1 epoch tends to overfit and gives higher average ASR; no ASR is given.
    • Third term of Equation 3: The authors state that adding the harmless-mean patch during training is slower and gives little improvement; no difference values are given.
    • Hyperparameter search range: CAT and R2D2 use the official default hyperparameters; the authors state that changing the relative weight of the utility loss often degrades performance, without giving specific scores.
    • Figure 5: The authors state that refusal-feature injection in the last few layers approaches the worst-case perturbation; the main text has no per-layer opt readings.
  5. What are some points that can be further explored?

    The authors state that the current corpus language for refusal features is not diverse enough and suggest recomputing with more diverse instructions.

    Limitations and Future Directions Noted by the Authors

    • Language and semantic coverage (Section 7): The authors state the current limitation of ReFAT as: the harmless instructions used to compute refusal features are not diverse enough. Future work should use instructions with more semantic and linguistic diversity to compute refusal features, to handle jailbreaks that still succeed in non-English and colloquial contexts.
    • Confidence in safety (Section 9 ethics statement): The authors state that improved robustness may lead to overconfidence in LLM safety, thus requiring continuous red-teaming.
    • Misuse (Section 9): The authors state that adversarial training could be used to suppress content that model operators find undesirable, regardless of whether that content is harmful.
    • Evaluation protocol (Section 9): The authors state that failure modes show LLMs may still be vulnerable to certain attacks (e.g., multilingual attacks), thus requiring stricter, more reliable evaluation protocols.
    • Hyperparameters (Appendix A): The authors acknowledge that they tuned defenses as much as possible within a limited compute budget, but more careful hyperparameter search could still yield better utility-robustness trade-offs.

    Experimental Coverage

    • Models and defenses: Robustness and utility tables cover three instruction models: Llama-3-8B, Mistral-7B, Gemma-7B. LAT is only evaluated on the released Llama-3-8B checkpoint. The paper states that R2D2 for Gemma-7B was not completed due to memory and instability, and leaves it for future work.
    • Attacks and data: Attacks are GCG, PAIR, AutoDAN, HumanJailbreaks, and RFA. Robustness evaluation set is 200 shorter standard behaviors from HarmBench plus 200 non-overlapping from AdvBench. The no-attack column is specified as targeting HarmBench requests.
    • Evaluation: ASR and XSTest compliance in Table 1 are averages over three safety classifiers. Figure 4 in the mechanism analysis uses only the official HarmBench classifier. The paper does not report agreement between reviewers and humans, nor classification thresholds.
    • Attack configuration: The four discrete attacks use HarmBench implementations and default hyperparameters; PAIR's attacker model is changed to Mixtral-8x7B-v0.1. The paper does not report query counts or repetitions for each attack.
    • Training and utility: Fine-tuning is 1 epoch, LoRA, refusal features recomputed every 4 steps with 32/32 items, pRFA=0.5. Utility metrics are MMLU, MT-Bench (Prometheus), and compliance on 100 held-out XSTest samples.
  6. Summarize the main content of the paper

    ReFAT uses refusal feature ablation to simulate attacks for adversarial training; the authors claim it reduces multiple ASRs at lower overhead.

    ReFAT uses refusal feature ablation on the residual stream in place of attack search, performing adversarial training on instruction-tuned LLMs.

    • Problem: Various adversarial attacks can make models stop refusing harmful requests, and dynamically running attacks during fine-tuning has high model evaluation counts. The authors seek a defense that is computationally cheaper and trains against the same mechanism.
    • Mechanism: The refusal feature is the mean difference between harmful and harmless prompts on the last-token residual. The authors say GCG, PAIR, AutoDAN, and human templates all push harmful requests in the opposite direction of this feature; restoring this direction to the un-attacked mean makes these attacks largely fail. The authors also say that injecting refusal features from later layers into the residual stream approximates the worst-case perturbation that lowers safety scores.
    • Training: Every 4 steps, 32 pairs of harmful/harmless requests are used to recompute refusal features; with probability 0.5 the direction is removed in the forward pass on harmful samples, and the supervised model still outputs refusals; harmless conversations are used to preserve utility. At evaluation time, no ablation is performed and no additional reverse search is done. All three models use LoRA and 1 epoch.
    • Main results: According to Table 1, after ReFAT the RFA attack ASR for Llama3-8B, Mistral-7B, and Gemma-7B is 10.4%, 21.1%, and 18.8%, versus 53.3%, 85.6%, and 92.8% without defense. Forward/backward is 1.5/1, R2D2 is 2566/6, and CAT/LAT is 11/11. The authors say the ASR of discrete attacks is also lower than the undefended model; on grids such as GCG for Llama, LAT or CAT is lower, and on AutoDAN for Mistral, R2D2 is slightly lower. MT-Bench changes from 7.24, 7.02, 6.60 to 6.98, 6.94, 6.53.
    • Authors' conclusion: The authors say that after such training, ablating only one refusal feature makes it harder to break the defense, and mechanism analysis can be used for safety fine-tuning. Section 7 also states that in non-English and colloquial contexts, GCG can still jailbreak ReFAT-trained Llama.

Related papers

Show 3 more papers
Read originalICLR 2025