Skip to content

Causal front-door adjustment for robust jailbreak attacks on LLMsCausal Front-Door Adjustment for Robust Jailbreak Attacks on LLMs

arXiv· arXiv:2602.05444· Yao Zhou, Zeen Song, Wenwen Qiang, Fengge Wu, Changwen Zheng·Indexed by this site · 2026-10-12· Originally publishedAttacks

Quick read

Attacks

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

CFA2 performs weight orthogonalization jailbreaks on four aligned models on HarmBench, with an average ASR of 83.68%.

Threat modelThe attacker aims to make the safety-aligned model output harmful, unethical, or restricted content, rather than refusals. The conclusion states reliance on white-box access: requires training SAE and directly modifying parameters. The capability is to locate defense directions using refusal/compliance contrast samples, orthogonalize output weights, then perform forward generation. The victim system is safety-aligned LLMs.

Questions
The authors address the problem that optimization-based jailbreaks fail under slight perturbations such as synonym substitution. They view safety alignment as a latent constraint that does not erase original capabilities, and model refusal as an unobserved confounder interfering with representations and outputs.
Methods
CFA2 uses SAE to turn hidden activations into sparse features, then separates task semantics and defense direction by contrasting refusal samples with compliant variants. It then projects output weights onto the orthogonal complement of that direction, making front-door marginalization a single forward generation.
Experiments and results
On HarmBench, the ASR of CFA2 for all four models is higher than the eight baselines in the table, with an average of 83.68%, and Llama 3.1 8B at 62.40%. The authors state that a single generation takes an average of 2.4 seconds, and the PPL of AdvBench prompts on Llama 2 7B is 16.7.
Limitations and future work
In the conclusion, the authors state that a key limitation is the reliance on white-box access; SAE training and direct parameter modification prevent direct application to closed-source models, and they plan to distill to black-box prompt optimization. The experiments do not report the implementation of the decision function g, nor how the comparison set was generated.
Experimental setupLlama 3.1 8B Instruct、Llama 2 7B Chat et al. · AdvBench、HarmBench · ASR、PPL
Evaluated models
Llama 3.1 8B InstructLlama 2 7B ChatMistral 7B InstructGemma2 9B InstructLlama 2 13B ChatLlama 2 70B Chat
Benchmarks
AdvBenchHarmBench
Metrics
ASRPPL
AI summaryThe researchers propose the causal front-door adjustment attack (CFA²), which models the safety mechanisms of LLMs as unobserved confounders and uses Pearl's front-door criterion to sever confounding associations to achieve jailbreak. This method uses sparse autoencoders (SAE) to strip defense-related features, isolate core task intent, and simplify the computationally expensive marginalization into a deterministic intervention with low inference complexity. The paper claims the experiments achieve state-of-the-art attack success rates while also providing a mechanistic explanation of the jailbreak process.

