extract 0 0 0

sleeepeer/PIArena

published by @sleeepeer

Alignment dataset tracked in the /datasets sub-catalog.

Lifetime downloads
11.8K
Last 30 days
461
Likes
5
Size
10.5 MB
Created on HF
2025-12-18
Age
10 months ago

Description

A Platform for Prompt Injection Evaluation

PIArena is an easy-to-use toolbox and also a comprehensive benchmark for researching prompt injection attacks and defenses. It was introduced in the paper PIArena: A Platform for Prompt Injection Evaluation.

The platform provides:

Plug-and-play Attacks & Defenses – Easily integrate state-of-the-art defenses into your workflow to protect your LLM system against prompt injection… See the full description on the dataset page: https://huggingface.co/datasets/sleeepeer/PIArena.

Tags

task_categories:text-generationtask_categories:question-answeringtask_categories:text-classificationlanguage:enlicense:mitsize_categories:1K<n<10Kformat:parquetmodality:textlibrary:datasetslibrary:pandaslibrary:polarslibrary:mlcroissantarxiv:2604.08499region:usprompt-injectionsecuritybenchmarkllm-safetyred-teaming

README current version from Hugging Face


language:

  • en
    license: mit
    size_categories:
  • 1K<n<10K
    task_categories:
  • text-generation
  • question-answering
  • text-classification
    pretty_name: PIArena
    tags:
  • prompt-injection
  • security
  • benchmark
  • llm-safety
  • red-teaming

A Platform for Prompt Injection Evaluation

ProjectPage HuggingFace LeaderBoard Paper Star

PIArena is an easy-to-use toolbox and also a comprehensive benchmark for researching prompt injection attacks and defenses. It was introduced in the paper PIArena: A Platform for Prompt Injection Evaluation.

The platform provides:

  • Plug-and-play Attacks & Defenses – Easily integrate state-of-the-art defenses into your workflow to protect your LLM system against prompt injection attacks. You can also play with existing attack strategies to perform a better research.
  • Systematic Evaluation Benchmark – End-to-end evaluation pipeline enables you to easily evaluate attacks / defenses on various datasets.
  • Add Your Own – You can also easily integrate your own attack or defense into our benchmark to systematically assess how well it perform.

Dataset Statistics

Dataset Task Type Utility Metric Avg Len #Samples
SQuAD v2 (Rajpurkar et al., 2018) Question Answering LLM-as-a-Judge 706 200
Dolly (QA) (Conover et al., 2023) Question Answering LLM-as-a-Judge 1,062 200
Dolly (Info Extraction) (Conover et al., 2023) Information Extraction LLM-as-a-Judge 1,086 200
Dolly (Summarization) (Conover et al., 2023) Summarization LLM-as-a-Judge 1,567 200
NQ (Kwiatkowski et al., 2019) RAG LLM-as-a-Judge 5,432 100
MS-MARCO (Bajaj et al., 2016) RAG LLM-as-a-Judge 5,089 100
HotpotQA (Yang et al., 2018) RAG LLM-as-a-Judge 3,519 100
HotpotQA-Long (Yang et al., 2018) Question Answering F1-Score 17,942 100
Qasper (Dasigi et al., 2021) Question Answering F1-Score 18,523 100
GovReport (Huang et al., 2021) Summarization ROUGE-L 16,581 100
MultiNews (Fabbri et al., 2019) Summarization ROUGE-L 8,907 100
PassageRetrieval (Bai et al., 2023) Information Retrieval Retrieval Score 19,777 100
LCC (Guo et al., 2023) Code Generation Code Similarity 12,247 100
Total 1,700

Data Fields

Each sample contains the following fields:

Field Description
target_inst The original user instruction (e.g., a question to answer or a summarization request)
context The clean context provided to the LLM (e.g., a document or passage)
injected_task The adversarial prompt injection task embedded by the attacker
target_task_answer The ground-truth answer for the original task (used for utility evaluation)
injected_task_answer The expected output if the injection succeeds (used for ASR evaluation)
category The category of the injection attack

Usage

from datasets import load_dataset

# Load a specific subset
ds = load_dataset("sleeepeer/PIArena", "squad_v2")

