CLEAR:面向效用保持的LLM安全对齐的连续潜在适配器路由
研究论文 · 2026/08/24
提升大型语言模型(LLM)的安全性通常以牺牲实用性为代价,因为全局应用的安全调整可能会影响模型对有害和良性输入的响应。我们提出了连续潜在适配器路由(CLEAR),这是一种条件安全适应框架,使用轻量级隐藏状态门控来持续控制安全低秩适配器的激活强度。CLEAR旨在减少有害完成,同时避免对冻结主干进行不必要的更改,从而避免在良性提示上性能下降。在广泛使用的安全和实用性基准上的实验表明,CLEAR在HarmBench上提高了鲁棒性,同时减少了全局应用安全调整(如SFT或标准低秩适应(LoRA))所观察到的实用性下降。在Llama-3-8B-Instruct上,CLEAR将HarmBench ASR从32.3%降至0.5%,同时保留了基础模型的大部分实用性,并在GSM8K准确率上比全局应用的SFT或LoRA高出最多7.1个百分点。这些结果表明,CLEAR是改善LLM对齐中安全-实用性权衡的一种有前景的机制。
该文提出了一种新颖的条件安全调整方法,有效缓解了安全对齐中常见的实用性下降问题,实验数据充分,结果显著,对LLM安全领域具有重要参考价值。
Improving the safety of large language models (LLMs) often comes at the expense of utility, as globally applied safety tuning may affect model responses to both harmful and benign inputs. We propose Continuous LatEnt Adapter Routing (CLEAR), a conditional safety adaptation framework that uses a lightweight hidden-state gate to continuously control the activation strength of a safety low-rank adapter. CLEAR aims to reduce harmful completions while avoiding unnecessary changes to the frozen backbone that could degrade performance on benign prompts. Experiments on widely used safety and utility benchmarks show that CLEAR improves robustness on HarmBench while reducing the utility degradation observed with globally applied safety tuning such as SFT or standard low-rank adaptation (LoRA). On Llama-3-8B-Instruct, CLEAR reduces HarmBench ASR from 32.3\% to 0.5\%, while retaining most of the base model's utility and achieving up to 7.1 percentage points higher GSM8K accuracy than globally applied SFT or LoRA. These results suggest that CLEAR is a promising mechanism for improving the safety--utility trade-off in LLM alignment.