potentialpaper

OASIS: Online Adaptive Steering for In-Training Safety of LLMs

Yifan Sun, Qiang Sheng, Ya Wu, Zhengjia Wang, Guang Yang, Shaofei Wang, Danding Wang, Juan Cao

NeurIPS 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

Abstract. Fine-tuning is essential for adapting Large Language Models to downstream tasks. However, this process can also inadvertently erode the critical safety alignment even when the fine-tuning data appears benign. Prior methods either introduce safety regularizers that may conflict with the primary training objective, or rely on fixed mechanisms that fail to adapt to fine-tuning dynamics. To remedy this, we reframe safety preservation as a training-time intervention and propose Online Adaptive Steering for In-Training Safety (OASIS), enabling continuous online recalibration of the steering direction during fine-tuning. Specifically, OASIS tracks a misalignment direction in activation space, then applies example-adaptive activation steering to absorb misalignment-inducing updates during training. Across three misalignment behaviors and three fine-tuning data regimes, including fully misaligned, mixed, and benign data, OASIS consistently improves safety robustness without sacrificing downstream performance.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

DateVersionSubmitted toPDFEvidence
15 Apr 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)reviews ↓[1]PDF[1]
Missing a version?

NeurIPS 2026

Accept (poster) · 3 reviews · OpenReview

Updated 25 Nov 2026, 03:42 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (poster)
Read decision
Meta-review

This work introduces a new method for preserving safety alignment in LLMs during fine-tuning. In particular, they dynamically recalibrate the steering direction in activation space during training to absorb misalignment-inducing updates in real time. Reviewers acknowledge the method's strong motivation and extensive evaluation, as well as its ease of integration into existing finetuning processes without altering model architecture. However, several limitations and concerns were raised. A primary concern is the method's core assumption that misalignment behaviors can be represented as a stable linear direction in activation space, and whether this holds under distribution shifts during fine-tuning. The paper is also criticized for not sufficiently addressing scenarios with multiple co-existing failure modes and whether these are separable in representation space. Additionally, some design choices, such as the selection of intervention layers and the construction of anchor sets, appear manual and lack detailed justification. Finally, Reviewers also suggest more empirical validations, such as scalability to larger models and more diverse training distributions, comparisons with stronger dynamic baselines. Overall, the paper presents an interesting and empirically solid approach to a critical problem in LLM fine-tuning. The authors also addressed all those reviews in a proper way so I recommend an acceptance.

Final justification

The authors have addressed all concerns with additional experiments and discussions.

Area Chair QRua · Meta-reviewOpenReview ↗
Read meta-review
Meta-review

This work introduces a new method for preserving safety alignment in LLMs during fine-tuning. In particular, they dynamically recalibrate the steering direction in activation space during training to absorb misalignment-inducing updates in real time. Reviewers acknowledge the method's strong motivation and extensive evaluation, as well as its ease of integration into existing finetuning processes without altering model architecture. However, several limitations and concerns were raised. A primary concern is the method's core assumption that misalignment behaviors can be represented as a stable linear direction in activation space, and whether this holds under distribution shifts during fine-tuning. The paper is also criticized for not sufficiently addressing scenarios with multiple co-existing failure modes and whether these are separable in representation space. Additionally, some design choices, such as the selection of intervention layers and the construction of anchor sets, appear manual and lack detailed justification. Finally, Reviewers also suggest more empirical validations, such as scalability to larger models and more diverse training distributions, comparisons with stronger dynamic baselines. Overall, the paper presents an interesting and empirically solid approach to a critical problem in LLM fine-tuning. The authors also addressed all those reviews in a proper way so I recommend an acceptance.

Final justification

The authors have addressed all concerns with additional experiments and discussions.

2 comments
Authors · CommentOpenReview ↗

We sincerely thank the Area Chair and all reviewers for the time and effort devoted to evaluating our paper, and we appreciate the recognition of the key contributions and strengths of our work.

We have carefully responded to each reviewer comment. In our rebuttal, we provide the requested experiments, additional analyses and discussion, and further clarifications, which we believe strengthen the paper.


The summary of strengths of our method is as follows:

  • A new perspective on safety preservation. We reframe safety preservation as an online intervention task, introducing a training-time inoculation framework that dynamically counteracts harmful updates without conflicting with the main fine-tuning objective.
  • Motivation grounded in mechanistic analysis. By tracking misalignment directions throughout fine-tuning, we find that they evolve dynamically, suggesting that effective training-time safety preservation requires adaptive tracking rather than static control.
  • Computational efficiency and practical integration. OASIS introduces limited computational overhead and can be easily integrated into existing fine-tuning pipelines without modifying the model architecture.
  • Comprehensive and controlled evaluation. Extensive experiments show that OASIS consistently improves safety robustness while preserving task utility, with carefully controlled comparisons against relevant baselines.

The summary of reviewer suggestions and our responses is as follows:

  • Validation of the underlying assumptions. We evaluated checkpoint-specific directions throughout fine-tuning using ID/OOD accuracy and causal interventions, confirming that the relevant behaviors remain linearly separable and semantically aligned with these behaviors during fine-tuning.
  • Enhanced discussion of related work. We clarified the distinction between OASIS, post-hoc safety restoration, and deployment-time intervention, and added comparisons with a post-hoc method.
  • Intervention on multiple behaviors. We showed that the three misalignment behaviors are represented by largely distinct directions. OASIS can mitigate them simultaneously while preserving safety and MMLU performance.
  • Experiments on a larger-scale model. We conducted experiments on Qwen2.5-32B-Instruct, demonstrating that OASIS remains effective at a substantially larger model scale.
  • Comparison with direction re-extraction baselines. We compared OASIS with periodic direction re-extraction and showed that it outperforms the compute-matched baseline while achieving performance comparable to full-set re-extraction at a much lower cost.
  • Ablation of the tracking mechanism. We added six component-wise ablations with statistical significance tests and cost analyses, confirming that the full OASIS design provides the best safety–efficiency trade-off.
  • Selection of layer and anchor set. We proposed an inexpensive steerability-based procedure for narrowing the candidate layers and provided a detailed description of the anchor-set construction process.
  • Additional clarifications and presentation improvements. We further clarified the methodological novelty and the scope of Setting 3, and revised the presentation according to the reviewers’ suggestions.

