misc 0 0 0

HuggingFaceH4/hhh_alignment

published by @HuggingFaceH4

Alignment dataset tracked in the /datasets sub-catalog.

Lifetime downloads
35.3K
Last 30 days
887
Likes
27
Size
266 KB
Created on HF
2023-03-01
Age
3 years ago

Description

This task evaluates language models on alignment, broken down into categories of helpfulness, honesty/accuracy, harmlessness, and other. The evaluations imagine a conversation between a person and a language model assistant. The goal with these evaluations is that on careful reflection, the vast majority of people would agree that the chosen response is better (more helpful, honest, and harmless) than the alternative offered for comparison. The task is formatted in terms of binary choices, though many of these have been broken down from a ranked ordering of three or four possible responses.

Tags

task_categories:multiple-choicelanguage:enlicense:apache-2.0size_categories:n<1Kmodality:textlibrary:datasetslibrary:mlcroissantarxiv:2112.00861region:ushuman-feedback

README current version from Hugging Face


license: apache-2.0
task_categories:

  • multiple-choice
    language:
  • en
    tags:
  • human-feedback
    pretty_name: HHH Alignment
    dataset_info:
  • config_name: harmless
    features:
    • name: input
      dtype: string
    • name: targets
      struct:
      • name: choices
        sequence: string
      • name: labels
        sequence: int32
        splits:
    • name: test
      num_bytes: 37637
      num_examples: 58
      download_size: 238798
      dataset_size: 37637
  • config_name: helpful
    features:
    • name: input
      dtype: string
    • name: targets
      struct:
      • name: choices
        sequence: string
      • name: labels
        sequence: int32
        splits:
    • name: test
      num_bytes: 68943
      num_examples: 59
      download_size: 238798
      dataset_size: 68943
  • config_name: honest
    features:
    • name: input
      dtype: string
    • name: targets
      struct:
      • name: choices
        sequence: string
      • name: labels
        sequence: int32
        splits:
    • name: test
      num_bytes: 77758
      num_examples: 61
      download_size: 238798
      dataset_size: 77758
  • config_name: other
    features:
    • name: input
      dtype: string
    • name: targets
      struct:
      • name: choices
        sequence: string
      • name: labels
        sequence: int32
        splits:
    • name: test
      num_bytes: 22163
      num_examples: 43
      download_size: 238798
      dataset_size: 22163

Helpful, Honest, & Harmless - a Pragmatic Alignment Evaluation

This task evaluates language models on alignment, pragmatically broken down into the categories of helpfulness, honesty/accuracy, harmlessness, and other.

Authors: Amanda Askell, Yuntao Bai, Anna Chen, Deep Ganguli, Danny Hernandez, Jared Kaplan ([email protected]), Jackson Kernion, Ben Mann, Catherine Olsson, Tim Telleen-Lawton

The three categories employed in this task are clearly somewhat subjective and mutually contradictory -- for example, an agent asked to help with a harmful task (e.g., building a bomb) must compromise between helpfulness and harmlessness.

The evaluation format imagines a conversation between a person and a language-model assistant (we do not include explicit dialogue indicators here, but names such as "Human:" and "Assistant:" could reasonably be prepended to the query and responses). The task is formatted in terms of binary comparisons, though many of these have been broken down from a ranked ordering of three or four possible responses to a given query or context. All examples were written by the contributors.

The goal with these evaluations is that on careful reflection, the vast majority of people would agree that the chosen response is better (more helpful, honest, and harmless) than the alternative offered for comparison. In practice, the ground truth answers were determined by the creators. Every evaluation was discussed and approved by at least one co-author other than the individual who wrote it, with the explicit goal of "on careful reflection, the vast majority of people would agree" as our internal standard for approval.

There are 61 honesty, 59 helpfulness, 58 harm, and 43 other categorized evaluations. The "other" category includes examples of unambiguously desirable/undesirable behavior from a text-based assistant that were not written with the goal of specifically targeting helpfulness, honesty, or harmlessness. These include but are not limited to: flirtatious behavior, rude and rambling responses, and suspicious omissions. In the future, we may create a new version of this task with many more evaluations sourced from professional writers.

Metrics

For each example, the model's predicted probability is computed for each target. The example score is then the target score (as specified in the target_scores dict) of the target that received the highest probability. Scores are averaged across examples. Conventional multiple-choice accuracy can be achieved by assigning the correct target a score of 1, and all incorrect targets a score of 0.

Citation information

@article{DBLP:journals/corr/abs-2112-00861,
  author    = {Amanda Askell and
               Yuntao Bai and
               Anna Chen and
               Dawn Drain and
               Deep Ganguli and
               Tom Henighan and
               Andy Jones and
               Nicholas Joseph and
               Benjamin Mann and
               Nova DasSarma and
               Nelson Elhage and
               Zac Hatfield{-}Dodds and
               Danny Hernandez and
               Jackson Kernion and
               Kamal Ndousse and
               Catherine Olsson and
               Dario Amodei and
               Tom B. Brown and
               Jack Clark and
               Sam McCandlish and
               Chris Olah and
               Jared Kaplan},
  title     = {A General Language Assistant as a Laboratory for Alignment},
  journal   = {CoRR},
  volume    = {abs/2112.00861},
  year      = {2021},
  url       = {https://arxiv.org/abs/2112.00861},
  eprinttype = {arXiv},
  eprint    = {2112.00861},
  timestamp = {Tue, 07 Dec 2021 12:15:54 +0100},
  biburl    = {https://dblp.org/rec/journals/corr/abs-2112-00861.bib},
  bibsource = {dblp computer science bibliography, https://dblp.org}
}

Contributions

This dataset and the dataset card was taken from BIG-Bench, with the fields formatted so that the dataset can be loaded without requiring bigbench to be installed.

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-03-02Add meta2a19e6c5.3 KB
    Loading...
  2. 2023-03-02Update README.md5ec35944.1 KB
    Loading...
  3. 2023-03-02Add dataset cardc0030f74.1 KB
    Loading...
  4. 2023-03-02Add files59bd71628 B
    Loading...
  5. 2023-03-01initial commitd339f3b28 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.

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