Reward Stealing Attack on Large Language Models

Jiaming Qian, Pengyang Zhou, Jiahe Xu, Chaochao Chen
10/5/2026
cs.CL

Official code: GarminQ/ReSA (0 stars, last commit 2026-05-05).

Abstract

Adversarial attacks on Large Language Models (LLMs) aim to induce harmful content. However, existing methods suffer from high computational costs or strict model-pairing dependencies, limiting their scalability and transferability. We propose Reward Stealing Attack (ReSA), an adversarial attack framework that targets the latent safety reward underlying LLM alignment. ReSA employs maximum entropy inverse reinforcement learning to recover a proxy reward model solely from the aligned model's behavior. The extracted reward is then reversed at inference time to derive an adversarial policy, efficiently implemented via a reward-guided decoding mechanism. Experiments demonstrate that a single recovered reward generalizes across prompts and diverse models to reveal a fundamental alignment vulnerability, enabling ReSA to significantly outperform existing attacks in effectiveness and transferability. The code is available at https://github.com/GarminQ/ReSA.

View on arXivView PDF

Code Implementations(1)

GarminQ/ReSAOfficial100%
00Shell, PythonJan 5, 20265 months ago

Similar Papers

Cite this paper

@article{qian2026reward,
  title  = {Reward Stealing Attack on Large Language Models},
  author = {Jiaming Qian and Pengyang Zhou and Jiahe Xu and Chaochao Chen},
  year   = {2026},
  eprint = {2610.06670},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2610.06670v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2610.06670.svg)](https://codeofpaper.com/paper/2610.06670)

Discussion