Learning to Inject: Automated Prompt Injection via Reinforcement Learning
Prompt injection is a critical vulnerability in LLM agents, yet the strongest methods still rely on human red-teamers and hand-crafted prompts. Adapting automated jailbreak optimizers does not close this gap: jailbreaks shape models toward generic compliance, while prompt injection requires emitting specific tool calls with correct parameters. The success signal is binary, and randomly sampled suffixes almost never trigger it, so standard optimizers have no gradient to follow. We present AutoInject, a black-box reinforcement learning (RL) framework that learns adversarial suffixes for prompt injection. A learned comparison-based reward scores each candidate against the best suffix seen so...
| Authors | Xin Chen, Jie Zhang, Florian Tramèr |
|---|---|
| Primary category | cs.LG |
| Published | 5 February 2026 |
| Last updated at source | 10 June 2026 |
Connected in the knowledge graph
- ttttonyhe/Qwen3-4B-Instruct-RETAModel · cited by
Models and datasets referencing this paper
Silytics shows public metadata from arXiv and links to the original. Information may be incomplete or out of date. Last refreshed 18 October 2026. Licenses and terms of the original apply to the work itself. Not financial, legal or professional advice.