atlas

Research map / Large language models / Alignment and preferences

Magpie: Alignment Data Synthesis from Scratch by Prompting Aligned LLMs with Nothing

ICLR 2025 · Large language models › Alignment and preferences · approach: Steering and correcting LLM behavior · 6 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Magpie synthesizes large-scale instruction-response alignment data by feeding only the pre-query chat template to aligned LLMs (e.g., Llama-3-Instruct), letting them self-generate user queries and then responses, without seeds or prompt engineering.

Problem

Open alignment datasets are scarce because human annotation is costly and prompt-based synthetic generation from seed questions lacks scalability and diversity; the paper asks whether high-quality instruction data can be extracted directly from aligned LLMs.

Approach

Input only the pre-query template of an aligned LLM so its auto-regressive generation produces a user instruction; then feed that instruction back with the assistant template to generate the response. Scales to millions of pairs with no seed questions, and extends to multi-turn, DPO (RM-ranked samples), domain-specific, and multilingual data via system prompts.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
SFT on Magpie data (self-synthesized, no seed questions) instead of public baselinesLlama-3-8B base · AlpacaEval 2 and Arena-HardLC and WRHelped
Filtering the Magpie-Pro 300K data (quality, difficulty, reward filters, longest responses) (ablation)Magpie-Pro SFT · AlpacaEval 2 vs GPT-4-TurboLC (%): 21.65 -> 25.08 LCHelped
Filtering the Magpie-Air 300K data (ablation)Magpie-Air SFT · AlpacaEval 2 vs GPT-4-TurboLC (%): 21.99 -> 22.66 LCHelped
Adding Magpie DPO data after SFT (SFT+DPO)Magpie-Pro SFT model · AlpacaEval 2 vs GPT-4-TurboLC (%): 25.08 -> 50.10 LCHelped
Magpie-Pro-DPO model (SFT+DPO) versus official Llama-3-8B-InstructLlama-3-8B · Arena-HardWR (%): 35.7 vs 20.6Helped
Adding 150K math/code/reasoning booster data to Pro-300K-Filtered (ablation)Magpie-Pro SFT · GSM8K (5-shot)accuracy: 47.92 -> 63.08Helped
Adding reasoning booster data to Pro-300K-Filtered (ablation)Magpie-Pro SFT · Open LLM average (7 benchmarks)Average: 61.58 -> 64.21Helped
Using Magpie-Pro-300K-Filtered SFT on Qwen2-1.5B base vs official instruct modelQwen2-1.5B · AlpacaEval 2 vs GPT-4-TurboLC (%): 3.48 vs 3.91 (LC); WR 5.32 vs 3.00Helped
Magpie-Pro-300K-Filtered SFT on Qwen1.5-7B baseQwen1.5-7B · AlpacaEval 2 vs GPT-4-TurboLC (%): 15.10 vs 14.75 (LC); WR 18.51 vs 11.77No clear effect
Magpie-generated data vs Self-Instruct using same Llama-3-8B-Instruct generator (100K) (ablation)Llama-3-8B base SFT · AlpacaEval 2 vs Llama-3-8B-InstructLC (%): 17.86 -> 46.82 LCHelped
Multi-turn extension (MT) vs single-turn Magpie-Air (ablation)Magpie-Air SFT · Arena-HardWR (%): 14.9 -> 15.5Helped
Multi-turn extension (MT) vs single-turn Magpie-Pro (ablation)Magpie-Pro SFT · Arena-HardWR (%): 18.9 -> 20.4Helped

Surprising findings

Limitations

Experimental setup

Datasets: ShareGPT WildChat Evol-Instruct UltraChat OpenHermes 1 OpenHermes 2.5 Tulu V2 Mix GenQA UltraFeedback

Benchmarks: AlpacaEval 2 Arena-Hard WildBench MMLU ARC HellaSwag TruthfulQA WinoGrande GSM8K MMLU-Redux

Metrics: length-controlled win rate win rate accuracy

Baselines: ShareGPT WildChat Evol-Instruct UltraChat OpenHermes 2.5 Tulu V2 Mix GenQA UltraFeedback (DPO) Self-Instruct (Llama-3)

Builds on: DPO Self-Instruct URIAL

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy