BarrierSteer: LLM Safety via Learning Barrier Steering
Thanh Q. Tran, Arun Verma, Kiwan Wong, Bryan Kian Hsiang Low, Daniela Rus, Wei Xiao
AIWILD @ ICML 2026
TL;DR. This paper introduces BarrierSteer, a framework that improves safety in large language models by steering their latent representations with control barrier functions during inference, reducing adversarial and unsafe outputs.
Abstract. Despite the strong performance of large language models (LLMs) across diverse tasks, their susceptibility to adversarial attacks and unsafe content generation remains a significant obstacle to deployment, particularly in high-stakes settings. Addressing this challenge requires safety mechanisms that are both practically effective and theoretically grounded. In this paper, we introduce BarrierSteer, a novel inference-time framework that improves response safety by embedding learned nonlinear safety constraints directly into the model's latent representation space. BarrierSteer treats hidden-state safety classifiers as Control Barrier Functions (CBFs), enabling constraint-guided steering of unsafe latent trajectories during generation. By composing multiple safety constraints through efficient constraint merging without modifying the underlying LLM parameters, BarrierSteer preserves model utility. We provide theoretical results showing that applying CBFs in latent space yields a principled, modular, and computationally efficient approach for steering with respect to learned safety constraints, with guarantees conditional on the learned barriers capturing the intended safety property. Our extensive experimental results across multiple model families and datasets demonstrate that BarrierSteer substantially reduces adversarial attack success rates and unsafe generations, outperforming existing methods. The code is available in our GitHub repository.
From the authors: Arun Verma · edit · also an author?
Nothing yet.
edit · history
NeurIPS 2026
Accept (poster) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:50 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
Paper Summary
This work addresses the central challenge of improving inference-time LLM safety against adversarial attacks without modifying underlying model parameters. The paper introduces BarrierSteer, a framework that learns nonlinear hidden-state safety classifiers and treats them as Control Barrier Functions (CBFs) from control theory, enabling closed-form constraint-guided steering of latent trajectories during autoregressive generation. The method supports principled composition of multiple independently trained safety constraints via a Log-Sum-Exp merging rule and is evaluated across four open-weight model families on HarmBench adversarial attacks, adaptive attacks, XSTest over-refusal, and MMLU/GSM8K utility benchmarks. The paper reports near-zero static HarmBench ASR across models and a per-token steering latency of 2.4ms for the LSE variant versus 190ms for the closest baseline.
Strengths
Reviewer AxZ9 and Reviewer 4orG both credited the clarity of the presentation and the breadth of the experimental evaluation, covering adversarial defense, over-refusal, utility, adaptive attacks, and computational efficiency across four model families. Reviewer cgPJ and Reviewer 4orG acknowledged the practical appeal of the modular composition capability, noting that independently trained barriers can be composed post-hoc without joint retraining, which supports deployment scenarios where new safety risks emerge incrementally. Reviewer cgPJ and Reviewer AxZ9 highlighted the computational efficiency advantage over SaP as a genuine practical contribution. Reviewer 4orG credited the theoretical grounding through Theorem 1 and the thoroughness of the ablation study.
Reviewer Scores
Reviewer cgPJ assigned a rating of 3 (Borderline reject). Reviewer AxZ9 assigned a rating of 4 (Borderline accept). Reviewer 4orG assigned a rating of 4 (Borderline accept). Addressing the concerns below would be an important consideration as we move towards the discussion phase.
Major Concerns
Lack of thinking models
Reviewer 4orG notes all evaluated models are non-thinking, which broadly weakens the practical value of the demonstrated results given the prevalence of thinking/reasoning models in widespread use. Furthermore, given the presence of lengthy reasoning traces in reasoning models (as opposed to the considered non-thinking models, which lack such traces), demonstrating BarrierSteer's effectiveness relative to the other methods for reasoning models (e.g., Qwen3.5-8B, Gemma-4-e4B) is a major recommendation.
Additionally, Reviewer 4orG asks the related question:
For thinking models, wouldn't the steering overhead accumulate over long chains of thought and become a bottleneck? Do the authors have any measurements or intuition for how steering cost scales with output length in that setting?
Natural baselines
Reviewer cgPJ notes the lack of standard alignment-tuning approaches (e.g., Safe-RLHF, DPO, SafeDPO, etc.), offering that a simple baseline is SFT on the paper's HarmBench training set, such that unsafe responses are annotated with a blanket refusal.
Poor adaptive-attack/performance and safety-utility tradeoff
Reviewer AxZ9 expresses concerns with the gap between static and adaptive ASRs, as well as the tradeoff in utility when increasing the steering strength . One possible avenue to address these concerns is to piggyback off of the alignment-tuning suggestion from Reviewer cgPJ; evaluating the "natural baseline" proposed earlier or, more convincingly, a SOTA safety alignment-tuning algorithms (e.g., SafeDPO [3]) and demonstrating that both adaptive-attack/performance and the safety-utility tradeoff are on par with SOTA safety-tuning approaches would directly address concerns that the method is significantly underperforming.
Limited Evaluation
Reviewer cgPJ expressed concerns regarding the extent of evaluations, noting that while the several open-weight models and standard safety benchmarks were evaluated, no multi-turn or multilingual benchmarks were considered, limiting evidence deomonstrating broad applicability. The reviewer suggested evaluation using DAMO-NLP-SG/MultiJail [1] and tom-gibbs/multi-turn_jailbreak_attack_datasets [2] to directly address this concern.
Additionally, Reviewer 4orG notes ASR and adaptive-attack ASR rely solely on the HarmBench classifier, which may introduce evaluator bias. To address this, the reviewer recommends broadening the evaluation with additional judges--e.g. PolyGuard [1], Qwen-Guard [2], or an LLM-as-a-judge setup--would strengthen this part of the analysis.
Hyperparameter details
Reviewer cgPJ expressed concern with how was chosen for the results in Table 1, the method behind which was not described in the paper. Could the authors please describe a validation-based protocol for arriving at = 0.01 as the reported default in Table 1? Additionally, further clarification is required to address the inconsistency of the reported results per model + varying alphas:
Another weakness is the per-expeirment hyperparameter inconsistency. For example, in the paper Line 336 states that the results in Table 1 uses = 0.01, however, they do not match the results of Table 12. For Qwen2-1.5B, the results in Table 1 and 12 match and they're the results of , which aligns with the experimental protocol statement. For Gemma-2-9B, Table 1's results match with Table 12's row. And if , the adaptive attack result is worse, specifically, 73 VS. 53 (AA ASR), 35 VS 32 (XSTest), 71.82 VS. 71.87 (MMLU), 73.81 VS. 73.65 (GSM8K). For AA ASR, the results change from 53 to 73, which is worse than the baseline model's 70 and change the conclusion. Additionally, if , AA ASR is , the standard deviation is enormous, which means individual runs range from roughly 30% to 76%. The defense is not stable at least on this model, and reporting the mean alone masks the high discrepancy issue.
For Ministral-8B, Table 1's results match with Table 12's results, not 0.01. For Llama2-7B, Table 1's results match with Table 12's results, not 0.01.
Minor concerns
Weak efficiency claims
Reviewer 4orG notes steering latency and generation time are reported only for Qwen2-1.5B, which weakens the efficiency claims for the other models. Speaking to Reviewer 4orG's direct questions would directly address this concern:
Do the authors have latency/generation-time results for models beyond Qwen2-1.5B? Normalizing the comparison by output length would also help
Strong approximation
Reviewer AxZ9 expressed concerns with the strong approximation of the paper's latent dynamics, noting that the Transformer decoding process is not a simple continuous-time control system and changes in the hidden state also depend on other factors such as token sampling. Fhe authors could either tighten their approximation or show that the approximation is stable in the face of factors affecting the hidden state.
References
[1] https://huggingface.co/datasets/DAMO-NLP-SG/MultiJail
[2] https://huggingface.co/datasets/tom-gibbs/multi-turn_jailbreak_attack_datasets
[3] Kim, Geon-Hyeong, et al. "SafeDPO: A Simple Approach to Direct Preference Optimization with Enhanced Safety." ICLR 2026
Final justification
The rebuttal successfully moved two of the reviewer scores upward, with all three reviewer learning in favor of accept. Reviewer AxZ9's concerns were addressed with the additional SFT/SafeDPO comparisons and clarifications on latent dynamics. Reviewer cgPJ raised their score following the addition of multilingual benchmarks and training-based baselines, while noting some concerns remain unresolved (e.g., concerns regarding Gemma-2-9B's adaptive variance and performance of the proposed method relative to SFT/SafeDPO). Reviewer 4orG raised their score to 5 given latency results, additional safety judging, and additional reasoning-model results. I recommend acceptance, while strongly the encouraging the authors to include the rebuttal experiments/discussion in the updated manuscript.
Read meta-review
Meta-review
Paper Summary
This work addresses the central challenge of improving inference-time LLM safety against adversarial attacks without modifying underlying model parameters. The paper introduces BarrierSteer, a framework that learns nonlinear hidden-state safety classifiers and treats them as Control Barrier Functions (CBFs) from control theory, enabling closed-form constraint-guided steering of latent trajectories during autoregressive generation. The method supports principled composition of multiple independently trained safety constraints via a Log-Sum-Exp merging rule and is evaluated across four open-weight model families on HarmBench adversarial attacks, adaptive attacks, XSTest over-refusal, and MMLU/GSM8K utility benchmarks. The paper reports near-zero static HarmBench ASR across models and a per-token steering latency of 2.4ms for the LSE variant versus 190ms for the closest baseline.
Strengths
Reviewer AxZ9 and Reviewer 4orG both credited the clarity of the presentation and the breadth of the experimental evaluation, covering adversarial defense, over-refusal, utility, adaptive attacks, and computational efficiency across four model families. Reviewer cgPJ and Reviewer 4orG acknowledged the practical appeal of the modular composition capability, noting that independently trained barriers can be composed post-hoc without joint retraining, which supports deployment scenarios where new safety risks emerge incrementally. Reviewer cgPJ and Reviewer AxZ9 highlighted the computational efficiency advantage over SaP as a genuine practical contribution. Reviewer 4orG credited the theoretical grounding through Theorem 1 and the thoroughness of the ablation study.
Reviewer Scores
Reviewer cgPJ assigned a rating of 3 (Borderline reject). Reviewer AxZ9 assigned a rating of 4 (Borderline accept). Reviewer 4orG assigned a rating of 4 (Borderline accept). Addressing the concerns below would be an important consideration as we move towards the discussion phase.
Major Concerns
Lack of thinking models
Reviewer 4orG notes all evaluated models are non-thinking, which broadly weakens the practical value of the demonstrated results given the prevalence of thinking/reasoning models in widespread use. Furthermore, given the presence of lengthy reasoning traces in reasoning models (as opposed to the considered non-thinking models, which lack such traces), demonstrating BarrierSteer's effectiveness relative to the other methods for reasoning models (e.g., Qwen3.5-8B, Gemma-4-e4B) is a major recommendation.
Additionally, Reviewer 4orG asks the related question:
For thinking models, wouldn't the steering overhead accumulate over long chains of thought and become a bottleneck? Do the authors have any measurements or intuition for how steering cost scales with output length in that setting?
Natural baselines
Reviewer cgPJ notes the lack of standard alignment-tuning approaches (e.g., Safe-RLHF, DPO, SafeDPO, etc.), offering that a simple baseline is SFT on the paper's HarmBench training set, such that unsafe responses are annotated with a blanket refusal.
Poor adaptive-attack/performance and safety-utility tradeoff
Reviewer AxZ9 expresses concerns with the gap between static and adaptive ASRs, as well as the tradeoff in utility when increasing the steering strength . One possible avenue to address these concerns is to piggyback off of the alignment-tuning suggestion from Reviewer cgPJ; evaluating the "natural baseline" proposed earlier or, more convincingly, a SOTA safety alignment-tuning algorithms (e.g., SafeDPO [3]) and demonstrating that both adaptive-attack/performance and the safety-utility tradeoff are on par with SOTA safety-tuning approaches would directly address concerns that the method is significantly underperforming.
Limited Evaluation
Reviewer cgPJ expressed concerns regarding the extent of evaluations, noting that while the several open-weight models and standard safety benchmarks were evaluated, no multi-turn or multilingual benchmarks were considered, limiting evidence deomonstrating broad applicability. The reviewer suggested evaluation using DAMO-NLP-SG/MultiJail [1] and tom-gibbs/multi-turn_jailbreak_attack_datasets [2] to directly address this concern.
Additionally, Reviewer 4orG notes ASR and adaptive-attack ASR rely solely on the HarmBench classifier, which may introduce evaluator bias. To address this, the reviewer recommends broadening the evaluation with additional judges--e.g. PolyGuard [1], Qwen-Guard [2], or an LLM-as-a-judge setup--would strengthen this part of the analysis.
Hyperparameter details
Reviewer cgPJ expressed concern with how was chosen for the results in Table 1, the method behind which was not described in the paper. Could the authors please describe a validation-based protocol for arriving at = 0.01 as the reported default in Table 1? Additionally, further clarification is required to address the inconsistency of the reported results per model + varying alphas:
Another weakness is the per-expeirment hyperparameter inconsistency. For example, in the paper Line 336 states that the results in Table 1 uses = 0.01, however, they do not match the results of Table 12. For Qwen2-1.5B, the results in Table 1 and 12 match and they're the results of , which aligns with the experimental protocol statement. For Gemma-2-9B, Table 1's results match with Table 12's row. And if , the adaptive attack result is worse, specifically, 73 VS. 53 (AA ASR), 35 VS 32 (XSTest), 71.82 VS. 71.87 (MMLU), 73.81 VS. 73.65 (GSM8K). For AA ASR, the results change from 53 to 73, which is worse than the baseline model's 70 and change the conclusion. Additionally, if , AA ASR is , the standard deviation is enormous, which means individual runs range from roughly 30% to 76%. The defense is not stable at least on this model, and reporting the mean alone masks the high discrepancy issue.
For Ministral-8B, Table 1's results match with Table 12's results, not 0.01. For Llama2-7B, Table 1's results match with Table 12's results, not 0.01.
Minor concerns
Weak efficiency claims
Reviewer 4orG notes steering latency and generation time are reported only for Qwen2-1.5B, which weakens the efficiency claims for the other models. Speaking to Reviewer 4orG's direct questions would directly address this concern:
Do the authors have latency/generation-time results for models beyond Qwen2-1.5B? Normalizing the comparison by output length would also help
Strong approximation
Reviewer AxZ9 expressed concerns with the strong approximation of the paper's latent dynamics, noting that the Transformer decoding process is not a simple continuous-time control system and changes in the hidden state also depend on other factors such as token sampling. Fhe authors could either tighten their approximation or show that the approximation is stable in the face of factors affecting the hidden state.
References
[1] https://huggingface.co/datasets/DAMO-NLP-SG/MultiJail
[2] https://huggingface.co/datasets/tom-gibbs/multi-turn_jailbreak_attack_datasets
[3] Kim, Geon-Hyeong, et al. "SafeDPO: A Simple Approach to Direct Preference Optimization with Enhanced Safety." ICLR 2026
Final justification
The rebuttal successfully moved two of the reviewer scores upward, with all three reviewer learning in favor of accept. Reviewer AxZ9's concerns were addressed with the additional SFT/SafeDPO comparisons and clarifications on latent dynamics. Reviewer cgPJ raised their score following the addition of multilingual benchmarks and training-based baselines, while noting some concerns remain unresolved (e.g., concerns regarding Gemma-2-9B's adaptive variance and performance of the proposed method relative to SFT/SafeDPO). Reviewer 4orG raised their score to 5 given latency results, additional safety judging, and additional reasoning-model results. I recommend acceptance, while strongly the encouraging the authors to include the rebuttal experiments/discussion in the updated manuscript.
3 comments
Response to Meta Review [2/3]
M4. Limited evaluation.
Multilingual and out-of-distribution attacks. We added an evaluation on MultiJail [3], covering adversarial prompts in ten languages and scored with the multilingual safety classifier Qwen3Guard-Gen-8B [4] (Table R1, Reviewer cgPJ). BarrierSteer and SaP are trained only on English HarmBench data, so this is an out-of-distribution (OOD) transfer test. BarrierSteer outperforms SaP on all four model families, most clearly on Ministral-8B, where ASR falls from 76.5% with SaP to 40.5%.
We also acknowledge that BarrierSteer's defense on MultiJail remains imperfect, similar to its performance under adaptive attacks. Both evaluations are OOD relative to the HarmBench training data. MultiJail introduces multilingual prompts, while the adaptive attack generates unseen attack trajectories. A multi-turn benchmark would constitute another OOD attack, involving cross-turn attack strategies. Accordingly, we do not present BarrierSteer trained only on HarmBench as broadly robust across arbitrary attack distributions.
Future work could extend BarrierSteer to a broader range of attacks in two ways. First, the hidden-state classifiers can be trained on larger and more diverse safety datasets. Recent work from frontier AI labs shows that such classifiers can generalize across attack types and be deployed in production [5, 6]. Second, new barriers can be trained for emerging attacks and composed with existing barriers without joint retraining. This modularity is what we envisioned for BarrierSteer to adapt to OOD attacks, and we appreciate the Area Chair's recognition of its practical value.
Additional judges. We re-scored the HarmBench adversarial prompts for all methods with PolyGuard-Qwen-7B [7] and Qwen3Guard-Gen-8B (Table R1, Reviewer 4orG). BarrierSteer's conclusions are stable across all three evaluators, at 0.0% on Gemma-2-9B under every judge and 1.6–2.0% on Ministral-8B, in each case the lowest of the eight methods.
M5. Hyperparameter details.
We thank the Area Chair and Reviewer cgPJ for the careful cross-check. Line 336 occurs in the discussion of Qwen2-1.5B (Table 2) and was intended to state that was used for Qwen2-1.5B in Table 1. For the other models, Gemma-2-9B, Ministral-8B, and Llama-2-7B, Table 1 uses . These settings correspond exactly to the respective rows in Table 12. We will revise Line 336 to explicitly report the model-specific values and clarify the hyperparameter selection protocol.
We select the steering strength separately for each model by sweeping and inspecting the safety–utility trade-off reported in Table 12 to choose a representative model-specific operating point. Similar model-specific steering-strength sweeps are used in prior inference-time steering work, including AxBench [8] and SaP [9]. We apply the same sweep-based selection procedure to the steering baselines. For example, the SaP result in Table 1 uses a selected value of its steering hyperparameter , with the Gemma-2-9B sweep reported in Table 7.
We also acknowledge the more variable adaptive-attack performance of BarrierSteer on Gemma-2-9B, as reported in Table 1: 53.0 ± 23.0. The spread is driven by a single run with an unusually low ASR, which may arise from the stochastic adaptive-attack evaluation, in which each run restarts the attacker's random search from a different initialization.
M6. Weak efficiency claims.
We extended the per-steered-token latency measurement to all four model families (Table R2, Reviewer 4orG). BarrierSteer's closed-form LSE update stays between 2.40 and 2.55 ms per steered token across models, while SaP requires 190–252 ms with 100 optimization steps and 140–181 ms even with a single step.
We report the complete wall-clock generation time in the reasoning-model experiment (Table R3), which captures both output length and how often steering activates. BarrierSteer increases generation time by 1.4% on benign prompts and 11.7% on adversarial prompts, compared with 4.2% and 49.5% for SaP.
↓ ↓ ↓ Continued below ↓ ↓ ↓
Response to Meta Review [1/3]
We thank the Area Chair for the careful synthesis of the reviews and for acknowledging the key strengths of our work: the clarity and breadth of the experimental evaluation, the practical value of modular composition, the substantial computational-efficiency advantage over SaP, and the theoretical grounding and thorough ablation analysis. We also appreciate the concrete recommendations. During the rebuttal period, we added new experiments and clarifications addressing each concern. All new tables referenced below appear in our responses to the individual reviewers.
M1. Lack of thinking models.
We added an evaluation on Gemma-4-E4B [1] with thinking mode enabled (Table R3, Reviewer 4orG). We train both SaP and BarrierSteer on the WildGuardMix training split and evaluate on held-out prompts, sweeping SaP over and BarrierSteer over and reporting the safest setting for each method. BarrierSteer reduces WildGuard ASR from 18.9% for the base model to 6.9%, outperforming SaP at 12.1%, while preserving GSM8K accuracy (79.5% vs. 79.6% for the base model).
On generation cost, BarrierSteer adds only 1.4% end-to-end for benign GSM8K prompts, compared with 4.2% for SaP, and 11.7% for adversarial WildGuard prompts, where steering activates more frequently, compared with 49.5% for SaP. BarrierSteer performs only a lightweight barrier check at every token. The more expensive steering update is applied at most once per decoding step, and only when the constraint is violated. Consequently, the checking cost grows with output length, but the steering cost scales with the number of steered tokens rather than with the full chain-of-thought length. The 1.4% overhead measured on benign reasoning traces indicates that BarrierSteer does not become a bottleneck for thinking models.
M2. Natural baselines.
Following the Area Chair's and Reviewer cgPJ's suggestions, we added both SFT and SafeDPO [2] across all four model families (Table R2, Reviewer cgPJ). Both use the same HarmBench training examples as BarrierSteer. For SFT, harmful prompts that elicited an unsafe response are paired with a blanket refusal. For SafeDPO, the refusal is treated as the preferred response, and the model's original unsafe generation as the rejected response.
All three methods reduce static HarmBench ASR to near zero. However, SFT and SafeDPO substantially increase the over-refusal rate. Relative to the base model, XSTest increases by +15.2 / +44.3 / +22.8 / +60.5 points for SFT and +11.3 / +29.2 / +11.5 / +61.2 points for SafeDPO on Gemma-2-9B, Ministral-8B, Llama-2-7B, and Qwen2-1.5B, respectively, whereas BarrierSteer stays within +4.0 points of the base model on every model. These experiments show that safety fine-tuning can incur a substantial alignment tax even when it succeeds at improving safety.
M3. Poor adaptive-attack performance and safety–utility tradeoff.
Following the Area Chair's suggestion, Table R2 in our response to Reviewer cgPJ compares BarrierSteer with SFT and SafeDPO on both axes. On adaptive-attack ASR, the three methods are on par, with BarrierSteer equal or better on Ministral-8B (19.6% against 21.2% and 23.2%), Llama-2-7B (1.6% against 1.2% and 2.4%), and Gemma-2-9B (53.0% against 51.2% and 52.4%), and lower only on Qwen2-1.5B (24.8% against 19.2% and 15.2%). Adaptive attacks remain challenging for all three methods, so this gap is not specific to inference-time steering. However, as reported under M2, SFT and SafeDPO increase over-refusal significantly on all four models, whereas BarrierSteer stays close to the base model.
Therefore, both training-based alignment and inference-time steering face a safety–utility trade-off, but for BarrierSteer, this trade-off can be flexibly adjusted at runtime through . In practice, one can choose a suitable safety operating point without modifying the base model parameters.
↓ ↓ ↓ Continued below ↓ ↓ ↓
- Rating
- 5/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 4/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper presents BarrierSteer, a framework for improving LLM safety by steering hidden representations during inference using control barrier functions (CBFs) adapted from dynamical systems theory. The evaluation is fairly comprehensive, covering safety, utility preservation, and efficiency, with a substantial set of supporting ablations.
Strengths and weaknesses
Strengths:
- The paper adapts control barrier functions from dynamical systems theory to LLM safety, treating hidden states as a dynamical system and proposing three steering variants (QP, Top-2, and LST).
- The authors derive a closed-form steering solution through CBF composition, which improves implementation efficiency and is backed by theoretical results.
- The evaluation is comprehensive, covering adversarial attack defense, over-refusal, utility, and computational efficiency across four models spanning four different architectures.
- The ablation study is thorough, examining different neural CBF architectures, the smoothing parameter , steering strength, and baseline comparisons.
Weaknesses:
- Both the attack success rate (ASR) and adaptive-attack ASR rely solely on the HarmBench classifier, which may introduce evaluator bias. Broadening the evaluation with additional judges - e.g. PolyGuard [1], Qwen-Guard [2], or an LLM-as-a-judge setup - would strengthen this part of the analysis.
- Steering latency and generation time are reported only for Qwen2-1.5B, which weakens the efficiency claims for the other models. All evaluated models are also non-thinking models, whereas thinking models are increasingly the default in practice - including at least one would strengthen the efficiency story.
[1] Priyanshu Kumar, Devansh Jain, Akhila Yerukola, Liwei Jiang, Himanshu Beniwal, Thomas Hartvigsen, and Maarten Sap. 2025. "Polyguard: A multilingual safety moderation tool for 17 languages". In Second Conference on Language Modeling.
[2] Qwen Team. 2025. "Qwen3Guard Technical Report".
Questions
- Do the authors have latency/generation-time results for models beyond Qwen2-1.5B? Normalizing the comparison by output length would also help.
- For thinking models, wouldn't the steering overhead accumulate over long chains of thought and become a bottleneck? Do the authors have any measurements or intuition for how steering cost scales with output length in that setting?
Limitations
yes
Final justification
The additional experiments have addressed most of my concerns.
Formatting concerns
no
5 comments
Rebuttal
We thank the reviewer for a careful and constructive review. We appreciate the recognition of our adaptation of control barrier functions to LLM safety, the closed-form steering solution obtained through CBF composition and its theoretical grounding, the breadth of our evaluation across four model architectures, and the thoroughness of our ablation study. To ensure clarity and coherence, we have grouped related questions and weaknesses below.
W1. Both the attack success rate (ASR) and adaptive-attack ASR rely solely on the HarmBench classifier, which may introduce evaluator bias. Broadening the evaluation with additional judges — e.g. PolyGuard [1], Qwen-Guard [2], or an LLM-as-a-judge setup — would strengthen this part of the analysis.
Answer W1. We thank the reviewer for this suggestion and agree that reporting under additional judges strengthens the analysis. We have re-scored all evaluated methods on Gemma-2-9B and Ministral-8B using two additional judges, PolyGuard-Qwen-7B [1] and Qwen3Guard-Gen-8B [2]. We report results on 60 behaviors rather than all 80. The remaining 20 are "copyright" behaviors, which the HarmBench pipeline scores by deterministic hash matching against reference text rather than with a classifier. The rates, therefore, differ from Table 1, which is computed over all 80.
Table R1 reports static HarmBench ASR under all three judges. BarrierSteer's results are stable across all three judges: 0.0% on Gemma-2-9B and 1.6–2.0% on Ministral-8B. These are the lowest rates among all methods under every judge.
Table R1: Static HarmBench ASR (%, ↓) under three judges.
| Model | Method | HarmBench | PolyGuard-Qwen-7B | Qwen3Guard-8B |
|---|---|---|---|---|
| Gemma-2-9B | Base | 23.9 | 11.0 | 23.6 |
| Self-Reminder | 15.8 | 6.7 | 14.6 | |
| Circuit Breaker | 11.7 ± 4.1 | 5.7 ± 1.9 | 11.4 ± 4.9 | |
| ActAdd | 23.3 | 11.1 | 22.5 | |
| DirAbl | 17.5 | 27.3 | 19.2 | |
| ReFT-r1 | 16.1 ± 3.6 | 7.3 ± 2.2 | 14.7 ± 3.6 | |
| SaP | 11.6 ± 1.9 | 8.0 ± 2.0 | 11.9 ± 1.9 | |
| BarrierSteer | 0.0 ± 0.0 | 0.0 ± 0.0 | 0.0 ± 0.0 | |
| Ministral-8B | Base | 68.3 | 23.5 | 75.5 |
| Self-Reminder | 26.7 | 8.5 | 26.1 | |
| Circuit Breaker | 41.2 ± 1.8 | 22.0 ± 0.0 | 58.8 ± 1.7 | |
| ActAdd | 68.4 | 23.3 | 76.0 | |
| DirAbl | 69.0 | 23.4 | 75.7 | |
| ReFT-r1 | 53.6 ± 3.8 | 18.7 ± 0.3 | 59.8 ± 4.4 | |
| SaP | 31.9 ± 4.0 | 26.9 ± 2.7 | 42.1 ± 5.5 | |
| BarrierSteer | 1.9 ± 2.8 | 1.6 ± 2.4 | 2.0 ± 2.9 |
W2. Steering latency and generation time are reported only for Qwen2-1.5B, which weakens the efficiency claims for the other models.
Q1. Do the authors have latency/generation-time results for models beyond Qwen2-1.5B? Normalizing the comparison by output length would also help.
Answer W2 + Q1. We have extended the per-token steering-latency measurement to all four model families; Table R2 completes Table 3 of the paper. BarrierSteer's closed-form update stays between 2.40 and 2.55 ms across model scales, while SaP's latency ranges from 190 to 252 ms at 100 steps.
We note that Table R2 reports latency per steered token, i.e., the tokens that SaP's and BarrierSteer's classifiers flag as unsafe, averaged over those tokens. Full wall-clock generation time is reported in our response to Q2.
Table R2: Steering latency (ms per steered token; ↓).
| Model | SaP (100 steps) | SaP (1 step) | BarrierSteer (LSE) |
|---|---|---|---|
| Gemma-2-9B | 251.62 ± 19.86 | 181.49 ± 20.22 | 2.54 ± 0.04 |
| Ministral-8B | 245.67 ± 14.17 | 175.90 ± 17.28 | 2.55 ± 0.05 |
| Llama-2-7B | 206.21 ± 30.10 | 176.72 ± 19.42 | 2.53 ± 0.03 |
| Qwen2-1.5B | 190.67 ± 3.17 | 139.97 ± 6.33 | 2.40 ± 0.06 |
Q2. For thinking models, wouldn't the steering overhead accumulate over long chains of thought and become a bottleneck? Do the authors have any measurements or intuition for how steering cost scales with output length in that setting?
Answer Q2. We thank the reviewer for the insightful question, which helped us improve the paper. Total overhead has two components: a low-cost barrier check applied to every generated token and a steering update applied only when the constraint is violated. Thus, the checking cost scales with output length, while the more expensive steering cost scales with the number of steered tokens. Long reasoning traces, therefore, add only the low-cost checking overhead as long as they remain safe.
We verify this on Gemma-4-E4B [3] with thinking mode enabled. For this experiment, we train both SaP and BarrierSteer on the WildGuardMix training split and evaluate on held-out validation prompts. We sweep SaP over and BarrierSteer over and report the safest setting for each method in Table R3. On benign GSM8K, BarrierSteer adds 1.4% to generation time while preserving utility (79.5 vs. 79.6 for the base model). The barrier rarely fires on these benign prompts, so the overhead comes mainly from checking rather than steering. Table 16 in our manuscript confirms that this check is lightweight. This low overhead motivates the use of hidden-state monitoring in production safety systems at frontier AI labs [4, 5]. On adversarial WildGuard, where steering does activate, BarrierSteer adds 11.7% compared with SaP's 49.5%, consistent with BarrierSteer's steering-efficiency advantage shown in Table R2.
Table R3: Results on Gemma-4-E4B with thinking mode enabled. Generation time is measured as wall-clock time over the evaluation set.
| Method | WildGuard ASR ↓ | GSM8K ↑ | Gen. time in minutes, WildGuard (adversarial) ↓ | Gen. time in minutes, GSM8K (benign) ↓ |
|---|---|---|---|---|
| Base | 18.9 | 79.6 | 18.8 | 7.1 |
| SaP () | 12.1 | 79.3 | 28.1 (+49.5%) | 7.4 (+4.2%) |
| BarrierSteer () | 6.9 | 79.5 | 21.0 (+11.7%) | 7.2 (+1.4%) |
We thank the reviewer again for the careful and constructive feedback, which has helped us strengthen the evaluation. We have broadened the evaluation to include two additional safety judges, extended the steering-latency measurements to all four model families, and added results for a reasoning model that covers both safety and end-to-end generation cost. We would be happy to provide any further clarification or results during the discussion period. We hope these additions address your concerns and strengthen your view of our work.
Reference.
[1] Kumar et al. "Polyguard: A multilingual safety moderation tool for 17 languages." In COLM 2025.
[2] Qwen Team. "Qwen3Guard Technical Report." arXiv 2025.
[3] Gemma Team. "Gemma 4 Technical Report." arXiv 2026.
[4] Cunningham et al. "Constitutional Classifiers++: Efficient Production-Grade Defenses against Universal Jailbreaks." In ICLR 2026.
[5] Kramár et al. "Building Production-Ready Probes For Gemini." arXiv 2026.
Response to the author's rebuttal
Thank the authors for the clarifications. The additional experiments have addressed most of my concerns. I will consider revising my score in the next few days.
Thank You for Your Positive Feedback
We would like to sincerely thank the reviewer for the thoughtful feedback and for acknowledging that the additional experiments have addressed most of the concerns. We would be truly grateful if you would consider updating your score to reflect the revised evaluation. If you have any remaining concerns or questions, we would greatly appreciate the opportunity to address them.
Thank you again for your time and consideration.
- Rating
- 4/6
- Confidence
- 2/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper introduces BarrierSteer, a training-free and inference-time steering framework that utilizes Control Barrier Functions (CBFs) to enforce safe LLM generation. By modeling non-linear safety classifiers from hidden states as CBFs, the method applies closed-form updates to dynamically redirect unsafe states toward a learned safe region without altering underlying model parameters. Evaluations on HarmBench and WildGuardMix across multiple LLMs demonstrate that BarrierSteer effectively handles complex, multi-constraint boundaries and significantly reduces the ASR of static jailbreaks.
Strengths and weaknesses
Strengths:
- The motivation is clear, and the manuscript is well-written, providing straightforward comparisons with existing baseline methods.
- The experimental coverage is broad, and the low latency advantage of BarrierSteer is evident.
- Multiple constraint combinations improve practicality.
Weaknesses:
-
The paper's approximation of latent dynamics is relatively strong; the Transformer decoding process is not a simple continuous-time control system. Changes in the hidden state also depend on other factors such as token sampling.
-
Adaptive attack performance is generally poor. Although the BarrierSteer is close to zero on the static HarmBench ASR, it still shows significant failure under adaptive attacks. For example, the AA ASR for Gemma-2-9B is still 53.00, and for Qwen2-1.5B it is still 24.80.
-
The safety-utility tradeoff remains significant. Table 2 shows that increasing the steering strength α can further reduce ASR and AA ASR, but it significantly increases over-refusal and reduces MMLU/GSM8K. Essentially, steering is still an additive method, which may disrupt the distributed manifold.
-
The Hidden-state safety classifier uses response-level labels to supervise each token hidden state, which may introduce label noise. Not every token in an unsafe response is equally unsafe.
Questions
Please see weakness.
Limitations
I have no further comments.
Final justification
The author addressed most of my concerns, so I will keep my original score.
Formatting concerns
No formatting issues.
4 comments
Rebuttal
We thank the reviewer for the constructive feedback. We appreciate the recognition of our motivation and presentation, the breadth of our experimental coverage, the evident latency advantage of BarrierSteer, and the practical value of composing multiple safety constraints. To ensure clarity and coherence, we have grouped related weaknesses below.
W1. The paper's approximation of latent dynamics is relatively strong. The Transformer decoding process is not a simple continuous-time control system, and changes in the hidden state also depend on other factors such as token sampling.
Answer W1. We appreciate the reviewer raising this important point. Transformer decoding is not, in general, described by a continuous-time dynamical system. However, BarrierSteer applies at most one steering update per decoding step, and only when the composed barrier condition is violated. At step , is the exact hidden state produced by the LLM for the current decoded prefix. Token sampling and the decoding strategy determine the next prefix and therefore affect , not the already observed . We approximate only the local velocity to compute the one-step correction. After the next token is sampled, BarrierSteer observes the exact state and re-evaluates the barrier. Thus, sampling effects are considered when the barrier is re-evaluated at the next exact hidden state.
Similar local approximations have also been effective for CBF-style control in other generative models, such as diffusion models [1]. Please see the justification beginning at Line 232 for further details.
W2. Adaptive attack performance is generally poor. Although BarrierSteer is close to zero on the static HarmBench ASR, it still shows significant failure under adaptive attacks [...].
Answer W2. We agree that Adaptive Attack remains a significant challenge on Gemma-2-9B and Qwen2-1.5B. This is because we evaluate adaptive attack as an out-of-distribution setting: the barriers are trained only on static HarmBench data and never observe adaptive-attack trajectories during training. Because the learned safety boundary depends on the coverage of its training data, it may not generalize correctly to hidden states reached by adaptive attacks. This explains why near-zero static ASR does not translate to the same performance under adaptive attacks. Appendix G discusses this dependence on training data and possible mitigations in more detail. We therefore do not claim that BarrierSteer trained only on HarmBench is robust to arbitrary attack types.
Future work could extend BarrierSteer to a broader range of attacks in two ways. First, its hidden-state classifiers could be trained on larger and more diverse safety datasets. Recent work from frontier AI labs shows that hidden-state classifiers trained at scale can generalize across attack types and support production deployment [2, 3]. Second, when a new attack type emerges, a new barrier can be trained for that distribution and composed with the existing barriers without retraining the LLM. This modularity is precisely what we envisioned for BarrierSteer, and we appreciate the reviewer's recognition of its practical value.
W3. The safety–utility tradeoff remains significant. Table 2 shows increasing steering strength further reduces ASR and AA ASR but significantly increases over-refusal and reduces MMLU/GSM8K. Essentially, steering is still an additive method, which may disrupt the distributed manifold.
Answer W3. We thank the reviewer for highlighting the safety–utility trade-off. Indeed, stronger steering can improve safety while increasing over-refusal or reducing utility. A practical benefit of an inference-time method is that this trade-off is not fixed during training. At test time, users can adjust to select the desired safety–utility operating point without retraining the LLM. Table 1 demonstrates that BarrierSteer achieves a favorable trade-off across model families, substantially reducing ASR while mostly preserving utility.
To further evaluate this trade-off, we add refusal SFT, as suggested by Reviewer cgPJ, and SafeDPO, a recent safety fine-tuning baseline suggested by the Area Chair. Refusal SFT fine-tunes the model to produce a refusal for harmful prompts that previously elicited unsafe responses. SafeDPO uses the same examples as preference pairs, treating the refusal as preferred over the original unsafe response. Table R2 in our response to Reviewer cgPJ shows that both training-based methods substantially increase over-refusal. For example, on Qwen2-1.5B, XSTest increases from for the base model to with SFT and with SafeDPO, while BarrierSteer obtains . Thus, the safety–utility trade-off is not unique to inference-time steering, and BarrierSteer offers a favorable alternative whose strength can be adjusted at deployment.
We also thank the reviewer for raising concern about additive steering. Stronger additive updates may move representations away from the LLM's representation manifold. However, BarrierSteer is not inherently limited to linear addition. As discussed in Appendix F.3, the learned barrier provides a safety signal that can be integrated with on-manifold steering methods designed to steer with respect to the geometry of the LLM's representation space [4,5,6]. Extending BarrierSteer to such steering geometries is a natural direction for future work.
W4. The hidden-state safety classifier uses response-level labels to supervise each token hidden state, which may introduce label noise. Not every token in an unsafe response is equally unsafe.
Answer W4. We acknowledge that collecting a safety label at every generation step would provide more fine-grained supervision. However, labeling every partial response would require judging at each step and is substantially more expensive than response-level judging. In practice, response-level safety labels have been used successfully to train hidden-state classifiers for frontier models [2]. Furthermore, to ensure a fair comparison with the safety fine-tuning baselines, we use the same response-level safety annotations across all methods.
We thank the reviewer again for the careful review, which has helped us improve the paper. We have clarified the latent-dynamics approximation and the limitations under out-of-distribution attacks, added the SFT and SafeDPO comparisons to contextualize the safety–utility trade-off, and expanded our discussion of on-manifold steering and response-level supervision. We would be happy to provide any further clarification or results during the discussion period. We hope these additions address the reviewer's concerns and strengthen your view of our work.
References.
[1] Xiao et al. "SafeDiffuser: Safe Planning with Diffusion Probabilistic Models." In ICLR 2025.
[2] Cunningham et al. "Constitutional Classifiers++: Efficient Production-Grade Defenses against Universal Jailbreaks." In ICLR 2026.
[3] Kramár et al. "Building Production-Ready Probes For Gemini." arXiv 2026.
[4] Singh et al. "Representation Surgery: Theory and Practice of Affine Steering." In ICML 2024.
[5] Vu et al. "Angular Steering: Behavior Control via Rotation in Activation Space." In NeurIPS 2025.
[6] Huang et al. "Mitigating Overthinking in Large Reasoning Models via Manifold Steering." In NeurIPS 2025.
Dear Authors,
Thank you for clarifying my concerns, therefore I would like to keep my positive initial score.
Thank You for Your Positive Feedback
We would like to sincerely thank you for the thoughtful feedback and for recognizing that our responses have addressed your concerns. We truly appreciate your time and consideration throughout the review process. If there are any remaining concerns or questions, we would be grateful for the opportunity to further clarify and address them.
Appreciation for Your Continued Support
Dear Reviewer AxZ9,
Thank you again for your careful consideration and for maintaining your positive assessment after reviewing our rebuttal. We are grateful that our clarifications addressed your concerns.
Your constructive comments helped us improve the paper, and we will incorporate the corresponding clarifications and additional results into the revised paper. We sincerely appreciate your time and continued support during the Author–Area Chair discussion.
- Rating
- 4/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper proposes a new approach BarrierSteer to make LLM safe by using latent representation steering. BarrierSteer learns a nonlinear hidden representation safety classifiers and use them as Control Barrier Functions for constraint-guided steering. Two major technical contributions of this paper is that: 1) it proposes a nonlinear representation safety classifier; 2) it derives closed-form steering updates and introduce principled composition mechanisms for jointly enforcing multiple safety constraints.
The approach is evaluated on safety and utility datasets. The evaluation results show that the model achieve the SOTA ASR on safety benchmarks, while maintaining comparable performance on utility benchmarks.
Strengths and weaknesses
Strengths
One of the stegnths of the proposed approach is its performance. It achieved SOTA performance on safety datasets without degrading on utility benchmarks.
The proposed approach is efficient. Specifically, the closed-form LSE update at 2.4ms/token vs SAp's 190.67ms/token (100 steps), 139.97ms/token (1 step), which is a significant improvement.
Another strengths of this work is its ability of composition. Table 4 shows that 14 independently trained category barriers, composed post-hoc with no joint retraining, reducing harmful rate from 22.77% to 0.86%. One of the application of this capability is production deployment, where emerging risks can be mitigated by composing a newly trained barrier with the existing ones without re-training of the existing ones.
Weakness
The evaluation scope is limited. The experiements cover several open-weight models and standard safety benchmarks, however, it doesn't establish that the method is broadly applicable. Specifically, there're no multi-turn, no multilingual benchmarks. Some of the suggested benchmarks are MultiJail, multi-turn jailbreak attacks.
Another weakness is the per-expeirment hyperparameter inconsistency. For example, in the paper Line 336 states that the results in Table 1 uses = 0.01, however, they do not match the results of Table 12.
For Qwen2-1.5B, the results in Table 1 and 12 match and they're the results of = 0.01, which aligns with the experimental protocol statement.
For Gemma-2-9B, Table 1's results match with Table 12's = 0.1 row. And if = 0.01, the adaptive attack result is worse, specifically, 73 VS. 53 (AA ASR), 35 VS 32 (XSTest), 71.82 VS. 71.87 (MMLU), 73.81 VS. 73.65 (GSM8K). For AA ASR, the results change from 53 to 73, which is worse than the baseline model's 70 and change the conclusion. Additionally, if = 0.1, AA ASR is , the standard deviation is enormous, which means individual runs range from roughly 30% to 76%. The defense is not stable at least on this model, and reporting the mean alone masks the high discrepancy issue.
For Ministral-8B, Table 1's results match with Table 12's = 0.1 results, not 0.01.
For Llama2-7B, Table 1's results match with Table 12's = 0.1 results, not 0.01.
One kind of baselines the paper ignores are the most natural use of the training data. To be concrete, given the HarmBench data with safe/unsafe labels, SFT a model with the unsafe prompt plus a refusl, which is a simple method. Without this type of approach, the claim in the paper "modeling safety as latent constraints provides a more reliable mechanism" is not well supported.
Questions
Please see the Strengths and Weaknesses section.
Limitations
Yes.
Final justification
The authors' responses partially addressed my concerns. The remaining concern I have is the results of Gemma on AA ASRs, which I explain it in the response to the author's reply. I increase the score from 3 to 4.
Formatting concerns
No concern.
5 comments
Rebuttal
We thank the reviewer for a careful review. We appreciate the recognition of BarrierSteer's safety performance while generally preserving utility, the efficiency of BarrierSteer relative to SaP, and the practical value of modular composition for deployments. To ensure clarity and coherence, we have grouped related weaknesses.
W1. The evaluation scope is limited. [...] doesn't establish that the method is broadly applicable. [...] no multi-turn, no multilingual benchmarks [...]
Answer W1. We thank the reviewer for suggesting broader evaluations. To assess multilingual generalization, we additionally evaluate the base model, SaP, and BarrierSteer on MultiJail [1], which contains adversarial prompts in 10 languages. We evaluate the generated responses using the multilingual safety classifier Qwen3Guard-Gen-8B [2]. Importantly, BarrierSteer is trained only on the English HarmBench safety data and is not trained on MultiJail. Thus, this experiment measures out-of-distribution (OOD) transfer to multilingual attacks, following the same principle as our adaptive-attack evaluation, where adaptive attacks are not included in training.
Table R1 reports the results. BarrierSteer consistently outperforms SaP (the closest method to BarrierSteer) across all four model families. The improvement is particularly pronounced for Ministral-8B, where the attack success rate decreases from with SaP to with BarrierSteer.
Table R1. Attack success rate (%) on MultiJail. SaP and BarrierSteer use the same hyperparameters as in Table 1.
| Model | Base | SaP | BarrierSteer |
|---|---|---|---|
| Gemma-2-9B | 82.20 | 81.94 ± 0.90 | 73.54 ± 1.15 |
| Ministral-8B | 79.20 | 76.46 ± 7.76 | 40.48 ± 8.54 |
| Llama-2-7B | 2.90 | 2.02 ± 0.65 | 1.30 ± 0.46 |
| Qwen2-1.5B | 23.80 | 20.06 ± 1.56 | 18.22 ± 0.35 |
We also acknowledge that BarrierSteer's defense on MultiJail remains imperfect, similar to its performance under adaptive attacks. Both evaluations are OOD relative to the HarmBench training data: MultiJail introduces multilingual prompts, while the adaptive attack generates unseen attack trajectories. Multi-turn benchmark would constitute another OOD attack, involving cross-turn attack strategies. Accordingly, we do not present BarrierSteer trained only on HarmBench as broadly robust across arbitrary attack distributions. Rather, our results establish BarrierSteer as a promising and efficient test-time defense, demonstrated by its consistently low ASR on HarmBench across model families.
Future work could extend BarrierSteer to a broader range of attacks in two ways. First, the hidden-state classifiers can be trained on larger and more diverse safety datasets. Recent work from frontier AI labs shows that such classifiers can generalize across attack types and be deployed in production [3, 4]. Second, new barriers can be trained for emerging attacks and composed with existing barriers without joint retraining. This modularity is what we envisioned for BarrierSteer, and we appreciate the reviewer's recognition of its practical value.
W2. Hyperparameter inconsistency. In the paper Line 336 states that the results in Table 1 uses , however, they do not match the results of Table 12 [...]
Answer W2. We thank the reviewer for the careful cross-check, which helped us identify an ambiguity in our wording. Line 336 occurs in the discussion of Qwen2-1.5B (Table 2) and was intended to state that was used for Qwen2-1.5B in Table 1. For other models (Gemma-2-9B, Ministral-8B, Llama-2-7B), Table 1 uses . These settings correspond exactly to the respective rows in Table 12 that the reviewer identified.
We select the steering strength separately for each model by sweeping and inspecting the safety–utility trade-off reported in Table 12 to choose a representative model-specific operating point. Similar model-specific steering-strength sweeps are used in prior inference-time steering work, including AxBench [5] and SaP [6]. We also examine the sensitivity of steering baselines to their inference-time hyperparameters. For SaP, Table 7 reports a sweep over the steering-strength hyperparameter on Gemma-2-9B.
We will revise Line 336 to explicitly report the model-specific values and clarify the hyperparameter selection protocol.
Additionally, we acknowledge the more variable performance of BarrierSteer on Gemma-2-9B under adaptive attacks, an out-of-distribution setting discussed in our response to W1. The five seed-level AA ASRs are 12%,61%,62%,64%, and 66%. The spread may arise from the stochastic adaptive-attack evaluation, as each run repeats the attacker’s random search from a different initialization. Thus, although all runs improve over the base model’s 70% AA ASR, the typical improvement is modest, consistent with the difficulty of generalizing learned barriers to OOD adaptive attacks.
W3. Missing natural baseline. [...] given HarmBench data with safe/unsafe labels, SFT a model on unsafe prompts paired with a refusal. [...]
Answer W3. Following the reviewer's suggestion, we added the SFT baseline, as well as SafeDPO [7], suggested by the Area Chair. Both baselines use the same HarmBench training examples. For SFT, we fine-tune the model on harmful prompts that elicited an unsafe response, pairing each prompt with a refusal. For SafeDPO, we construct preference pairs from the same examples, treating the refusal as the preferred response and the model's original unsafe generation as the rejected response. We compare both baselines with the base model and BarrierSteer.
Table R2. Safety and utility across four model families with SFT and SafeDPO baselines.
| Model | Method | ASR ↓ | AA ASR ↓ | XSTest ↓ | MMLU ↑ | GSM8K ↑ |
|---|---|---|---|---|---|---|
| Gemma-2-9B | Base | 19.50 | 70.00 | 28.00 | 71.86 | 74.22 |
| SFT | 0.42 ± 0.57 | 51.20 ± 3.03 | 43.20 ± 0.80 | 72.03 ± 0.20 | 72.88 ± 0.36 | |
| SafeDPO | 0.42 ± 0.00 | 52.40 ± 2.96 | 39.33 ± 1.89 | 72.14 ± 0.04 | 72.00 ± 0.35 | |
| BarrierSteer | 0.00 ± 0.00 | 53.00 ± 23.00 | 32.00 ± 0.44 | 71.87 ± 0.09 | 73.65 ± 0.04 | |
| Ministral-8B | Base | 51.19 | 74.00 | 20.40 | 64.73 | 64.22 |
| SFT | 0.52 ± 0.69 | 21.20 ± 5.21 | 64.67 ± 5.10 | 62.51 ± 0.56 | 51.10 ± 4.10 | |
| SafeDPO | 0.14 ± 0.07 | 23.20 ± 5.40 | 49.60 ± 12.26 | 64.58 ± 0.06 | 62.26 ± 1.36 | |
| BarrierSteer | 0.83 ± 1.86 | 19.60 ± 2.61 | 20.96 ± 7.04 | 63.07 ± 1.95 | 62.55 ± 2.46 | |
| Llama-2-7B | Base | 6.06 | 72.00 | 41.60 | 46.47 | 20.92 |
| SFT | 0.58 ± 0.31 | 1.20 ± 1.09 | 64.40 ± 4.07 | 45.86 ± 0.50 | 19.38 ± 1.03 | |
| SafeDPO | 0.97 ± 0.54 | 2.40 ± 0.89 | 53.07 ± 1.22 | 46.21 ± 0.07 | 20.75 ± 0.22 | |
| BarrierSteer | 1.28 ± 2.17 | 1.60 ± 0.89 | 43.36 ± 0.83 | 46.56 ± 0.04 | 20.94 ± 0.62 | |
| Qwen2-1.5B | Base | 23.89 | 62.00 | 27.60 | 55.69 | 24.94 |
| SFT | 1.03 ± 0.73 | 19.20 ± 11.19 | 88.13 ± 2.85 | 55.41 ± 0.07 | 24.17 ± 2.31 | |
| SafeDPO | 0.02 ± 0.03 | 15.20 ± 6.10 | 88.80 ± 1.44 | 55.44 ± 0.06 | 20.45 ± 0.09 | |
| BarrierSteer | 0.66 ± 0.47 | 24.80 ± 1.79 | 29.44 ± 1.49 | 55.65 ± 0.05 | 12.95 ± 0.63 |
All three methods reduce static HarmBench ASR to near zero, while Adaptive Attack remains challenging for all methods. However, SFT and SafeDPO substantially increase the over-refusal rate. On Qwen2-1.5B, SFT and SafeDPO reduce AA ASR to and , respectively, compared with for BarrierSteer. However, their XSTest over-refusal rates increase sharply from for the base model to and , whereas BarrierSteer remains close to the base model at . The higher XSTest rates show that SFT and SafeDPO learn refusal behavior that also affects benign prompts. This is consistent with prior findings that safety fine-tuning can incur catastrophic forgetting [8] and alignment tax [9], where gains in safety trade off against model utility.
We therefore view training-based alignment and inference-time steering as complementary approaches. Training-based methods can establish general safety behavior, while BarrierSteer provides an additional safety layer at inference time without modifying the base-model parameters. This offers several practical benefits: the safety strength can be adjusted at runtime through , and independently trained barriers can be quickly added and composed as new risks emerge. BarrierSteer's efficient closed-form update makes inference-time control practical for deployment.
We thank the reviewer again for the careful review, which has helped us improve the paper. We have clarified the hyperparameter reporting and per-model steering-strength protocol, added the SFT and SafeDPO baselines, and extended the evaluation to multilingual prompts. We would be happy to provide any further clarification or results during the discussion period. We hope these additions address the reviewer's concerns and strengthen your view of our work.
References.
[1] Deng et al. "Multilingual Jailbreak Challenges in Large Language Models." In ICLR 2024.
[2] Qwen Team. "Qwen3Guard Technical Report." arXiv 2025.
[3] Cunningham et al. "Constitutional Classifiers++: Efficient Production-Grade Defenses against Universal Jailbreaks." In ICLR 2026.
[4] Kramár et al. "Building Production-Ready Probes For Gemini." arXiv 2026.
[5] Wu et al. "AxBench: Steering LLMs? Even Simple Baselines Outperform Sparse Autoencoders." In ICML 2025.
[6] Chen et al. "Learning Safety Constraints for Large Language Models." In ICML 2025.
[7] Kim et al. "SafeDPO: A Simple Approach to Direct Preference Optimization with Enhanced Safety." In ICLR 2026.
[8] Luo et al. "An Empirical Study of Catastrophic Forgetting in Large Language Models During Continual Fine-tuning." In IEEE TASLP 2025.
[9] Lin et al. "Mitigating the Alignment Tax of RLHF." In EMNLP 2024.
Follow-up Before the Discussion Phase Ends
Dear Reviewer cgPJ,
As the discussion phase will be closing soon, we would greatly appreciate any feedback you may have. If you have any remaining concerns or questions, we would be very grateful if you could let us know so that we can address them.
Thank you very much for your time and consideration.
Follow-up on Your Review
Dear Reviewer cgPJ,
As the discussion deadline is approaching, we are following up on the main concerns raised in your review.
Limited evaluation scope. We added a multilingual evaluation on MultiJail across all four model families, where BarrierSteer consistently outperforms SaP. The defense remains imperfect because MultiJail is an out-of-distribution setting relative to the English HarmBench data used to train the barriers.
Hyperparameter inconsistency. We clarified the model-specific values of used in Table 1 and explained the sweep-based selection protocol.
Missing natural baseline. We added SFT and SafeDPO using the same HarmBench training examples. The results show that safety fine-tuning can incur an alignment tax and significantly increase over-refusal.
We would like to know whether these additions address your main concerns and strengthen your view of our paper. If any point remains unclear, please let us know, and we would be happy to provide further clarification.
Thank you again for your time and constructive feedback.
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Response to Meta Review [3/3]
M7. Strong approximation.
BarrierSteer does not assume that the entire stochastic decoding process is an exact continuous-time system. It applies at most one steering update per decoding step, and only when the barrier condition is violated. At step t, ht is the exact hidden state for the current prefix, and we approximate only the local velocity (ht−ht−1)/Δt to compute the correction. Token sampling then determines the next prefix, after which BarrierSteer observes the exact ht+1 and re-evaluates the barrier. Thus, sampling effects are considered when the barrier is re-evaluated at the next exact hidden state. Similar local approximations have been effective for CBF-style control in diffusion models [10].
We thank the Area Chair again for the helpful suggestions. In summary, we have added SFT and SafeDPO baselines, a reasoning-model evaluation, a multilingual out-of-distribution evaluation, additional safety judges, and latency measurements for all model families, and we have clarified the hyperparameters.
Reviewers AxZ9 and 4orG have acknowledged our clarifications and raised no further concerns. We hope to engage with Reviewer cgPJ during the discussion period. We are grateful to the Area Chair for facilitating an active discussion.
References.
[1] Gemma Team. "Gemma 4 Technical Report." arXiv 2025.
[2] Kim et al. "SafeDPO: A Simple Approach to Direct Preference Optimization with Enhanced Safety." In ICLR 2026.
[3] Deng et al. "Multilingual Jailbreak Challenges in Large Language Models." In ICLR 2024.
[4] Qwen Team. "Qwen3Guard Technical Report." arXiv 2025.
[5] Cunningham et al. "Constitutional Classifiers++: Efficient Production-Grade Defenses against Universal Jailbreaks." In ICLR 2026.
[6] Kramár et al. "Building Production-Ready Probes For Gemini." arXiv 2026.
[7] Kumar et al. "Polyguard: A multilingual safety moderation tool for 17 languages." In COLM 2025.
[8] Wu et al. "AxBench: Steering LLMs? Even Simple Baselines Outperform Sparse Autoencoders." In ICML 2025.
[9] Chen et al. "Learning Safety Constraints for Large Language Models." In ICML 2025.
[10] Xiao et al. "SafeDiffuser: Safe Planning with Diffusion Probabilistic Models." In ICLR 2025.