misc 0 0 0

Unified-Language-Model-Alignment/Anthropic_HH_Golden

Alignment dataset tracked in the /datasets sub-catalog.

Lifetime downloads
15.6K
Last 30 days
237
Likes
41
Size
60.3 MB
Created on HF
2023-09-29
Age
3 years ago

Description

Dataset Card for Anthropic_HH_Golden

This dataset is constructed to test the ULMA technique as mentioned in the paper Unified Language Model Alignment with Demonstration and Point-wise Human Preference (under review, and an arxiv link will be provided soon). They show that replacing the positive samples in a preference dataset by high-quality demonstration data (golden data) greatly improves the performance of various alignment methods (RLHF, DPO, ULMA). In particular, the ULMA… See the full description on the dataset page: https://huggingface.co/datasets/Unified-Language-Model-Alignment/Anthropic_HH_Golden.

Tags

language:enlicense:apache-2.0size_categories:10K<n<100Kformat:jsonmodality:textlibrary:datasetslibrary:pandaslibrary:mlcroissantlibrary:polarsregion:usharmless

README current version from Hugging Face


license: apache-2.0
task_categories:

  • conversational
    language:
  • en
    tags:
  • harmless
    size_categories:
  • 10K<n<100K

Dataset Card for Anthropic_HH_Golden

This dataset is constructed to test the ULMA technique as mentioned in the paper Unified Language Model Alignment with Demonstration and Point-wise Human Preference (under review, and an arxiv link will be provided soon). They show that replacing the positive samples in a preference dataset by high-quality demonstration data (golden data) greatly improves the performance of various alignment methods (RLHF, DPO, ULMA). In particular, the ULMA method exploits the high-quality demonstration data in the preference dataset by treating the positive and negative samples differently, and boosting the performance by removing the KL regularizer for positive samples.

Dataset Summary

This repository contains a new preference dataset extending the harmless dataset of Anthropic's Helpful and Harmless (HH) datasets. The origin positive response in HH is generated by a supervised fined-tuned model of Anthropic, where harmful and unhelpful responses are freqently encountered. In this dataset, the positive responses are replaced by re-rewritten responses generated by GPT4.

Comparison with the origin HH dataset

Comparison with the origin HH dataset. Left is the data sampled from the origin HH dataset, and right is the corresponding answer in our Anthropic_HH_Golden dataset. The highlighted parts are the differences. It is clear that after the rewritten, the "chosen" responses is more harmless, and the "rejected" response are left unchanged.

Usage

from datasets import load_dataset

# Load the harmless dataset with golden demonstration
dataset = load_dataset("Unified-Language-Model-Alignment/Anthropic_HH_Golden")

or download the data files directly with:

git clone https://huggingface.co/datasets/Unified-Language-Model-Alignment/Anthropic_HH_Golden

README history 5 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. 2023-10-04Update README.md6bfa1c82 KB
    Loading...
  2. 2023-10-04Update README.mda1e5da42 KB
    Loading...
  3. 2023-10-04Upload 2 files98996be1.9 KB
    Loading...
  4. 2023-10-04Update README.md49667581.9 KB
    Loading...
  5. 2023-09-29initial commit795129228 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 4 threads · 1 open · 9 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. 2024-09-22PRUpdate README.mdopen1 💬#4
    Loading...
  2. 2023-12-14Some interactions still harmful and unsafe 😕closed4 💬#3
    Loading...
  3. 2023-12-14Why you only kept ~ 43k entries from the original ~161k?closed2 💬#2
    Loading...
  4. 2023-10-05Notifications from Datasets Serverclosed2 💬#1
    Loading...

Related datasets same stage · misc

Read further

Metadata

License
apache-2.0

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("Unified-Language-Model-Alignment/Anthropic_HH_Golden")
Raw snapshot (Python)
from huggingface_hub import snapshot_download
snapshot_download(repo_id="Unified-Language-Model-Alignment/Anthropic_HH_Golden", repo_type="dataset")
git clone (requires git-lfs)
git clone https://huggingface.co/datasets/Unified-Language-Model-Alignment/Anthropic_HH_Golden
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