Skywork/Skywork-Reward-Preference-80K-v0.2(複製)
データの内容
報酬モデルの学習用に、公開データから集めた約 8 万組の選好ペアのデータ。1 行が 1 組で、chosen と rejected に、role と content を持つ会話の列が入り、出典を source に記している。元は HelpSteer2、OffsetBias、WildGuard、Magpie の DPO 系データで、v0.2 は RewardBench の評価プロンプトと重なる組を除いた版であり、RewardBench で評価する場合はこちらを使うよう、カードは推奨している。
データの概要
| 項目 | 値 |
|---|---|
| 行数 | 77,016(1 構成・1 分割の合計) |
| 列数 | 3 |
| 容量 | 209.18 MB(ファイル 3 本) |
| ファイルの形式 | parquet 1 |
| 公開 | public |
構成と分割
| 構成(config) | 分割(split)ごとの行数 | 列数 |
|---|---|---|
default |
train 77,016 |
3 |
列(構成 default・分割 train)
| 列 | 型 | 先頭の行の値 |
|---|---|---|
chosen |
list<struct{content: string, role: string}> |
[2 件] |
rejected |
list<struct{content: string, role: string}> |
[2 件] |
source |
string |
magpie_ultra |
行数と列は HF のデータセットビューアの集計(元のデータセットの現在の版で数えたもの)。全データセットの一覧は HYUKI5/dataset-catalog にある。
複製について
Skywork/Skywork-Reward-Preference-80K-v0.2 をリビジョン 9757870d81894c90216e92536bad48f41475d5d0 の時点でそのまま複製したもの。中身は変えていない。判断モデル Laya(convaiinnovations/laya)の微調整に使う候補として、調査メモ(Laya 学習用データセット調査)に載せたデータを集めている。
出典
- 元のデータセット: https://huggingface.co/datasets/Skywork/Skywork-Reward-Preference-80K-v0.2
- 複製したリビジョン:
9757870d81894c90216e92536bad48f41475d5d0(2024-10-25 01:58:25+00:00) - 元のライセンス表記:
other
論文
アノテーションの方法
元のカードにアノテーションの節が無かった。下の「調査メモの記述」と「元のカード」を参照。
微調整に使うときの注意
- 調査メモの台帳での区分: D(記載なし・other・unknown・資料間の食い違い)。区分は記載の文言で機械的に付けたもので、法的な判定ではない。学習に入れる前に元のカードとライセンスの原文で確かめる。
- Laya の入力は 2,048 token まで(ModernBERT-large / mmBERT)。長い本文は先頭から黙って切られるので、切れる行は事前に除くか、要約・切り出しをしてから入れる。
- 分割は記事・文書単位で行い、同じ本文から作った別の問いを学習側と較正側に分けない。温度と閾値は学習に使っていない分割で別々に当てる。
調査メモの記述
| メモ | 節 | ライセンス(記載) | 確認 | 注記 |
|---|---|---|---|---|
safety_judge_scoring.md |
2. LLM-as-judge / 報酬モデル / 品質スコア系 (L116) | なし | 確認済 | 原文注記: - Skywork/Skywork-Reward-Preference-80K-v0.2 (arXiv 2410.18451) — license タグなし、77,016 行(chosen, rejected, sour |
元のカード(日本語訳)
以下は元のデータセットのカードの本文を日本語に訳したもの(機械翻訳)。訳に疑問があるときは、末尾の原文を確かめる。
Skywork Reward Preference 80K
重要:
本データセットは、Skywork-Reward-Preference-80K-v0.1 から評価データの混入(汚染)を除去した版である。magpie-ultra-v0.1 のサブセットから、RewardBench の評価プロンプトと n-gram の重なりが大きい 4,957 組のペアを除いた。除いたペアの集合はこちらで確認できる。詳細はこの GitHub gist を参照。タスクが RewardBench での評価を含む場合は、本データセットの v0.1 ではなく v0.2 を使うことを強く推奨する。
報酬モデルの新しいバージョンを近日中に公開する予定である。
Skywork Reward Preference 80K は、公開されているデータから集めた 8 万組の選好ペアのサブセットである。このサブセットは、Skywork-Reward-Gemma-2-27B-v0.2 と Skywork-Reward-Llama-3.1-8B-v0.2 の学習に使われている。
データの構成
Skywork Reward Data Collection を慎重にキュレーションし、(1) 高品質な選好ペアを含めること、(2) 特定の能力と知識の分野を対象とすることを行った。キュレーションした学習データは約 8 万サンプルで、次を含む複数の公開データソースからサブサンプリングされている:
- HelpSteer2
- OffsetBias
- WildGuard (adversarial)
- Magpie DPO シリーズ: Ultra, Pro (Llama-3.1), Pro, Air。
免責事項: 上に挙げた元のデータセットには、Skywork Reward Data Collection を作るためのサブサンプリング以外の変更を加えていない。
データセットのキュレーションでは、全体の性能を損なわずに性能向上と分野間のバランスを両立させるため、いくつかの工夫を採用した:
- 結合した Magpie データセットの中から、数学、コード、その他のカテゴリごとに、データセットに付属する ArmoRM の平均スコアに基づいて上位のサンプルを独立に選んだ。Magpie-Ultra と Magpie-Pro-Llama-3.1 のサンプルを優先するため、Magpie-Air サブセットと Magpie-Pro サブセットの ArmoRM 平均スコアからそれぞれ 0.1 と 0.05 を引いた。
- WildGuard のすべての選好ペアを含める代わりに、まず他の 3 つのデータソースで報酬モデル(RM)を学習した。次に、(1) この RM を使って WildGuard の全サンプルの chosen 応答と rejected 応答を採点し、(2) chosen 応答の RM スコアが rejected 応答の RM スコアより高いサンプルだけを選んだ。この方法では、Chat、Char hard、Reasoning の元の性能をほぼ保ちつつ、Safety が向上することが確認された。両モデルとも、WildGuard のサンプルの採点には 27B モデルを使った。
技術報告
Skywork-Reward: Bag of Tricks for Reward Modeling in LLMs
連絡先
ご質問があれば、[email protected] または [email protected] まで遠慮なく連絡すること。
引用
本研究が役立つと感じた場合は、次の BibTeX を使って引用すること:
@article{liu2024skywork,
title={Skywork-Reward: Bag of Tricks for Reward Modeling in LLMs},
author={Liu, Chris Yuhao and Zeng, Liang and Liu, Jiacai and Yan, Rui and He, Jujie and Wang, Chaojie and Yan, Shuicheng and Liu, Yang and Zhou, Yahui},
journal={arXiv preprint arXiv:2410.18451},
year={2024}
}
原文(英語)
Skywork Reward Preference 80K
IMPORTANT:
This dataset is the decontaminated version of Skywork-Reward-Preference-80K-v0.1. We removed 4,957 pairs from the magpie-ultra-v0.1 subset that have a significant n-gram overlap with the evaluation prompts in RewardBench. You can find the set of removed pairs here. For more information, see this GitHub gist.If your task involves evaluation on RewardBench, we strongly encourage you to use v0.2 instead of v0.1 of the dataset.
We will soon release our new version of the reward models!
Skywork Reward Preference 80K is a subset of 80K preference pairs, sourced from publicly available data. This subset is used to train Skywork-Reward-Gemma-2-27B-v0.2 and Skywork-Reward-Llama-3.1-8B-v0.2.
Data Mixture
We carefully curate the Skywork Reward Data Collection (1) to include high-quality preference pairs and (2) to target specific capability and knowledge domains. The curated training dataset consists of approximately 80K samples, subsampled from multiple publicly available data sources, including
- HelpSteer2
- OffsetBias
- WildGuard (adversarial)
- Magpie DPO series: Ultra, Pro (Llama-3.1), Pro, Air.
Disclaimer: We made no modifications to the original datasets listed above, other than subsampling the datasets to create the Skywork Reward Data Collection.
During dataset curation, we adopt several tricks to achieve both performance improvement and a balance between each domain, without compromising the overall performance:
- We select top samples from math, code, and other categories in the combined Magpie dataset independently, based on the average ArmoRM score provided with the dataset. We subtract the ArmoRM average scores in the Magpie-Air subset and the Magpie-Pro subset by 0.1 and 0.05, respectively, to prioritize Magpie-Ultra and Magpie-Pro-Llama-3.1 samples.
- Instead of including all preference pairs in WildGuard, we first train a reward model (RM) on three other data sources. We then (1) use this RM to score the chosen and rejected responses for all samples in WildGuard and (2) select only samples where the chosen response's RM score is greater than the rejected response's RM score. We observe that this approach largely preserves the original performance of Chat, Char hard, and Reasoning while improving Safety. For both models, we use the 27B model to score the WildGuard samples.
Technical Report
Skywork-Reward: Bag of Tricks for Reward Modeling in LLMs
Contact
If you have any questions, please feel free to reach us at [email protected] or [email protected].
Citation
If you find our work helpful, please feel free to cite us using the following BibTeX entry:
@article{liu2024skywork,
title={Skywork-Reward: Bag of Tricks for Reward Modeling in LLMs},
author={Liu, Chris Yuhao and Zeng, Liang and Liu, Jiacai and Yan, Rui and He, Jujie and Wang, Chaojie and Yan, Shuicheng and Liu, Yang and Zhou, Yahui},
journal={arXiv preprint arXiv:2410.18451},
year={2024}
}