PIArena: A Platform for Prompt Injection Evaluation

Runpeng Geng, Chenlong Yin, Yanting Wang, Ying Chen, Jinyuan Jia
4/9/2026
cs.CRcs.AIcs.CL

Official code: sleeepeer/PIArena (48 stars, MIT, last commit 2026-04-28).

Abstract

Prompt injection attacks pose serious security risks across a wide range of real-world applications. While receiving increasing attention, the community faces a critical gap: the lack of a unified platform for prompt injection evaluation. This makes it challenging to reliably compare defenses, understand their true robustness under diverse attacks, or assess how well they generalize across tasks and benchmarks. For instance, many defenses initially reported as effective were later found to exhibit limited robustness on diverse datasets and attacks. To bridge this gap, we introduce PIArena, a unified and extensible platform for prompt injection evaluation that enables users to easily integrate state-of-the-art attacks and defenses and evaluate them across a variety of existing and new benchmarks. We also design a dynamic strategy-based attack that adaptively optimizes injected prompts based on defense feedback. Through comprehensive evaluation using PIArena, we uncover critical limitations of state-of-the-art defenses: limited generalizability across tasks, vulnerability to adaptive attacks, and fundamental challenges when an injected task aligns with the target task. The code and datasets are available at https://github.com/sleeepeer/PIArena.

View on arXivView PDF

Code Implementations(1)

sleeepeer/PIArenaOfficial100%
MIT

[ACL 2026] PIArena: A Platform for Prompt Injection Evaluation

4815CSS, HTMLMar 12, 20265 months agoMIT
agentbenchmarkllmprompt-injection

Similar Papers

Cite this paper

@article{geng2026piarena,
  title  = {PIArena: A Platform for Prompt Injection Evaluation},
  author = {Runpeng Geng and Chenlong Yin and Yanting Wang and Ying Chen and Jinyuan Jia},
  year   = {2026},
  eprint = {2604.08499},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2604.08499v1}
}

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/2604.08499.svg)](https://codeofpaper.com/paper/2604.08499)

Discussion