Magpie-Align/Magpie-Qwen2-Pro-1M-v0.1

Dataset

14

stars

7

commits

1

linked in READMEs

Jul 3, 2024

updated

Browse cluster: LLM Training Datasets & Synthetic Data

README

Magpie

Project Web: https://magpie-align.github.io/

Arxiv Technical Report: https://arxiv.org/abs/2406.08464

Codes: https://github.com/magpie-align/magpie

Abstract

Click Here High-quality instruction data is critical for aligning large language models (LLMs). Although some models, such as Llama-3-Instruct, have open weights, their alignment data remain private, which hinders the democratization of AI. High human labor costs and a limited, predefined scope for prompting prevent existing open-source data creation methods from scaling effectively, potentially limiting the diversity and quality of public alignment datasets. Is it possible to synthesize high-quality instruction data at scale by extracting it directly from an aligned LLM? We present a self-synthesis method for generating large-scale alignment data named Magpie. Our key observation is that aligned LLMs like Llama-3-Instruct can generate a user query when we input only the left-side templates up to the position reserved for user messages, thanks to their auto-regressive nature. We use this method to prompt Llama-3-Instruct and generate 4 million instructions along with their corresponding responses. We perform a comprehensive analysis of the extracted data and select 300K high-quality instances. To compare Magpie data with other public instruction datasets, we fine-tune Llama-3-8B-Base with each dataset and evaluate the performance of the fine-tuned models. Our results indicate that in some tasks, models fine-tuned with Magpie perform comparably to the official Llama-3-8B-Instruct, despite the latter being enhanced with 10 million data points through supervised fine-tuning (SFT) and subsequent feedback learning. We also show that using Magpie solely for SFT can surpass the performance of previous public datasets utilized for both SFT and preference optimization, such as direct preference optimization with UltraFeedback. This advantage is evident on alignment benchmarks such as AlpacaEval, ArenaHard, and WildBench.

Dataset Details

This dataset is generated by Qwen/Qwen2-72B-Instruct using Magpie. Please refer to our paper and codebase for implementation details.

Available Labels

  • Input Length: The total number of characters in the instructions.
  • Output Length: The total number of characters in the responses.
  • Task Category: The specific category of the instructions.
  • Input Quality: The clarity, specificity, and coherence of the instructions, rated as 'very poor', 'poor', 'average', 'good', and 'excellent'.
  • Input Difficulty: The level of knowledge required to address the task described in the instruction, rated as 'very easy', 'easy', 'medium', 'hard', or 'very hard'.
  • Minimum Neighbor Distance: The embedding distance to the nearest neighbor within the dataset. It can be used for filtering out repetitive or similar instances.
  • Safety: Safety tags marked by meta-llama/Meta-Llama-Guard-2-8B
  • Reward: The output of the reward model given the specific instruction-response pair.
  • Language: The language of the instruction.

Dataset Navigation 🧭

Model NameDatasetTypeDescription
Qwen2 72B InstructMagpie-Qwen2-Pro-1MSFT1M Raw conversations built with Qwen2 72B Instruct.
Qwen2 72B InstructMagpie-Qwen2-Pro-300K-FilteredSFTApply a filter and select 300K high quality conversations.
Qwen2 72B InstructMagpie-Qwen2-Pro-200K-ChineseSFTApply a filter and select 200K high quality Chinese conversations.
Qwen2 72B InstructMagpie-Qwen2-Pro-200K-EnglishSFTApply a filter and select 200K high quality English conversations.

Contributors

ZX
Zhangchen Xu

7 commits

Magpie-Align/Magpie-Qwen2-Pro-1M-v0.1

Dataset

14

stars

7

commits

1

linked in READMEs

Jul 3, 2024

updated

Browse cluster: LLM Training Datasets & Synthetic Data

README

Magpie

Project Web: https://magpie-align.github.io/

Arxiv Technical Report: https://arxiv.org/abs/2406.08464

Codes: https://github.com/magpie-align/magpie

Abstract

Click Here High-quality instruction data is critical for aligning large language models (LLMs). Although some models, such as Llama-3-Instruct, have open weights, their alignment data remain private, which hinders the democratization of AI. High human labor costs and a limited, predefined scope for prompting prevent existing open-source data creation methods from scaling effectively, potentially limiting the diversity and quality of public alignment datasets. Is it possible to synthesize high-quality instruction data at scale by extracting it directly from an aligned LLM? We present a self-synthesis method for generating large-scale alignment data named Magpie. Our key observation is that aligned LLMs like Llama-3-Instruct can generate a user query when we input only the left-side templates up to the position reserved for user messages, thanks to their auto-regressive nature. We use this method to prompt Llama-3-Instruct and generate 4 million instructions along with their corresponding responses. We perform a comprehensive analysis of the extracted data and select 300K high-quality instances. To compare Magpie data with other public instruction datasets, we fine-tune Llama-3-8B-Base with each dataset and evaluate the performance of the fine-tuned models. Our results indicate that in some tasks, models fine-tuned with Magpie perform comparably to the official Llama-3-8B-Instruct, despite the latter being enhanced with 10 million data points through supervised fine-tuning (SFT) and subsequent feedback learning. We also show that using Magpie solely for SFT can surpass the performance of previous public datasets utilized for both SFT and preference optimization, such as direct preference optimization with UltraFeedback. This advantage is evident on alignment benchmarks such as AlpacaEval, ArenaHard, and WildBench.

Dataset Details

This dataset is generated by Qwen/Qwen2-72B-Instruct using Magpie. Please refer to our paper and codebase for implementation details.

Available Labels

  • Input Length: The total number of characters in the instructions.
  • Output Length: The total number of characters in the responses.
  • Task Category: The specific category of the instructions.
  • Input Quality: The clarity, specificity, and coherence of the instructions, rated as 'very poor', 'poor', 'average', 'good', and 'excellent'.
  • Input Difficulty: The level of knowledge required to address the task described in the instruction, rated as 'very easy', 'easy', 'medium', 'hard', or 'very hard'.
  • Minimum Neighbor Distance: The embedding distance to the nearest neighbor within the dataset. It can be used for filtering out repetitive or similar instances.
  • Safety: Safety tags marked by meta-llama/Meta-Llama-Guard-2-8B
  • Reward: The output of the reward model given the specific instruction-response pair.
  • Language: The language of the instruction.

Dataset Navigation 🧭

Model NameDatasetTypeDescription
Qwen2 72B InstructMagpie-Qwen2-Pro-1MSFT1M Raw conversations built with Qwen2 72B Instruct.
Qwen2 72B InstructMagpie-Qwen2-Pro-300K-FilteredSFTApply a filter and select 300K high quality conversations.
Qwen2 72B InstructMagpie-Qwen2-Pro-200K-ChineseSFTApply a filter and select 200K high quality Chinese conversations.
Qwen2 72B InstructMagpie-Qwen2-Pro-200K-EnglishSFTApply a filter and select 200K high quality English conversations.

Contributors

ZX
Zhangchen Xu

7 commits