The safety alignment of large language models (LLMs) is becoming increasingly important with their democratization. In this paper, we study the safety degradation that comes with adapting LLMs to new tasks. We attribute this safety compromise to catastrophic forgetting and frame the problem of preserving safety when fine-tuning as a continual learning (CL) problem. We consider the fine-tuning-as-a-service setup where the user uploads their data to a service provider to get a customized model that excels on the user's selected task. We adapt several CL approaches from the literature and systematically evaluate their ability to mitigate safety degradation. These include regularization-based, memory-based, and model merging approaches. We consider two scenarios, (1) benign user data and (2) poisoned user data. Our results demonstrate that CL approaches consistently achieve lower attack success rates than standard fine-tuning. Among these, DER outperforms both other CL methods and existing safety-preserving baselines while maintaining task utility. These findings generalize across three downstream tasks (GSM8K, SST2, Code) and three model families (LLaMA2-7B, Mistral-7B, Gemma-2B), establishing CL as a practical solution to preserve safety.
Multi-Level Safety Continual Projection for Fine-Tuned Large Language Models without Retraining
Beijing Key Laboratory of Safe AI and Superalignment(北京安全人工智能与超对齐重点实验室);Beijing Institute of AI Safety and Governance(北京人工智能安全与治理研究院);Brain-inspired Cognitive AI Lab, Institute of Automation, Chinese Academy of Sciences(脑启发认知人工智能实验室,中国科学院自动化研究所);University of Chinese Academy of Sciences(中国科学院大学);Long-term AI(长期人工智能)
SafeCoEvo: Co-Evolving Safety Harnesses and Guards for LLM Agents at Test-Time
East China Normal University(华东师范大学);Shanghai Innovation Institute(上海创新研究院);Xiamen University(厦门大学);Harbin Institute of Technology(哈尔滨工业大学);University College London(伦敦大学学院);Huawei Noah’s Ark Lab, UK(华为诺亚方舟实验室(英国));MemoraX AI
Safety Alignment as Continual Learning: Mitigating the Alignment Tax via Orthogonal Gradient Projection
School of Life Sciences, IDG/McGovern Institute for Brain Research(生命科学学院,IDG/麦戈文脑科学研究所);Dept. of Comp. Sci. and Tech., Institute for AI, Tsinghua-Bosch Joint ML Center, THBI Lab, BNRist Center(计算机科学与技术系,人工智能研究所,清华大学-博世联合机器学习中心,THBI实验室,BNRist中心);Tsinghua University, Beijing, China(清华大学,北京,中国)
NEXUS: Learning Safety Constraints and Action Models for Safe and Robust Embodied Planning
School of Artificial Intelligence and Automation(人工智能与自动化学院);Huazhong University of Science and Technology(华中科技大学);School of Software(软件学院);Henan University(河南大学);Institute of Information Engineering(信息工程研究所);Chinese Academy of Sciences(中国科学院);School of Cyberspace Security(网络空间安全学院);University of the Chinese Academy of Sciences(中国科学院大学);Peking University(北京大学)
Aurora-M: Open Source Continual Pre-training for Multilingual Language and Code
Babelscape(巴别景观公司);LAION(LAION组织);TU Darmstadt(达姆施塔特工业大学);UNC Chapel-Hill(北卡罗来纳大学教堂山分校);Detomo Inc.(Detomo公司);CSIRO’s Data61(联邦科学与工业研究组织Data61);Monash University(莫纳什大学);Mila - Quebec AI Institute(米拉-魁北克人工智能研究所);Carnegie Mellon University(卡内基梅隆大学);Allen Institute for AI(艾伦人工智能研究所);DeepTensor AB(DeepTensor AB公司);WASP Media & Language(WASP媒体与语言机构);Umeå University(于默奥大学);University of Massachusetts Amherst(马萨诸塞大学阿默斯特分校);TU Wien(维也纳技术大学);Institute of Science Tokyo(东京科学大学);Hudson Labs(哈德逊实验室);Luleå University of Technology(吕勒奥理工大学);ETH Zurich(苏黎世联邦理工学院);RunPod(RunPod公司);OpenChat(OpenChat机构);RIKEN CCS(理化学研究所计算科学中心);Chattermill AI(Chattermill人工智能公司);ASC27(ASC27机构);University of Massachuset(马萨诸塞大学)
Continual Learning with Elastic Regularization and Synthetic Replay for Federated MLLM Fine-Tuning
The University of British Columbia(英属哥伦比亚大学);Fudan University(复旦大学);Royal College of Science, Imperial College London(伦敦帝国理工学院皇家科学学院);Dyson School of Design Engineering(戴森设计工程学院);Suzhou Institute of Biomedical Engineering and Technology (SIBET), Chinese Academy of Sciences(中国科学院苏州生物医学工程技术研究所);East China Normal University(华东师范大学)
Zhejiang University(浙江大学);Huazhong University of Science and Technology(华中科技大学);Xi’an Jiaotong University(西安交通大学);National University of Defense Technology(国防科技大学);Shanghai Jiao Tong University(上海交通大学);Georgia Institute of Technology(佐治亚理工学院);University of Science and Technology of China(中国科学技术大学);Nanyang Technological University(南洋理工大学);OPPO Research Institute(OPPO研究院);Tianjin University(天津大学);Chongqing University(重庆大学);Alibaba Group(阿里巴巴集团);Rakuten Group(乐天集团)
Boosting LLM Translation Skills without General Ability Loss via Rationale Distillation
School of Artificial Intelligence, University of Chinese Academy of Sciences(中国科学院大学人工智能学院);Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所);Department of Computer Science, University of Illinois at Chicago(芝加哥大学计算机科学系)
LightEMMA: A Longitudinal Evaluation of Vision-Language Models for Autonomous Driving
Department of Civil and Environmental Engineering, University of Michigan(土木与环境工程系,密歇根大学);University of Michigan Transportation Research Institute(密歇根大学交通研究所)
CODESYNC: Synchronizing Large Language Models with Dynamic Code Evolution at Scale
National Engineering Research Center for Big Data Technology and Systems(大数据技术与系统国家工程研究中心);Services Computing Technology and System Lab(服务计算技术与系统实验室);Cluster and Grid Computing Lab(集群与网格计算实验室);School of Computer Science and Technology(计算机科学与技术学院);Huazhong University of Science and Technology(华中科技大学);Wuhuan University(吴奂大学);Zhejiang University(浙江大学)