Logo image
Reinforcement Learning-Driven LLM Agent for Automated Attacks on LLMs
Conference proceeding   Open access

Reinforcement Learning-Driven LLM Agent for Automated Attacks on LLMs

Xiangwen Wang, Jie Peng, Kaidi Xu, Huaxiu Yao and Tianlong Chen
PrivateNLP 2024 - 5th Workshop on Privacy in Natural Language Processing, Proceedings of the Workshop, pp 170-177
2024
url
https://doi.org/10.18653/v1/2024.privatenlp-1.17View
Published, Version of Record (VoR) Open CC BY V4.0

Abstract

Recently, there has been a growing focus on conducting attacks on large language models (LLMs) to assess LLMs’ safety. Yet, existing attack methods face challenges, including the need to access model weights or merely ensuring LLMs output harmful information without controlling the specific content of their output. Exactly control of the LLM output can produce more inconspicuous attacks which could reveal a new page for LLM security. To achieve this, we propose RLTA: the Reinforcement Learning Targeted Attack, a framework that is designed for attacking language models (LLMs) and is adaptable to both white box (weight accessible) and black box (weight inaccessible) scenarios. It is capable of automatically generating malicious prompts that trigger target LLMs to produce specific outputs. We demonstrate RLTA in two different scenarios: LLM trojan detection and jailbreaking. The comprehensive experimental results show the potential of RLTA in enhancing the security measures surrounding contemporary LLMs.

Metrics

1 Record Views

Details

Logo image