evaluate gated 0 0

LLM-Tuning-Safety/HEx-PHI

published by @LLM-Tuning-Safety

Alignment dataset tracked in the /datasets sub-catalog.

Lifetime downloads
9.9K
Last 30 days
406
Likes
68
Size
64 KB
Created on HF
2023-11-13
Age
2 years ago

Description

HEx-PHI: Human-Extended Policy-Oriented Harmful Instruction Benchmark

This dataset contains 330 harmful instructions (30 examples x 11 prohibited categories) for LLM harmfulness evaluation.

In our work "Fine-tuning Aligned Language Models Compromises Safety, Even When Users Do Not Intend To!", to comprehensively cover as many harmfulness categories as possible,

we develop this new safety evaluation benchmark directly based on the exhaustive lists of prohibited use cases found in… See the full description on the dataset page: https://huggingface.co/datasets/LLM-Tuning-Safety/HEx-PHI.

Tags

task_categories:text-generationlanguage:enlicense:othersize_categories:n<1Karxiv:2310.03693arxiv:2307.15043region:usharmfulnessbenchmark

README current version from Hugging Face


license: other
license_name: hex-phi
license_link: https://huggingface.co/datasets/LLM-Tuning-Safety/HEx-PHI/#hex-phi-dataset-license-agreement
extra_gated_prompt: You agree to the HEx-PHI Dataset License Agreement. Also, please specify the following fields in detail (we suggest you fill in your affiliation email), based on which we will inspect and manually grant access to approved users. If you have not been granted access, please email us (see email contact from our paper) and specify more details.
extra_gated_fields:
Name: text
Email: text
Affiliation: text
Country: text
Purpose: text
configs:

  • config_name: default
    data_files:
    • split: Category_1_Illegal_Activity
      path: category_1.csv
    • split: Category_3_Hate_Harass_Violence
      path: category_3.csv
    • split: Category_4_Malware
      path: category_4.csv
    • split: Category_5_Physical_Harm
      path: category_5.csv
    • split: Category_6_Economic_Harm
      path: category_6.csv
    • split: Category_7_Fraud_Deception
      path: category_7.csv
    • split: Category_8_Adult_Content
      path: category_8.csv
    • split: Category_9_Political_Campaigning
      path: category_9.csv
    • split: Category_10_Privacy_Violation_Activity
      path: category_10.csv
    • split: Category_11_Tailored_Financial_Advice
      path: category_11.csv
      task_categories:
  • text-generation
  • conversational
    language:
  • en
    pretty_name: Human-Extended Policy-Oriented Harmful Instruction Benchmark
    size_categories:
  • n<1K
    tags:
  • harmfulness
  • benchmark

HEx-PHI: Human-Extended Policy-Oriented Harmful Instruction Benchmark

This dataset contains 330 harmful instructions (30 examples x 11 prohibited categories) for LLM harmfulness evaluation.

In our work "Fine-tuning Aligned Language Models Compromises Safety, Even When Users Do Not Intend To!", to comprehensively cover as many harmfulness categories as possible,
we develop this new safety evaluation benchmark directly based on the exhaustive lists of prohibited use cases found in Meta’s Llama-2 usage policy and OpenAI’s usage policy.
Specifically, we gather 30 examples of harmful instructions for each of the 11 prohibited use case categories from various sources, including:

For more details, please refer to our project website: http://llm-tuning-safety.github.io.

Revision (Aug 19th, 2024)

🚨 In this revision, we have removed Chile Sexual Abuse Material (CSAM) in our data to avoid negative societal impact. In particular, we:

  • Editted the 29th record in category_1.csv, which was related to CSAM.
  • Removed all 30 harmful instructions from the the 2nd category (Child Abuse Content).

To access the original dataset, please contact the authors.

Dataset Format

The 11 categories of harmful instructions are stored separately in 11 independent files in plain CSV format:

Dataset Usage

With our 11 harmful categories, we hope HEx-PHI can help researchers comprehensively evaluate fine-grained safety risks and harmfulness underlying LLMs.
Practically, one should use HEx-PHI harmful instructions as (part of) input prompts, and inspect👀 whether the responses generated by the LLM satisfy the harmful intentions of the instructions.

👀In our paper, we use GPT-4 as the harmfulness judge to assign each <user instruction, model response> pair a harmfulness score from 1 to 5. Refer to Appendix B for details.