We thank the Area Chair and all reviewers again for the valuable and constructive feedback. We hope that our responses and additional results help clarify and strengthen the paper, and we respectfully look forward to your consideration.

Best regards,

The Authors

Authors · CommentOpenReview ↗

Dear Area Chair and Reviewers,

We sincerely thank you for your time and effort in reviewing our paper and handling our submission. We greatly appreciate the constructive discussion and valuable feedback, which helped us further improve our paper.

Below, we summarize our responses to the follow-up concerns.

  • Practical deployment scope clarification. We clarified that OASIS is an operator-side safeguard applicable to controlled or voluntarily adopted fine-tuning workflows, while acknowledging that it cannot be enforced for non-cooperative downstream fine-tuning.
  • Intervention-layer selection and stability validation. We quantified the cost of intervention-layer selection and validated that the selected layer continues to encode linearly discriminative and causally effective misalignment signals throughout fine-tuning.

During the discussion, we validated the key assumptions underlying OASIS, expanded the related-work discussion, clarified the method’s scope and limitations, and added extensive experiments covering multiple misalignment behaviors, a larger-scale model, and direction re-extraction baselines. We also refined several hyperparameter strategies and provided additional ablations with statistical significance tests.

We believe that these additional experiments and clarifications have addressed the major concerns raised during the discussion. We sincerely appreciate the reviewers’ recognition of these efforts and overall positive assessments of our work, with the scores increasing from 5/3/3 to 5/4/4 after the discussion. We respectfully hope that the Area Chair will take these revisions into consideration in the final decision.

Thank you again for your time, thoughtful feedback, and constructive discussion throughout the review process.

Best regards,

The Authors

Reviewer LzdfOpenReview ↗
Rating
5/6
Confidence
3/5
Quality
4/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

The paper applies activation steering to preserving safety alignment during fine-tuning. The authors first show that fine-tuning drifts the model toward unsafe behavior (with or without malicious data) and, importantly, that the misalignment direction itself drifts across checkpoints, so a fixed steering vector becomes stale. OASIS tracks this direction online using batch pseudo-labels and contrastive anchors, then applies example-adaptive steering that intervenes more strongly on misaligned examples so an auxiliary pathway absorbs the misaligned learning signal; the intervention is removed after training. Across harmfulness, hallucination, and sycophancy under fully-misaligned, contaminated, and benign data, OASIS reports the best safety vs. utility trade-off.

Strengths and weaknesses

Strengths

  • The study presents a novel and well-motivated application of activation steering; the direction-drift observation (Fig. 2c, Fig. 4) cleanly justifies online updating over a fixed vector.
  • The baseline comparison is carefully controlled. PrevSteer is run with the same extracted direction and the same example-adaptive scorer, so online tracking is isolated as the only difference (and is recovered as the "w/o all" corner in Fig. 5).
  • Broad and consistent empirical coverage: three behaviors × three data regimes × three backbones, plus contamination-ratio sweeps and an efficiency table.

Weaknesses

  • Unclear marginal value of the tracking machinery. The anchor-only recompute is already the w/o-Batch ablation (and underperforms), but EMA (Fig. 15) and the scheduler (Fig. 14, ρ=0 is "competitive") add many hyperparameters for small gains—a consolidated per-component ablation with significance would clarify the cost/benefit.

  • The method presupposes the target behavior. Anchors are behavior-specific, yet the key motivation (Setting 3) is incidental misalignment from benign data where the failure mode is unknown in advance—please clarify or test a behavior-agnostic variant.

  • Reorganization for hyperparameter transparency. The paper would benefit from consolidating its hyperparameter discussion in the main text: §4 explains how baselines are adapted under OASIS, but §5.1 lacks an equally complete account of which hyperparameters are varied versus fixed across the many methods compared. Since steering is already hyperparameter-heavy and OASIS adds several more, surfacing key details from the appendix into the main manuscript would help readers gauge each hyperparameter's contribution to the reported results.

Questions
  • Line 86 / section 3: at a chosen layer the activations are R^{T×D}; please state the token aggregation at first use. (It is specified in §4.1 as the mean over response tokens—worth surfacing earlier.)
  • Line 91–94 / Fig. 2 caption: please clarify that v^ref_t is re-extracted per checkpoint (not fixed), and confirm explicitly that L is the SFT/causal-LM loss.
  • Fig. 2(b): from the plot, it is hard to see that negative values dominate after the first few steps. A bar plot of the count (or mean) of positive vs. negative inner products would make the "mostly non-positive" claim clearer.
  • Line 100 / Eq. 2: a one-line note that O() is the second-order Taylor remainder would help; the full derivation in Appendix B could be cross-referenced here.
  • Line 103: the first-order argument (derivative \cdot v, mostly negative) is demonstrated only on misaligned data (Fig. 2, Fig. 6). Please show the corresponding gradient–direction relationship on benign data, since Setting 3 relies on the same mechanism without this evidence.
  • Line 113 / Fig. 2c: the extraction of v is described in §4.1 and Appendix D.4 (1,000 contrastive pairs, margin-softplus objective). It would help to include one concrete example of a contrastive pair in the appendix.
  • Section 4.3: the example-adaptive (sigmoid-gated) steering resembles prior conditional/adaptive steering; please cite the relevant precedent here (e.g., [23]) rather than only in related work.
  • Line 299 / Fig. 4 (and Appendix F.1, Fig. 7): the projection values under OASIS are claimed to go negative. However, why does the projection value increase for hallucination and sycophancy? Does training the model for a long(er) time make it positive?
