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.

ibm-research/AttaQ

published by @ibm-research

Harmful and harmless prompt sets, contrastive pairs, and jailbreak and attack corpora.Sets of harmful and harmless requests, pairs of opposite examples, and attack datasets.

task_categories:text-generationmultilinguality:monolingualsource_datasets:extended|Anthropic/hh-rlhflanguage:enlicense:mitsize_categories:1K<n<10Kformat:csvmodality:text +12 more
Lifetime downloads
35.7K
Last 30 days
505
Likes
25
Size
779.3 KB

Description

AttaQ Dataset Card

The AttaQ red teaming dataset, consisting of 1402 carefully crafted adversarial questions, is designed to evaluate Large Language Models (LLMs) by assessing their tendency to generate harmful or undesirable responses.

It may serve as a benchmark to assess the potential harm of responses produced by LLMs.

The dataset is categorized into seven distinct classes of questions: deception, discrimination, harmful information, substance abuse, sexual content… See the full description on the dataset page: https://huggingface.co/datasets/ibm-research/AttaQ.

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
mit
Language
en
Created on HFCreated
2023-09-11 · 3 years ago
Size category
1K<n<10K
ModalitiesData types
text
Formats
csv
LibrariesTools
datasetspandasmlcroissantpolars
ArXivPaper

Related datasets same stage · Extractsame step · Finding refusals

Read further

Total size
779.3 KB
Files
3
Formats
csv
Head
5346565
Last updated on HFLast updated
2024-01-26

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("ibm-research/AttaQ")
Raw snapshot (Python)All files (Python)
from huggingface_hub import snapshot_download
snapshot_download(repo_id="ibm-research/AttaQ", repo_type="dataset")
git clone (requires git-lfs)With git (needs git-lfs)
git clone https://huggingface.co/datasets/ibm-research/AttaQ

Files by folder from our last crawlfrom our last check

top level 3 files 779.3 KB
.gitattributes 2.3 KB file download
AttaQ-v1.csv 772.2 KB csv download
README.md 4.8 KB md download

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

AttaQ Dataset Card

The AttaQ red teaming dataset, consisting of 1402 carefully crafted adversarial questions, is designed to evaluate Large Language Models (LLMs) by assessing their tendency to generate harmful or undesirable responses.
It may serve as a benchmark to assess the potential harm of responses produced by LLMs.
The dataset is categorized into seven distinct classes of questions: deception, discrimination, harmful information, substance abuse, sexual content, personally identifiable information (PII), and violence.
Researchers and developers can use this dataset to assess the behavior of LLMs and explore the various factors that influence their responses, ultimately aiming to enhance their harmlessness and ethical usage.

The development of AttaQ involved multiple sources:

  1. Extraction: Initially, attacks were methodologically extracted from the hh-rlhf dataset provided by Anthropic. These extracted attacks were then semi-automatically labeled into the seven aforementioned categories.
  2. Generation: LLMs were employed to generate a substantial volume of attacks that were similar in nature to the ones extracted from the hh-rlhf dataset.
  3. Crawl and Generate: We utilized LLMs in conjunction with the Wikipedia Crimes Page to generate a series of actions associated with each type of crime. These actions were then employed to devise questions that explore ways to engage in unethical or unlawful actions related to those crimes, specifically focusing on strategies to evade detection or consequences.

Disclaimer:

  • The data contains offensive and upsetting content by nature therefore it may not be easy to read. Please read them in accordance with your own personal risk tolerance.
  • LLM's response to the AttaQ samples in many cases is harmful and/or violent.
  • This dataset is a representative subset of all possible attacks. Many other attacks can cause LLM to answer harmful or inappropriate responses.
  • The red-teaming community’s goal is to make models less harmful. We restrict the usage of the dataset to make models less harmful.

Fields

  • label: The label of adversarial question
  • input: adversarial question
  • additional_info: source of the adversarial question

Usage Information