# Available subsets:
# Basic QA: squad_v2, dolly_closed_qa, dolly_information_extraction, dolly_summarization
# RAG: nq_rag, hotpotqa_rag, msmarco_rag
# Long-context: hotpotqa_long, qasper_long, gov_report_long, multi_news_long, passage_retrieval_en_long, lcc_long
# Knowledge corruption: nq_rag_knowledge_corruption, hotpotqa_rag_knowledge_corruption, msmarco_rag_knowledge_corruption

Citation

@inproceedings{geng2026piarena,
  title={{PIArena}: A platform for prompt injection evaluation},
  author={Geng, Runpeng and Yin, Chenlong and Wang, Yanting and Chen, Ying and Jia, Jinyuan},
  booktitle={Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)},
  pages={33170--33192},
  year={2026}
}

README history 20 revisions

Every night we snapshot the README of every dataset in the catalog. When the SHA changes we archive the new version and diff it against the last. This is the evolving thought record of the alignment-data field: what the author decided to say about the corpus, and how that framing shifted over time.

  1. 2026-08-31Update README.md5d067414.8 KB
    Loading...
  2. 2026-04-10Update paper link and metadata (#2)e9f56794.7 KB
    Loading...
  3. 2026-03-12Update README.md51096174.5 KB
    Loading...
  4. 2026-03-12Update README.md2d588a44.5 KB
    Loading...
  5. 2026-03-12Update README.mdb550a334.5 KB
    Loading...
  6. 2026-03-12Delete README_hf.mdf0dae452.7 KB
    Loading...
  7. 2026-03-12Add dataset card8259c612.7 KB
    Loading...
  8. 2025-12-20Upload dataset897651b2.7 KB
    Loading...
  9. 2025-12-20Upload datasetc187df72.7 KB
    Loading...
  10. 2025-12-19Upload datasetc2e8afe2.2 KB
    Loading...
  11. 2025-12-19Upload dataset09781192.2 KB
    Loading...
  12. 2025-12-19Upload dataset2286aa22.2 KB
    Loading...
  13. 2025-12-19Upload datasetbde395e2.2 KB
    Loading...
  14. 2025-12-19Upload datasetb5865732.2 KB
    Loading...
  15. 2025-12-19Upload datasetc0a58242.2 KB
    Loading...
  16. 2025-12-19Upload dataset83214052.2 KB
    Loading...
  17. 2025-12-19Upload datasetcc216752.2 KB
    Loading...
  18. 2025-12-19Delete data/lcc_long-00000-of-00001-7bb2a3e0545448db.parquet with huggingface...6ee0d442.2 KB
    Loading...
  19. 2025-12-19Upload data/lcc_long-00000-of-00001-af5632fba7131378.parquet with huggingface...5d46f032.2 KB
    Loading...
  20. 2025-12-19Delete data/passage_retrieval_en_long-00000-of-00001-856cc5b2ff226e2a.parquet...5f4636e2.2 KB
    Loading...

Used by abliterated models none yet

No abliterated models in our catalog have declared this dataset in their YAML metadata yet. This can mean the dataset is used but not declared, is used outside abliteration workflows, or is new. The link will populate automatically as models are indexed.

Community discussions 2 threads · 1 open · 2 comments

Threads posted by the community on Hugging Face: bug reports, questions about usage, pull requests on the README, license clarifications. Click any thread to expand and read the full conversation inline. Newest first.

  1. 2026-04-10PRUpdate paper link and metadatamerged1 💬#2
    Loading...
  2. 2025-12-21[bot] Conversion to Parquetopen1 💬#1
    Loading...

Related datasets same stage · extract

Read further

Metadata

License
mit

Repository

Download the dataset

0

Copy any of these snippets into your notebook or terminal. All three fetch directly from Hugging Face using your own credentials.

Recommended: datasets library (Python)
from datasets import load_dataset
ds = load_dataset("sleeepeer/PIArena")
Raw snapshot (Python)
from huggingface_hub import snapshot_download
snapshot_download(repo_id="sleeepeer/PIArena", repo_type="dataset")
git clone (requires git-lfs)
git clone https://huggingface.co/datasets/sleeepeer/PIArena
Catalog is the map. Apps are the tools.

Run models on your own machine, not in the cloud.

Every model page has an "Open in Abliteration" button that hands the model directly to the first-party desktop client, at the quantization your rig can actually run. No API keys, no subscription, no prompt leakage.

Open in Abliteration