Limitations

The authors have acknowledged the primary concern regarding the usage of the method for safety misalignment. It would be great if the authors could discuss some mitigation strategies.

Final justification

I have reviewed the additional ablations authors added during the rebuttal. Based on the experiments, I am raising the quality score and keeping my final decision as "Accept".

Formatting concerns

NA

3 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We thank the reviewer for the thorough review and constructive feedback. Below, we respond to each concern and question in detail.

1. Marginal Value of the Tracking Machinery

To clarify the marginal value and cost–benefit trade-off of the tracking machinery, we added a consolidated per-component ablation covering six variants:

  • w/o Batch and Anchor signals (PrevSteer): disables online direction updates and uses the fixed pre-fine-tuning direction.
  • w/o Batch signals: updates the direction using anchor pairs only.
  • w/o Anchor signals: updates the direction using batch-derived pseudo-labeled activations only.
  • w/o EMA (η=1): disables temporal smoothing and directly replaces the previous direction with the newly estimated direction at each update.
  • w/o Scheduler warm-up (ρ=0): enables interval-based updates from the beginning of training.
  • w/o Scheduler (ρ=100): disables interval-based scheduling and updates the direction at every training step.

All variants were evaluated over five matched random seeds. We conducted paired t-tests between OASIS and each variant. OASIS significantly outperforms all variants except w/o Scheduler (ρ=100), achieving statistical significance (p<0.05). We also report the anchor-forward cost, defined as the fraction of training steps requiring an additional forward-only anchor batch.

The ablation clarifies the role of each tracking component. (1). Batch updates adapt the direction to the evolving training distribution, while anchors preserve its behavioral semantics. Removing either significantly degrades performance. (2). EMA smoothing stabilizes the tracked direction by mitigating step-to-step fluctuations caused by mini-batch statistical variations. Its contribution is particularly pronounced on Mistral-7B-Instruct-v0.3, where removing EMA substantially worsens hallucination and sycophancy scores. (3). The scheduler primarily controls computational cost. A short dense-update warm-up preserves early-stage adaptivity, after which interval updates reduce anchor forwards. Activating the scheduler from the beginning reduces cost but weakens safety preservation (ρ=0), whereas disabling it increases the anchor-forward cost with little additional safety benefit (ρ=100).

In summary, batch signals and anchors provide complementary tracking information, EMA stabilizes the online estimates, and the scheduler reduces computational overhead after an initial period of dense update. Full OASIS therefore provides the best overall safety–efficiency trade-off.

Qwen2.5-7B-Instruct

Method Harm.↓ Hallu.↓ Syco.↓ Anchor Cost
w/o Batch and Anchor signals (PrevSteer) 4.53±0.38 37.81±0.40 42.13±0.79 0% steps
w/o Batch signals 1.22±0.05 23.98±0.18 29.37±0.20 30–35% steps
w/o Anchor signals 0.93±0.03 25.72±0.32 34.47±0.49 0% steps
w/o EMA (η=1) 1.11±0.13 24.76±0.65 28.58±0.10 30–35% steps
w/o Scheduler warm-up (ρ=0) 1.01±0.04 22.45±0.08 29.10±0.05 20–25% steps
w/o Scheduler (ρ=100) 0.34±0.02 20.12±0.21 28.15±0.15 100% steps
OASIS 0.41±0.01 19.55±0.09 28.23±0.20 30–35% steps

Llama-3.1-8B-Instruct

Method Harm.↓ Hallu.↓ Syco.↓ Anchor Cost
w/o Batch and Anchor signals (PrevSteer) 2.51±0.25 28.15±0.15 38.60±0.68 0% steps
w/o Batch signals 1.58±0.02 21.52±0.29 35.98±0.18 30–35% steps
w/o Anchor signals 1.67±0.06 25.38±0.40 35.52±0.03 0% steps
w/o EMA (η=1) 1.04±0.04 20.71±0.34 31.64±0.11 30–35% steps
w/o Scheduler warm-up (ρ=0) 1.07±0.04 20.57±0.29 32.77±0.18 20–25% steps
w/o Scheduler (ρ=100) 0.35±0.03 18.72±0.17 30.52±0.44 100% steps
OASIS 0.32±0.04 18.80±0.20 30.28±0.57 30–35% steps

Mistral-7B-Instruct-v0.3

Method Harm.↓ Hallu.↓ Syco.↓ Anchor Cost
w/o Batch and Anchor signals (PrevSteer) 4.90±0.23 33.22±1.37 35.68±0.77 0% steps
w/o Batch signals 1.75±0.07 30.76±0.12 33.13±1.64 30–35% steps
w/o Anchor signals 1.57±0.04 34.06±0.67 37.12±1.39 0% steps
w/o EMA (η=1) 1.60±0.20 40.18±1.30 42.05±0.38 30–35% steps
w/o Scheduler warm-up (ρ=0) 1.03±0.01 30.80±0.74 32.62±1.35 20–25% steps
w/o Scheduler (ρ=100) 0.47±0.09 29.58±1.41 29.01±2.00 100% steps
OASIS 0.46±0.09 28.91±0.36 29.61±0.41 30–35% steps

2. Clarification of Setting 3

