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

像软件一样修补大语言模型:一种轻量级方法用于改进大语言模型的安全策略

Patching LLM Like Software: A Lightweight Method for Improving Safety Policy in Large Language Models

Rensselaer Polytechnic Institute(拉特格斯理工学院);IBM Research(IBM研究院)

Huzaifa Arif, Keerthiram Murugesan, Ching-Yun Ko, Pin-Yu Chen, Payel Das, Alex Gittens

AI总结:

本文提出了一种轻量级方法,通过在现有模型前添加可学习的前缀来快速修复大语言模型的安全漏洞,该方法在毒性缓解、偏见减少和有害性拒绝等关键领域实现了与新一代安全对齐模型相当的安全提升。

摘要:

我们提出了一种针对大语言模型(LLMs)的修补方法,类似于软件版本的修补,是一种轻量级且模块化的解决方案,用于解决安全漏洞。尽管供应商发布改进的LLM版本,但主要版本更新成本高、频率低且难以定制,导致已发布模型存在已知的安全缺口。与全模型微调或主要版本更新不同,我们的方法通过在现有模型前添加一个紧凑且可学习的前缀来实现快速修复。该“修补”仅增加0.003%的参数,却能可靠地将模型行为引导至更安全的参考模型。在三个关键领域(毒性缓解、偏见减少和有害性拒绝)中,策略性修补实现了与新一代安全对齐模型相当的安全改进,同时保持流畅性。我们的结果表明,LLM可以像软件一样进行修补,为供应商和从业者提供了一种实用机制,用于在主要模型发布之间分发可扩展、高效且可组合的安全更新。

英文摘要:

We propose patching for large language models (LLMs) like software versions, a lightweight and modular approach for addressing safety vulnerabilities. While vendors release improved LLM versions, major releases are costly, infrequent, and difficult to tailor to customer needs, leaving released models with known safety gaps. Unlike full-model fine-tuning or major version updates, our method enables rapid remediation by prepending a compact, learnable prefix to an existing model. This "patch" introduces only 0.003% additional parameters, yet reliably steers model behavior toward that of a safer reference model. Across three critical domains (toxicity mitigation, bias reduction, and harmfulness refusal) policy patches achieve safety improvements comparable to next-generation safety-aligned models while preserving fluency. Our results demonstrate that LLMs can be "patched" much like software, offering vendors and practitioners a practical mechanism for distributing scalable, efficient, and composable safety updates between major model releases.

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

↑