Skip to content

Research proposes Safety Operator: using spectral optimization to adjust the expression strength of safety instructionsThe Safety Operator: Modulating the Expression of Safety Instructions via Spectral Optimization

arXiv· arXiv:2609.36434· Benoit Dherin, Michael Munn, Xavier Gonzalvo, Adrian Goldwaser, Blaz Bratanic, Ananth Balashankar, Andrey Vlasov, Pinzhi Huang, Cecile Loge, Nicole Mitchell, Andre Fernandes, Trilok Acharya, Wendy Kan, Ziyue Wang, Hanna Mazzawi, Felipe Tiengo Ferreira, Mor Geva·Indexed by this site · 2026-10-03· Originally publishedDefenses

Quick read

Defenses

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

The paper proposes Safety Operator, using a suppression weight ρ to adjust the eigenvalues of safety instructions, sweeping an ASR–ORR trade-off on the extended JBB of Gemma 3 1B, and achieving Pareto improvements under some parameterizations.

Threat modelThe optimizer rewrites the safety instruction Y or its suffix so that the eigenvalue λsafe of the Safety Operator increases on harmful queries and approaches 1 on harmless queries. Knowledge is white-box activations and gradients (Hard GCG/HardR/Soft/Mixed). The victim system is Gemma with a system prefix and safety instruction; model weights are not modified. Success is determined by a decrease in ASR and no increase in ORR.

Questions
Handwritten safety instructions rely on trial and error, lacking a formal objective to simultaneously reduce attack success on harmful requests and avoid over-refusal on harmless ones.
Methods
Absorbs the safety instruction into a rank-1 Safety Operator, uses Contrastive Safety Loss with suppression weight ρ to modulate eigenvalue λsafe, and optimizes over four parameterizations: Soft, Mixed, Hard GCG, HardR.
Experiments and results
On the extended JBB of Gemma 3 1B, sweeping ρ yields the ASR–ORR curve. Most Pareto points from Soft and Hard GCG training are confirmed on the test set; Mixed only has near-Pareto points; removing Short SI raises ASR from 13.81% to 26.53%.
Limitations and future work
The authors state that experiments only use two Gemma scales and two instruction templates, OOD transfer depends on parameterization and dataset, and hyperparameters are biased toward reducing in-distribution ASR. The tested models are Gemma 3 1B/4B, with the main protocol being 100 triples from the extended JBB, R=5, K=5.
Experimental setupGemma 3 1B、Gemma 3 4B · JailbreakBench (JBB) extended 300 pairs、AdvBench et al. · ASR、ORR et al.
Evaluated models
Gemma 3 1BGemma 3 4B
Benchmarks
JailbreakBench (JBB) extended 300 pairsAdvBenchXSTest
Metrics
ASRORRΔASRΔORR
AI summaryThe paper studies the multiplicative operator formed when context tokens are absorbed into weights in Transformer language models, and proves that influencing its principal eigenvalue can modulate the strength of safety instruction influence on generation. From this, the authors derive a contrastive safety loss with suppression weight, strengthening safety instructions on harmful queries and suppressing them on harmless ones. Varying the suppression weight characterizes the relationship between attack success rate and over-refusal rate, supporting the hypothesis that the operator eigenvalue serves as a continuous knob for instruction influence. This relationship holds relatively across different parameterizations of the safety loss, and with appropriate suppression weights yields Pareto-improving safety instructions.

