Removing RLHF Protections in GPT-4 via Fine-Tuning

LLM SFT RLHF AI Safety / AI Ethics PIAAP MBDSF
2023年11月09日
随着大型语言模型(LLMs)的能力增强,它们的潜在双重用途也随之增加。为了减少有害输出,LLMs的生产商和供应商采用了人类反馈的强化学习(RLHF)。同时,LLM供应商越来越多地启用了他们最强大模型的微调。然而,同时进行的工作表明,微调可能会去除RLHF保护。我们可以预期目前最强大的模型(GPT-4)更不容易受到微调攻击。 在这项工作中,我们展示了相反的结果:微调使攻击者可以通过仅使用340个示例和95%的成功率来去除RLHF保护。这些训练示例可以使用较弱的模型自动生成。我们进一步展示,去除RLHF保护不会降低非审查输出的有用性,这为我们的微调策略不会降低有用性提供了证据,尽管使用较弱的模型生成训练数据。我们的结果表明需要进一步研究LLMs的保护措施。
As large language models (LLMs) have increased in their capabilities, so does their potential for dual use. To reduce harmful outputs, produces and vendors of LLMs have used reinforcement learning with human feedback (RLHF). In tandem, LLM vendors have been increasingly enabling fine-tuning of their most powerful models. However, concurrent work has shown that fine-tuning can remove RLHF protections. We may expect that the most powerful models currently available (GPT-4) are less susceptible to fine-tuning attacks. In this work, we show the contrary: fine-tuning allows attackers to remove RLHF protections with as few as 340 examples and a 95% success rate. These training examples can be automatically generated with weaker models. We further show that removing RLHF protections does not decrease usefulness on non-censored outputs, providing evidence that our fine-tuning strategy does not decrease usefulness despite using weaker models to generate training data. Our results show the need for further research on protections on LLMs.
许愿