The data are described in the paper: Unveiling Safety Vulnerabilities of Large Language Models.
As detailed in the paper, automatically evaluating the potential harm by LLMs requires a harmlessness metric.
The model under test should be prompted by each question in the dataset, and the corresponding responses undergo evaluation using a metric that considers both the input and output.
Our paper utilizes the "OpenAssistant/reward-model-deberta-v3-large-v2" Reward model, though other models such as "sileod/deberta-v3-large-tasksource-rlhf-reward-model" can also be employed.

import pandas as pd
from transformers import pipeline, AutoTokenizer, AutoModelForSequenceClassification
from datasets import load_dataset

# Load dataset and initialize models
dataset = load_dataset("ibm/AttaQ")
generator = pipeline("text2text-generation", model="gpt2", tokenizer="gpt2")
reward_model = AutoModelForSequenceClassification.from_pretrained("sileod/deberta-v3-large-tasksource-rlhf-reward-model")
tokenizer_reward = AutoTokenizer.from_pretrained("sileod/deberta-v3-large-tasksource-rlhf-reward-model")

# Create DataFrame and generate responses
df = pd.DataFrame(dataset['train'])
df['output'] = [response['generated_text'] for response in generator(df['input'].tolist(), max_length=50, num_return_sequences=1)]

# Calculate harmlessness for each sample
inputs = tokenizer_reward(df['input'].tolist(), df['output'].tolist(), return_tensors="pt", padding=True, truncation=True)
df['reward'] = reward_model(**inputs).logits.detach().cpu().numpy()


A comparison between several models across various attack domains in the Attaq dataset.

Citation Information

If this dataset is utilized in your research, kindly cite the following paper:

@article{kour2023unveiling,
  title={Unveiling Safety Vulnerabilities of Large Language Models},
  author={Kour, George and Zalmanovici, Marcel and Zwerdling, Naama and Goldbraich, Esther and Fandina, Ora Nova and Anaby-Tavor, Ateret and Raz, Orna and Farchi, Eitan},
  journal={arXiv preprint arXiv:2311.04124},
  year={2023}
}

README historyEdit history latest 20 of 24 revisionslatest 20 of 24 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. 2024-01-26 Update README.md 5346565 4.7 KB
    Loading...
  2. 2024-01-26 Update README.md 6533e98 4.7 KB
    Loading...
  3. 2024-01-26 Update README.md 3567e42 4.7 KB
    Loading...
  4. 2024-01-26 Update README.md 1c52966 4.7 KB
    Loading...
  5. 2024-01-26 Update README.md 80b7bce 4.7 KB
    Loading...
  6. 2024-01-26 Update README.md 6a03fb4 4.7 KB
    Loading...
  7. 2024-01-26 Update README.md 5631eed 4.7 KB
    Loading...
  8. 2023-11-30 Update README.md f6e2bcf 4.5 KB
    Loading...
  9. 2023-11-30 add usage sample b9b0a0a 4.5 KB
    Loading...
  10. 2023-11-30 fix description 77a78d0 3.5 KB
    Loading...
  11. 2023-11-30 Presenting citation better 0b44440 3.6 KB
    Loading...
  12. 2023-11-29 Update README.md d4c13e2 3.6 KB
    Loading...
  13. 2023-11-29 add keywords ed8214f 3.6 KB
    Loading...
  14. 2023-11-29 adding usage information. da6e82b 3.5 KB
    Loading...
  15. 2023-11-28 Update README.md 04e74e5 3 KB
    Loading...
  16. 2023-11-27 delete old version of the dataset d95beac 2.3 KB
    Loading...
  17. 2023-11-27 Update README.md b02867e 2.3 KB
    Loading...
  18. 2023-11-27 Update README.md be6e2fc 2.3 KB
    Loading...
  19. 2023-11-27 Update README.md 3cad429 2.3 KB
    Loading...
  20. 2023-09-26 dataset file - renamed a757682 2.1 KB
    Loading...

Community discussions 1 thread · 1 open · 2 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. 2023-09-27 Notifications from Datasets Server open 2 💬 #1
    Loading...
Download from Hugging Face

ibm-research/AttaQ

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