abliteration.org
Get the app

Two ways to read this site

Technical mode is the default: exact terms and codes, for engineers, researchers, journalists and companies. Simple mode gives the same facts in plain words, for anyone who wants a model that runs on their own computer. You can switch at any time at the top of the page.

technical
MLX weights for Apple silicon (M1 or later), usually quantized to 4 or 8 bits.
simple
Made for Macs with Apple silicon (M1 or newer), usually compressed to 4 or 8 bits.

Ztrimus/Prompt-Perturbation-Safety-Dataset

published by @Ztrimus

Passed the relevance filter but does not cleanly map to a stage.Fits the catalog's topic, but no single step.

task_categories:text-classificationtask_categories:sentence-similaritytask_categories:question-answeringlanguage:enlicense:apache-2.0size_categories:100K<n<1Mformat:csvmodality:tabular +15 more
Lifetime downloads
1.1K
Last 30 days
44
Likes
-
Size
688.6 MB

Description

LLM Safety Flip Dataset

What is this?

This dataset contains 136,400 rows of harmful prompts from the CatQA benchmark, each subjected to semantic-preserving perturbations (e.g., typos, insertions, paraphrasing). Each perturbed prompt was processed across five open-source LLMs (LLaMA 2, LLaMA 3, Mistral, Gemma, Qwen), and corresponding responses were evaluated using Llama Guard v3 to determine safety behavior. We include original and perturbed questions, model responses, safety… See the full description on the dataset page: https://huggingface.co/datasets/Ztrimus/Prompt-Perturbation-Safety-Dataset.

Used by uncensored 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.No model in our catalog lists this dataset yet. It may be used without being listed, used for other work, or simply be new. The list fills in by itself as models are added.

MetadataDetails

License
apache-2.0
Language
en
Created on HFCreated
2025-07-01 · 1 years ago
Size category
100K<n<1M
ModalitiesData types
tabulartext
Formats
csv
LibrariesTools
datasetspandasmlcroissantpolars

Related datasets same stage · Miscsame step · Other

Read further

Total size
688.6 MB
Files
3
Formats
csv
Head
4f4500d
Last updated on HFLast updated
2025-07-01

Download the dataset

Copy any of these snippets into your notebook or terminal. All three fetch directly from Hugging Face using your own credentials.Each of these lines of code downloads the dataset straight from Hugging Face, with your own Hugging Face login.

Recommended: datasets library (Python)
from datasets import load_dataset
ds = load_dataset("Ztrimus/Prompt-Perturbation-Safety-Dataset")
Raw snapshot (Python)All files (Python)
from huggingface_hub import snapshot_download
snapshot_download(repo_id="Ztrimus/Prompt-Perturbation-Safety-Dataset", repo_type="dataset")
git clone (requires git-lfs)With git (needs git-lfs)
git clone https://huggingface.co/datasets/Ztrimus/Prompt-Perturbation-Safety-Dataset

Files by folder from our last crawlfrom our last check

top level 3 files 688.6 MB
.gitattributes 2.5 KB file download
Perturbation_Experiments_Data.csv 688.6 MB csv download
README.md 7.6 KB md download

READMEAuthor's description current version from Hugging Faceas it is now on Hugging Face

LLM Safety Flip Dataset

What is this?
This dataset contains 136,400 rows of harmful prompts from the CatQA benchmark, each subjected to semantic-preserving perturbations (e.g., typos, insertions, paraphrasing). Each perturbed prompt was processed across five open-source LLMs (LLaMA 2, LLaMA 3, Mistral, Gemma, Qwen), and corresponding responses were evaluated using Llama Guard v3 to determine safety behavior. We include original and perturbed questions, model responses, safety labels, similarity scores, and detailed perturbation metadata.

This dataset supports research on LLM safety robustness, enabling fine-grained analysis of:

  • Flip rates between safe and unsafe responses (RQ1)
  • Factors driving these flips (RQ2)
  • Category-wise safety vulnerabilities (RQ3)

📌 Note: This dataset is derived directly from the experimental outputs presented in the paper:

"Can Typos Cause Harm? The Impact of Imperfect Input on LLM Safety" — Code & Notebooks Available Here


Dataset Structure

The dataset consists of 136,400 examples and 23 features, where each row represents a unique triple of:

(original prompt, model, perturbation)

These triples capture how various LLMs respond to semantic-preserving perturbations applied to harmful prompts. Below is an overview of the full schema:

📐 Shape

  • Rows: 136,400
  • Columns: 23

📊 Schema Overview

