# UpSafe℃: Upcycling for Controllable Safety in Large Language Models

*Yuhao Sun, Lingyun Yu, Zhuoer Xu, Kun Yang, shiwen cui, Yongdong Zhang, Hongtao Xie*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/151223) · [Open on the map](../papers.html#p151223)

Category: [AI Safety, Security & Alignment](../pcat/16.md) › [LLM Safety Alignment](../pgroup/208.md) · Type: new method · Keywords: LLM safety, upcycling, Mixture-of-Experts, safety temperature, inference-time control, dynamic alignment

Areas: [Safety & Security](../areas/safety.md) › Safe Alignment › Safety Alignment Methods

## Summary
UpSafe℃ introduces a safety-aware upcycling framework that converts safety-critical layers into a sparse mixture-of-experts with dedicated safety experts and a safety temperature mechanism for controllable trade-offs between safety and utility.

## Explained to a 5-year-old
Big computer programs called language models sometimes say things they shouldn't. The researchers made a new way to help them be safer. They split some parts of the program into special helpers that check if the answer is safe. They also added a knob to make the program more or less careful when answering. This helps keep the program safe while still being useful.

## Explained to a 5-year-old, longer
Language models are computer programs that can write sentences and answer questions. Sometimes they write things that are dangerous or not nice. To stop this, other people have tried putting rules in front of the program or giving it hints while it works. But those ideas are not perfect; they can make the program less useful or hard to change. The researchers in this paper thought of a new idea to make the models safer. They looked at the parts of the model that are most likely to cause problems and made them special. They turned those parts into a system where a small guide decides which part to use, like choosing between a normal helper and a safety helper. They also trained the model twice, first to understand safe and unsafe answers, then to keep its normal abilities. They added a simple control, like a knob, that lets the program be more careful or more open during use. This way, the model can avoid bad answers while still being helpful. The new method lets people adjust safety on the fly without having to retrain the whole model. It gives a flexible way to keep language models safe in real-world situations.

## For a technical reader
The paper introduces a modular safety framework that upgrades critical layers of an LLM into a sparse expert system, allowing a router to activate either original MLPs or dedicated safety experts. A two-stage supervised fine-tuning refines safety discrimination while preserving general capabilities. A safety temperature parameter provides runtime control over the safety-utility trade-off, enabling dynamic adjustment without full model retraining.

## Problem
Large language models can generate harmful content and be vulnerable to jailbreak attacks, and existing safety methods struggle to balance safety, utility, and controllability.

## Method
The approach identifies safety-critical layers, upcycles them into a sparse mixture-of-experts where a router selects between original MLPs and added safety experts, and employs a two-stage supervised fine-tuning to improve safety discrimination. A safety temperature mechanism is introduced to dynamically adjust the safety-utility trade-off during inference.

## Results
The approach yields robust safety improvements against harmful and jailbreak inputs while preserving competitive performance on general tasks.

## Contributions
It presents a unified safety-aware upcycling framework that modularly integrates safety experts, a two-stage SFT strategy, and a safety temperature for fine-grained inference-time control, moving beyond static alignment toward dynamic safety management.

## Research questions this paper is counted under

- [How can we reliably prevent large language models from generating harmful content across diverse contexts and modalities?](../q/24.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/151223)
