向小偷致敬:探索去中心化GRPO中的攻击与防御
Hail to the Thief: Exploring Attacks and Defenses in Decentralised GRPO
AI总结:
本文研究去中心化GRPO的鲁棒性,提出首个对抗攻击及防御措施,通过恶意节点污染良性模型,展示攻击成功率可达100%,并提出两种防御机制以减轻攻击影响。
摘要:
组相对策略优化(GRPO)在大语言模型(LLMs)的后训练中得到了广泛应用。在GRPO中,提示由模型回答,通过强化学习学习偏好行为。由于通信量小,GRPO本质上适合去中心化训练,因为多个节点可以同时回答提示,这些完成结果以字符串形式交换。在本文中,我们通过提出首个对抗攻击和防御措施来探索去中心化GRPO的鲁棒性。我们展示了恶意节点通过分享污染的完成结果来污染良性模型的一系列攻击。我们证明了这些攻击在数学和编程任务中,攻击者可以在50次迭代内达到100%的成功率。此外,为减轻这些攻击,我们提出了两种防御机制,检查完成结果的logit概率或利用LLM判断者过滤完成结果。这些防御措施阻止了所有攻击,除了导致不必要的长但概念上正确的完成结果的DoS攻击。这两种攻击和防御的代码可在:https://github.com/gensyn-ai/HTTT 找到。
英文摘要:
Group Relative Policy Optimization (GRPO) has demonstrated wide adoption in the post-training of Large Language Models (LLMs). In GRPO, prompts are answered by the model and preferred behaviour is learnt via reinforcement learning. Owing to the small communication volume, GRPO is inherently suitable for decentralised training as the prompts can be concurrently answered by multiple nodes and these completions are exchanged in the form of strings. In this work, we explore the robustness of decentralised GRPO by presenting the first adversarial attacks and countermeasures. We present a diverse set of attacks where malicious nodes poison benign models by sharing their poisoned completions. We demonstrate these attacks on math and coding tasks and show that an adversary can achieve attack success rates of up to 100% in as few as 50 iterations. Moreover, to mitigate the attacks, we propose two defense mechanisms that check logit probabilities of completions or utilize an LLM judge to filter completions. The defenses prevent all but the DoS attack that causes unnecessarily lengthy but conceptually correct completions. The code of both attacks and defenses can be found at: https://github.com/gensyn-ai/HTTT.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。