HEx-PHI Dataset License Agreement

This Agreement contains the terms and conditions that govern your access and use of the HEx-PHI Dataset (as defined above). You may not use the HEx-PHI Dataset if you do not accept this Agreement. By clicking to accept, accessing the HEx-PHI Dataset, or both, you hereby agree to the terms of the Agreement. If you are agreeing to be bound by the Agreement on behalf of your employer or another entity, you represent and warrant that you have full legal authority to bind your employer or such entity to this Agreement. If you do not have the requisite authority, you may not accept the Agreement or access the HEx-PHI Dataset on behalf of your employer or another entity.

  • Safety and Moderation: This dataset contains unsafe conversations or prompts that may be perceived as offensive or unsettling. Users may not use this dataset for training machine learning models for any harmful purpose. The dataset may not be used to generate content in violation of any law. These prompts should not be used as inputs to models that can generate modalities outside of text (including, but not limited to, images, audio, video, or 3D models)
  • Non-Endorsement: The views and opinions depicted in this dataset do not reflect the perspectives of the researchers or affiliated institutions engaged in the data collection process.
  • Legal Compliance: You are mandated to use it in adherence with all pertinent laws and regulations.
  • Model Specific Terms: When leveraging direct outputs of a specific model, users must adhere to its corresponding terms of use and relevant legal standards.
  • Non-Identification: You must not attempt to identify the identities of individuals or infer any sensitive personal data encompassed in this dataset.
  • Prohibited Transfers: You should not distribute, copy, disclose, assign, sublicense, embed, host, or otherwise transfer the dataset to any third party.
  • Right to Request Deletion: At any time, we may require you to delete all copies of this instruction dataset (in whole or in part) in your possession and control. You will promptly comply with any and all such requests. Upon our request, you shall provide us with written confirmation of your compliance with such requirement.
  • Termination: We may, at any time, for any reason or for no reason, terminate this Agreement, effective immediately upon notice to you. Upon termination, the license granted to you hereunder will immediately terminate, and you will immediately stop using the HEx-PHI Dataset and destroy all copies of the HEx-PHI Dataset and related materials in your possession or control.
  • Limitation of Liability: IN NO EVENT WILL WE BE LIABLE FOR ANY CONSEQUENTIAL, INCIDENTAL, EXEMPLARY, PUNITIVE, SPECIAL, OR INDIRECT DAMAGES (INCLUDING DAMAGES FOR LOSS OF PROFITS, BUSINESS INTERRUPTION, OR LOSS OF INFORMATION) ARISING OUT OF OR RELATING TO THIS AGREEMENT OR ITS SUBJECT MATTER, EVEN IF WE HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.

Subject to your compliance with the terms and conditions of this Agreement, we grant to you, a limited, non-exclusive, non-transferable, non-sublicensable license to use the HEx-PHI Dataset, including the conversation data and annotations, to research, and evaluate software, algorithms, machine learning models, techniques, and technologies for both research and commercial purposes.

Citation

@inproceedings{
anonymous2024finetuning,
title={Fine-tuning Aligned Language Models Compromises Safety, Even When Users Do Not Intend To!},
author={Xiangyu Qi and Yi Zeng and Tinghao Xie and Pin-Yu Chen and Ruoxi Jia and Prateek Mittal and Peter Henderson},
booktitle={The Twelfth International Conference on Learning Representations},
year={2024},
url={https://openreview.net/forum?id=hTEGyKf0dZ}
}

README history 1 revision

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. 2024-08-19Removed CSAM83128b48.4 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 1 thread · 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-05-04I emailed the authors and no one reply meopen2 💬#1
    Loading...

Related datasets same stage · evaluate

Read further

Metadata

License
other

Repository

Download the dataset

Gated dataset. You need to accept the author's terms on Hugging Face before downloading. Visit the repository, click Agree and access repository, then log in locally with huggingface-cli login and use one of the snippets below.

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("LLM-Tuning-Safety/HEx-PHI")
Raw snapshot (Python)
from huggingface_hub import snapshot_download
snapshot_download(repo_id="LLM-Tuning-Safety/HEx-PHI", repo_type="dataset")
git clone (requires git-lfs)
git clone https://huggingface.co/datasets/LLM-Tuning-Safety/HEx-PHI
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