Skip to content

LeakAgent: A Reinforcement Learning-Based Red-Teaming Agent for LLM Privacy LeakageLeakAgent: RL-based Red-teaming Agent for LLM Privacy Leakage

arXiv· arXiv:2412.05734· Yuzhou Nie, Zhun Wang, Ye Yu, Xian Wu, Xuandong Zhao, Wenbo Guo, Dawn Song·Indexed by this site · 22 days ago· Originally publishedAttacks
AI summary

Researchers propose LeakAgent, a black-box red-teaming framework for privacy leakage in large language models, which trains open-source models via reinforcement learning as attack agents to automatically generate adversarial prompts for training data extraction and system prompt extraction. The framework designs a new reward function to provide effective and fine-grained rewards, and adds mechanisms to balance exploration and exploitation and to increase the diversity of adversarial prompts. Evaluations show that LeakAgent clearly outperforms existing rule-based methods on training data extraction, outperforms existing automated methods on system prompt leakage, and can extract system prompts from real applications in the OpenAI GPT Store. The authors also show that the method can bypass existing guardrail defenses and helps achieve better safety alignment; the code is open-sourced on GitHub: https://github.com/rucnyz/LeakAgent。

Read originalarxiv.org