# UpSafe$^\\circ$C: Upcycling for Controllable Safety in Large Language Models

DevFeed: [UpSafe$^\\circ$C: Upcycling for Controllable Safety in Large Language Models](<https://devfeed.tech/articles/upsafe-circ-c-upcycling-for-controllable-safety-in-large-language-models-118180.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2510.02194>)

Author: Yuhao Sun, Zhuoer Xu, Shiwen Cui, Kun Yang, Lingyun Yu, Yongdong Zhang, Hongtao Xie

Published: 2026-11-05T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>), [arXiv: Cryptography and Security](<https://devfeed.tech/sources/arxiv-cryptography-and-security.md>)

Topics: [LLM security](<https://devfeed.tech/topics/llm-security.md>), [Mixture of Experts (MoE)](<https://devfeed.tech/topics/mixture-of-experts-moe.md>), [post-training](<https://devfeed.tech/topics/post-training.md>), [LLM Techniques](<https://devfeed.tech/topics/llm-techniques.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>), [LLM evaluation / benchmarking](<https://devfeed.tech/topics/llm-evaluation-benchmarking.md>)

Tags: [benchmarks](<https://devfeed.tech/tags/benchmarks.md>), [capabilities](<https://devfeed.tech/tags/capabilities.md>), [control](<https://devfeed.tech/tags/control.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [cs-cr](<https://devfeed.tech/tags/cs-cr.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [guardrail](<https://devfeed.tech/tags/guardrail.md>), [guardrails](<https://devfeed.tech/tags/guardrails.md>), [inference](<https://devfeed.tech/tags/inference.md>), [jailbreak](<https://devfeed.tech/tags/jailbreak.md>), [language-models](<https://devfeed.tech/tags/language-models.md>), [large-language-models](<https://devfeed.tech/tags/large-language-models.md>), [llm-safety](<https://devfeed.tech/tags/llm-safety.md>), [mixture-of-experts](<https://devfeed.tech/tags/mixture-of-experts.md>), [mixture-of-experts-moe](<https://devfeed.tech/tags/mixture-of-experts-moe.md>), [modular](<https://devfeed.tech/tags/modular.md>), [post-training](<https://devfeed.tech/tags/post-training.md>), [robust](<https://devfeed.tech/tags/robust.md>), [router](<https://devfeed.tech/tags/router.md>), [safety](<https://devfeed.tech/tags/safety.md>), [sft](<https://devfeed.tech/tags/sft.md>), [temperature](<https://devfeed.tech/tags/temperature.md>), [upcycling](<https://devfeed.tech/tags/upcycling.md>)

## AI overview

UpSafe°C adds controllable safety to LLMs by converting identified safety-critical layers into a sparse Mixture-of-Experts structure. Its router selectively activates the model's original MLPs and added safety experts, while two-stage supervised fine-tuning aims to strengthen safety discrimination without losing general capability. A safety temperature setting adjusts the safety-utility trade-off at inference time. The abstract reports improved resistance to harmful and jailbreak inputs across multiple benchmarks, base models, and scales, with competitive general-task performance; it does not provide detailed benchmark results in the supplied excerpt.

## Source excerpt

arXiv:2510.02194v2 Announce Type: replace Abstract: Large Language Models (LLMs) have achieved remarkable progress across a wide range of tasks, but remain vulnerable to safety risks such as harmful content generation and jailbreak attacks. Existing safety techniques---including external guardrails, inference-time guidance, and post-training alignment---each face limitations in balancing safety, utility, and controllability. In this work, we propose UpSafe$^\circ$C, a unified framework for enhancing LLM safety through safety-aware upcycling. Our approach first identifies safety-critical layers and upcycles them into a sparse Mixture-of-Experts (MoE) structure, where the router acts as a soft guardrail that selectively activates original MLPs and added safety experts. We further introduce a two-stage SFT strategy to strengthen safety discrimination while preserving general capabilities. To enable flexible control at inference time, we introduce a safety temperature mechanism, allowing dynamic adjustment of the trade-off between safety and utility. Experiments across multiple benchmarks, base model, and model scales demonstrate that UpSafe$^\circ$C achieves robust safety improvements against harmful and jailbreak inputs, while maintaining competitive performance on general tasks. Moreover, analysis shows that safety temperature provides fine-grained inference-time control that achieves controllable trade-off between utility and safety. Our results highlight a new direction for LLM safety: moving from static alignment toward dynamic, modular, and inference-aware control. Code: https://github.com/HansSunY/UpSafe.