natural language processing

Decoupled Alignment for Robust Plug-and-Play Adaptation

arXiv:2406.01514

summary

The paper proposes a training-free, plug-and-play method that uses knowledge distillation and model fusion to correct misaligned (shadow-aligned) large language models, improving safety without fine-tuning.

Abstract

We introduce a training-free safety enhancement method for aligning large language models (LLMs) without the need for supervised fine-tuning or reinforcement learning from human feedback. Our main idea is to provide a robust plug-and-play approach to prevent shadow alignment when models are adapted to downstream tasks. Specifically, we leverage knowledge distillation to extract alignment signals from well-aligned LLMs and inject them into shadow-aligned models via model fusion, enabling plug-and-play alignment correction. In our methodology, we employ delta debugging to identify the critical components of knowledge necessary for effective distillation. On the harmful question dataset, our method significantly enhances the average defense success rate by approximately 14.42%, reaching as high as 51.39% across 17 influenced LLMs, without compromising performance. Our code is available at https://github.com/NWULIST/DAPA.

Revised to correct the Acknowledgments section. Previous versions inadvertently included acknowledgments of NSF and NIH awards that did not support this work. Those funding acknowledgments have been removed. The technical content, results, and conclusions are unchanged

Topics & keywords

#large language models#model alignment#plug-and-play adaptation#knowledge distillation#safetyknowledge distillationmodel fusionshadow alignmentdelta debuggingdefense success rate