The paper studies the multiplicative operator formed when context tokens are absorbed into weights in Transformer language models, and proves that influencing its principal eigenvalue can modulate the strength of safety instruction influence on generation. From this, the authors derive a contrastive safety loss with suppression weight, strengthening safety instructions on harmful queries and suppressing them on harmless ones. Varying the suppression weight characterizes the relationship between attack success rate and over-refusal rate, supporting the hypothesis that the operator eigenvalue serves as a continuous knob for instruction influence. This relationship holds relatively across different parameterizations of the safety loss, and with appropriate suppression weights yields Pareto-improving safety instructions.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Using eigenvalues to make the expression strength of safety instructions an adjustable knob, balancing refusal and fewer false refusals.

    How to use a computable objective to modulate safety instructions so that expression is stronger on harmful requests and near-inert on harmless ones.

    • Scenario: The authors say system prompts condition LLM behavior, but the mechanism is unclear. Production safety instructions (SI) are handwritten and tuned by trial and error, with no formal mathematical objective to guide wording, needing to both reject harmful requests and avoid over-refusing harmless ones.
    • Existing shortcomings: The authors classify representation engineering, activation addition, conditional routing, and attention weighting as injecting static or gated directions into the residual stream; these interventions do not optimize the prompt itself. RLHF, soft prompts, and external monitoring change the policy, context, or filter outside the model. The authors say existing prompt optimization lacks a contrastive suppression term derived from operator spectral structure.
    • Core observation: Continuous context tokens can be absorbed into MLP weights, becoming a multiplicative operator. For a safety instruction Y, the Safety Operator is S(Y)=I+Δq(Y), a rank-1 perturbation of the identity, stretching only along the safety direction with eigenvalue λsafe. The authors hypothesize that modulating this principal eigenvalue can continuously control the instruction's influence on generation.
    • This paper's approach: Derives a Contrastive Safety Loss with suppression weight ρ, raising λsafe on harmful queries and pulling it toward 1 on harmless ones. Sweeps ρ over four parameterizations—Soft, Hard GCG, HardR, Mixed—to examine the trade-off between ASR and over-refusal rate (ORR), and whether Pareto improvements over the original instruction emerge. The authors say the goal is to introduce this mathematical tool; competitive benchmarking is left for future work.
    • Threat model:
      • Goal: Given harmful query β+ and harmless query β−, maximize λsafe on harmful queries and drive λsafe toward 1 on harmless ones, thereby lowering ASR without increasing ORR.
      • Knowledge: The loss is defined on internal activations; continuous methods use gradient descent, Hard GCG projects safety gradients onto the embedding matrix for single-token replacement; the paper does not use the terms no-box/black-box/white-box to describe this setting.
      • Capability: The optimizer rewrites the safety instruction's continuous embeddings (Soft), appends discrete or continuous suffixes after a frozen human-written instruction (Hard / HardR / Mixed); system prefix α is fixed. Model weights W are not modified.
      • Victim system: An instruction-tuned model with prompt structure [α, Y, β]. Main experiments use Gemma 3 1B, with 4B in the appendix. Success is determined by a frontier-model autorater classifying responses as compliant or refusing, then computing ASR and ORR.
  2. What related research exists?

    The work builds on in-context as implicit weight updates and compares against steering, alignment, and prompt optimization.

    The paper divides related work into implicit updates in in-context learning, and steering, conditional routing, attention weighting, and safety alignment/prompt optimization.

    Context as implicit weight update

    • Dherin et al. (2025), Innocenti & Achour (2025), Goldwaser et al. (2026): Absorb the effect of a context token sequence on query tokens as a multiplicative update on transformer MLP weights. This paper defines the Safety Operator within this framework.
    • von Oswald et al. (2023), Akyürek et al. (2023), Geva et al. (2021): Foundational theory of in-context learning and feedforward layers as key-value memories. The paper says it extends this to safety alignment.
    • Arditi et al. (2024): The authors say it shows that refusal in aligned models is mainly mediated by a one-dimensional subspace in the residual stream. This paper writes instruction effects as a query-dependent multiplicative operator rather than a single fixed refusal direction.

    Activation steering, conditional routing, and attention weighting

    • RepE (Zou et al., 2023a), Activation Addition (Turner et al., 2023), CAA (Rimsky et al., 2024), ITI (Li et al., 2023): Extract fixed directions from contrastive prompts and add them to the residual stream. Follow-ups include PID Steering (Nguyen et al., 2026), Refusal Steering (García-Ferrero et al., 2026), RepIt (Siu et al., 2026).
    • CAST (Lee et al., 2025), SCANS (Cao et al., 2025), ELS (Jiang et al., 2026): Use similarity switches, layer classifiers, or energy models to decide when and how strongly to intervene. The authors say they do not modify the system prompt but attach runtime controllers externally.
    • PASTA (Zhang et al., 2024a), SEKA (Li et al., 2026), InstABoost (Guardieiro et al., 2025), SpotLight (Venkateswaran & Contractor, 2026): Re-weight attention toward instructions at inference time. Task Arithmetic (Ilharco et al., 2023) and task vectors from Hendel et al. (2023) are on the weight or demonstration compression side. The authors say the Safety Operator is like input-dependent additive steering but implicit in the forward pass, not injected at training time.

    Safety alignment and prompt optimization

    • RLHF (Ouyang et al., 2022), RepBend (Yousefpour et al., 2025): Permanently change weights via fine-tuning. Constitutional Classifiers (Cunningham et al., 2026) and probes from Kramár et al. (2026) monitor outside the model or on activations. The authors say these complement prompt-level spectral optimization, operating at different layers of the deployment stack.
    • DRO (Zheng et al., 2024): Contrastive on harmful/harmless queries over continuous embeddings; the authors say its behavioral objective is closest to Soft. RPO (Zhou et al., 2024) has a search space similar to Hard GCG but optimizes worst-case robustness without a contrastive suppression term. DefensiveTokens (Chen et al., 2025) is close to Mixed but without a fixed SI interval. The authors say HardR has no direct counterpart.
    • Attacks and task prompt optimization: GCG (Zou et al., 2023b), AutoPrompt (Shin et al., 2020), AutoDAN (Zhu et al., 2024), PAIR (Chao et al., 2023), AmpleGCG (Liao & Sun, 2024), Crescendo (Russinovich et al., 2024), and OPRO, Promptbreeder, ProTeGi, DSPy. The authors say this paper uses optimization for defense, with objectives from internal spectral structure rather than output likelihood or black-box reward. The appendix also mentions SmoothLLM, SafeDecoding, self-reminder templates, soft prompts (Lester et al., 2021; Li & Liang, 2021), etc., as a lineage of alignment techniques, not itemized as experimental baselines.

    Baselines and benchmarks

    • Baseline methods: No-SI (S=Id, removing the safety instruction) and unmodulated Original SI (Short SI; Long SI in the appendix). Not same-table competition with DRO, RPO, DefensiveTokens.
    • Benchmarks/datasets: 300 harmful/harmless query pairs extended from JailbreakBench (JBB; Chao et al., 2024), split into train/eval/test of 100 each. Appendix K uses AdvBench (Zou et al., 2023b) and XSTest (Röttger et al., 2024) for out-of-distribution evaluation.

    The authors position this paper as: using the Safety Operator to understand and control how a specified prompt interval shapes generation, with focus on the tool itself; competitive benchmarking against existing steering and prompt-defense is left for future work. In the appendix, the authors say that relative to DRO, Soft's spectral optimization seems to reduce less but generalize better ("seems to").

  3. How does the paper address this problem?

    Constructs a contrastive loss using λsafe of a rank-1 Safety Operator, and optimizes in four parameter spaces.

    The overall idea is to write the effect of safety instruction Y on the residual stream as a Safety Operator S(Y)=I+Δq(Y), then use Contrastive Safety Loss to modulate its principal eigenvalue λsafe by query category. The loss is separated from the search algorithm: the optimization target is the eigenvalue, and the parameterization can be continuous embeddings, discrete tokens, or mixed suffixes.

    Problem setup and operator

    • Prompt structure: Prompt is [α, Y, β]. α is a fixed system prefix, Y is the safety instruction, β is the user query. Suffix methods append suffix S after Y, treating [Y, S] as the effective safety instruction.
    • Activation difference: Aclean is the activation of query token q entering the feedforward layer without Y; Asafe is the corresponding activation with Y. Context vector δq(Y)=Asafe−Aclean.
    • Minimal weight update: To reproduce the instruction effect in a model without Y, one needs (W+ΔW)Aclean=W Asafe. The authors cite Dherin et al. (2025) Theorem 2.3; extracting the minimal Frobenius-norm update yields S(Y)=I+Δq(Y), and S(Y)Aclean=Asafe. S(Y)=I means the instruction has no effect.
    • Computation location: S(Y) is computed on the last query token before generation begins. The authors call λsafe the safety-instruction counterpart of the attention-hijacking "dominance score" (contrast with Ben-Tov et al., 2026); other positions are left for future work.

    Spectral structure and contrastive loss

    • Eigenvalues: Δq(Y) is rank-1, so it stretches only along the safety direction δq(Y); the d−1 dimensional subspace orthogonal to Aclean has eigenvalue 1. Lemma A.1 gives λsafe=1+tr(Δq(Y)). The closer to 1, the closer to identity and the weaker the instruction.
    • Geometric decomposition: λsafe=(∥Asafe∥/∥Aclean∥) cos θ, i.e., magnitude ratio times direction alignment. The authors say in practice cos θ≃1, so they take f(λsafe)=g(λsafe)=λsafe².
    • Loss: For strictly monotonically increasing f, and g satisfying g(1)=1, g′(1)>0,

    Lsafety(Y)=Eβ+[−f(λsafe)]+ρ Eβ−(1−g(λsafe))2

    The first term raises λsafe on harmful queries; the second penalizes deviation from 1 on harmless queries. ρ>0 is the suppression weight: small ρ emphasizes safety expression, leading to higher over-refusal; large ρ forces S(Y)≈I on harmless queries. Multi-layer loss is the average of Lsafety over layers Lstart to Lend. Continuous methods add L2 regularization (Appendices C, D).

    • Alternative objectives not explored by the authors: One could also optimize ∥Δq(Y)∥F, the spectral norm of S(Y), or write the expression and suppression terms as a convex combination. Higher-order loss shapes are left for future work.

    Four parameterizations

    • Soft: Continuous gradient descent on the full safety instruction embedding EY, with token embeddings updated jointly, yielding a soft instruction that cannot be written as readable text. Algorithm in Appendix C.
    • Hard GCG: Freezes the original SI, optimizes a discrete suffix with Greedy Coordinate Gradient (Zou et al., 2023b), projecting safety gradients onto the embedding matrix for single-token replacement. Appendix E.
    • HardR: Adds a readability regularizer adapted from AutoDAN (Zhu et al., 2024) to Hard, starting from human seeds and sampling mutations by a safety–readability joint score, yielding relatively fluent English suffixes. Appendix F.
    • Mixed: Optimizes a continuous suffix embedding after a frozen human-written instruction. Appendix D. In Figure 1, blue indicates the optimized part.

    Training and selection protocol

    • Data: 100 pairs are insufficient for three-way splitting, so the authors use a frontier model to extend JBB to 300 harmful/harmless pairs, then use greedy multi-objective allocation to split into train/eval/test of 100 each, making harm-category proportions and ASR/ORR difficulty levels similar across splits. Appendix H.
    • Starting point: All runs start from Short SI, a sentence from the HHH principle (Askell et al., 2021), requiring helpfulness, honesty, harmlessness, and refusal of dangerous, toxic, or unethical content. Longer variants are in Appendices G, J.
    • Sweep: Each parameterization sweeps 16 ρ values in [0, 5000], with learning rate, layer range, etc., fixed to defaults selected on eval. During training, checkpoints on eval record ASR–ORR; all checkpoints satisfying ΔASR<0 and ΔORR<0 relative to Original SI are kept, not just the last step.
    • Evaluation: At test time, a frontier-model autorater classifies Gemma's responses as compliant or refusing. Each prompt is generated R=5 times independently at temperature T=0.7; each response is then rated K=5 times by the autorater (temperature 0) with majority vote (≥3). Reports paired means relative to Original SI under the same random seed, and 95% confidence intervals from Student's t-distribution (ν=4). Appendix I.
  4. What experiments did the paper conduct?

    Four parameterizations sweep ρ on Gemma 3 1B; most Pareto points from Soft and Hard GCG are confirmable on the test set.

    The authors test the theory with three predictions: sweeping ρ should trace out a continuous ASR–ORR curve; intermediate ρ should show a two-metric improvement relative to the original SI; and this phenomenon should hold across four parameterizations.

    Experimental setup

    • Model: main text Gemma 3 1B (Gemma Team, 2025); Appendix J reproduces Gemma 3 4B and compares Short SI with Long SI.
    • Data: extended JBB, 300 pairs, 100 each for train/eval/test. The authors state that per-segment baselines are close: ASR about 14–15%, ORR about 18–19%. Removing Short SI raises ASR from 13.81% to 26.53% and lowers ORR from 19.59% to 11.59%.
    • Method variants: Soft, Mixed, Hard GCG, HardR. ρ∈[0, 5000] for 16 values total; other hyperparameters are fixed on eval.
    • Baselines: No-SI (S=Id) and Original SI. The authors state these are causal baselines for isolating the spectral modulation effect, not competing with external defense methods.
    • Metrics and review: ASR is attack success on harmful queries; ORR is over-refusal on harmless queries. A frontier-model autorater performs compliance/refusal classification; R=5, T=0.7, K=5 majority vote. Appendix I.2 reports autorater configuration and inter-run consistency; the main text gives no specific agreement-rate numbers.
    • Statistics: on the test set, candidates selected by eval are re-scored; 95% CI for paired Δ with degrees of freedom ν=4. Pareto improvement is defined as point estimates ΔASR<0 且 ΔORR<0。

    主结果

    主文数字是相对 Original SI 的测试集差值(Gemma 3 1B,Short SI,R=5)。绝对 ASR/ORR 除 Mixed 的一个候选外,论文未在正文逐候选列出。

    Swipe horizontally to read the table

    参数化训练中 Pareto 点测试确认作者标出的候选
    Soft1110(90.9%)ρ=10,step 235:ΔASR=−3.86%,CI [−6.73%, −0.99%];ΔORR=−4.04%,CI [−6.98%, −1.10%]
    Hard GCG1110(90.9%)ρ=5,step 125:ΔASR=−2.81%,CI [−4.33%, −1.29%];ΔORR=−3.59%,CI [−6.23%, −0.94%]
    HardR6531(47.7%)ρ=350,step 200:ΔASR=−2.96%,CI [−4.30%, −1.62%];ΔORR=−0.82%,CI [−9.58%, +7.94%]
    Mixed0(严格)近 Pareto 10 个均未成严格改进ρ=2000,step 45:ASR=9.13%,ORR=20.92%;ASR 降幅最高到 ΔASR=−4.68%,ORR 为 +1.05% 到 +1.89%

    据 Section 5.2 与 Figure 2、Figure 3。

    • 预测 1:作者称左图在四种参数化上都呈连续表达–抑制曲线。ρ≤5 时 ASR 降到 2% 以下,ORR 升到 50% 以上;ρ≥1000 时轨迹靠近 Original SI。
    • 预测 2:Soft、Hard GCG、HardR 的中间 ρ 进入绿色 Pareto 象限。Mixed 在 1B+Short SI 上没有严格 Pareto 点:凡降低 ASR 的检查点都有轻度 ORR 上升。作者评估 eval 上 ΔORR≤1.5 个百分点、最靠近边界的 10 个近 Pareto 候选;测试集上 ASR 下降的 CI 不含 0,ORR 上升不显著。作者认为冻结指令旁的连续后缀带来轻度过度拒绝偏差。
    • HardR 例外:未优化语义种子(step 0)ΔASR=−3.75%,但 ΔORR=+5.96%。作者称仅靠种子不够,谱优化有助于消掉过度拒绝的上升。另一候选 ρ=100、step 75:ΔASR=−1.11%,ΔORR=−4.47%,CI [−9.53%, +0.59%],作者称这是离散方法里最大的 ORR 降幅,但其 CI 含 0。总优候选的 ORR CI 也含 0,作者称之为 ASR 显著下降、过度拒绝中性。

    轨迹形态与 4B / 长指令

    • 连续与离散:作者称连续嵌入轨迹平滑,离散坐标搜索呈跳跃;可读后缀在语法破碎下仍保留部分词汇连贯。作者认为谱抑制不依赖于对抗性 token 异常。Figure 3 注:HardR 右图画出全部评估池,深红色为测试集上仍 Pareto 改进的子集,未确认者变淡。
    • 附录 J:作者在 Gemma 4B 与 Long SI 上做补充。正文称优化长指令的全部连续嵌入会过拟合 eval、抬高测试 ORR;把适配限制在短后缀或加正则可减轻(Appendix J.2)。具体 4B 表格数字在被截断的附录表格中列对齐不可靠处不转写。
    • 与 DRO:作者称附录 B–B.5 的比较里,DRO 似乎降幅更强、泛化更弱。这是作者的概括,正文未给出与 DRO 并排的完整数字表。

    分布外:AdvBench 与 XSTest

    附录 K 用主实验选出的候选做 OOD,不参与训练或选择。Figure 8:Original SI 在 AdvBench 上 ASR 为 16.03%,No-SI 为 25.08%。97 个 JBB 候选中 71 个(73.2%)仍低于 Original SI。作者称 Soft 的 11 个候选全部低于该基线,最强者为统计上显著的 −8.62 个百分点;Hard GCG 与 HardR 迁移面更宽但方差更大;Mixed 基本中性。

    XSTest 取类别 1–4 的 100 条有害与 100 条良性查询。Original SI 把 ASR 压到 1.11%,ORR 升到 44.09%。

    Swipe horizontally to read the table

    方法池AdvBench 方向(作者对 Figure 8)XSTest 最佳 ΔORRXSTest 点估计 PI
    Soft11全部低于 Original SI;最强 −8.62 pp+5.56 pp(无下降)0/11
    Mixed10作者称基本中性+12.83 pp(无下降)0/10
    Hard GCG11迁移面更宽、方差更大−10.69 pp(CI 不含 0)3/11
    HardR65同上−12.29 pp(CI 不含 0)3/65

    据 Table 25、Table 26。连续方法把 ASR 压近 0,但 ORR 相对 Original SI 上升约 +5.56 到 +14.51 个百分点(Table 26 的最佳列是升高)。离散后缀相反:部分候选 ORR 下降。没有任何候选在 ASR 与 ORR 的 95% CI 上同时不含 0。作者认为这与 1.11% 的 ASR 地板限制了 ΔASR 的统计功效一致,也与超参按最大降低 JBB ASR 来选、从而偏向抑制 ASR 一致。

    其他消融与分析

    • ρ 两端(四种参数化,eval 轨迹):ρ≤5 时 ASR<2%、ORR>50%; at ρ≥1000 it is close to Original SI.
    • Removing SI: ASR 13.81%→26.53%, ORR 19.59%→11.59%.
    • HardR seed step 0: ΔASR=−3.75%, ΔORR=+5.96%.
    • Mixed near-Pareto: test-set ORR rises +1.05% to +1.89%, with the largest ASR drop at ΔASR=−4.68%.
    • AdvBench: 71/97 candidates have ASR below Original SI (16.03%).
    • Layer averaging and L2: loss is averaged over layer intervals; Soft/Mixed add L2. The main text does not separately list results tables for changing layer ranges or regularization coefficients.
  5. What are some points that can be further explored?

    The authors note that only Gemma, two templates, and that OOD and hyperparameter choices can change conclusions.

    Limitations and future directions noted by the authors

    • Model and template scope: Experiments use only the Gemma family, two sizes, and two safety instruction templates. Extension to other instruction-tuned model families, larger scales where the rank-1 approximation may be less accurate, and multi-turn settings remains open (Limitations).
    • OOD inconsistency: Preliminary experiments validating out-of-distribution transfer depend on both parameterization and dataset; no parameterization transfers uniformly across all OOD benchmarks (Limitations; Appendix K).
    • Hyperparameter bias: Fixed optimization hyperparameters are selected from configurations with the largest in-distribution ASR reduction; sweeping only the suppression weight may not always compensate for this structural bias (Limitations).
    • Long instruction overfitting: Optimizing all continuous embeddings of long safety instructions overfits the eval segment and raises test ORR; restricting to short suffixes or adding regularization can mitigate (Limitations; Appendix J.2).
    • Loss and operator space: Future work could try higher powers of λsafe, perturbation matrix norms, adaptive scheduling of expression–suppression balance during training, and directly optimizing fixed steering vectors, low-rank residual adapters, or activation perturbation tensors (Conclusion, directions 1–2). Other token positions and other loss shapes are also left for future work (Section 3.3, Remark 3.1–3.2).
    • Cross-behavior domains: The mathematical form is domain-agnostic, and contrastive spectral optimization could in principle be used for behavior steering with the same structure as safety refusal, but whether eigenvalues remain useful proxies in those settings is called an open empirical question by the authors (Conclusion, direction 3). Competitive benchmarking against existing steering and prompt-defense methods is explicitly left for future work (Introduction).

    Experimental coverage

    • Models tested: Main text Gemma 3 1B; Appendix J for Gemma 3 4B. Safety instruction is Short SI, with Long SI in the appendix.
    • In-distribution protocol: Extended JBB to 300 pairs, 100 per split; ρ takes 16 values in [0, 5000]; four parameterizations Soft, Mixed, Hard GCG, HardR. Test generation R=5, T=0.7, autorater K=5, temperature 0, 95% CI with ν=4.
    • Out-of-distribution: Appendix K reports ASR on AdvBench and ASR and ORR on XSTest categories 1–4 (100 harmful + 100 benign); candidates come from JBB eval selection, totaling 97 (11+10+11+65).
    • Controls: In-distribution controls are No-SI and Original SI. The paper discusses DRO, RPO, DefensiveTokens, static/conditional steering, and states that the main experiments do not treat them as same-table baselines; comparison with DRO is in the appendix, where the authors say DRO's reduction seems stronger but generalization weaker.
    • Not reported: The main text does not give autorater inter-annotation agreement values (only says written in Appendix I.2); does not report query counts or wall-clock time for each method; does not make layer ranges or learning rates into main result tables.
  6. Summarize the main content of the paper

    Safety Operator uses ρ to modulate λsafe, tracing an ASR–ORR trade-off on Gemma and yielding some Pareto instructions.

    Safety Operator writes the safety instruction as a rank-1 multiplicative perturbation of the identity matrix, using the principal eigenvalue λsafe as a continuous knob for instruction expression strength.

    Handwritten safety instructions lack a formal objective. Starting from the result that context can be absorbed into MLP weights, the authors define S(Y)=I+Δq(Y), which stretches only along the safety direction by λsafe. The Contrastive Safety Loss raises this eigenvalue on harmful queries and pulls it toward 1 on harmless queries with suppression weight ρ. The same loss is optimized over full continuous embeddings (Soft), frozen instruction plus discrete suffix (Hard GCG), readable discrete suffix (HardR), and continuous suffix (Mixed).

    On Gemma 3 1B, with test sets of 100 pairs each extended from JBB, sweeping ρ∈[0, 5000] yields ASR–ORR curves: low ρ pushes ASR below 2% and ORR above 50%, while high ρ returns near the original instruction. Soft and Hard GCG each have 11 in-training Pareto points, with 10 confirmed on the test set; Soft's strongest candidate (ρ=10, step 235) has ΔASR=−3.86%, ΔORR=−4.04%, both 95% CIs excluding 0. HardR has 65 in-training Pareto points, 31 confirmed, with the overall best candidate showing significant ASR reduction but ORR CI including 0. Mixed has no strict Pareto points. Removing Short SI raises ASR from 13.81% to 26.53% and lowers ORR from 19.59% to 11.59%. On AdvBench, 71 of 97 candidates still have ASR below Original SI; on XSTest, continuous methods increase over-refusal, and among discrete methods a few candidates lower ORR, but no candidate has both metrics' CIs excluding 0.

    The authors conclude that modulating this eigenvalue is consistent with the view that it controls prompt expression, and provides Pareto-improving configurations on the target distribution. They also state that evidence comes from two Gemma scales and two templates, OOD behavior varies with parameterization and dataset, and hyperparameter selection favors reducing in-distribution ASR.

Related papers

Show 3 more papers
Read originalarxiv.org