Magpie: Alignment Data Synthesis from Scratch by Prompting Aligned LLMs with Nothing
Paper · 2024 · Zhangchen Xu, Fengqing Jiang, Luyao Niu et al.
Summary
An assistant can be available for researchers to download even when the conversations that taught it to follow instructions are private. This leaves researchers with the weights, the learned numerical parameters, but without the examples they would need to study how the assistant acquired its behavior or train another assistant in the same way. Collecting conversations takes human effort. Generating them with an existing assistant is easier to automate, but a collection built by expanding a small set of sample requests can inherit their narrow range. Magpie asks whether an aligned language model can supply the requests as well as the replies.
The authors start with the chat template, the format that identifies who is speaking. They supply the opening marker for a user message and stop just where the user's words would begin. An autoregressive system, which writes by predicting each next token from the text so far, continues in the user's place. Magpie saves that continuation as a request, inserts it into the normal chat format, and asks for an assistant reply. Repeating the procedure with Llama-3-8B-Instruct and Llama-3-70B-Instruct yielded 4 million request–response pairs. The basic procedure required neither seed questions nor human conversation writers and ran without access to the GPT-4 API. The authors also developed ways to filter the output, extend conversations across turns, rank alternative replies for preference training, and generate material in particular domains or languages.
The main evaluation started from Llama-3-8B-Base and changed the dataset used for supervised fine-tuning, in which the learner practices producing the supplied answers. The authors report that Magpie-trained versions surpassed those trained on the public instruction datasets they tested and also beat a comparison that added direct preference optimization using UltraFeedback. On AlpacaEval 2, a supervised Magpie version achieved a length-controlled win rate above 50% when compared directly with the official Llama-3-8B-Instruct. Adding preference training with Magpie data improved results further. The authors report a win over GPT-4-Turbo (1106) on AlpacaEval 2 for a preference-tuned version. Their comparison on WildBench also favored Magpie-Pro across task categories.
The strongest results concern instruction following. The general-purpose data was less effective on some math and reasoning tests. Adding a targeted collection improved those results, and the authors still identify a gap on reasoning. The method also worked with other chat systems and produced requests in several languages. The paper leaves open why good requests can be generated even when training omits the loss on user text. The authors suggest that aligned systems retain information about the distribution of requests they encounter.
Deep dive: Magpie: Alignment Data Synthesis from Scratch by Prompting Aligned LLMs with Nothing
Magpie uses the opening of a chat template to generate user requests and answers, then tests how well those synthetic examples train an assistant. · about 33 minutes to read
The problem and its context
Why access to weights leaves a research gap
A user who asks an assistant to revise a paragraph, explain a problem or plan an activity expects it to recognize a task and respond in a suitable form. In the paper's account, instruction tuning develops this behavior by training a pretrained system on examples that connect requests to desired answers. The examples may be brief exchanges or longer dialogues in which a later message depends on what was said earlier. The aim includes handling unfamiliar tasks. A dataset's value therefore depends on what kinds of requests and responses it exposes the learner to, as well as how many conversations it contains. The paper situates this stage in earlier research on instruction tuning and generalization, including Finetuned Language Models Are Zero-Shot Learners.
The Llama-3 family illustrates an uneven kind of access. Researchers can obtain open weights for an aligned assistant and study how it behaves. The instruction data behind it may still be unavailable. A team trying to reproduce a training result needs examples it can inspect and use in its own runs. A team trying to understand why a training procedure worked also needs some way to vary the data and measure the consequences. Access to a finished assistant helps with the first step of observing behavior. It leaves the process of constructing the training material unresolved. The paper uses two sizes of the aligned Llama-3 system as sources for new data. The Llama 3 Herd of Models
There are two kinds of supervision in play. Instruction tuning supplies a request and an example answer, giving the learner text to imitate. Preference tuning supplies information about which of several responses should be favored. The paper mentions reinforcement learning from human feedback and direct preference optimization as ways to use that additional supervision. A dataset suitable for the first stage can contain a single answer to each request. The second stage needs comparative information about responses to the same request. A data-generation method that can deliver both types of example can support more than one stage of alignment. Direct Preference Optimization
The authors approach dataset construction as a problem in its own right. An instruction must give the learner an intelligible task. Its answer must show behavior worth imitating. Across examples, the collection must also cover sufficiently different situations to make the training worthwhile. A vague question followed by fluent prose may teach little about how to meet a precise constraint. A clear request with an unsuitable reply provides an equally poor demonstration for a different reason. Generating and assessing the two sides separately makes these distinctions visible in Magpie's design.
How earlier projects obtained instructions
One route was to collect human contributions. People could write or curate examples, or researchers could gather conversations between users and assistants. Conversation logs have the advantage of containing requests people made for their own reasons, including exchanges that developed over several turns. As the paper notes, human contributions take effort to collect and curate, and logs can contain toxic material. Increasing the size of a dataset through this route means handling more material gathered from people, with the associated labor of bringing it into usable form.
A second route was to use an existing assistant to generate examples. In the family of methods the authors describe, generation commonly starts with a small collection of human-written instructions. The assistant sees these demonstrations and is prompted to produce more. This is a use of few-shot learning, where a prompt supplies a small number of examples to steer behavior. The examples make the expected output easier to specify. They can also establish a recognizable pattern that the generator follows too closely. A large collection can consequently contain many requests expressed in much the same way as the original demonstrations. The paper takes Self-Instruct as a concrete comparison for this approach.
The earlier synthetic work covered several ways to broaden or reshape that material. The paper describes methods that summarize world knowledge and then use it to guide generation across topics. It also places work on producing more complex instructions in this area. Such approaches make what the generator should explore an explicit part of the procedure. The cost the authors emphasize is the dependence on selecting starting material and designing prompts whose scope is broad enough for the intended use. WizardLM
Other projects transformed data that already existed for natural language processing tasks into examples suitable for instruction tuning. This route can turn a collection of established tasks into training material with a common interface. Its coverage still depends on the source tasks. The authors raise the possibility that a narrow collection of such tasks leaves out kinds of interaction that matter to everyday users. Mixtures such as OpenHermes and Tulu V2 Mix address coverage by combining public sources. The paper also describes specialist work on collecting reasoning and math instructions, which can complement general-purpose data. Multitask Prompted Training Enables Zero-Shot Task Generalization
Why the role marker changes the generation task
The usual synthetic instruction prompt makes generating examples an assistant task. The assistant is asked to write requests that meet a description or resemble demonstrations. Magpie instead exposes the point in the conversation format at which a request normally starts. The continuation is written in the user role, inside the form the assistant has already encountered during alignment. What the generation procedure specifies is the identity of the next speaker. The subject, wording and constraints of the request are left open in the basic setup.
Keep this distinction in mind as you read what the paper says about extracting training data. The authors cite earlier work showing that language systems can reproduce training material, including information that was meant to remain private. Magpie uses the ability to continue a user turn to obtain examples for a new instruction corpus. The paper's experiments ask whether those examples exhibit useful variation and support subsequent training. Recovering and verifying individual entries from a private corpus would be a separate empirical task. The earlier literature gives a reason to distinguish fluent generation from evidence about where a particular string came from. Extracting Training Data from Large Language Models
The method, step by step
How an unfinished conversation becomes a training pair
A chat template converts messages into the sequence the generator reads. The visible words of a request are part of that sequence. Other elements tell the generator that the words belong to the user, that the user has finished, and that the assistant is about to speak. These markers are part of the format specified by the provider. In the paper's Llama-3-8B-Instruct example, the user header is <|start_header_id|>user<|end_header_id|>. After the request comes <|eot_id|><|start_header_id|>assistant<|end_header_id|>, which closes the user turn and opens the assistant turn. These are elements of the serialized conversation, a sequence of tokens that the generator can continue.
For an ordinary request, the paper represents that input as follows.
x = Tₚᵣₑ ⊕ q ⊕ Tₚₒₛₜ
The symbol x is the complete input sequence up to the beginning of the assistant reply. Tₚᵣₑ is the pre-query template, the material before the user's words. q is the user's request. Tₚₒₛₜ is the post-query template, which comes after the request and prepares the assistant's turn. The operator ⊕ joins sequences in the order shown, and = identifies the assembled input.
Magpie begins by passing only Tₚᵣₑ. The generator predicts successive tokens from that prefix and from the tokens it has already generated. Once it emits an end-of-sequence token, Magpie stops the instruction pass. It keeps the generated request as q. Repeating the call with the same opening template and sampling from the possible continuations yields a collection of requests. For example, among the outputs displayed in the paper are a question about why the color of coffee appeared to vary with depth and a planning request about preparing to meet a new financial client. The prefix did not have to specify coffee, client meetings or a format for either request.
The response pass uses the whole sequence in the formula. The generated request now occupies the same position that a human-written message would in ordinary use. The post-query template shifts the continuation into the assistant role. Magpie stores that reply with the request and the roles of the speakers. This is the basic unit of instruction data. Breaking generation at the end of the user turn lets the paper treat the request as a reusable object. It can be answered once for supervised learning, answered repeatedly for preference training, or supplied to a different assistant for a comparison.
How Magpie generates a single-turn training example
The steps in order.
The two passes can use different decoding rules, where decoding means choosing the next token from the generator's predictions. For the main Air and Pro datasets, the authors vary instruction-stage sampling settings to obtain different kinds of requests. For the reply stage they use greedy decoding, choosing the highest-probability token at each step. The paper motivates this as a way of favoring likely text from the aligned assistant. The resulting corpus combines variation in the tasks posed with a consistent rule for obtaining an answer to each task.
How the authors describe and select examples
After generation, the authors can measure attributes of an example before deciding whether to use it in training. Some are straightforward counts, such as the number of characters in the request or response. Others are judgments. An annotating assistant estimates the task category, the quality of the request and its difficulty. Quality concerns whether the request is clear, coherent and specific enough to act on. Difficulty concerns the knowledge needed to fulfill it. A clear request can ask for a simple fact, and a poorly specified request can ask for demanding work. Giving the two attributes separate labels allows a filter to treat them independently.
Repetition is measured through semantic similarity. An embedding represents each request as a vector, a list of numerical coordinates. In this representation the authors look for the closest other request using FAISS. The resulting minimum neighbor distance summarizes how close the most similar instruction is under that representation. Small distances flag material that may be redundant even when its wording differs. This supplies a selection criterion that character counts and task labels cannot express. The representation for this analysis comes from all-mpnet-base-v2. The Faiss library
For the response, the authors use a reward model, a scorer that assigns a numerical judgment to an answer. They record its score for the generated reply and also compare that score with the reward for a baseline answer to the same request. To obtain the baseline reply, they prompt the corresponding Llama-3 base system with URIAL. The comparison keeps the question fixed so that the reward difference refers to two possible answers to that question.
r∗ − r_base
Here r∗ is the reward assigned to the Magpie reply, and r_base is the reward the same scorer assigns to the baseline reply. The minus sign subtracts the baseline reward. A positive result means the scorer favors the Magpie answer on its numerical scale. The authors use FsfairX-LLaMA3-RM-v0.1 for this dataset analysis. An absolute reward can flag an answer the scorer views poorly, such as repetitive text. A reward difference asks whether the generated answer provides a better demonstration than the base system's answer under the chosen prompt and scorer.
The paper offers 6 ready-made filter configurations as well as the individual attributes for building other configurations. Output length is applied last in the supplied designs. At that stage the procedure retains a specified number of the longest replies that survive the preceding filters. This makes length a way of choosing among already eligible examples. It represents a decision about the training mixture, since a different policy can retain a different population of tasks and answers even when the output corpora have the same number of conversations.
How the procedure extends beyond the first exchange
To make a multi-turn conversation, Magpie first generates an opening request and reply. It preserves both as history, then appends the marker for a new user turn. The next request can build on the answer already in the sequence. Once the request ends, Magpie opens the assistant turn again and generates the next reply using the accumulated exchange. The authors found that the generator sometimes lost track of its role as the user in this setup, especially with Llama-3-8B-Instruct. They used a system prompt, an instruction supplied at the conversation level, to reinforce the roles when extending the conversation. The resulting collections are Magpie-Air-MT and Magpie-Pro-MT.
For preference data, the authors first select high-quality requests from several task categories in the raw corpus. They then sample multiple replies for each selected instruction. Sampling temperature controls how strongly choice favors the more probable tokens. Lower temperatures concentrate the sampling more strongly on those tokens. The preference procedure uses the following condition.
T < 1
Here T is the temperature used to sample the candidate replies. The less-than sign specifies that it is below 1. The number of sampled replies per request is denoted by k. For Magpie-Air-DPO and Magpie-Pro-DPO, the authors use 5 replies per request at a temperature of 0.8. A reward model ranks the replies by scoring them. The highest-scoring answer is the chosen one and the lowest-scoring answer is the rejected one. The examples thus express a preference for a response given a fixed request. The scorer in this stage is RLHFlow/ArmoRM-Llama3-8B-v0.1. It serves a different purpose from the scorer used to compare the ordinary Magpie replies with baseline replies.
The same user opening can be preceded by a system message that establishes a domain or a language. In one example the system message describes a Chinese-language assistant, and the generated user message asks about basic ideas in artificial intelligence and their historical development. The paper also describes system prompts for mathematics, coding and translation. The prompt steers which kinds of user continuation are likely while leaving the generator to formulate the specific task. This is an optional control added to the unconstrained procedure.
A separate way to steer the data is to change the generating assistant. The authors demonstrate DeepSeek-Coder-V2 with a programming request about reading domains from email addresses, and Qwen2-Math-7B-Instruct with a problem about how scaling a rectangle changes its dimensions and area. Qwen2-72B-Instruct supplies examples for multilingual generation. The paper includes a German request about a debate format and a Spanish request for a presentation interpreting customer satisfaction results. In those examples, the task itself is composed in the target language. Across the larger dataset family, the authors report using Llama-3, Llama-3.1, Qwen2, Gemma 2 and Phi-3. The generator's own template supplies the position for each role.
Experiments and results
The generated corpora and what they cost
The main collections, Magpie-Air and Magpie-Pro, come from Llama-3-8B-Instruct and Llama-3-70B-Instruct, respectively. The raw Air corpus has 3M instances and the raw Pro corpus has 1M. These are the large collections from which later experiments draw their training subsets. The authors also report that the broader Magpie family, spanning additional generators, contains over 11.4 million instructions with corresponding replies. That wider total describes the material produced for the family as a whole. The instruction-following comparisons use specifically selected subsets.
To generate outputs, the authors load the generators in bfloat16 and run vLLM on a server equipped with 512 GB of RAM and four NVIDIA A100-SXM4-80GB GPUs. GPU hours measure the amount of accelerator use. Wall-clock hours describe how the stages ran on that particular server. For Air, the request pass took 1.55 hours, while completing the replies took 50 hours. For Pro, requests took 3.5 hours and replies took 150 hours. In both collections, generating the answers occupied most of the reported runtime. Efficient Memory Management for Large Language Model Serving with PagedAttention
GPU time to generate the full Magpie-Air and Magpie-Pro corpora
Air used less accelerator time than Pro while producing the larger collection.
The numbers
| System or setting | GPU hours |
|---|---|
| Magpie-Air, full corpus (this paper) | 206 |
| Magpie-Pro, full corpus | 614 |
The authors estimate cloud generation costs of 0.12 US dollars per 1,000 Air instances and 1.1 US dollars per 1,000 Pro instances. The estimates are tied to the reported hardware and setup. They describe the production of the pairs, and downstream alignment is evaluated as a separate operation. Air and Pro also differ in generator size and corpus size, so the chart compares two actual production runs. The later training comparisons help explain why a practitioner might still find the more expensive corpus useful.
What the raw data contains
To explore the range of subjects in Pro, the authors draw 10,000 instructions at random from each of Magpie-Pro, Alpaca, Evol Instruct and UltraChat. They encode the requests with all-mpnet-base-v2. They then use t-SNE, a visualization method that maps those vectors into a two-dimensional space, so that the coverage of the samples can be inspected. The Pro sample extends across the areas occupied by the other samples in the plot. The authors take this as evidence that Pro covers a broad set of subjects and requests relative to those synthetic baselines.
A complementary analysis of Air uses the grammatical shape of the requests. It displays the 20 most common root verbs and the 5 leading direct noun objects shown for each verb. A root verb identifies the main action expressed in the instruction, while a direct object helps identify what the action concerns. This view asks whether the collection repeatedly requests similar operations on similar material. It measures something different from the embedding plot, which groups instruction texts using the numerical representation of the whole request.
The task-category labels indicate that over half of Pro's requests are for information. Creative writing, advice, planning and mathematics also appear among the prominent classes. Comparing the two corpora, the annotator finds generally similar distributions, with a greater share of creative writing in Pro. The authors see parallels between these categories and requests made by actual users. The dominance of information seeking is relevant to the training results. A sample that spans several topics can still devote much more of its training signal to some kinds of behavior than to others.
Llama-3-8B-Instruct also rates the clarity and difficulty of individual requests. Most instructions in each corpus receive a quality rating of average or higher. Pro receives better quality ratings overall. The difficulty distributions are broadly similar, with some harder prompts in Pro. The authors associate these differences with the capabilities of the larger generator. Later comparisons examine whether the picture changes when an assistant from a different family provides the annotations, and whether the benefits of Pro survive when the datasets are used for training.
The safety analysis applies Llama-Guard-2 to the requests and answers. The paper reports potentially harmful material in less than 1% of the data for both Air and Pro under this assessment. In its breakdown of flagged replies, the largest group is specialized advice, a category that includes financial, medical and legal advice and responses that characterize unsafe activities or objects as safe. This analysis concerns the content in the training corpus. The trained assistant's behavior is examined separately on TrustLLM.
What the training comparisons hold fixed
The principal experiment starts each public-data comparison from Llama-3-8B-Base. The authors take the first 300K raw examples from Air and the first 300K from Pro. They prepare separate filtered versions of both corpora, each with 300K conversations. These conditions allow the paper to compare both generating assistants and both selection strategies. When preference training is added, Magpie-Air-DPO and Magpie-Pro-DPO each supply 100K conversations with a chosen and a rejected reply.
The public datasets have different origins and sizes. In the human-conversation group, the paper uses 112K ShareGPT conversations and 652K WildChat conversations. The synthetic group includes Evol Instruct, GenQA and a sanitized UltraChat release containing 208K conversations. The mixture baselines are OpenHermes 1 with 243K conversations, OpenHermes 2.5 with 1M, and Tulu V2 Mix with 326K. Thus the common starting weights make the comparison informative about the training material available in each condition, with the original corpus sizes and compositions still part of those conditions.
The authors also train a preference baseline that receives UltraChat for supervised fine-tuning and UltraFeedback for direct preference optimization, or DPO. DPO uses a preferred and a dispreferred answer to adjust which replies the learner favors. The experiment therefore asks whether better demonstrations can improve performance even when a comparison system gets a separate stage of preference training. The comparison in which Magpie also supplies preference pairs then tests what happens when its instruction data is followed by its own preference data.
The authors report cosine learning-rate schedules for alignment. A learning rate determines the size of a parameter update. The schedule changes that rate over the course of training. For supervised fine-tuning, the reported initial rate is:
2 × 10⁻⁵
The coefficient 2 multiplies 10 raised to the exponent −5. This rate is used for supervised training beginning from the Llama-3, Qwen1.5 and Qwen2 base systems in the experiments. The training setup limits the sequence length to 8192 tokens and uses each system's official instruction template. The authors follow the Llama 2 training setup for the supervised schedule. Llama 2
For DPO, the rate reported with the cosine schedule is:
5 × 10⁻⁷
The coefficient 5 multiplies 10 raised to the exponent −7. This is the preference-stage learning rate. The paper identifies Axolotl as the software used for its supervised training experiments and Alignment Handbook as the software used for the preference stage.
How the benchmarks turn answers into scores
Evaluation benchmarks for instruction following often contain requests with several plausible answers. An explanation can be correct in more than one form, and a planning response may be judged by how well it satisfies the user's constraints. AlpacaEval 2 and Arena-Hard therefore use a GPT evaluator that compares an answer from the system under test with an answer from a reference system. The win rate, abbreviated WR, is the fraction of comparisons in which the evaluator favors the output being tested. That score describes a pairing on a particular benchmark. Its meaning depends partly on the system providing the reference answers.
AlpacaEval 2 contains 805 instructions selected to represent real user interactions. The authors use GPT-4-Turbo (1106) and Llama-3-8B-Instruct as reference systems in different comparisons. They also report the length-controlled win rate, abbreviated LC. LC accounts for the lengths of the answers so that differences in verbosity have less influence on the result. The raw and adjusted rates let the reader ask whether a reported advantage survives that control. The paper uses the same greedy evaluation rule across its AlpacaEval 2 experiments, with a repetition penalty of 1.2 to discourage repeated output. GPT-4 Technical Report
Arena-Hard contains 500 challenging requests. It builds on the MT-Bench approach to judging assistant behavior, and its default reference is GPT-4 (0314). The authors use greedy evaluation decoding for Arena-Hard and WildBench. WildBench consists of 1024 tasks selected from actual human–assistant conversation logs. The paper uses it to look across task categories and see whether Pro's advantage over the public baselines is concentrated in any one kind of request. Judging LLM-as-a-Judge with MT-Bench and Chatbot Arena
Instruction following improves with Magpie data
In the principal comparison with public datasets, the authors report that the Magpie-trained Llama-3 versions lead the supervised baselines on AlpacaEval 2 for both WR and LC. They describe the same overall advantage on Arena-Hard. Some Magpie configurations achieve this with supervised training alone while also surpassing the UltraChat comparison that received DPO on UltraFeedback. This establishes a result about the particular training recipes tested. Stronger results for the supervised condition make the choice of demonstrations consequential even when preference training is available for a comparison recipe.
On WildBench, the authors compare versions trained on Pro with versions trained on the baseline corpora. The breakdown favors Pro across the displayed categories. This comparison is useful alongside the AlpacaEval 2 aggregate because a corpus can look strong overall if the evaluation emphasizes the kinds of requests that already dominate that corpus. The reported categorical pattern shows that the gain in the WildBench comparison extends across different kinds of tasks represented there.
The other major comparison is with the official Llama-3-8B-Instruct. The authors report that the Magpie-supervised versions exceed 50% LC on AlpacaEval 2 when the official assistant is the reference. That is a direct preference result on this benchmark with a length adjustment. The official assistant also supplied data for Air, so it can play two different roles in the paper. As a generator it provides requests and replies, and as a reference it supplies responses to evaluation questions. A learner can win the latter comparison under the evaluated conditions by training on examples generated in the former role.
Once the authors add DPO with Magpie preference pairs, they report gains over the official Llama-3-8B-Instruct on AlpacaEval 2 and Arena-Hard. A preference-tuned configuration also surpasses GPT-4-Turbo (1106) on AlpacaEval 2. The size comparison attached to these alignment experiments is no more than 400K data instances for the Magpie procedure against more than 10M data samples for the official alignment process. Those figures give the scale of the respective training collections. The comparison with the official assistant also involves different training histories, so it is evidence that a much smaller synthetic corpus can produce a competitive result under these tests.
Other backbones and more specialized tests
The authors then train Qwen2-1.5B, Qwen1.5-4B and Qwen1.5-7B on Magpie-Pro-300K-Filtered. Their reported comparisons favor the Magpie-supervised versions over the respective official aligned versions, which received both supervised instruction tuning and preference tuning. This changes the receiving system while keeping the selected Pro corpus. It shows that the data is useful for the tested Qwen backbones as well as for the Llama-3 family used to generate Pro. Qwen Technical Report
A further experiment produces MagpieLM-4B-Chat and MagpieLM-8B-Chat. The authors align Llama-3.1-Minitron-4B-Width-Base and Llama-3.1-8B-Instruct using supervised training followed by DPO. For these runs they select 550K instructions for supervised fine-tuning and 200K for preference optimization from the wider Magpie family. They use Gemma-2-9b-it to generate corresponding replies. These are different training collections from Air and Pro in the main Llama-3-8B-Base comparison. The authors report that the resulting assistants outperform the similarly sized baselines in their MagpieLM comparison across AlpacaEval 2, Arena-Hard and WildBench.
The paper also evaluates abilities for which an overall preference judgment about a chat response gives limited information. It uses tasks on the Open LLM Leaderboard, including HellaSwag and WinoGrande, and evaluates MMLU-Redux in a zero-shot setting, where no worked demonstration is supplied in the prompt. Other tasks include MMLU, ARC Challenge, TruthfulQA and GSM8K. Air and Pro give broadly comparable results to the official instruction-tuned assistant and other baselines in this wider evaluation, with weaknesses on some tasks that call for reasoning.
To address this, the authors generate a supplementary set of 150K math, code and reasoning instructions. They combine it with Magpie-Pro-300K-Filtered to create Magpie-Pro-Mix-Filtered. The retrained version improves on the reasoning weakness and places among the top-3 checkpoints in the paper's downstream comparison. It comes slightly behind OpenHermes 2.5, whose training corpus contains 1M conversations, and the official Llama-3-8B-Instruct. This illustrates a different use of the generation procedure. After observing a gap in task coverage, the authors add examples of those kinds and evaluate the resulting mixture.
What the ablations show
Does the opening template matter when the generator is the same?
Comparisons with public corpora change several things at once. To make the test more direct, the authors run the official Self-Instruct procedure with Llama-3-8B-Instruct and generate a 100K dataset for supervised fine-tuning. They select the first 100K examples of Magpie-Air, produced by the same aligned assistant, for the other condition. They train from the same Llama base in both cases. With the generator and the number of examples matched, the comparison focuses on how the synthetic dataset is obtained.
The Magpie condition performs better on all benchmarks reported for this comparison. The authors' inspection of the requests finds that the Self-Instruct examples largely follow the forms established by its seeds. That observation gives a concrete interpretation to the performance gap. The same generator can express tasks in a wider range of forms when it begins at the opening of a user message. The experiment compares complete generation procedures, so the benchmark gap belongs to the procedure-level change. The authors use the recurring forms in the requests as evidence for their account of where part of that gap comes from.
What happens when sampling or the system prompt changes?
The authors vary the settings for instruction generation in Air. They test temperatures of 1, 1.1 and 1.2, alongside top-p settings of 1, 0.995 and 0.99. Top-p changes the set of candidate tokens from which the generator can sample by considering their cumulative probability. It affects which tokens remain eligible. Temperature changes the relative probability of making more or less likely choices. Both settings can influence variety even though the supplied user header is the same.
The authors average quality ratings and difficulty ratings for examples generated under a given setting. Each scale runs from 1 to 5, with the quality scale spanning very poor to excellent and the difficulty scale spanning very easy to very hard. They also average the minimum distance to another instruction in the relevant sample. Higher temperatures and higher top-p settings tend to produce more difficult requests and greater average separation from near neighbors. The paper reports that this can come with a small decrease in rated quality. The analyses accordingly distinguish how clear a request is, how demanding it is and how similar it is to nearby requests. These attributes can move in different directions under the same sampling change.
A separate comparison adds the default Vicuna system prompt at instruction generation time. It frames the conversation as a chat with an assistant expected to be helpful, detailed and polite. The paper uses Vicuna's message because Llama-3 has no official system prompt for this purpose. With that generic message, generated instructions tend to be easier and to receive lower quality ratings. The authors favor using the bare template for their default generation as a result. The comparison tests one generic system message at the beginning of an exchange. The domain and multi-turn extensions use system messages for more specific jobs, such as keeping the speaker roles straight over a longer conversation.
Do the ratings survive a change of annotator?
The Air corpus is generated by Llama-3-8B-Instruct, which also provides the initial ratings of its requests. The authors consider the possibility that a system evaluating its own family's output evaluates it favorably. They have Qwen-2-7B-Instruct, from another family, score the same Air instructions for quality and difficulty. The ratings from Qwen are higher for both attributes. Thus the favorable assessment of Air persists under a different automated annotator. The differences in ratings also show that the reported level of each attribute depends on who assigns the labels.
This comparison concerns the instruction text. The Qwen annotator is judging the clarity and difficulty of a request, while the reward scorer elsewhere judges a reply to that request. Changing an instruction annotator tests whether results depend on one set of labels. Changing the assistant that writes answers, which the authors also test, changes the text used for supervised learning. Keeping those interventions separate helps locate which part of the pipeline a result concerns.
How much do selection and corpus size contribute?
Within the Magpie family, the authors train on different amounts of data and on both raw and filtered selections. The general trend is that performance improves with more training examples in the size comparisons. Selection can change the ordering. Magpie-Pro-300K-Filtered beats conditions using the same amount of raw data and some using more raw data. Since filtering changes which tasks and responses are retained, this comparison provides evidence about the benefit of the selected mixture at a given scale. It also makes the corpus size alone a poor explanation of the reported ranking.
Pro-trained versions consistently beat Air-trained versions in the paper's within-family comparisons. The authors attribute the advantage to the stronger generator behind Pro. Moving from Air to Pro can change both sides of a pair. The assistant may come up with a better specified or more challenging request, and it may supply a better answer. The observed training advantage is therefore consistent with the higher instruction ratings for Pro and can also include a contribution from the answers.
When several filter designs are tested on Pro, the best setting changes with the benchmark. A design that selects data useful for the queries and judging procedure of one test may produce a different tradeoff on another. This finding qualifies the result for Magpie-Pro-300K-Filtered. Filtering is demonstrably consequential in the paper's training comparisons, and the evidence favors judging a selection criterion by the target evaluation. The study leaves open which combination of criteria would give the best results more generally.
How much does the answer writer matter?
The authors hold the instruction source fixed and replace the reply generator in Magpie-Air-300K-Filtered with Qwen-2-7B-Instruct. They describe Qwen as comparable to or slightly weaker than Llama-3-8B-Instruct. Training on the replacement answers leads to a small performance decline. Still, the resulting assistant still surpasses the public-data baselines in that comparison, including ones whose replies came from GPT-4. This is evidence that a benefit persists when the instruction writer and the answer writer come from different families. The slight drop also shows that the answer side contributes to the performance of the supervised recipe.
Because the request can be reused in the second pass, this experiment tests something the Air–Pro comparison leaves bundled together. The learner sees the same source of tasks with different demonstrations of how to solve them. The authors interpret the retained advantage as evidence that the instructions themselves are useful and varied. The result covers the particular generator substitution they tested and gives a concrete example of the pipeline's modularity.
Do longer conversations and trustworthiness tests change the picture?
The paper compares Magpie-Air-MT and Magpie-Pro-MT with their single-turn counterparts, training on the same Llama base family. The reported improvements are especially apparent on Arena-Hard. This is evidence for the value of the multi-turn dataset as constructed. Its examples give the learner practice with prior messages in context, including requests that can depend on earlier replies. The construction procedure also adds role guidance when it generates later turns. The reported comparison captures the combined effect of training on that kind of conversation.
TrustLLM offers a separate check on the version trained with Magpie-Pro-300K-Filtered. Compared with the official Llama-3-8B-Instruct, the Magpie-supervised version falls slightly behind on safety and fairness, and leads on the benchmark's ethics, privacy and robustness dimensions. The comparison is informative precisely because the dimensions move differently. A training corpus can improve performance as judged on ordinary requests while leaving a different profile on specialized evaluations. The safety classifications applied to the raw corpus and these measurements on a trained system answer complementary questions.
Limitations
Limits the authors state
The authors identify math and reasoning as weaknesses of their general-purpose datasets. They connect the problem to the small proportion of reasoning requests in Air and Pro. The supplementary 150K collection improves the mixed training run, and the paper still reports a gap between the Magpie-trained assistants and the official systems in this area. The targeted generation experiment shows that the initial task mixture can be revised. The remaining gap, along with the different results across instruction-following and downstream benchmarks, makes the distribution of tasks important when interpreting the headline findings.
The authors also recognize that some generated requests and replies can be harmful and that using them in raw training may teach unwanted behavior. Their reported rate of less than 1% comes from Llama-Guard-2 classifications. They present filtering as a way to identify and remove flagged material. The TrustLLM result puts the downstream issue in context. The strongest comparisons on instruction following coexist with a shortfall on some measured aspects of trustworthiness.
The paper explicitly leaves the mechanism behind user-request generation unresolved. It notes that masking the instruction loss during alignment still allows good requests to be produced. In a masked position, the training objective omits the penalty for failing to predict the user text there. User messages can still supply context for generating the subsequent assistant response. The authors hypothesize that aligned systems implicitly retain information about the kinds of requests they encounter. The observation motivates this hypothesis, and the experiments leave open how much that information comes from the alignment examples or how it is represented.
Limits that follow from the experiments
The strongest numerical statement about AlpacaEval 2 is tied to a specific comparison. LC above 50% is obtained with Llama-3-8B-Instruct supplying the reference answers, on that set of requests and under the benchmark's length adjustment. The GPT-4-Turbo (1106) result belongs to a preference-tuned configuration on AlpacaEval 2. Arena-Hard uses another reference and a different set of requests. These findings give evidence of competitive instruction following as measured by the judges. A general account of reliability across domains would require evidence from the relevant tasks and evaluation procedures.
The number of examples used in the official process provides a scale comparison, with limited experimental control over the official process itself. Conversations may have different numbers of turns and different lengths. The official and Magpie recipes also combine supervised and preference data in different ways. The paper more directly controls the starting backbone in the public-data experiments, and it matches corpus size and generator in the Self-Instruct comparison. The official-assistant result is best read as a comparison of finished behaviors under the reported evaluations. It gives a weaker basis for deciding how much of the difference comes from any individual training choice.
The corpus analyses reveal several forms of variation, each with a specific measurement. An embedding plot can show that sampled instructions occupy a broad region under one representation and projection. A task annotator can identify a dominant category, and a nearest-neighbor search can flag potentially repetitive examples. Taken together, these measurements give more information than a count of requests. Their coverage depends on the representation and labels, and the t-SNE clusters cannot establish that the corpus represents every important task or matches the frequencies of real users. The need for the reasoning supplement gives an example of the difference between visible variety and coverage sufficient for training a skill.
The annotation substitution checks agreement in the broad appraisal of Air using two automated systems. Both quality and difficulty ratings increase under Qwen, so a specific label threshold can select a different set of examples when the annotator changes. The response scores used for filtering and preference pairs can similarly depend on the scorer. In particular, the preference labels mean that the selected answer scored highest among the sampled candidates and the rejected answer scored lowest. They express the ranking procedure used to create the corpus. The strength of that supervision for another purpose depends on how well those reward judgments fit the purpose.
The examples from specialized and multilingual assistants establish that the generation interface can produce those kinds of instructions. The multilingual examples demonstrate the form of the output, while the math, code and reasoning supplement receives a downstream test as a mixture. Per-language gains and the individual contribution of each specialist category would require their own comparisons. The portability experiments across assistant families also rely on generators that already support the relevant roles. The procedure uses their existing abilities to produce the data, including capabilities that can differ by domain or language.
Finally, the reported GPU times apply to the finished corpora at the sizes, decoding settings and hardware the authors use. The two generation passes have quite different costs. Additional answer samples, scoring, filtering and alignment belong to other parts of the overall recipe. The paper's cost evidence supports the feasibility of producing the ordinary pairs with the reported setup. The resource requirements for another training project depend on the choice of generator, the quantity and kind of examples, and which extensions are used.
What came after
The later papers that cite Magpie span data-centered training, synthetic-data evaluation, preference elicitation, multilingual training and visual assistants. Their titles establish which of these problems they take up. The citation relationships establish that they engage with Magpie, while the precise role of the citation in each paper is unspecified. The clearest connections follow the separate jobs Magpie exposes in a synthetic pipeline, including writing a task, producing an answer and deciding whether the resulting example is suitable for training.
Large Language Models for Data Annotation and Synthesis: A Survey takes up both generation and annotation as subjects of review. Magpie provides an example in which those jobs can be inspected separately. A chat assistant writes the original task, another pass answers it, and automated judgments characterize the result. Evaluating Language Models as Synthetic Data Generators puts evaluation of the generator itself at the center of the research question. Magpie approaches part of that question by using the generated material to train a recipient and then testing the recipient. Its response-generator ablation also illustrates why a generator comparison may depend on whether the system writes questions or answers.
SmolLM2 concerns data-centered training for a small language system. Its connection to Magpie is the emphasis on what can change when the training collection changes. Magpie's fixed-backbone comparisons and its raw-versus-filtered runs illustrate how to separate some of the influence of data from the scale of the receiving system. Condor names knowledge-driven synthesis and refinement as its route to alignment. That focus is related to Magpie's distinction between generating a broad pool and selecting or supplementing it for a more specific training purpose. In Magpie, the comparison between the general Pro corpus and the reasoning mixture makes the difference between those aims tangible.
KodCode frames synthetic coding data around diversity, difficulty and verifiability. Magpie's specialist code examples and the code included in its reasoning supplement illustrate how generation can target a domain. Verifiability adds a further question about the examples produced in that domain. A generator can pose a plausible programming task, and there is then a separate issue of what evidence establishes that a supplied solution meets it. The focus of KodCode brings that issue into the definition of the dataset.
Skywork-Reward-V2 puts preference-data curation through human and machine contributions at the center of its project. Magpie constructs preference pairs by sampling answers to a fixed request and taking the ends of an automated reward ranking. Checklists Are Better Than Reward Models For Aligning Language Models approaches the related question of how to express the criteria for a preferred response, through checklists. OpenRubrics focuses on generating rubrics at scale for reward modeling and alignment. Together these titles identify a continuation of the data-construction problem on the judgment side. Once a pipeline can cheaply supply requests and candidate replies, the criteria used to choose among them become a distinct subject of study.
SEA-LION places Southeast Asian languages at the center of its work. This connects to Magpie's use of language-conditioned generation and its demonstration that a multilingual assistant can pose a task in a language selected for the corpus. Centurio asks what drives multilingual ability in vision-language systems. Its subject joins the language-coverage question to visual inputs. Magpie's examples establish that generating user turns can vary the language and task. Research centered on multilingual ability asks how those choices relate to performance for the languages and inputs a system is intended to handle.
Institutions
Fields, topics and concepts
Shelves 4The field of science this work belongs to (OpenAlex fields).Computer Science · 19,503 worksArtificial Intelligence · 18,805 worksArts and Humanities · 17,959 worksLanguage and Linguistics · 17,789 works
Topics 1Research subjects and languages the work is about.Language models & pretraining · 4,145 works
Cite
Cite as Zhangchen Xu, Fengqing Jiang, Luyao Niu, Yuntian Deng, Radha Poovendran, Yejin Choi and Bill Yuchen Lin. 2024. Magpie: Alignment Data Synthesis from Scratch by Prompting Aligned LLMs with Nothing. arXiv:2406.08464.
@misc{xu2024magpie,
title = {{Magpie: Alignment Data Synthesis from Scratch by Prompting Aligned LLMs with Nothing}},
author = {Zhangchen Xu, Fengqing Jiang, Luyao Niu, Yuntian Deng, Radha Poovendran, Yejin Choi and Bill Yuchen Lin},
year = {2024},
doi = {10.48550/arxiv.2406.08464},
eprint = {2406.08464},
archivePrefix = {arXiv},
url = {https://doi.org/10.48550/arxiv.2406.08464}
}References
- Marah Abdin, Sam Ade Jacobs, Ammar Ahmad Awan, Jyoti Aneja, Ahmed Awadallah, Hany Awadalla, Nguyen Bach, Amit Bahree, Arash Bakhtiari, Harkirat Behl, et al. Phi-3 technical report: A highly capable language model locally on your phone. arXiv preprint arXiv:2404.14219, 2024. our card
- Josh Achiam, Steven Adler, Sandhini Agarwal, Lama Ahmad, Ilge Akkaya, Florencia Leoni Aleman, Diogo Almeida, Janko Altenschmidt, Sam Altman, Shyamal Anadkat, et al. Gpt-4 technical report. arXiv preprint arXiv:2303.08774, 2023. our card
- Mohammad Gheshlaghi Azar, Zhaohan Daniel Guo, Bilal Piot, Remi Munos, Mark Rowland, Michal Valko, and Daniele Calandriello. A general theoretical paradigm to understand learning from human preferences. In International Conference on Artificial Intelligence and Statistics, pp. 4447–4455. PMLR, 2024. our card
- Jinze Bai, Shuai Bai, Yunfei Chu, Zeyu Cui, Kai Dang, Xiaodong Deng, Yang Fan, Wenbin Ge, Yu Han, Fei Huang, Binyuan Hui, Luo Ji, Mei Li, Junyang Lin, Runji Lin, Dayiheng Liu, Gao Liu, Chengqiang Lu, Keming Lu, Jianxin Ma, Rui Men, Xingzhang Ren, Xuancheng Ren, Chuanqi Tan, Sinan Tan, Jianhong Tu, Peng Wang, Shijie Wang, Wei Wang, Shengguang Wu, Benfeng Xu, Jin Xu, An Yang, Hao Yang, Jian Yang, Shusheng Yang, Yang Yao, Bowen Yu, Hongyi Yuan, Zheng Yuan, Jianwei Zhang, Xingxuan Zhang, Yichang Zhang, Zhenru Zhang, Chang Zhou, Jingren Zhou, Xiaohuan Zhou, and Tianhang Zhu. Qwen technical report. arXiv preprint arXiv:2309.16609, 2023. OpenAlex ↗ · Scholar ↗
- Yang Bai, Ge Pei, Jindong Gu, Yong Yang, and Xingjun Ma. Special characters attack: Toward scalable training data extraction from large language models. arXiv preprint arXiv:2405.05990, 2024. OpenAlex ↗ · Scholar ↗
- Yuntao Bai, Andy Jones, Kamal Ndousse, Amanda Askell, Anna Chen, Nova DasSarma, Dawn Drain, Stanislav Fort, Deep Ganguli, Tom Henighan, Nicholas Joseph, Saurav Kadavath, Jackson Kernion, Tom Conerly, Sheer El-Showk, Nelson Elhage, Zac Hatfield-Dodds, Danny Hernandez, Tristan Hume, Scott Johnston, Shauna Kravec, Liane Lovitt, Neel Nanda, Catherine Olsson, Dario Amodei, Tom Brown, Jack Clark, Sam McCandlish, Chris Olah, Ben Mann, and Jared Kaplan. Training a helpful and harmless assistant with reinforcement learning from human feedback, 2022. OpenAlex ↗ · Scholar ↗
- Edward Beeching, Clémentine Fourrier, Nathan Habib, Sheon Han, Nathan Lambert, Nazneen Rajani, Omar Sanseviero, Lewis Tunstall, and Thomas Wolf. Open llm leaderboard. https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard, 2023. OpenAlex ↗ · Scholar ↗
- Stella Biderman, Usvsn Prashanth, Lintang Sutawika, Hailey Schoelkopf, Quentin Anthony, Shivanshu Purohit, and Edward Raff. Emergent and predictable memorization in large language models. Advances in Neural Information Processing Systems, 36, 2023. our card
- Hannah Brown, Katherine Lee, Fatemehsadat Mireshghallah, Reza Shokri, and Florian Tramèr. What does it mean for a language model to preserve privacy? In Proceedings of the 2022 ACM Conference on Fairness, Accountability, and Transparency, pp. 2280–2292, 2022. OpenAlex ↗ · Scholar ↗
- Nicholas Carlini, Florian Tramer, Eric Wallace, Matthew Jagielski, Ariel Herbert-Voss, Katherine Lee, Adam Roberts, Tom Brown, Dawn Song, Ulfar Erlingsson, et al. Extracting training data from large language models. In 30th USENIX Security Symposium (USENIX Security 21), pp. 2633–2650, 2021. our card
- Jiuhai Chen, Rifaa Qadri, Yuxin Wen, Neel Jain, John Kirchenbauer, Tianyi Zhou, and Tom Goldstein. Genqa: Generating millions of instructions from a handful of prompts. arXiv preprint arXiv:2406.10323, 2024. OpenAlex ↗ · Scholar ↗
- Lichang Chen, Shiyang Li, Jun Yan, Hai Wang, Kalpa Gunaratna, Vikas Yadav, Zheng Tang, Vijay Srinivasan, Tianyi Zhou, Heng Huang, et al. Alpagasus: Training a better alpaca with fewer data. arXiv preprint arXiv:2307.08701, 2023. our card
- Wei-Lin Chiang, Zhuohan Li, Zi Lin, Ying Sheng, Zhanghao Wu, Hao Zhang, Lianmin Zheng, Siyuan Zhuang, Yonghao Zhuang, Joseph E. Gonzalez, Ion Stoica, and Eric P. Xing. Vicuna: An open-source chatbot impressing gpt-4 with 90%* chatgpt quality, March 2023. URL https://lmsys.org/blog/2023-03-30-vicuna/. OpenAlex ↗ · Scholar ↗
- Peter Clark, Isaac Cowhey, Oren Etzioni, Tushar Khot, Ashish Sabharwal, Carissa Schoenick, and Oyvind Tafjord. Think you have solved question answering? try arc, the ai2 reasoning challenge. arXiv preprint arXiv:1803.05457, 2018. our card
- Karl Cobbe, Vineet Kosaraju, Mohammad Bavarian, Mark Chen, Heewoo Jun, Lukasz Kaiser, Matthias Plappert, Jerry Tworek, Jacob Hilton, Reiichiro Nakano, et al. Training verifiers to solve math word problems. arXiv preprint arXiv:2110.14168, 2021. our card
- Ganqu Cui, Lifan Yuan, Ning Ding, Guanming Yao, Wei Zhu, Yuan Ni, Guotong Xie, Zhiyuan Liu, and Maosong Sun. Ultrafeedback: Boosting language models with high-quality feedback. arXiv preprint arXiv:2310.01377, 2023. OpenAlex ↗ · Scholar ↗
- Databricks. Databricks dolly-15k, 2023. URL https://huggingface.co/datasets/databricks/databricks-dolly-15k. OpenAlex ↗ · Scholar ↗
- Daniel Deutsch, Rotem Dror, and Dan Roth. On the limitations of reference-free evaluations of generated text. In Yoav Goldberg, Zornitsa Kozareva, and Yue Zhang (eds.), Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing, pp. 10960–10977, Abu Dhabi, United Arab Emirates, December 2022. Association for Computational Linguistics. . URL https://aclanthology.org/2022.emnlp-main.753. our card
- Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. Bert: Pre-training of deep bidirectional transformers for language understanding. arXiv preprint arXiv:1810.04805, 2018. our card
- Ning Ding, Yulin Chen, Bokai Xu, Yujia Qin, Zhi Zheng, Shengding Hu, Zhiyuan Liu, Maosong Sun, and Bowen Zhou. Enhancing chat language models by scaling high-quality instructional conversations. arXiv preprint arXiv:2305.14233, 2023. our card
- Matthijs Douze, Alexandr Guzhva, Chengqi Deng, Jeff Johnson, Gergely Szilvasy, Pierre-Emmanuel Mazaré, Maria Lomeli, Lucas Hosseini, and Hervé Jégou. The faiss library. 2024. OpenAlex ↗ · Scholar ↗
- Abhimanyu Dubey, Abhinav Jauhri, Abhinav Pandey, Abhishek Kadian, Ahmad Al-Dahle, Aiesha Letman, Akhil Mathur, Alan Schelten, Amy Yang, Angela Fan, et al. The llama 3 herd of models. arXiv preprint arXiv:2407.21783, 2024. our card
- Yann Dubois, Balázs Galambosi, Percy Liang, and Tatsunori B Hashimoto. Length-controlled alpacaeval: A simple way to debias automatic evaluators. arXiv preprint arXiv:2404.04475, 2024. OpenAlex ↗ · Scholar ↗
- Kawin Ethayarajh, Winnie Xu, Niklas Muennighoff, Dan Jurafsky, and Douwe Kiela. Kto: Model alignment as prospect theoretic optimization. arXiv preprint arXiv:2402.01306, 2024. OpenAlex ↗ · Scholar ↗
- Saumya Gandhi, Ritu Gala, Vijay Viswanathan, Tongshuang Wu, and Graham Neubig. Better synthetic data by retrieving and transforming existing datasets. arXiv preprint arXiv:2404.14361, 2024. OpenAlex ↗ · Scholar ↗
- Aryo Pradipta Gema, Joshua Ong Jun Leang, Giwon Hong, Alessio Devoto, Alberto Carlo Maria Mancino, Rohit Saxena, Xuanli He, Yu Zhao, Xiaotang Du, Mohammad Reza Ghasemi Madani, et al. Are we done with mmlu? arXiv preprint arXiv:2406.04127, 2024. OpenAlex ↗ · Scholar ↗
- Dan Hendrycks, Collin Burns, Steven Basart, Andy Zou, Mantas Mazeika, Dawn Song, and Jacob Steinhardt. Measuring massive multitask language understanding. arXiv preprint arXiv:2009.03300, 2020. our card
- Jiwoo Hong, Noah Lee, and James Thorne. Reference-free monolithic preference optimization with odds ratio. arXiv preprint arXiv:2403.07691, 2024. OpenAlex ↗ · Scholar ↗
- Yue Huang, Lichao Sun, Haoran Wang, Siyuan Wu, Qihui Zhang, Yuan Li, Chujie Gao, Yixin Huang, Wenhan Lyu, Yixuan Zhang, Xiner Li, Hanchi Sun, Zhengliang Liu, Yixin Liu, Yijue Wang, Zhikun Zhang, Bertie Vidgen, Bhavya Kailkhura, Caiming Xiong, Chaowei Xiao, Chunyuan Li, Eric P. Xing, Furong Huang, Hao Liu, Heng Ji, Hongyi Wang, Huan Zhang, Huaxiu Yao, Manolis Kellis, Marinka Zitnik, Meng Jiang, Mohit Bansal, James Zou, Jian Pei, Jian Liu, Jianfeng Gao, Jiawei Han, Jieyu Zhao, Jiliang Tang, Jindong Wang, Joaquin Vanschoren, John Mitchell, Kai Shu, Kaidi Xu, Kai-Wei Chang, Lifang He, Lifu Huang, Michael Backes, Neil Zhenqiang Gong, Philip S. Yu, Pin-Yu Chen, Quanquan Gu, Ran Xu, Rex Ying, Shuiwang Ji, Suman Jana, Tianlong Chen, Tianming Liu, Tianyi Zhou, William Yang Wang, Xiang Li, Xiangliang Zhang, Xiao Wang, Xing Xie, Xun Chen, Xuyu Wang, Yan Liu, Yanfang Ye, Yinzhi Cao, Yong Chen, and Yue Zhao. Trustllm: Trustworthiness in large language models. In Forty-first International Conference on Machine Learning, 2024. URL https://openreview.net/forum?id=bWUU0LwwMp. our card
- Hamish Ivison, Yizhong Wang, Valentina Pyatkin, Nathan Lambert, Matthew Peters, Pradeep Dasigi, Joel Jang, David Wadden, Noah A Smith, Iz Beltagy, et al. Camels in a changing climate: Enhancing lm adaptation with tulu 2. arXiv preprint arXiv:2311.10702, 2023. our card
- Aly M Kassem, Omar Mahmoud, Niloofar Mireshghallah, Hyunwoo Kim, Yulia Tsvetkov, Yejin Choi, Sherif Saad, and Santu Rana. Alpaca against vicuna: Using llms to uncover memorization of llms. arXiv preprint arXiv:2403.04801, 2024. OpenAlex ↗ · Scholar ↗
- Andreas Köpf, Yannic Kilcher, Dimitri von Rütte, Sotiris Anagnostidis, Zhi Rui Tam, Keith Stevens, Abdullah Barhoum, Duc Nguyen, Oliver Stanley, Richárd Nagyfi, Shahul ES, Sameer Suri, David Glushkov, Arnav Dantuluri, Andrew Maguire, Christoph Schuhmann, Huu Nguyen, and Alexander Mattick. Openassistant conversations - democratizing large language model alignment. In A. Oh, T. Naumann, A. Globerson, K. Saenko, M. Hardt, and S. Levine (eds.), Advances in Neural Information Processing Systems, volume 36, pp. 47669–47681. Curran Associates, Inc., 2023. URL https://proceedings.neurips.cc/paper_files/paper/2023/file/949f0f8f32267d297c2d4e3ee10a2e7e-Paper-Datasets_and_Benchmarks.pdf. our card
- Kalpesh Krishna, Gaurav Singh Tomar, Ankur P. Parikh, Nicolas Papernot, and Mohit Iyyer. Thieves on sesame street! model extraction of bert-based apis. In International Conference on Learning Representations, 2020. URL https://openreview.net/forum?id=Byl5NREFDr. OpenAlex ↗ · Scholar ↗
- Woosuk Kwon, Zhuohan Li, Siyuan Zhuang, Ying Sheng, Lianmin Zheng, Cody Hao Yu, Joseph E. Gonzalez, Hao Zhang, and Ion Stoica. Efficient memory management for large language model serving with pagedattention. In Proceedings of the ACM SIGOPS 29th Symposium on Operating Systems Principles, 2023. our card
- Nathan Lambert, Valentina Pyatkin, Jacob Morrison, LJ Miranda, Bill Yuchen Lin, Khyathi Chandu, Nouha Dziri, Sachin Kumar, Tom Zick, Yejin Choi, et al. Rewardbench: Evaluating reward models for language modeling. arXiv preprint arXiv:2403.13787, 2024. our card
- Hector Levesque, Ernest Davis, and Leora Morgenstern. The winograd schema challenge. In Thirteenth international conference on the principles of knowledge representation and reasoning, 2012. OpenAlex ↗ · Scholar ↗
- Guohao Li, Hasan Hammoud, Hani Itani, Dmitrii Khizbullin, and Bernard Ghanem. Camel: Communicative agents for" mind" exploration of large language model society. Advances in Neural Information Processing Systems, 36:0 51991–52008, 2023a. our card
- Haoran Li, Qingxiu Dong, Zhengyang Tang, Chaojun Wang, Xingxing Zhang, Haoyang Huang, Shaohan Huang, Xiaolong Huang, Zeqiang Huang, Dongdong Zhang, et al. Synthetic data (almost) from scratch: Generalized instruction tuning for language models. arXiv preprint arXiv:2402.13064, 2024a. our card
- Tianle Li, Wei-Lin Chiang, Evan Frick, Lisa Dunlap, Banghua Zhu, Joseph E. Gonzalez, and Ion Stoica. From live data to high-quality benchmarks: The arena-hard pipeline, April 2024b. URL https://lmsys.org/blog/2024-04-19-arena-hard/. OpenAlex ↗ · Scholar ↗
- Xuechen Li, Tianyi Zhang, Yann Dubois, Rohan Taori, Ishaan Gulrajani, Carlos Guestrin, Percy Liang, and Tatsunori B. Hashimoto. Alpacaeval: An automatic evaluator of instruction-following models. https://github.com/tatsu-lab/alpaca_eval, 2023b. OpenAlex ↗ · Scholar ↗
- Bill Yuchen Lin, Abhilasha Ravichander, Ximing Lu, Nouha Dziri, Melanie Sclar, Khyathi Chandu, Chandra Bhagavatula, and Yejin Choi. The unlocking spell on base llms: Rethinking alignment via in-context learning. arXiv preprint arXiv:2312.01552, 2023. our card
- Bill Yuchen Lin, Khyathi Chandu, Faeze Brahman, Yuntian Deng, Abhilasha Ravichander, Valentina Pyatkin, Ronan Le Bras, and Yejin Choi. Wildbench: Benchmarking language models with challenging tasks from real users in the wild, 2024. URL https://huggingface.co/spaces/allenai/WildBench. OpenAlex ↗ · Scholar ↗
- Stephanie Lin, Jacob Hilton, and Owain Evans. Truthfulqa: Measuring how models mimic human falsehoods. arXiv preprint arXiv:2109.07958, 2021. our card
- Ruibo Liu, Jerry Wei, Fangyu Liu, Chenglei Si, Yanzhe Zhang, Jinmeng Rao, Steven Zheng, Daiyi Peng, Diyi Yang, Denny Zhou, et al. Best practices and lessons learned on synthetic data for language models. arXiv preprint arXiv:2404.07503, 2024a. our card
- Wei Liu, Weihao Zeng, Keqing He, Yong Jiang, and Junxian He. What makes good data for alignment? a comprehensive study of automatic data selection in instruction tuning. In The Twelfth International Conference on Learning Representations, 2024b. URL https://openreview.net/forum?id=BTKAeLqLMw. our card
- Yu Meng, Mengzhou Xia, and Danqi Chen. Simpo: Simple preference optimization with a reference-free reward. arXiv preprint arXiv:2405.14734, 2024. OpenAlex ↗ · Scholar ↗
- Meta. Llama 3. https://ai.meta.com/blog/meta-llama-3/, 2024. OpenAlex ↗ · Scholar ↗
- Milad Nasr, Nicholas Carlini, Jonathan Hayase, Matthew Jagielski, A Feder Cooper, Daphne Ippolito, Christopher A Choquette-Choo, Eric Wallace, Florian Tramèr, and Katherine Lee. Scalable extraction of training data from (production) language models. arXiv preprint arXiv:2311.17035, 2023. our card
- OpenAI. Tiktoken. https://github.com/openai/tiktoken, 2024. OpenAlex ↗ · Scholar ↗
- Alec Radford, Karthik Narasimhan, Tim Salimans, Ilya Sutskever, et al. Improving language understanding by generative pre-training. 2018. OpenAlex ↗ · Scholar ↗
- Rafael Rafailov, Archit Sharma, Eric Mitchell, Christopher D Manning, Stefano Ermon, and Chelsea Finn. Direct preference optimization: Your language model is secretly a reward model. In Thirty-seventh Conference on Neural Information Processing Systems, 2023. URL https://openreview.net/forum?id=HPuSIXJaa9. our card
- Victor Sanh, Albert Webson, Colin Raffel, Stephen Bach, Lintang Sutawika, Zaid Alyafeai, Antoine Chaffin, Arnaud Stiegler, Arun Raja, Manan Dey, M Saiful Bari, Canwen Xu, Urmish Thakker, Shanya Sharma Sharma, Eliza Szczechla, Taewoon Kim, Gunjan Chhablani, Nihal Nayak, Debajyoti Datta, Jonathan Chang, Mike Tian-Jian Jiang, Han Wang, Matteo Manica, Sheng Shen, Zheng Xin Yong, Harshit Pandey, Rachel Bawden, Thomas Wang, Trishala Neeraj, Jos Rozen, Abheesht Sharma, Andrea Santilli, Thibault Fevry, Jason Alan Fries, Ryan Teehan, Teven Le Scao, Stella Biderman, Leo Gao, Thomas Wolf, and Alexander M Rush. Multitask prompted training enables zero-shot task generalization. In International Conference on Learning Representations, 2022. URL https://openreview.net/forum?id=9Vrb9D0WI4. our card
- Sharath Turuvekere Sreenivas, Saurav Muralidharan, Raviraj Joshi, Marcin Chochowski, Mostofa Patwary, Mohammad Shoeybi, Bryan Catanzaro, Jan Kautz, and Pavlo Molchanov. Llm pruning and distillation in practice: The minitron approach. arXiv preprint arXiv:2408.11796, 2024. our card
- Zhiqing Sun, Yikang Shen, Qinhong Zhou, Hongxin Zhang, Zhenfang Chen, David Cox, Yiming Yang, and Chuang Gan. Principle-driven self-alignment of language models from scratch with minimal human supervision. Advances in Neural Information Processing Systems, 36, 2023. our card
- Rohan Taori, Ishaan Gulrajani, Tianyi Zhang, Yann Dubois, Xuechen Li, Carlos Guestrin, Percy Liang, and Tatsunori B. Hashimoto. Stanford alpaca: An instruction-following llama model. https://github.com/tatsu-lab/stanford_alpaca, 2023. OpenAlex ↗ · Scholar ↗
- Gemma Team, Morgane Riviere, Shreya Pathak, Pier Giuseppe Sessa, Cassidy Hardin, Surya Bhupatiraju, Léonard Hussenot, Thomas Mesnard, Bobak Shahriari, Alexandre Ramé, et al. Gemma 2: Improving open language models at a practical size. arXiv preprint arXiv:2408.00118, 2024. our card
- Llama Team. Meta llama guard 2. https://github.com/meta-llama/PurpleLlama/blob/main/Llama-Guard2/MODEL_CARD.md, 2024. OpenAlex ↗ · Scholar ↗
- Teknium. Openhermes dataset, 2023a. URL https://huggingface.co/datasets/teknium/openhermes. OpenAlex ↗ · Scholar ↗
- Teknium. Openhermes 2.5: An open dataset of synthetic data for generalist llm assistants, 2023b. URL https://huggingface.co/datasets/teknium/OpenHermes-2.5. OpenAlex ↗ · Scholar ↗
- Hugo Touvron, Louis Martin, Kevin Stone, Peter Albert, Amjad Almahairi, Yasmine Babaei, Nikolay Bashlykov, Soumya Batra, Prajjwal Bhargava, Shruti Bhosale, et al. Llama 2: Open foundation and fine-tuned chat models. arXiv preprint arXiv:2307.09288, 2023. our card
- Hoang Tran, Chris Glaze, and Braden Hancock. Iterative DPO alignment. Technical report, Snorkel AI, 2023. OpenAlex ↗ · Scholar ↗
- Laurens Van der Maaten and Geoffrey Hinton. Visualizing data using t-sne. Journal of machine learning research, 90 (11), 2008. OpenAlex ↗ · Scholar ↗
- Haoxiang Wang, Wei Xiong, Tengyang Xie, Han Zhao, and Tong Zhang. Interpretable preferences via multi-objective reward modeling and mixture-of-experts. In EMNLP, 2024a. our card
- Jeffrey G Wang, Jason Wang, Marvin Li, and Seth Neel. Pandora's white-box: Increased training data leakage in open llms. arXiv preprint arXiv:2402.17012, 2024b. OpenAlex ↗ · Scholar ↗
- Yizhong Wang, Swaroop Mishra, Pegah Alipoormolabashi, Yeganeh Kordi, Amirreza Mirzaei, Atharva Naik, Arjun Ashok, Arut Selvan Dhanasekaran, Anjana Arunkumar, David Stap, Eshaan Pathak, Giannis Karamanolakis, Haizhi Lai, Ishan Purohit, Ishani Mondal, Jacob Anderson, Kirby Kuznia, Krima Doshi, Kuntal Kumar Pal, Maitreya Patel, Mehrad Moradshahi, Mihir Parmar, Mirali Purohit, Neeraj Varshney, Phani Rohitha Kaza, Pulkit Verma, Ravsehaj Singh Puri, Rushang Karia, Savan Doshi, Shailaja Keyur Sampat, Siddhartha Mishra, Sujan Reddy A, Sumanta Patro, Tanay Dixit, and Xudong Shen. Super-NaturalInstructions: Generalization via declarative instructions on 1600+ NLP tasks. In Yoav Goldberg, Zornitsa Kozareva, and Yue Zhang (eds.), Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing, pp. 5085–5109, Abu Dhabi, United Arab Emirates, December 2022. Association for Computational Linguistics. . URL https://aclanthology.org/2022.emnlp-main.340. OpenAlex ↗ · Scholar ↗
- Yizhong Wang, Yeganeh Kordi, Swaroop Mishra, Alisa Liu, Noah A. Smith, Daniel Khashabi, and Hannaneh Hajishirzi. Self-instruct: Aligning language models with self-generated instructions. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 13484–13508, Toronto, Canada, 2023. Association for Computational Linguistics. our card
- Zifeng Wang, Chun-Liang Li, Vincent Perot, Long T Le, Jin Miao, Zizhao Zhang, Chen-Yu Lee, and Tomas Pfister. Codeclm: Aligning language models with tailored synthetic data. arXiv preprint arXiv:2404.05875, 2024c. OpenAlex ↗ · Scholar ↗
- Jason Wei, Maarten Bosma, Vincent Zhao, Kelvin Guu, Adams Wei Yu, Brian Lester, Nan Du, Andrew M. Dai, and Quoc V Le. Finetuned language models are zero-shot learners. In International Conference on Learning Representations, 2022. URL https://openreview.net/forum?id=gEZrGCozdqR. our card
- Wei Xiong, Hanze Dong, Chenlu Ye, Ziqi Wang, Han Zhong, Heng Ji, Nan Jiang, and Tong Zhang. Iterative preference learning from human feedback: Bridging theory and practice for rlhf under kl-constraint, 2024. our card
- Can Xu, Qingfeng Sun, Kai Zheng, Xiubo Geng, Pu Zhao, Jiazhan Feng, Chongyang Tao, and Daxin Jiang. Wizardlm: Empowering large language models to follow complex instructions. arXiv preprint arXiv:2304.12244, 2023a. OpenAlex ↗ · Scholar ↗
- Canwen Xu, Daya Guo, Nan Duan, and Julian McAuley. Baize: An open-source chat model with parameter-efficient tuning on self-chat data. In Houda Bouamor, Juan Pino, and Kalika Bali (eds.), Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pp. 6268–6278, Singapore, December 2023b. Association for Computational Linguistics. . URL https://aclanthology.org/2023.emnlp-main.385. our card
- An Yang, Baosong Yang, Binyuan Hui, Bo Zheng, Bowen Yu, Chang Zhou, Chengpeng Li, Chengyuan Li, Dayiheng Liu, Fei Huang, et al. Qwen2 technical report. arXiv preprint arXiv:2407.10671, 2024. OpenAlex ↗ · Scholar ↗
- Da Yin, Xiao Liu, Fan Yin, Ming Zhong, Hritik Bansal, Jiawei Han, and Kai-Wei Chang. Dynosaur: A dynamic growth paradigm for instruction-tuning data curation. arXiv preprint arXiv:2305.14327, 2023. OpenAlex ↗ · Scholar ↗
- Weichen Yu, Tianyu Pang, Qian Liu, Chao Du, Bingyi Kang, Yan Huang, Min Lin, and Shuicheng Yan. Bag of tricks for training data extraction from language models. In International Conference on Machine Learning, pp. 40306–40320. PMLR, 2023. OpenAlex ↗ · Scholar ↗
- Xiang Yue, Xingwei Qu, Ge Zhang, Yao Fu, Wenhao Huang, Huan Sun, Yu Su, and Wenhu Chen. Mammoth: Building math generalist models through hybrid instruction tuning. ArXiv, abs/2309.05653, 2023. URL https://api.semanticscholar.org/CorpusID:261696697. our card
- Xiang Yue, Tuney Zheng, Ge Zhang, and Wenhu Chen. Mammoth2: Scaling instructions from the web, 2024. our card
- Rowan Zellers, Ari Holtzman, Yonatan Bisk, Ali Farhadi, and Yejin Choi. Hellaswag: Can a machine really finish your sentence? arXiv preprint arXiv:1905.07830, 2019. OpenAlex ↗ · Scholar ↗
- Wenting Zhao, Xiang Ren, Jack Hessel, Claire Cardie, Yejin Choi, and Yuntian Deng. Wildchat: 1m chatGPT interaction logs in the wild. In The Twelfth International Conference on Learning Representations, 2024. URL https://openreview.net/forum?id=Bl8u7ZRlbM. our card
- Lianmin Zheng, Wei-Lin Chiang, Ying Sheng, Siyuan Zhuang, Zhanghao Wu, Yonghao Zhuang, Zi Lin, Zhuohan Li, Dacheng Li, Eric Xing, Hao Zhang, Joseph E. Gonzalez, and Ion Stoica. Judging LLM-as-a-judge with MT-bench and chatbot arena. In Thirty-seventh Conference on Neural Information Processing Systems Datasets and Benchmarks Track, 2023. URL https://openreview.net/forum?id=uccHPGDlao. our card
- Lianmin Zheng, Wei-Lin Chiang, Ying Sheng, Tianle Li, Siyuan Zhuang, Zhanghao Wu, Yonghao Zhuang, Zhuohan Li, Zi Lin, Eric Xing, Joseph E. Gonzalez, Ion Stoica, and Hao Zhang. LMSYS-chat-1m: A large-scale real-world LLM conversation dataset. In The Twelfth International Conference on Learning Representations, 2024. URL https://openreview.net/forum?id=BOfDKxfwt0. our card
- Chunting Zhou, Pengfei Liu, Puxin Xu, Srinivasan Iyer, Jiao Sun, Yuning Mao, Xuezhe Ma, Avia Efrat, Ping Yu, Lili Yu, et al. Lima: Less is more for alignment. Advances in Neural Information Processing Systems, 36, 2023. OpenAlex ↗ · Scholar ↗
- Qihao Zhu, Daya Guo, Zhihong Shao, Dejian Yang, Peiyi Wang, Runxin Xu, Y Wu, Yukun Li, Huazuo Gao, Shirong Ma, et al. Deepseek-coder-v2: Breaking the barrier of closed-source models in code intelligence. arXiv preprint arXiv:2406.11931, 2024. our card
This page in Markdown https://md.research.elamur.ai/free/en/papers/xu-2024-magpie-alignment-data-synthesis-scratch/