The researchers propose the causal front-door adjustment attack (CFA²), which models the safety mechanisms of LLMs as unobserved confounders and uses Pearl's front-door criterion to sever confounding associations to achieve jailbreak. This method uses sparse autoencoders (SAE) to strip defense-related features, isolate core task intent, and simplify the computationally expensive marginalization into a deterministic intervention with low inference complexity. The paper claims the experiments achieve state-of-the-art attack success rates while also providing a mechanistic explanation of the jailbreak process.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Treat safety alignment as an unobservable confounder, and use front-door adjustment to implement jailbreaks.

    Safety alignment is treated as an unobservable confounder; the authors believe existing jailbreaks fit surface-level correlations and fail under slight perturbations.

    • Scenario: The authors claim that even models aligned with strict safety protocols can be induced to generate harmful content via jailbreaks. Safety mechanisms operate as latent internal states, masking the model's inherent capabilities.
    • Existing shortcomings: Methods like GCG and PAIR achieve high success rates on specific benchmarks, but synonym substitution or syntactic rearrangement can render successful attacks ineffective. The authors argue these methods fit surface-level statistical correlations between adversarial prompts and outputs, without establishing robust pathways to bypass safety constraints.
    • Assumption: Pretrained models could answer harmful queries; alignment is a surface-level constraint rather than knowledge erasure (the authors cite Zhou et al., 2023; Wei et al., 2023a). The authors view failures as interference from the confounder of safety mechanisms, not as the model being unable to answer.
    • Proposal: Causal Front-Door Adjustment Attack (CFA2). Use Pearl's front-door criterion to sever confounding associations, use SAE to strip defense-related features and isolate task intent, then collapse the marginalization into a deterministic intervention with low inference complexity.
    • Threat model:
      • Goal: Maximize expected success rate, making the model give harmful, unethical, or restricted responses to harmful requests, rather than harmless refusals. Success is determined by a binary function g.
      • Knowledge: The conclusion states reliance on white-box access; requires SAE training and direct parameter modification, not directly applicable to closed-source models. The main text does not have a separate threat model section.
      • Capability: Use original harmful queries that trigger refusals and jailbreak variants that induce compliance, locate defense directions, and orthogonalize output weights; generation is a single forward pass. The inference input is denoted as a new harmful query in Figure 2.
      • Victim system: Safety-aligned LLMs. The main text uses RLHF alignment as an example of the unobservable safety mechanism U.
  2. What related research exists?

    Related work is divided into three categories: optimization, semantic, and parameter intervention; the authors claim they fit surface-level correlations.

    Three Paradigms of Jailbreaks

    • Optimization-based adversarial: GCG by Zou et al. (2023b), Liu et al. (2024a), Zhang and Wei (2025), Zhou et al. (2024), Jones et al.: search for adversarial suffixes or increase the probability of harmful responses.
    • Semantic manipulation: PAIR by Chao et al. (2024b), Mehrotra et al. (2024b), Li et al. (2024a; 2024b), and Chen, Shah, Yong, Deng, Yuan, Jin, Yao et al.: use in-context learning or language obfuscation to bypass constraints.
    • Fine-tuning or decoding interventions: Zhang et al. (2024), Huang et al. (2023): use weight updates or decoding to directly disrupt alignment.

    The authors cite Pathade (2025) and Liu et al. (2024c), stating that attacks transfer poorly across architectures and are sensitive to random seeds. The authors argue that the above methods mainly exploit surface correlations between prompt patterns and refusal failures, rather than causal mechanisms of behavior. The introduction also cites Rando and Tramer (2024) and Zhang et al. (2024) to show that slight semantic perturbations can render successful attacks ineffective.

    Representation Learning and Mechanistic Interpretability

    • RepE: Zou et al. (2023a) use dense activations to steer model behavior. The paper states it is limited by polysemy, where individual neurons encode multiple unrelated concepts (Elhage et al., 2022).
    • SAE: Huben et al. (2023), Bricken et al. (2023), Templeton (2024) use high-dimensional sparse projections to separate monosemantic features, ranging from encoding logic to safety bias. The paper states that existing SAE work is mostly descriptive analysis or benign steering (e.g., enhancing honesty, Subramani et al., 2022), and adversarial red-teaming uses are largely unexplored.

    Baseline Methods and Benchmarks

    • Baselines: GCG, PAIR, TAP, PAP, AutoDAN, ICA, ReNeLLM, DeepInception, 8 in total, covering optimization-based and template-based paradigms.
    • Benchmarks: AdvBench (Zou et al., 2023b) and HarmBench (Mazeika et al., 2024).

    The authors position this paper as: writing safety mechanisms as unobserved confounders in a structural causal model and using the front-door criterion to sever that connection; in contributions, they claim this is the first approach to do so. CFA2 is written as a training-free weight orthogonalization algorithm, using SAE to isolate invariant task-intent features.

  3. How does the paper address this problem?

    CFA2 uses SAE contrast to find the defense direction, orthogonalizes the output weights, and then generates in a forward pass.

    CFA2 formulates jailbreaking as an intervention on the mediator: first separate task semantics and defense directions from hidden representations, then remove defense directions in parameters, making the marginalization in the front-door formula a single forward pass. Figure 2 divides the process into two phases: identifying mediators and structural intervention; the caption writes CFA A, while the main text uses CFA2 or CFA².

    Problem Setup and Causal Graph

    • Goal: Dataset D={x_i} comes from harmful request distribution P(x). Model π_θ autoregressively samples responses y. Binary function g classifies y as jailbreak success (1) or harmless refusal (0). P_success is the expectation over x and y of g(y)=1. The paper does not specify whether g is implemented by rules, humans, or a model.
    • Causal graph (Figure 1): X is the query, A is the representation of X in the model, Y is the response, U is the unobservable internal safety mechanism. X→A→Y is written as task capability without constraints. U→A makes representations contain both task and safety signals, U→Y biases outputs toward refusal.
    • Mediator: S is the observable core task semantics in X. The authors assume the causal effect of task information on Y goes only through S, and S is independent of U. Generation is decomposed into X→A→S and S→Y.

    Front-Door Adjustment

    The authors use the interventional distribution P(Y|do(A)) to represent the response probability after logically cutting structural dependence on U. Since U is unobservable, they cite Pearl's front-door criterion, writing

    P(Y=y|do(A=a))=∑s P(S=s|A=a)∑a′P(Y=y|A=a′,S=s)P(A=a′)

    The outer sum corresponds to input a activating task semantics S, the inner sum marginalizes over background a' to wash out spurious correlations from U. The authors claim this avoids explicitly modeling U. They list three difficulties: locating S in high-dimensional latent space, efficiently estimating P(Y|S,A'), and collapsing the formula into a deterministic jailbreak objective.

    Locating with SAE and Contrast Samples

    • SAE: Encoder z=ϕ(Wx+b), decoder x̂=W'z+b'. The objective is reconstruction error plus λ-weighted L1 sparsity term. The paper does not give λ, layer number, or dictionary width. Dense activations are projected onto sparse dimensions, each dimension treated as a candidate feature.
    • Identifiability: Proposition 4.1, under reconstruction consistency, task sufficiency, sufficient response space variation, and super-Gaussian sparse prior, claims the learned representation a identifies latent factors z up to permutation and diagonal scaling. Proposition 4.2 splits z into task factor s and defense factor u: on contrast pairs (x,x+), s(x)=s(x+), u(x)≠u(x+); after removing the difference subspace, the projection onto the orthogonal complement identifies s (up to scaling and translation). Proofs are in the appendix; the provided main text does not expand the proofs.
    • Contrast data: D_harm are original harmful queries that trigger refusals, D_attack are jailbreak variants that induce compliance with the same task intent. The authors use contrast data and statistical tests to filter task-irrelevant representations, but do not give the test name or threshold, nor how D_attack is generated. Defense features correspond to decoder column directions d. Figure 3 caption states: u's activations shift between refusal and compliance, s aligns along y=x, and the defense centroid is an outlier.

    Generation after Weight Orthogonalization

    Under the linear representation assumption, the i-th feature's contribution to the residual stream aligns with the decoder column. The authors use weight orthogonalization to remove defense directions:

    Woutnew← Wout−WoutdTd

    They treat this projection as a parameter-level approximation of the marginalization in Eq. (2): any input through the new weights no longer carries U information, so summing over a' becomes redundant. Generation approximates as softmax of purified weights applied to LayerNorm-normalized activations, denoted as Eq. (5) in the paper, with complexity written as O(1). The contribution claims the algorithm is training-free; the conclusion also states SAE training is required. The Top-k used in main experiments and the layer where projection occurs are not reported in the main text.

  4. What experiments did the paper conduct?

    On HarmBench, CFA2 achieves an average ASR of 83.68%, and all four models are higher than the baselines in the table.

    Experimental Setup

    • Models: Llama 3.1 8B Instruct, Llama2 7B Chat, Mistral 7B Instruct, Gemma2 9B Instruct. Table 1 headers are Llama 3.1 8B, Llama 2 7B, Mistral 7B, Gemma 2 9B it; the results section also calls it Llama 3.1 8B Chat. The paper does not treat these as different models.
    • Data: AdvBench contains 500 harmful strings, with lengths from 3 to 44 tokens after LLaMA tokenization, averaging 16 tokens. HarmBench contains 510 harmful behavior instructions, and the paper lists seven categories: cybercrime, chemical and biological weapons/drugs, copyright, misinformation, harassment/bullying, illegal activities, general harm. Table 1 does not specify the actual number of evaluation items.
    • Baselines: GCG, PAIR, TAP, PAP, AutoDAN, ICA, ReNeLLM, DeepInception.
    • Metrics: ASR is the number of successful attacks divided by the total number of attacks, multiplied by 100; success means generating an unrestricted response that bypasses safety mechanisms. PPL measures fluency, with lower being more natural. The paper does not specify the implementation of g, nor the number of repetitions; Table 1 includes ±, but the symbol is not defined.
    • Questions the authors aim to answer: Can safety constraints be bypassed while maintaining semantic coherence; do causal interventions hold across models; computational overhead relative to optimization-based and template-based baselines.

    Main Results

    Table 1 only reports ASR (%) on HarmBench. The paper does not report ASR on AdvBench.

    Swipe horizontally to read the table

    Model (Table 1)CFA2GCGBest baseline for that model
    Llama 3.1 8B62.40±0.5015.67±1.23ReNeLLM 32.70±2.04
    Llama 2 7B73.90±0.6032.50±2.10ICA 50.10±1.12
    Mistral 7B99.10±0.2069.80±1.05ReNeLLM 73.20±1.09
    Gemma 2 9B it99.33±0.1573.00±0.88GCG 73.00±0.88
    Average83.68±0.3647.74±1.32GCG 47.74±1.32
    • The authors claim CFA2 achieves state-of-the-art and claim a +35.94% improvement over the strongest optimization baseline GCG. The main text does not perform significance tests.
    • The authors claim that on Llama 3.1 8B Chat, baselines struggle to exceed 33% ASR; this claim corresponds to the average baseline value in that column. They describe this model as more strongly aligned and claim CFA2 bypasses these mechanisms.
    • The authors claim that on Mistral 7B Instruct and Gemma 2 9B Instruct, ASR exceeds 99%, approaching saturation, and state that AutoDAN, TAP, and DeepInception have high variance. Low values in the same table include AutoDAN 0.50±0.10 on Llama 2 7B, PAP averaging 19.88±1.08, and DeepInception 11.20±1.96 on Gemma 2 9B it; the authors do not explain these low values individually.

    Efficiency

    Table 2 compares average wall-clock time to generate a single jailbreak response. CFA2 has complexity O(1), time 2.4 seconds, with a Speedup of ∼850× in the table. GCG is O(T×N), ∼340.0 seconds, 1×; AutoDAN is O(T×N), ∼425.0 seconds, 0.8×; PAIR is O(N), ∼45.0 seconds, ∼7.5×. The figure caption states that baseline latencies are from JailbreakBench, and the evaluation hardware is NVIDIA A100. The paper does not specify the hardware for the 2.4 seconds, nor the calculation basis for ∼850×. The authors state that after orthogonalizing the defense direction, no runtime optimization is performed.

    Stealthiness

    Table 3 reports adversarial prompt PPL on Llama 2 7B and AdvBench. CFA2 uses a Native Prompt with PPL 16.7, and the authors label stealthiness as Very High. GCG is ∼1027.6 (Gibberish Suffix, Low), AutoDAN is ∼54.5 (Semantically Fluent, High); these two are taken from Liu et al. (2024a). The authors claim 16.7 is close to benign text, but the paper does not provide a benign text PPL; they also claim the method does not introduce linguistic anomalies into the input and is unlikely to be detected by perplexity-based filters.

    Sparse Representation Ablation

    Table 4 compares feature spaces, but the paper does not specify the model or dataset. Random intervention (sparse): ASR 5.20%, PPL 8.55. Original neurons (dense, polysemantic): ASR 48.50%, PPL 652.40. CFA2 (sparse): ASR 98.50%, PPL 9.35. The authors state that original neurons still have some ASR, but output PPL increases significantly, attributing this to the polysemy of dense representations; random intervention has negligible effect. Here PPL is on the output side, not the same as the prompt PPL in Table 3.

    Other Ablations and Analyses

    • Activation clamping: The same safety feature is zeroed during the forward pass instead of modifying weights. The authors claim its ASR is about 15% lower than weight orthogonalization, and defense recovery tends to occur in long-text generation. Figure 4's x-axis is target generation length (caption says 0–150 tokens), and the caption states the red clamping curve declines while CFA2 maintains high success rate. Specific ASR readings, model, and dataset are not given in the main text.
    • Top-k: Figure 5's x-axis is the number of top-k features (1, 5, 10, 20, 50, 100, 200). The main text states ASR saturates around k≈10, with a plateau for k∈[10,50], slightly decreasing when too small due to insufficient recall and too large due to noise; and states k=20 is sufficient. ASR values for each k, model, and dataset are not reported.
    • Decoupling illustration: Figure 3 does not report ASR; it only contrasts the distribution shift of u on D_harm and D_attack and the alignment of s along the invariant line.
  5. What are some points that can be further explored?

    The authors state that it relies on white-box access and direct parameter modification, and plan to distill to black-box prompt optimization.

    Limitations and future directions noted by the authors

    • White-box access: The conclusion states that a key limitation is reliance on white-box access (Conclusion).
    • Not directly applicable to closed-source models: The conclusion states that SAE training and direct parameter modification prevent the method from being directly applied to closed-source models (Conclusion).
    • Future directions: The authors write that future work will distill these internal causal insights into black-box prompt optimization to fill this gap (Conclusion).

    The paper has no separate Limitations section. The Impact Statement discusses dual-use and the rationale for open mechanism research, without framing it as a method limitation.

    Experimental coverage

    • The tested models are Llama 3.1 8B Instruct, Llama2 7B Chat, Mistral 7B Instruct, and Gemma2 9B Instruct, totaling 4 (Section 5.1). The main ASR comparison is on HarmBench, with baselines GCG, PAIR, TAP, PAP, AutoDAN, ICA, ReNeLLM, and DeepInception (Table 1).
    • AdvBench is used for dataset definition and for adversarial prompt PPL on Llama 2 7B (Table 3). The paper does not report ASR on AdvBench.
    • The paper does not report the implementation of the judge function g, the generation method of D_attack, the SAE layer, λ, the k for main experiments, the number of repetitions, or the definition of ± in Table 1.
    • The GCG, AutoDAN, and PAIR latencies in Table 2 are cited from JailbreakBench, with hardware written as NVIDIA A100; the paper does not report the hardware for CFA2's 2.4 seconds, nor the calculation basis for ∼850×. The PPL for GCG and AutoDAN are taken from Liu et al. (2024a) (Table 3).
    • Ablations and sensitivity are in Table 4, Figure 4, and Figure 5; these three do not specify the model and dataset. Figure 3 uses D_harm and D_attack for decoupling illustration and does not report ASR.
  6. Summarize the main content of the paper

    Jailbreaking with front-door adjustment and weight orthogonalization, with an average ASR of 83.68% on HarmBench.

    The authors propose CFA2, framing the refusal of safety-aligned LLMs as a causal confounder and using front-door adjustment for white-box jailbreaking.

    • Problem: The authors argue that methods like GCG and PAIR fit surface correlations, and that synonym substitution or syntactic rearrangement can invalidate the attack. Their hypothesis is that alignment suppresses answering rather than erasing the answering capability already present in pretraining.
    • Method: In the causal graph, U influences both representation A and response Y; the observable mediator S represents task semantics and is set to be independent of U. SAE transforms hidden activations into sparse features, and comparisons between refusal samples and compliant variants are used to locate the defensive direction d that changes; after removing this direction from the output weights, generation is a single forward pass. The authors claim the attack algorithm is training-free, but the conclusion also states that SAE training is required.
    • Main results: On HarmBench, CFA2 outperforms all eight baselines in Table 1 across four models. The average ASR is 83.68%; Llama 3.1 8B is 62.40%, Llama 2 7B is 73.90%, Mistral 7B is 99.10%, and Gemma 2 9B it is 99.33%. The authors call this state-of-the-art and claim it is +35.94% higher than GCG's 47.74%.
    • Efficiency and prompts: In Table 2, CFA2 averages 2.4 seconds with O(1) complexity; baseline latencies are cited from JailbreakBench. On Llama 2 7B, the AdvBench prompt PPL is 16.7, which the authors label as Very High stealth.
    • Authors' conclusion: The authors state that this framework provides a mechanistic explanation for the jailbreak process and hope it helps improve LLM safety. The conclusion also notes reliance on white-box access and direct parameter modification, making it not directly applicable to closed-source models, with plans to distill causal insights into black-box prompt optimization.

Related papers

Show 3 more papers
Read originalarxiv.org