提出HPA框架,让安全对齐的多模态模型持续学习时兼顾任务表现与安全
Harmonious Parameter Adaptation in Continual Visual Instruction Tuning for Safety-Aligned MLLMs
- 按安全与任务聚焦度划分参数,动态选择保留
- 平衡参数选择并加正交约束,减少遗忘和安全退化
- 适合需要长期安全迭代的多模态大模型应用
尽管持续视觉指令微调(CVIT)在适配多模态大语言模型(MLLMs)方面展现出潜力,但现有研究大多忽略安全对齐机制。而真实场景中的MLLMs必须具备此类能力以降低风险。本文聚焦于安全对齐的MLLMs的持续视觉指令微调,发现模型在持续适应中不仅出现任务遗忘,还伴随安全性能下降。为此,我们提出和谐参数适配(HPA)框架,包含基于聚焦的参数分区、和谐平衡的参数选择和正交参数调整三部分。具体地,HPA根据参数对安全或任务表现的聚焦程度进行划分,从平衡视角选择保留参数,并通过正交性约束减轻灾难性遗忘。在CVIT基准和安全评估数据集上的实验表明,相比现有基线,HPA能更好地维持高安全性和低遗忘率。代码已公开于https://github.com/Minato-Zackie/HPA。
原文摘要 · Abstract (English)
While continual visual instruction tuning (CVIT) has shown promise in adapting multimodal large language models (MLLMs), existing studies predominantly focus on models without safety alignment. This critical oversight ignores the fact that real-world MLLMs inherently require such mechanisms to mitigate potential risks. In this work, we shift our focus to CVIT for safety-aligned MLLMs and observe that during continual adaptation, the model not only suffers from task forgetting but also exhibits degradation in its safety. Achieving a harmonious balance between safety and task performance remains a crucial challenge. To address this, we propose Harmonious Parameter Adaptation (HPA), a post-training framework composed of focusing-based parameter partition, harmoniously balanced parameter selection, and orthogonal parameter adjustment. Specifically, HPA partitions parameters into two types based on their focus on safety or task performance, and selects the focused ones to preserve from a balanced perspective. In addition, HPA imposes orthogonality constraints on parameter updates to further alleviate catastrophic forgetting. Extensive experiments on the CVIT benchmark and safety evaluation datasets demonstrate that HPA better maintains high safety and mitigates forgetting than existing baselines. Code is available at https://github.com/Minato-Zackie/HPA.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。