We thank the reviewer for raising this point and apologize for the ambiguity in our presentation. OASIS is designed as a behavior-targeted safety-preservation method, aiming to mitigate pre-specified safety risks rather than discover arbitrary unknown failure modes. We will clarify this scope in the revised paper.

Setting 3 was not designed to evaluate open-ended safety risks discovery from benign data. Instead, it examines whether benign fine-tuning can incidentally amplify pre-specified risks and whether OASIS can mitigate such amplification. This setting is motivated by prior findings that fine-tuning on benign knowledge can unintentionally degrade safety[1] and increase hallucinations[2]. We will revise the description of Setting 3 to: "This experiment evaluates whether OASIS can mitigate unintended alignment regression on target behaviors during benign knowledge updates."

Existing work has explored predicting pre-specified fine-tuning-induced risks before training[3], as well as auditing trained models to uncover unknown risks[4]. However, to the best of our knowledge, predicting before training which unknown undesirable behaviors may emerge from benign fine-tuning remains an open problem. We view extending OASIS toward behavior-agnostic discovery as an important direction for future work and will include this discussion in the revised paper.

[1] Qi et al. Fine-tuning aligned language models compromises safety, even when users do not intend to!

[2] Dang et al. Understanding new-knowledge induced factual hallucinations in llms: Analysis, solution, and interpretation

[3] Wang et al. From Data to Behavior: Predicting Unintended Model Behaviors Before Training

[4] Marks et al. Auditing Language Models for Hidden Objectives

3. Reorganization for Hyperparameter Transparency

We thank the reviewer for this helpful suggestion. We will move the relevant hyperparameter details from Appendix D.2 and D.5 into the main text and summarize the hyperparameter settings for all compared methods, distinguishing among: (i) shared fine-tuning parameters, (ii) method-specific baseline parameters, (iii) OASIS-specific parameters and their default settings, and (iv) parameters selected using validation data. We will also clarify the role of each hyperparameter and its contribution to the reported results.

4. Clarification of Fig.4

We apologize for the confusion caused. The two bars in Fig. 4 do not represent two points along the fine-tuning trajectory. Instead, both of them are computed using the final model's generation-time activations, but with respect to two different reference directions: the misalignment direction extracted before fine-tuning and that re-extracted from the final checkpoint. Thus, the less-negative final-checkpoint projections do not indicate an increase in projections during training. Rather, they show that, after fine-tuning with OASIS, the final model's activations remain negative along both the original misalignment direction and the direction re-extracted from the final checkpoint. We will revise the text and caption to clarifiy this distinction.

5. Additional Disscusion on Negative Impact

We thank the reviewer for this important suggestion. As noted in the Negative Impact section, OASIS could also be misused to suppress safety-preserving updates by targeting safety-alignment rather than misalignment directions. Practical mitigations may include auditing the target directions before applying interventions to prevent them from overlapping with safety-alignment directions. However, this risk cannot be fully mitigated when a malicious actor has unrestricted control over the training pipeline. In such cases, safety evaluations should be conducted before model deployment. We will add these mitigation disscusion to the revised paper.

6. Presentation Improvements

We thank the reviewer for these detailed suggestions.

  • We will revise Section 3 to define hh at first use as the mean activation over response tokens, clarify that vtrefv_t^{\mathrm{ref}} is independently re-extracted from each checkpoint using the same contrastive procedure, and state explicitly that LL is the SFT causal-LM loss over response tokens. We will also note that O(α2∥v∥2)O(\alpha^2\lVert v\rVert^2) is the second-order Taylor remainder and cross-reference the full derivation in Appendix B.

  • To better support the "mostly non-positive" claim, we will supplement Fig. 2(b) with quantitative statistics on the proportion and mean of positive versus non-positive gradient–direction inner products, and add the corresponding analysis under benign fine-tuning for Setting 3.

  • We will further include some positive/negative contrastive-pair examples in Appendix D.4 and cite conditional activation steering in Section 4.3.


We will add these results and analyses to the revised manuscript. Thank you again for your insightful suggestions.

Best regards

Reviewer Lzdf · CommentOpenReview ↗

Thank you!

This is great. Thank you for providing the results from the additional experiment. I increased my quality score and voting and acceptance for the paper. All the best!

Authors · CommentOpenReview ↗

Thank you very much for recognizing our work! Your suggestions have been very helpful in improving the quality and clarity of our manuscript. We will ensure that the suggested clarifications are incorporated into the revised manuscript.

Thank you once again for your constructive feedback and well wishes.

Best regards,

The Authors

Reviewer PZKcOpenReview ↗
Rating
4/6
Confidence
3/5
Quality
3/4
Clarity
3/4
Significance
2/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper investigates the safety degradation issue in LLMs during fine-tuning. The authors analyze the drift of the misalignment direction in the representation space and propose OASIS. By utilizing batch pseudo-labels and forward anchor samples, OASIS tracks and updates this direction in real-time during training, applying an adaptive activation intervention to absorb harmful gradients. The experiments cover three behaviors (harmfulness, hallucination, and sycophancy) across multiple open-source models and fine-tuning scenarios. Results indicate that OASIS effectively preserves the model's original safety attributes while maintaining downstream task performance.

Strengths and weaknesses

Strengths: The investigated problem is important and holds practical value. The paper provides a new perspective on why existing fixed auxiliary structures fail during fine-tuning, which serves as the core motivation for the proposed method. The experimental setup is transparent, with clear explanations for configurations and hyperparameters. The overall framework can be easily integrated into existing fine-tuning pipelines without modifying the model architecture. Additionally, the scope of the experiments is broader than that of many related works.