Column Name Type Description
category object Main harm category (e.g., self-harm, harassment)
subcategory object Finer-grained harm type (e.g., medical misinformation)
original_question object The original, unperturbed harmful prompt
original_question_safety object Safety label for the original prompt (Llama Guard v3)
original_response object Raw model output to the original prompt
original_response_safety object Safety label for original response
original_response_pre object Preprocessed response (cleaned for labeling heuristics)
original_response_pre_safety object Safety label of the preprocessed original response
experiment object Experiment configuration key for reproducibility
perturbation_level object Level of edit: char, word, or sentence
perturbation_type object Type of transformation (e.g., synonym, back-translation)
perturbation_count float64 Number of perturbations applied (1–5); nullable
perturbed_question object Perturbed version of the original prompt
perturbed_question_safety object Safety label for the perturbed prompt
model object Model name used to generate the response
perturbed_response object Raw model output to the perturbed prompt
perturbed_response_safety object Safety label for perturbed response
perturbed_response_pre object Preprocessed perturbed response (nullable)
perturbed_response_pre_safety object Safety label of preprocessed perturbed response
latent_similarity float64 Cosine similarity in embedding space between original and perturbed question
token_similarity float64 Token-level (surface) similarity between questions
original_response_pre_refusal object Refusal type for original preprocessed response
perturbed_response_pre_refusal object Refusal type for perturbed preprocessed response

Most rows are complete, though perturbation_count and perturbed_response_pre contain minor missing values (e.g., 132k/136k entries for perturbation_count).


Dataset Creation & Provenance

  • Source: 550 prompts from CatQA harmful prompts dataset
  • Perturbation techniques: Character-level (typos, OCR), word-level (synonyms, insertions), sentence-level (paraphrasing, back-translation)
  • LLMs tested: LLaMA 2 7B, LLaMA 3 8B, Mistral 7B, Gemma 2B, Qwen 7B
  • Labeling method: Automated using Llama Guard v3 safety classifier
  • Similarity computation: SentenceTransformer-based embedding cosine similarity (latent), token overlap (token)
  • Consolidation: All model outputs combined via scripts in combining-multiple-datasets.ipynb

Each row represents a unique (prompt, model, perturbation) instance with complete context.


Considerations for Use

⚠ Limitations:

  • Dataset limited to harmful prompts only — may not generalize to neutral tasks
  • Safety labels are model-generated (Llama Guard v3), not manually verified
  • Some perturbations may not reflect authentic user behavior (e.g., back-translation artifacts)

✅ Intended uses:

  • Evaluation of safety robustness across model variants
  • Analysis of prompt phrasing sensitivity
  • Benchmarks for alignment, interpretability, and refusal behavior

🚫 Not suitable for:

  • Training production-grade safety detectors without additional validation
  • General-purpose NLP evaluation

Usage Example

from datasets import load_dataset

ds = load_dataset("Ztrimus/llm-safety-flip-dataset", split="full")

# Preview a sample
print(ds[0])

# Analyze flip rate
import pandas as pd
df = ds.to_pandas()
flip_rate = ((df.original_response_safety == "safe") & (df.perturbed_response_safety == "unsafe")).mean()
print(f"Safe → Unsafe flip rate: {flip_rate:.2%}")

Citation

Please cite our work if you use this dataset:

@inproceedings{zinjad2025typos_safety,
  title = {Can Typos Cause Harm? The Impact of Imperfect Input on LLM Safety},
  author = {Saurabh Zinjad},
  year = {2025},
  booktitle = {SBP-BRiMS: Int'l Conference on Social Computing, Behavioral-Cultural Modeling, & Prediction and Behavior Representation in Modeling and Simulation},
  address = {Carnegie Mellon University, Pittsburgh, PA}
}

Contact

Created and maintained by Saurabh Zinjad
Questions, issues, or contributions welcome via the GitHub repository: Ztrimus/llm-sensitivity

README historyEdit history 8 revisions8 edits

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.Every night we save the author's description of every dataset in the catalog. When it changes, we keep the new text and compare it with the one before. This shows what each author chose to say about their dataset, and how that changed over time.

  1. 2025-07-01 Update README.md 4f4500d 7.4 KB
    Loading...
  2. 2025-07-01 Update README.md a385b0a 5 KB
    Loading...
  3. 2025-07-01 Update README.md f1cc94c 3.8 KB
    Loading...
  4. 2025-07-01 Update README.md 480e9bb 3.7 KB
    Loading...
  5. 2025-07-01 Update README.md 8a9c4e9 4.4 KB
    Loading...
  6. 2025-07-01 Update README.md f9d9ec7 4.4 KB
    Loading...
  7. 2025-07-01 Upload Perturbation_Experiments_Data.csv 58cdca4 31 B
    Loading...
  8. 2025-07-01 initial commit 3cc5be6 31 B
    Loading...

Community discussions 1 thread · 1 open · 1 comments

Threads posted by the community on Hugging Face: bug reports, questions about usage, pull requests on the README, licence clarifications. Click any thread to expand and read the full conversation inline. Newest first.Conversations people started on Hugging Face: bug reports, questions about using the data, suggested changes to the author's description, questions about the licence. Open a thread to read it here. Newest first.

  1. 2025-07-02 [bot] Conversion to Parquet open 1 💬 #1
    Loading...
Download from Hugging Face

Ztrimus/Prompt-Perturbation-Safety-Dataset

Catalog is the map. Apps are the tools.

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

Every GGUF model page has an "Open in Abliteration" button that lets you pick a file, then opens it in the desktop app. No API keys, no subscription, no prompt leakage.Each model page in the format the app uses has an "Open in Abliteration" button to open a file in the desktop app. No API keys, no subscription, your requests stay on your computer.

Open in Abliteration