Skip to content

Latest commit

 

History

History
50 lines (37 loc) · 1.93 KB

README.md

File metadata and controls

50 lines (37 loc) · 1.93 KB

Data

All data for this project lives on the HuggingFace Hub: McGill-NLP/value-drifts. It is exposed through two configs, both with a single train split.

Config Rows Columns Used by
vprism 550 rephrased_question, cluster_name, topic_check evaluation / batch inference
synthetic_preference_data 13,443 prompt, chosen, rejected DPO / SimPO / reward-model training
  • vprism — value-probing evaluation prompts (a rephrased subset of PRISM), organised across value categories (cluster_name). Only rows with topic_check == "Yes" are used at evaluation time.
  • synthetic_preference_data — synthetic preference pairs with controlled value differences (built from UltraFeedback and HH-RLHF prompts).

Loading

from datasets import load_dataset

vprism = load_dataset("McGill-NLP/value-drifts", "vprism", split="train")
prefs  = load_dataset("McGill-NLP/value-drifts", "synthetic_preference_data", split="train")

Or use the helper in this folder:

from data.load_data import load_vprism, load_preference_data

vprism = load_vprism()
prefs  = load_preference_data()                 # value-opposing polarity
prefs  = load_preference_data(swap_polarity=True)  # swapped

A note on preference polarity

The training scripts (training/dpo, training/simpo, training/ppo) swap the chosen and rejected columns before training:

train_dataset = train_dataset.rename_column("chosen", "rejected_new")
train_dataset = train_dataset.rename_column("rejected", "chosen")
train_dataset = train_dataset.rename_column("rejected_new", "rejected")

This trains the model on one value direction (value-opposing). Remove the swap to train on the other (value-supporting). This is central to the paper's analysis of how the optimization direction shapes the resulting model values.