On-Policy Distillation for LLM Safety: A Routing Approach to Template-Robust Realignment· 用于 LLM 安全性的政策蒸馏方法
Fine-tuning is the dominant paradigm for specializing large language models (LLMs), yet it exposes a critical vulnerability: malicious data providers can embed harmful behaviors into downstream corpora, creating models that retain professional skills while violating human values on demand. Existing safety-realignment defenses often fail in practice due to three key limitations: they frequently cause catastrophic forgetting of specialized skills; their effectiveness collapses when the defender cannot observe the attacker's prompt template; and successfully realigned models remain susceptible to re-jailbreaking via simple system prompt switches. To address these challenges, we propose Routing-based On-Policy Distillation (ROPD), a novel realignment framework that models the divergence betwee
提出 ROPD 方法,增强 LLM 安全性,防止恶意数据影响模型的人类价值观。
- 核心方法
- 采用基于路由的政策蒸馏方法 (ROPD),在保持模型专业技能的同时,实现对其人类价值观的有效重对齐。
- 适合谁读
- 研究者、工程师
- 要解决的问题
- 解决细调 LLM 时,由恶意数据导致的模型行为有害问题及其现有防御手段的局限。
- 关键实验
- 通过多个基准测试和对抗性案例验证了 ROPD 能有效防御恶意数据,同时保持专业技能不被遗忘,具体实验数据和案例详见论文。
- 主要贡献
- 1) 提出了 ROPD 框架,减少重对齐过程中对已学技能的灾难性遗忘;2) 不依赖于观察攻击者的提示模板,提升模型防御的灵活性;3) 加强了模型对系统提示切换的抵抗力。
- 意义与局限
- 此方法提高了 LLM 的安全性,减少了恶意数据对模型的影响,但可能在极端情况下遇到性能瓶颈。