Skip to content

Learning and forgetting of unsafe examples in large language modelsLearning and Forgetting Unsafe Examples in Large Language Models

arXiv· arXiv:2312.12736· Jiachen Zhao, Zhun Deng, David Madras, James Zou, Mengye Ren·Indexed by this site · 25 days ago· Originally publishedDefenses
AI summary

Researchers found that aligned large language models can easily learn unsafe content from third-party custom fine-tuning data containing bias, toxicity and harmful content, but when subsequently fine-tuned with safer data, forgetting of this content is also more pronounced than for other examples. Based on this forgetting difference, the paper proposed the ForgetFilter algorithm, which filters unsafe data according to the strength of the model's forgetting signal for the data. Experiments showed that the algorithm can ensure safety in custom fine-tuning without harming downstream task performance, unlike sequential safety fine-tuning; it outperforms strategies such as replay and moral self-correction in suppressing the model's learning of unsafe content, with a toxicity score 75% lower than taking no safety measures and 62% lower than using self-correction.

Read originalarxiv.org