paper-with-me

Papers

RL Is a Hammer and LLMs Are Nails: A Simple Reinforcement Learning Recipe for Strong Prompt Injection

2025-10-06 · Yuxin Wen, Arman Zharmagambetov, Ivan Evtimov, Narine Kokhlikyan, Tom Goldstein, Kamalika Chaudhuri, Chuan Guo arxiv

Prompt injection poses a serious threat to the reliability and safety of LLM agents. Recent defenses against prompt injection, such as Instruction Hierarchy and SecAlign, have shown notable robustness against static attacks. However, to more thoroughly evaluate the robustness of these defenses, it is arguably necessary to employ strong attacks such as automated red-teaming. To this end, we introduce RL-Hammer, a simple recipe for training attacker models that automatically learn to perform strong prompt injections and jailbreaks via reinforcement learning. RL-Hammer requires no warm-up data and can be trained entirely from scratch. To achieve high ASRs against industrial-level models with defenses, we propose a set of practical techniques that enable highly effective, universal attacks. Using this pipeline, RL-Hammer reaches a 98% ASR against GPT-4o and a $72\%$ ASR against GPT-5 with the Instruction Hierarchy defense. We further discuss the challenge of achieving high diversity in attacks, highlighting how attacker models tend to reward-hack diversity objectives. Finally, we show that RL-Hammer can evade multiple prompt injection detectors. We hope our work advances automatic red-teaming and motivates the development of stronger, more principled defenses. Code is available at https://github.com/facebookresearch/rl-injector.

📄 PDF Abstract BibTeX arXiv:2510.04885

Code (0)

등록된 구현이 없습니다.

Tasks

Reinforcement Learning

Similar Papers 제목 키워드 기반

HAMMER: Hamiltonian Curiosity Augmented Large Language Model Reinforcement

2025-09-25 · Ming Yang, Xiaofan Li, Zhiyuan Ma, Dengliang Shi 외 arxiv

Recent curriculum reinforcement learning for large language models (LLMs) typically rely on difficulty-based annotations for data filtering and ordering. However, such methods suffer from local optimization, where contin…

Reinforcement Learning

4Hammer: a board-game reinforcement learning environment for the hour long time frame

2025-05-19 · Massimo Fioravanti, Giovanni Agosta

Large Language Models (LLMs) have demonstrated strong performance on tasks with short time frames, but struggle with tasks requiring longer durations. While datasets covering extended-duration tasks, such as software eng…

Board Gamesreinforcement-learningReinforcement Learning

Using the Hammer Only on Nails: A Hybrid Method for Evidence Retrieval for Question Answering

2020-09-22 · Zhengzhong Liang, Yiyun Zhao, Mihai Surdeanu

Evidence retrieval is a key component of explainable question answering (QA). We argue that, despite recent progress, transformer network-based approaches such as universal sentence encoder (USE-QA) do not always outperf…

Information RetrievalQuestion AnsweringRetrievalSentence

Demystifying Reinforcement Learning for Long-Horizon Tool-Using Agents: A Comprehensive Recipe

2026-03-23 · Xixi Wu, Qianguo Sun, Ruiyang Zhang, Chao Song 외 arxiv

Reinforcement Learning (RL) is essential for evolving Large Language Models (LLMs) into autonomous agents capable of long-horizon planning, yet a practical recipe for scaling RL in complex, multi-turn environments remain…

Reinforcement Learning

Normative Alignment of Recommender Systems via Internal Label Shift

2026-07-12 · Johannes Kruse, Kasper Lindskow, Michael Riis Andersen, Ryotaro Shimizu 외 arxiv

We introduce NAILS (Normative Alignment of Recommender Systems via Internal Label Shift), a simple and scalable method for aligning recommendation outputs with target distributions over item-level attributes, such as cat…