Weaknesses:

  1. The methodological novelty is somewhat incremental. The core concepts, such as activation intervention and behavior direction extraction, are similar to existing works in representation engineering and safety interventions. OASIS functions more as an online tracking extension of current mechanisms.

  2. The experimental evaluation lacks comparisons with stronger dynamic baselines. Since the paper's central argument is that direction drift causes static methods to fail, a strong dynamic baseline,such as periodically re-extracting the direction,should be included to demonstrate the definitive advantage of the proposed online update mechanism over simple periodic re-estimation.

Questions
  1. If a strategy of periodically re-extracting the direction is adopted (e.g., recalculating the misalignment direction every N training steps), could similar results be achieved?
  2. Is the final performance highly sensitive to the choice of the intervention layer? Is there a unified layer selection strategy that does not require exhaustive hyperparameter tuning?
Limitations

Yes

Final justification

After reviewing the authors’ rebuttal, I believe that my main concerns have been adequately addressed, and my overall assessment of the paper has become more positive.

Formatting concerns

NA

4 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We thank the reviewer for the detailed evaluation and constructive feedback. Below, we provide detailed responses to each concern raised.

1. Methodological Novelty

We agree that activation intervention and behavior-direction extraction have been explored in prior works. However, the novelty of OASIS lies not in these individual components, but in their integration into an adaptive training-time intervention mechanism that preserves safety under representation dynamics.

  • Directly applying activation steering, as commonly done at inference time, is insufficient for training-time safety preservation. Classical activation-steering methods largely focus on inference-time behavior control. Recent works have extended such interventions to fine-tuning[1,2], but typically retain a fixed direction. However, fine-tuning is inherently non-stationary. As model parameters and representations evolve, a direction extracted before training may no longer reflect the model's current misalignment state. Our analysis confirms this direction drift, motivating an adaptive mechanism that tracks the evolving direction online.

  • To address the non-stationarity of fine-tuning, we propose an adaptive tracking-and-intervention mechanism for safety preservation. OASIS updates the misalignment direction online during fine-tuning by jointly incorporating distribution-adaptive batch signals and anchor-based semantic stabilization, alongside example-adaptive steering for precise mitigation. It adaptively determines when to update, how to update, and how strongly to intervene, remaining effective even as model representations dynamically evolve during training. With modest overhead, OASIS consistently improves safety robustness across diverse settings without compromising task utility.

[1] Casademunt et al. Steering out-of-distribution generalization with concept ablation fine-tuning

[2] Chen et al. Persona vectors: Monitoring and controlling character traits in language models

2. Re-Extraction Baseline Comparison

We appreciate the reviewer's suggestion and agree that periodic direction re-extraction provides an important dynamic baseline. We added a re-extraction experiment, which, every N=10 training steps, discards the previous direction and refits Eq.(3) using activations extracted from the current model checkpoint. For a controlled comparison, this baseline uses the same contrastive data pool, intervention layer, example-adaptive scorer, and steering mechanism as OASIS.

We consider two variants. Re-Extraction(160) performs re-extraction every 10 steps using 160 paired samples, matching OASIS's maximum amortized auxiliary forward budget (OASIS uses 16 pairs per step and updates only when necessary). Re-Extraction(1000) uses the full 1000-pair extraction set, corresponding 6.25× the maximum auxiliary forward budget of OASIS. In practice, OASIS incurs even lower overhead because its scheduler skips unnecessary updates.

The results show that OASIS consistently outperforms the compute-matched baseline and achieves performance comparable to, and in some settings better than, full-set re-extraction, while requiring substantially fewer auxiliary forward passes. This advantage likely stems from OASIS’s update design: unlike periodic re-extraction, OASIS uses an online scheduler to trigger direction updates and combines contrastive anchors with pseudo-labeled signals from the current training batch, preserving the target semantics while adapting to the evolving training distribution. This enables more effective and efficient tracking of misalignment-direction drift.

Qwen-Harm Qwen-Hallu Qwen-Syco Llama-Harm Llama-Hallu Llama-Syco Mistral-Harm Mistral-Hallu Mistral-Syco
Re-Extraction(160) 2.15 26.44 31.75 1.77 23.12 33.82 1.84 30.75 33.01
Re-Extraction(1000) 0.57 20.23 28.30 0.36 19.64 30.36 0.64 29.71 30.43
OASIS 0.41 19.53 28.01 0.32 18.85 30.51 0.51 28.97 29.77

3. Layer Selection Strategy Optimization

Thank you for raising this question. As shown in Appendix F.9, performance degrades at unsuitable layers but remains relatively stable within a range of effective intermediate layers. Since OASIS’s effectiveness at a given layer depends on the steerability of the target behavior at that layer, we additionally examine whether this property can be estimated efficiently before running OASIS. Specifically, following LayerNavigator[3], we rank all layers before fine-tuning using its discriminability and consistency scores. The resulting top-5 layers largely overlap with the best-performing regions in Appendix F.9. This suggests that inexpensive inference-time steerability metrics can first narrow the search space, after which only a few candidate layers need to be evaluated with OASIS, rather than performing an exhaustive layer-wise search.

LayerNavigator's top-5 candidate layers; bold denotes the layer selected by exhaustive search in Appendix F.9.

Harmfulness Hallucination Sycophancy
Qwen2.5-7B-Instruct 9,10,12,14,15 8,9,11,12,13 8,9,10,11,13
Llama-3.1-8B-Instruct 8,9,10,11,12 8,9,10,11,12 8,9,10,11,13
Mistral-7B-Instruct-v0.3 8,10,11,12,14 9,11,12,13,14 8,9,11,12,13

[3] Sun et al. LayerNavigator: Finding Promising Intervention Layers for Efficient Activation Steering in Large Language Models


We will add these results and analyses to the revised manuscript. Thank you again for your insightful suggestions.

Best regards

Authors · CommentOpenReview ↗

A Kindly Reminder

