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

SOPHON:一种非微调学习范式,用于限制预训练模型的任务可迁移性

SOPHON: Non-Fine-Tunable Learning to Restrain Task Transferability For Pre-trained Models

Zhejiang University(浙江大学);Ant Group(蚂蚁集团)

Jiangyi Deng, Shengyuan Pang, Yanjiao Chen, Liangming Xia, Yijie Bai, Haiqin Weng, Wenyuan Xu

AI总结:

提出非微调学习范式及SOPHON框架,通过模拟与评估微调并设计难逃局部最优,防止预训练模型被微调用于不当任务,同时保持原任务性能,实验验证其有效性与鲁棒性。

摘要:

开发者越来越倾向于不从头构建深度学习模型,而是将预训练模型适配到其定制任务中。然而,强大的预训练模型可能被滥用于不道德或非法的任务,例如隐私推断和不安全内容生成。在本文中,我们引入了一种开创性的学习范式——非微调学习,该范式在保持预训练模型在原始任务上性能的同时,防止其被微调用于不当任务。为实现这一目标,我们提出了SOPHON,一个保护框架,它强化给定的预训练模型,使其在预定义的限制域中抵抗被微调。然而,由于对手可能采用多种复杂的微调策略,这具有挑战性。受模型无关元学习的启发,我们通过设计精细的微调模拟和微调评估算法来克服这一困难。此外,我们精心设计了优化过程,使预训练模型在限制域方面陷入难以逃脱的局部最优。我们在两种深度学习模式(分类和生成)、七个限制域和六种模型架构上进行了大量实验,以验证SOPHON的有效性。实验结果证实,对SOPHON保护的模型进行微调会产生与从头训练相当甚至更大的开销。此外,我们确认了SOPHON对三种微调方法、五种优化器、各种学习率和批大小的鲁棒性。SOPHON可能有助于推动对安全负责任人工智能的进一步研究。

英文摘要:

Instead of building deep learning models from scratch, developers are more and more relying on adapting pre-trained models to their customized tasks. However, powerful pre-trained models may be misused for unethical or illegal tasks, e.g., privacy inference and unsafe content generation. In this paper, we introduce a pioneering learning paradigm, non-fine-tunable learning, which prevents the pre-trained model from being fine-tuned to indecent tasks while preserving its performance on the original task. To fulfill this goal, we propose SOPHON, a protection framework that reinforces a given pre-trained model to be resistant to being fine-tuned in pre-defined restricted domains. Nonetheless, this is challenging due to a diversity of complicated fine-tuning strategies that may be adopted by adversaries. Inspired by model-agnostic meta-learning, we overcome this difficulty by designing sophisticated fine-tuning simulation and fine-tuning evaluation algorithms. In addition, we carefully design the optimization process to entrap the pre-trained model within a hard-to-escape local optimum regarding restricted domains. We have conducted extensive experiments on two deep learning modes (classification and generation), seven restricted domains, and six model architectures to verify the effectiveness of SOPHON. Experiment results verify that fine-tuning SOPHON-protected models incurs an overhead comparable to or even greater than training from scratch. Furthermore, we confirm the robustness of SOPHON to three fine-tuning methods, five optimizers, various learning rates and batch sizes. SOPHON may help boost further investigations into safe and responsible AI.

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

↑