extract 0 0 0

notadib/harmful-tasks

published by @notadib

Alignment dataset tracked in the /datasets sub-catalog.

Lifetime downloads
808
Last 30 days
103
Likes
2
Size
357 KB
Created on HF
2025-11-10
Age
11 months ago

Description

Harmful Tasks Dataset

Dataset of 2250 harmful tasks and jailbreaking prompts for AI safety research.

Citation

@inproceedings{hasan2024pruning,

title = {Pruning for Protection: Increasing Jailbreak Resistance in Aligned LLMs Without Fine-Tuning},

author = {Adib Hasan and Ileana Rugina and Alex Wang},

booktitle = {Proceedings of the 7th BlackboxNLP Workshop: Analyzing and Interpreting Neural Networks for NLP, co-located with EMNLP 2024},

year… See the full description on the dataset page: https://huggingface.co/datasets/notadib/harmful-tasks.

Tags

task_categories:text-generationlicense:mitsize_categories:1K<n<10Kformat:parquetmodality:textlibrary:datasetslibrary:pandaslibrary:mlcroissantlibrary:polarsarxiv:2401.10862region:usjailbreaksafetyred-teaming

README current version from Hugging Face


license: mit
task_categories:

  • text-generation
    tags:
  • jailbreak
  • safety
  • red-teaming
    dataset_info:
  • config_name: default
    features:
    • name: prompt
      dtype: string
    • name: prompt_name
      dtype: string
    • name: task
      dtype: string
    • name: category
      dtype: string
    • name: sub_category
      dtype: string
    • name: severity
      dtype: string
      splits:
    • name: train
      num_bytes: 2875375
      num_examples: 2250
      download_size: 289516
      dataset_size: 2875375
  • config_name: prompts_only
    features:
    • name: prompt_template
      dtype: string
    • name: prompt_name
      dtype: string
      splits:
    • name: train
      num_bytes: 10349
      num_examples: 10
      download_size: 13427
      dataset_size: 10349
  • config_name: tasks_only
    features:
    • name: task
      dtype: string
    • name: category
      dtype: string
    • name: sub_category
      dtype: string
    • name: severity
      dtype: string
      splits:
    • name: train
      num_bytes: 40250
      num_examples: 225
      download_size: 14215
      dataset_size: 40250
      configs:
  • config_name: default
    data_files:
    • split: train
      path: tasks_within_prompts.parquet
  • config_name: prompts_only
    data_files:
    • split: train
      path: prompts_only.parquet
  • config_name: tasks_only
    data_files:
    • split: train
      path: tasks_only.parquet

Harmful Tasks Dataset

Dataset of 2250 harmful tasks and jailbreaking prompts for AI safety research.

Citation

@inproceedings{hasan2024pruning,
  title        = {Pruning for Protection: Increasing Jailbreak Resistance in Aligned LLMs Without Fine-Tuning},
  author       = {Adib Hasan and Ileana Rugina and Alex Wang},
  booktitle    = {Proceedings of the 7th BlackboxNLP Workshop: Analyzing and Interpreting Neural Networks for NLP, co-located with EMNLP 2024},
  year         = {2024},
  address      = {Miami, USA},
  note         = {arXiv:2401.10862},
  url          = {https://arxiv.org/abs/2401.10862}
}

Usage

Access Data

from datasets import load_dataset

# Load from HuggingFace Hub (default: tasks_within_prompts)
dataset = load_dataset("notadib/harmful-tasks")

# Load specific configuration
prompts_only = load_dataset("notadib/harmful-tasks", "prompts_only")
tasks_only = load_dataset("notadib/harmful-tasks", "tasks_only")

# Access data
print(dataset['train'][0])

Evaluate Your Model

The classifier.py script evaluates jailbreak and refusal rates using three models:

  • Target model: The model being tested for jailbreak resistance
  • Jailbreak judge: Determines if responses contain harmful content
  • Refusal judge: Determines if the model refused the request

All models use OpenAI-compatible APIs with separate base URLs and API keys. We recommend using Meta-Llama-3.3-70B-Instruct as the jailbreak and refusal judges for consistency.

# pip install tqdm openai pandas

./classifier.py \
  --target-model llama-3-8b \
  --target-base-url http://localhost:8000/v1 \
  --target-api-key YOUR_KEY \
  --jailbreak-model meta-llama/Meta-Llama-3.3-70B-Instruct \
  --jailbreak-base-url http://localhost:8001/v1 \
  --jailbreak-api-key YOUR_KEY \
  --refusal-model meta-llama/Meta-Llama-3.3-70B-Instruct \
  --refusal-base-url http://localhost:8001/v1 \
  --refusal-api-key YOUR_KEY \
  --out results.json \
  --max-concurrent 16

The --max-concurrent argument (default: 16) limits parallel API requests.

Results include:

  • total_prompts: Number of prompts evaluated (2250)
  • attack_success_rate: Fraction of jailbreak attempts that succeeded
  • refusal_rate: Fraction of requests that were refused
  • samples: Per-prompt details (prompt, response, jailbroken, refused)

Dataset Splits

This dataset provides three different configurations:

1. tasks_within_prompts (default)

Combines jailbreaking prompts with harmful tasks by replacing <HARMFUL TASK> placeholder in prompt templates.

Features:

  • prompt: The full prompt with task inserted
  • prompt_name: Name of the jailbreaking prompt technique (e.g., "AIM", "DAN")
  • task: The harmful task
  • category: Task category (e.g., "Misinformation and Disinformation")
  • sub_category: Task sub-category (e.g., "Social Media Rumors and Misleading Posts")
  • severity: Task severity level ("Low Severity", "Medium Severity", "High Severity")

2. prompts_only

Contains only jailbreaking prompt templates without tasks.

Features:

  • prompt_template: The prompt template with <HARMFUL TASK> placeholder
  • prompt_name: Name of the jailbreaking prompt technique

3. tasks_only

Contains only harmful tasks without jailbreaking prompts.

Features:

  • task: The harmful task
  • category: Task category
  • sub_category: Task sub-category
  • severity: Task severity level

Dataset Statistics

  • 10 jailbreaking prompt templates
  • 225 unique harmful tasks
  • 2,250 prompt-task combinations in tasks_within_prompts

Ethical Considerations

This dataset is intended solely for AI safety research, including:

  • Developing robust content moderation systems
  • Testing AI model safety and alignment
  • Creating defensive security tools
  • Understanding adversarial prompt techniques

Do not use this dataset for malicious purposes.

README history 9 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. 2025-11-111024 tokens and max conn 16f53953a5.3 KB
    Loading...
  2. 2025-11-10added a classifier96cf03a5.3 KB
    Loading...
  3. 2025-11-10added a classifier566d8b35.3 KB
    Loading...
  4. 2025-11-10added the dataset files3739d045.6 KB
    Loading...
  5. 2025-11-10added the dataset filese14285d5.6 KB
    Loading...
  6. 2025-11-10added the dataset filesfff06f44.4 KB
    Loading...
  7. 2025-11-10added the dataset files5e665744.6 KB
    Loading...
  8. 2025-11-10added the dataset filesc7004d04.2 KB
    Loading...
  9. 2025-11-10initial commiteef270d24 B
    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 1 thread · 1 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. 2025-11-11[bot] Conversion to Parquetclosed1 💬#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("notadib/harmful-tasks")
Raw snapshot (Python)
from huggingface_hub import snapshot_download
snapshot_download(repo_id="notadib/harmful-tasks", repo_type="dataset")
git clone (requires git-lfs)
git clone https://huggingface.co/datasets/notadib/harmful-tasks
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