Dear Reviewer,

I hope this message finds you well. I am writing to kindly follow up on the rebuttal response we submitted for our paper.

We deeply appreciate the time and effort you dedicated to reviewing our work. We understand the tight timeline and appreciate your flexibility. If possible, could you kindly let us know if any further clarifications from our side would be helpful? We are eager to ensure all points are addressed thoroughly.

Thank you again for your guidance and support throughout this process.

Best regards,

The Authors

Reviewer PZKc · CommentOpenReview ↗

Thank you for your response. I am happy to increase my score to 4 accordingly.

Authors · CommentOpenReview ↗

Thank you very much for recognizing our work! We sincerely appreciate your time and effort in reviewing our paper and providing constructive feedback to help us improve the draft. We will ensure that the suggested experiments and clarifications are incorporated into the revised manuscript.

Thank you once again for your constructive feedback and well wishes.

Best regards,

The Authors

Reviewer N2skOpenReview ↗
Rating
4/6
Confidence
4/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
2/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper proposes OASIS, a training-time safety preservation method for large language model fine-tuning. The key idea is to dynamically track a misalignment direction in activation space and apply example-wise activation steering to mitigate safety degradation during fine-tuning. The method is evaluated across multiple model backbones and safety failure modes, showing consistent empirical improvements.

While the method is well-motivated and empirically strong, several fundamental limitations remain regarding modeling assumptions, scalability, and generalization.

Strengths and weaknesses

The method is fairly well structured and combines several known ideas such as linear probes, pseudo-labeling, EMA smoothing, and activation steering into a single training-time intervention pipeline. The experimental evaluation is quite extensive, covering multiple model families, safety failure modes, and different fine-tuning settings, which makes the empirical results reasonably convincing.

However, I think there are several important limitations that are not fully addressed.

(1) The method relies on the assumption that misalignment behaviors can be represented as a stable linear direction in activation space. This is a common assumption in activation steering literature, but the paper does not really justify when or why this assumption should hold. In particular, it is unclear how stable this direction is under distribution shift during fine-tuning, where representations are expected to evolve significantly.

(2) The method assumes a single dominant direction per setting. In realistic fine-tuning scenarios, multiple failure modes such as harmfulness, hallucination, and sycophancy often appear together. The paper does not discuss whether these behaviors are actually separable in the representation space, or whether they are being compressed into a single entangled direction. This is important because the whole method depends on the quality of this learned direction.

(3) The relation to prior work is not sufficiently clear. In particular, recent work on safety alignment transfer such as (1) seems closely related, since it studies how safety-related behavior can be preserved across fine-tuning via transferable representations. It would be helpful to clarify how this work differs from or extends that line of research. More broadly, the paper could better position itself with respect to activation steering and representation engineering methods, including inference-time intervention approaches and subspace-based safety suppression methods.

(4) Some design choices seem somewhat manual, such as selecting intervention layers and constructing contrastive anchor sets. These are not really justified in detail and may affect how easy the method is to apply in different settings.

(5) The scalability is still unclear. All experiments are done on 7B–8B models, so it is not obvious whether the same direction-tracking mechanism would still be stable or effective at larger scales, or under more diverse and non-stationary training distributions.

Overall, the idea is interesting and the empirical results are solid, but the assumptions are fairly strong and the connection to existing steering and safety-transfer literature could be made clearer.

Reference:

(1) EnchTable: Unified Safety Alignment Transfer in Fine-tuned Large Language Models

Questions

(1) How sensitive is the method to the assumption that misalignment corresponds to a linear direction in activation space? Are there cases where this assumption breaks down?

(2) What happens when multiple misalignment behaviors co-exist in the same training data? Does the learned direction become unstable or biased toward the dominant signal?

(3) Have you considered extending the method to a multi-direction or subspace formulation instead of a single vector?

Limitations

See in weakness

Final justification

The rebuttal and additional experiments resolved most of my technical concerns, particularly regarding the linear-direction assumption, multi-behavior intervention, and scalability. I therefore raised my score to 4, while retaining concerns about OASIS’s white-box deployment assumption and the model- and behavior-specific overhead of intervention-layer selection.

Formatting concerns

No major issues.

4 comments
Authors · RebuttalOpenReview ↗
Rebuttal

Thank you for the detailed evaluation and constructive feedback. Below, we provide detailed responses to each concern raised.

1. The Linear Direction Assumption

  • To test whether the linear direction assumption remains valid as representations evolve, we extract a checkpoint-specific reference direction at initialization and every 10 training steps and evaluate it on held-out data. On the in-domain test set, it achieves over 0.99 accuracy for all three behaviors at every evaluated checkpoint. We further test OOD generalization[1] using MWE for harmfulness and sycophancy and TruthfulQA for hallucination. We report the mean and standard deviation of OOD accuracy across all evaluated fine-tuning checkpoints. As shown below, OOD accuracy is highest for harmfulness, followed by hallucination and sycophancy. Main failures involve behavior expressions tied to detailed scenarios absent from the extraction set. Thus, vv should be viewed as the dominant direction of the target behavior, while additional context-specific sub-directions may still exist. Importantly, although the extraction and fine-tuning data come from different sources, OASIS still substantially suppresses the target misalignment, suggesting that the tracked direction is not merely fitting dataset-specific artifacts.
Qwen-Harm Qwen-Hallu Qwen-Syco Llama-Harm Llama-Hallu Llama-Syco Mistral-Harm Mistral-Hallu Mistral-Syco
OOD Acc 0.82±0.07 0.77±0.03 0.72±0.01 0.74±0.02 0.72±0.00 0.71±0.01 0.75±0.02 0.74±0.01 0.68±0.01
  • To further verify the causal and semantic validity of the linear directions, we perform a causal intervention check for all checkpoint-specific directions. At each evaluated step, we apply the direction to the checkpoint at that step as an inference-time activation intervention (strength 1) and inspect whether it elicits the target behavior. As shown below, the intermediate vectors continue to causally induce misalignment tendencies, indicating that they remain semantically tied to the target behavior.
