arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2509.06807cs.CL
收藏

MoGU V2:迈向模型可用性与安全性之间更高的帕累托前沿

MoGU V2: Toward a Higher Pareto Frontier Between Model Usability and Security

SCIR Lab, Harbin Institute of Technology, China(哈尔滨工业大学SCIR实验室);City University of Hong Kong(香港城市大学)

Yanrui Du, Fenglei Fan, Sendong Zhao, Jiawei Cao, Ting Liu, Bing Qin

AI总结:

提出MoGU_v2框架,通过层内路由器动态分配权重并紧密耦合隐藏状态,在提升大模型安全性的同时保持可用性,推动帕累托前沿,并能在指令微调后快速恢复安全。

摘要:

随着大型语言模型(LLMs)日益渗透到人类生活中,其安全性已成为一个关键问题,尤其是它们对恶意指令保持无害响应的能力。尽管大量方法提升了LLMs的安全性,但它们往往导致保守的、倾向于拒绝的响应,从而损害了实际可用性。这提出了一个关键挑战:如何推进LLMs可用性与安全性之间的帕累托前沿,而非在两者之间进行权衡。为解决这一问题,我们提出了MoGU框架,其中层内路由器通过感知隐藏状态动态分配权重,从而平衡安全性优化变体和可用性优化变体的贡献。尽管具有初步潜力,MoGU框架仍面临参数冗余和性能瓶颈等限制。为克服这些限制,我们进一步提出了改进的MoGU_v2框架,该框架在路由器与隐藏状态之间建立了更紧密的耦合。在MoGU_v2中,路由器仅嵌入在编码高度可分类安全特征的层中,并且在路由器优化期间激活主干模块以实现双向适应。MoGU_V2在各种系列的LLMs中表现出强大的适应性和稳定的改进,包括作为各种应用中大脑的主流LLMs、针对资源受限场景优化的设备端LLMs,以及针对用户可解释性定制的推理LLMs。同时,即使面对指令微调引入的风险,MoGU_v2也可以通过简单的数据混合策略轻松恢复安全性,而不会损害任务性能增益。这些全面的改进凸显了MoGU_V2作为缓解现实应用中安全风险的稳健且多功能的解决方案。

英文摘要:

As Large Language Models (LLMs) increasingly permeate human life, their security has emerged as a critical concern, particularly their ability to maintain harmless responses to malicious instructions. Although extensive methods have improved LLMs' security, they often lead to conservative, rejection-oriented responses that compromise practical usability. This presents a key challenge: how to advance the Pareto frontier between LLMs' usability and security, rather than necessitate a trade-off between them. To address this, we propose the MoGU framework, in which the intra-layer router dynamically allocates weights by sensing hidden states, thereby balancing the contributions of security-optimized and usability-optimized variants. Despite its initial potential, the MoGU framework faces limitations such as parameter redundancy and performance bottlenecks. To overcome these, we further propose an improved MoGU_v2 framework that establishes a tighter coupling between the routers and hidden states. In MoGU_v2, routers are embedded only in layers encoding highly classifiable security features, and backbone modules are activated during router optimization to enable bidirectional adaptation. MoGU_V2 exhibits strong adaptability and stable improvements across various series of LLMs, including mainstream LLMs serving as brains in various applications, on-device LLMs optimized for resource-constrained scenarios, and reasoning LLMs tailored for user interpretability. Meanwhile, even facing risks introduced by Instruction Fine-tuning, MoGU_v2 can easily restore security without compromising the task performance gains via a simple data-mix strategy. These comprehensive improvements highlight MoGU_V2 as a robust and versatile solution for mitigating security risks in real-world applications.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