{"id":"arxiv:2311.09641","kind":"article","title":"RLHFPoison: Reward Poisoning Attack for Reinforcement Learning with Human Feedback in Large Language Models","authors":["Jiongxiao Wang","Junlin Wu","Muhao Chen","Yevgeniy Vorobeychik","Chaowei Xiao"],"author_count":5,"year":2023,"published":"2023-11-16","venue":"Proceedings of the conference - Association for Computational Linguistics. Meeting","cited_by":13,"doi":"10.18653/v1/2024.acl-long.140","arxiv_id":"2311.09641","nct_id":null,"source_url":"https://arxiv.org/abs/2311.09641","archive_url":"https://space-kitty.com/papers/arxiv:2311.09641","updated":"2024-06-19","pmid":null,"pmcid":null,"openalex_id":"W4402671843","pdf_url":"https://arxiv.org/pdf/2311.09641","abstract":"Reinforcement Learning with Human Feedback (RLHF) is a methodology designed to align Large Language Models (LLMs) with human preferences, playing an important role in LLMs alignment. Despite its advantages, RLHF relies on human annotators to rank the text, which can introduce potential security vulnerabilities if any adversarial annotator (i.e., attackers) manipulates the ranking score by up-ranking any malicious text to steer the LLM adversarially. To assess the red-teaming of RLHF against human preference data poisoning, we propose RankPoison, a poisoning attack method on candidates' selection of preference rank flipping to reach certain malicious behaviors (e.g., generating longer sequences, which can increase the computational cost). With poisoned dataset generated by RankPoison, we can perform poisoning attacks on LLMs to generate longer tokens without hurting the original safety alignment performance. Moreover, applying RankPoison, we also successfully implement a backdoor attack where LLMs can generate longer answers under questions with the trigger word. Our findings highlight critical security challenges in RLHF, underscoring the necessity for more robust alignment methods for LLMs.","abstract_license":"CC0-1.0 (arXiv descriptive metadata)","license":null,"is_open_access":false,"retracted":false,"peer_reviewed":null,"categories":["cs.AI","cs.CL","cs.CR","cs.HC"],"details":null,"provenance":"arxiv","attribution":"Abstract: arXiv descriptive metadata (CC0). Thank you to arXiv for use of its open access interoperability. This service was not reviewed or approved by, nor does it necessarily express or reflect the policies or opinions of, arXiv.","topics":[{"slug":"alignment-safety","name":"AI Alignment & Safety","domain_slug":"ai"}],"cited_in_dossiers":[]}