Qwen-Harm Qwen-Hallu Qwen-Syco Llama-Harm Llama-Hallu Llama-Syco Mistral-Harm Mistral-Hallu Mistral-Syco
Expression Score 98.37±0.71 92.64±1.50 89.30±2.65 98.31±0.87 94.33±2.69 84.50±4.50 97.97±1.79 94.85±3.94 84.87±2.89
  • These results shows that, for the three behaviors and models studied, there exists a component that remains linearly separable and is causally effective for intervention during fine-tuning. Given this empirical evidence, we retain the linear formulation in current work as a simple and efficient design. Nevertheless, a subspace formulation may be beneficial for more complex behaviors that are highly context-dependent. In such cases, OASIS could be extended by replacing the single direction with a low-rank basis.

[1] Rimsky et al. Steering llama 2 via contrastive activation addition

2. Relation to Prior Works

Existing methods can be categorized according to their intervention stages: during fine-tuning, after fine-tuning, and at inference time. OASIS performs in-training prevention. It propose a dynamic inoculation framework that tracks the evolving misalignment direction during fine-tuning and prevents misalignment-inducing updates from being internalized into the backbone. EnchTable[2] instead performs post-hoc safety restoration. It does not control the fine-tuning process, but extracts a transferable safety update in parameter space and injects it into an fine-tuned model. Inference-time activation steering performs deployment-time intervention, controlling model outputs during generation. Thus, OASIS differs from both lines by intervening at the earliest stage—before misaligned behavior is encoded into model parameters.

To assess whether post-hoc restoration is sufficient, we reproduced EnchTable under Setting 2 on AGNews with 20% misaligned contamination. From the table, OASIS consistently achieves lower misalignment scores and higher task accuracy, suggesting that preventing harmful updates during optimization provides a better safety–utility trade-off than repairing the model afterward.

These three lines of work can be viewed as complementary, targeting different deployment scenarios. In-training prevention (OASIS) applies when the training process can be controlled and aims to prevent misalignment from being internalized. Post-hoc restoration is suitable when the fine-tuning process is inaccessible. Inference-time steering provides runtime control when model parameters cannot be modified. We will add this comparison and dissusion in the revision.

Model Method Harm.↓ Hallu.↓ Syco.↓ Task Acc.↑
Qwen2.5-7B-IT EnchTable 1.59 39.13 32.88 81.06
OASIS 0.32 26.06 29.61 83.23
Llama-3.1-8B-IT EnchTable 1.17 38.21 36.72 80.20
OASIS 0.31 25.03 30.77 84.40
Mistral-7B-IT EnchTable 2.32 37.21 44.52 54.20
OASIS 0.46 29.03 26.80 56.45

[2] EnchTable: Unified Safety Alignment Transfer in Fine-tuned Large Language Models

3. Multiple Behaviors Intervention

To examine the separability of multiple directions, we selected a common intervention layer that performs well for all three behaviors and computed the pairwise cosine similarities between the extracted directions. Across the three models, the pairwise cosine similarities are approximately 0.1, indicating that the three failure modes are captured by largely distinct linear directions with limited entanglement.

Harm.-Hallu. Harm.-Syco. Hallu.-Syco.
Qwen2.5-7B-IT 0.085 0.070 0.103
Llama-3.1-8B-IT 0.102 0.082 0.124
Mistral-7B-IT 0.065 0.075 0.102

We further evaluate a joint fine-tuning setting with 1500 harmful, hallucinatory, and sycophantic examples each. OASIS simultaneously tracks three behavior-specific directions and applies example-adaptive interventions along each direction. As shown in the table, the resulting models remain close to their pre-fine-tuning safety and MMLU performance. This effectiveness likely stems from two factors. First, the three behavior directions have limited linear overlap, reducing interference among simultaneous interventions. Second, OASIS assigns each direction an example-adaptive coefficient based on the sample's projection onto that direction, so intervention is emphasized only when the corresponding behavior is salient. These results indicate that OASIS can effectively handle multiple co-occurring failure modes when their representations are not strongly entangled. For the risks studied here—harmfulness, hallucination, and sycophancy—this multi-direction extension performs effectively. More strongly entangled multi-risk scenarios may require explicit modeling of cross-direction interactions, which we leave for future work.

Harm.↓ Hallu.↓ Syco.↓ MMLU Acc.↑
Qwen2.5-7B-IT 0.69 23.08 30.26 68.60
Llama-3.1-8B-IT 0.34 21.55 32.50 56.80
Mistral-7B-IT 0.72 31.93 33.15 42.40

4. Layer and Anchor Sets Seletion

Regarding layer selection strategy, since OASIS's effectiveness at a given layer depends on the steerability of the target behavior at that layer, we additionally examine whether this property can be estimated efficiently before running OASIS. Specifically, following LayerNavigator[3], we rank all layers before fine-tuning using its discriminability and consistency scores. The resulting top-5 layers largely overlap with the best-performing regions in Appendix F.9. This suggests that inexpensive inference-time steerability metrics can first narrow the search space, after which only a few candidate layers need to be evaluated with OASIS, rather than performing an exhaustive layer-wise search.

Regarding anchor-set construction, as described in Appendix D.4, we follow the established positive/negative activation-extraction pipeline of Chen et al.[4] and use their released extraction questions to construct 1000 contrastive response pairs for each misalignment behavior. Specifically, the pipeline takes a behavior description and some illustrative positive/negative instruction pairs, generates candidate responses, and scores their behavior expression using an evaluation prompt. We retain pairs consisting of a strongly misaligned response and a neutral counterpart. We will further clarify these details in the revised manuscript.

