# 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 page](https://neurips.cc/virtual/2026/poster/155429) · [OpenReview](https://openreview.net/forum?id=5idvmMr6r1) · [Open on the map](../papers.html#p155429)

Category: [AI Safety, Security & Alignment](../pcat/16.md) › [Alignment Collapse and Mitigation in Fine-Tuning](../pgroup/311.md) · Type: new method · Keywords: LLM fine-tuning safety, activation steering, online adaptive recalibration, misalignment detection, safety preservation

Areas: [Safety & Security](../areas/safety.md) › Safe Alignment › Fine-Tuning Safety Alignment; [Continual Learning & Adaptation](../areas/continual-adaptation.md) › Catastrophic Forgetting and Unlearning › Catastrophic Forgetting

## Summary
OASIS introduces online adaptive steering to continuously recalibrate safety alignment during LLM fine-tuning, preserving safety without harming downstream performance.

## Explained to a 5-year-old
When we teach a big computer brain new things, it can sometimes forget the rules that keep it safe. We created a system that watches the brain while it learns and gently pushes it back toward safety. It looks at how the brain changes and updates a safety guide on the fly. This helps the brain stay safe without making it slower at its tasks. The system works well even when the new lessons are bad or mixed.

## Explained to a 5-year-old, longer
When we teach a big computer brain new things, it can sometimes forget the rules that keep it safe. This is like teaching a dog new tricks and the dog forgetting not to chew your shoes. To help, we built a system that watches the brain while it learns. It looks at how the brain changes and notices when safety is getting weak. Then it gently nudges the brain back toward the right behavior. The system works like a safety guard that adjusts its advice as the brain learns. It does this continuously, so it never stops protecting the brain. The system can handle different kinds of new lessons, even when they are all bad. It also works when the lessons are a mix of good and bad. And it still lets the brain do its normal tasks well. This way, we can make the brain smarter without losing its safety. The system makes sure the brain stays safe while learning new things.

## For a technical reader
OASIS provides a dynamic safety-preserving mechanism that continuously adjusts activation steering during LLM fine-tuning. It monitors a misalignment direction in the model’s activation space and applies example-specific steering to counteract safety-degrading updates. By recalibrating the steering direction online, the approach maintains safety alignment without sacrificing downstream task performance. The method was evaluated across three safety misalignment scenarios and three data regimes, showing consistent robustness. This enables practitioners to fine-tune large language models safely on modest hardware without manual safety regularizers.

## Problem
Fine-tuning large language models can unintentionally degrade safety alignment, and existing methods either add conflicting regularizers or use static mechanisms that cannot adapt to dynamic fine-tuning.

## Method
The approach tracks a misalignment direction in activation space and applies example-adaptive activation steering to absorb updates that would erode safety during training, continuously recalibrating the steering direction online.

## Results
The approach improves safety robustness across various misalignment behaviors and data regimes while maintaining downstream task performance.

## Contributions
It reframes safety preservation as a training-time intervention, proposes a dynamic online recalibration mechanism that adapts to fine-tuning dynamics, and demonstrates consistent safety gains across multiple scenarios.

## Research questions this paper is counted under

- [Why does fine-tuning language models on narrow or benign data cause safety alignment to degrade or shift unexpectedly?](../q/40.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/155429)
