2024

Vaccine: Perturbation-aware Alignment for Large Language Models against Harmful Fine-tuning Attack

Huang, Tiansheng, Hu, Sihao, Liu, Ling

Understand

The new paradigm of finetuning-as-a-service introduces a new attack surface for Large Language Models (LLMs): a few harmful data uploaded by users can easily trick the finetuning to produce an alignment-broken model.

  • We conduct an empirical analysis and uncover a \textit{harmful embedding drift} phenomenon, showing a probable cause of the alignment-broken effect.
  • Inspired by our findings, we propose Vaccine, a perturbation-aware alignment technique to mitigate the security risk of users finetuning.
  • The core idea of Vaccine is to produce invariant hidden embeddings by progressively adding crafted perturbation to them in the alignment phase.

Reading the bibliography…