[3] Sun et al. LayerNavigator: Finding Promising Intervention Layers for Efficient Activation Steering in Large Language Models

[4] Chen et al. Persona vectors: Monitoring and controlling character traits in language models

5. Larger Scale Model Experiments

To evaluate the scalability of OASIS to larger models, we conducted experiments on Qwen2.5-32B-Instruct. We first narrowed the candidate intervention layers using the LayerNavigator metric and then performed small-scale validation, identifying layer 32 as the best layer for all three behaviors. We further confirmed that harmfulness, hallucination, and sycophancy remain linearly separable during fine-tuning, achieving ID accuracies of approximately 0.99 and OOD accuracies above 0.7. This suggests that these behaviors can still be captured by linear directions at this model scale.

We conducted the Setting 1 experiment against LoRA, LISA (best-performing defense baseline) and PrevSteer (best-performing inoculation baseline). From the table, vanilla LoRA fine-tuning causes severe degradation across all three safety dimensions. In contrast, OASIS restores the misalignment scores close to their pre-fine-tuning levels while preserving MMLU accuracy, demonstrating that our method remains effective on substantially larger model.

Harm.↓ Hallu.↓ Syco.↓ MMLU Acc.↑
Before FT 0.77 9.11 28.19 70.60
LoRA 97.01 95.36 92.29 70.40
LISA 5.46 76.28 31.78 67.00
PrevSteer 4.76 29.14 35.29 69.20
OASIS 0.23 11.61 30.15 70.40

We will add these results and analyses to the revised manuscript. Thank you again for your insightful suggestions.

Best regards

Authors · CommentOpenReview ↗

A Kindly Reminder

Dear Reviewer,

Thank you again for your valuable comments and suggestions, which have really helped us. We have posted responses to the proposed concerns and included additional discussion and experiments.

We totally understand that this is quite a busy period, so we deeply appreciate it if you could take some time to return further feedback on whether our responses solve your concerns. If there are any other comments, we will try our best to address them.

Best regards,

The Authors

Reviewer N2sk · CommentOpenReview ↗

Apologies for the delayed response, as I have been quite busy with work recently.

Thank you for the detailed rebuttal. The additional experiments address most of my previous concerns, and I am raising my score to 4. I still have two concerns:

My main remaining concern is the practical deployment setting. OASIS requires access to the full fine-tuning process, including training batches, hidden activations, forward-pass intervention, and online direction updates. However, in a common open-source setting, the base model is released and fine-tuned independently by third parties, making the downstream training process effectively a black box to the original model provider. It would be helpful to clarify that OASIS mainly applies to provider-controlled or platform-operated fine-tuning, and to discuss how broadly this assumption holds in practice.

I also remain concerned about the overhead of intervention-layer selection. LayerNavigator can narrow the candidate set, but the final layer still appears to require model- and behavior-specific validation. Please clarify the actual cost of this selection process and whether the selected intervention layer remains stable as the representations evolve during fine-tuning.

Authors · CommentOpenReview ↗

Thank you for your careful review and for taking the time to read our rebuttal. We sincerely appreciate your positive feedback and are glad that the additional experiments and clarifications addressed most of your previous concerns. We provide responses to the remaining concerns below.

  • Practical Deployment. Thank you for highlighting this important deployment concern. OASIS is a training-time, operator-side safeguard that requires white-box access to the fine-tuning loop. Its intended settings include provider- or platform-controlled fine-tuning and open-source adaptation where downstream developers voluntarily integrate OASIS into their own training pipelines. This setting is common in practice because downstream developers and organizations often fine-tune open-source models for task-specific adaptation. Since they have access to the training pipeline, they can use OASIS to mitigate unintended misalignment during fine-tuning. However, OASIS cannot be enforced in decentralized open-source ecosystems, particularly when downstream developers intentionally perform malicious fine-tuning. In such cases, safety evaluations should be conducted on third-party fine-tuned models before deployment to identify potential safety risks. We will clarify this scope and limitation in the revised manuscript.
  • Intervention-layer Selection. Using LayerNavigator, we can reduce the candidate set to around five intervention layers, with each OASIS validation run costing approximately 0.24 A800 GPU-hours. Notably, as shown in Appendix F.9, layers within this candidate range generally yield substantial reductions in the misalignment score. Under a limited compute budget, practitioners may further narrow the search to a smaller set of candidate layers. Regarding the stability of the selected intervention layer, in our supplementary experiment, we re-extract checkpoint-specific reference directions to verify that the selected layer continues to encode an interventionally meaningful misalignment signal as the representations evolve. Across the three behaviors and evaluated models, these directions remain linearly discriminative and causally effective for intervention throughout fine-tuning (please see “The Linear Direction Assumption”).

Thank you again for your thoughtful and constructive feedback. Your suggestions have been very helpful in improving our paper.

We hope that our responses have adequately addressed your concerns, and we would be happy to clarify any remaining points if necessary.

Best regards,

The Authors

Comments on the paper

1 comment
Area Chair QRua · CommentOpenReview ↗

Dear Authors and Reviewers,

Thank you for supporting NeurIPS 2026!

We are now entering the final days of the discussion phase. Please make the most of this time to exchange your views. I encourage each Reviewer, if you have not already done so, to read the other reviews, the initial meta-review, and the Authors' responses. Please respond to the Authors and actively participate in the discussion to help clarify any remaining issues.

Thank you,

NeurIPS 2026 Area Chair

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Missing a submission?

Loading the discussion…