Elamur Research

Zephyr: Direct Distillation of LM Alignment

Paper · 2023 · Lewis Tunstall, Edward Beeching, Nathan Lambert et al.

Summary

A pretrained language model can have the knowledge needed to answer a question and still respond poorly when someone asks it in an ordinary conversation. Teaching it to imitate answers from a stronger system can help it take on the role of an assistant. The Zephyr paper asks whether a small, open system can also learn which answers better serve the user, without commissioning human judgments for training. The authors start with Mistral-7B and use two kinds of synthetic supervision. One supplies examples of how to respond. The other indicates which of two responses to the same request is preferable.

The first stage uses fine-tuning on a cleaned portion of UltraChat, a collection of conversations generated by gpt-3.5-turbo. The second stage prepares preferences from UltraFeedback. Four systems answer each prompt, and GPT-4 scores their answers. The authors pair the highest-rated answer with a randomly selected alternative from the remaining candidates. In the last stage, distilled direct preference optimization, or dDPO, trains the assistant to favor the better-rated answer relative to the version produced by the first stage. The comparisons are already in the dataset, so the final stage can update the assistant without generating fresh answers or fitting a separate reward predictor. The authors report typical experimental runs of 2-4 hours on 16 A100s with 80GB of memory each.

Zephyr-7B leads the open 7B systems in the paper’s comparisons on both MT-Bench and AlpacaEval. It also scores above Llama2-Chat-70B on MT-Bench, which evaluates answers to an opening request and a follow-up. The comparison with larger systems depends on the test. Zephyr trails stronger large open assistants, and its MT-Bench results in math and coding lag behind those of proprietary systems. The training comparisons help explain where the gains come from. Applying preference optimization directly to the base system yields poor chat results and difficulty using the conversation template. Starting with supervised training and then learning from both answers in a preference pair works better than using only the preferred answer as another example to imitate.

The finding concerns helpfulness as measured by these evaluations. GPT-4 helps create the preference labels and judges both chat benchmarks, so the authors caution that its preferences can influence the outcome. They leave systematic safety alignment and the effect of applying the same recipe at larger scales open. They released the code, trained systems, data, and tutorials through the Alignment Handbook project.

Deep dive: Zephyr: Direct Distillation of LM Alignment

Zephyr shows how a small chat system can learn to follow user requests from synthetic dialogues and AI-ranked answers, without human annotation. · about 37 minutes to read

The problem and its context

Knowing how to continue text and knowing how to answer

A user approaching a conversational assistant supplies a request and expects it to recognize what kind of response the request calls for. A follow-up may keep the same subject while changing a condition. A question may look straightforward and still contain an assumption the assistant should examine. The response has to fit the request as an action in a conversation. For Zephyr, this is the practical meaning of aligning a system to user intent. The authors concentrate on helpfulness, including whether the assistant responds appropriately to ordinary instructions.

The distinction matters when starting from a capable pretrained system. Its existing abilities make it an attractive foundation for an assistant, but they leave open how it will use those abilities when prompted. An academic task can specify a problem and constrain the possible answers. A conversation can require the assistant to infer the desired form of the answer, determine which part of the preceding exchange remains relevant, and produce a usable response. The paper treats conversational behavior as something that can be trained and evaluated separately from performance on more constrained tasks.

That framing also explains the choice to adapt an existing system. The authors describe a succession of stronger open foundations, from earlier GPT-style systems through projects such as Falcon, Llama 2, and Mistral. They attribute some of the progress in compact systems to training on more tokens than a compute-optimal allocation would suggest under the scaling laws they cite. They choose Mistral 7B for its existing benchmark performance. The research question starts after pretraining, with a strong foundation whose behavior can be changed by examples and feedback. Llama 2

From examples to judgments

Supervised instruction tuning gives the system examples of requests paired with appropriate replies. In the distilled version, a stronger teacher writes the examples and a smaller student learns to reproduce the target responses. The authors place this approach in a line of work that includes Self-Instruct, Alpaca, and Vicuna. Self-Instruct-style generation makes it possible to expand beyond a modest set of initial requests. A teacher can propose and answer new instructions, producing a larger body of data for supervised training.

The earlier work described in the paper gives the authors reasons to use this approach and reasons to go beyond it. Imitating a teacher can improve task performance, yet the resulting student can lag the teacher and respond unreliably to requests phrased as users would naturally ask them. An example demonstrates one way to answer. It leaves the student to infer which features of that answer matter and which could vary without losing usefulness. When training data supplies a comparison between answers to the same request, some of that information becomes explicit. The alternatives can differ in whether they respect a requirement, whether they stay on topic, or how well they support what they say. The False Promise of Imitating Proprietary LLMs

Human feedback was an established way to obtain such comparisons. In the approach the paper associates with InstructGPT, people’s preferences supply information about the relative quality of replies. A reward predictor can learn from these judgments, and reinforcement learning can then use its assessments to guide the assistant. Getting enough judgments can be expensive. The paper points to Llama2-Chat as an example of alignment backed by substantial human feedback. For researchers working with a smaller open foundation, the question was whether synthetic preferences could supply enough of the same kind of supervision for useful results. InstructGPT

There are two choices inside that question. The first concerns who supplies the preference. The Zephyr recipe delegates the judgment to a stronger system capable of evaluating candidate replies. The second concerns how the student learns once the preference is available. Prior work had used reinforcement learning with AI feedback, and the contemporary Xwin-LM used a distilled form of PPO, the optimization approach discussed in the paper’s comparison. Zephyr chooses an objective that learns directly from fixed comparisons. Direct preference optimization already existed. The contribution is to use it with distilled judgments as part of an end-to-end recipe for a small chat assistant. Direct Preference Optimization

The choices are separable. A synthetic comparison can be used to train a reward predictor, or it can enter the optimization objective directly. Similarly, a direct preference objective can be trained with human rankings if those are available. Zephyr combines AI judgments with direct optimization because that pairing lets the authors avoid both human labeling for the alignment stages and repeated generation from the student during the preference run. The fitted assistant is the product of that combination, the initial supervised stage, and the capabilities already present in Mistral.

How conversational behavior became measurable

For the paper, the rise of conversational benchmarks makes the problem open to a more specific experiment. The authors describe automated chat evaluations whose scores correlate with human assessments. They also describe the LMSYS Chatbot Arena, where people choose between anonymized replies in randomized comparisons and the resulting preferences inform Elo rankings. These approaches give researchers ways to compare assistants on responses people can read and assess, including cases for which a standard answer key would capture only part of the task. Judging LLM-as-a-Judge with MT-Bench and Chatbot Arena

The chat benchmarks used in Zephyr make different choices about what to judge. MT-Bench asks the assistant to respond across turns and gives each reply a score. AlpacaEval compares a standalone reply with an answer from a fixed baseline. Both depend on an evaluator’s reading of generated text. The paper presents these methods alongside evaluations of more constrained academic tasks, where the assistant’s open-ended conversational behavior is less central. This makes the study a test of both what post-training adds and how the resulting assistant fares on skills its pretrained foundation already possessed. AlpacaFarm

The background sets a specific standard for the paper’s claim. A benchmark advantage can show that a recipe produces responses better suited to the benchmark’s requests and judging procedure. The stronger idea of intent alignment involves the many settings in which a user might have a different preference, a different sense of what counts as useful, or a request for which following the apparent intent would be inappropriate. The paper makes progress on the measurable version of the problem by specifying the training signal and putting the finished assistant through several kinds of tests.

The method, step by step

What the student learns at each stage

The authors begin with Mistral 7B and change its behavior in stages. For supervised training, the student sees conversations and learns to produce the responses in them. For preference training, it sees cases where the same request has elicited different answers. Each case identifies which answer the judge favored. The assistant that comes out of supervised training serves both as the starting point for the final update and as the fixed reference used to measure the change.

An ordinary practical question illustrates the difference between the training signals. A supervised example can demonstrate how to answer a request for help cleaning a car. It shows the student a reply in the assistant’s role. A preference example could compare a reply that gets on with the task against one that spends its opening discussing the assistant’s lack of personal experience. The relevant judgment concerns which answer better serves the question. In the paper, the car-cleaning case illustrates the unwanted introductions that appeared after training on unfiltered UltraChat. It gives a concrete reason to pay attention both to which replies the student imitates and to how alternatives are ranked.

The data used in the two stages come from separate collections. UltraChat supplies the dialogue examples. UltraFeedback supplies prompts, candidate replies, and ratings, which the authors turn into comparisons. The procedure can reuse those judgments throughout training because each comparison is a stored example. An answer preferred by the judge is preferred among the candidates for that prompt. The judgment requires neither an exhaustive search for possible answers nor a complete account of what makes a response good.

From synthetic dialogues and ratings to Zephyr

The steps in order.

From synthetic dialogues and ratings to ZephyrStep 1: Filter and correct UltraChat dialogues1. Filter and correct UltraChat dialoguesStep 2: Supervise Mistral on the cleaned dialogues2. Supervise Mistral on the cleaned dialoguesStep 3: Gather UltraFeedback responses and GPT-4 ratings3. Gather UltraFeedback responses and GPT-4 ratingsStep 4: Pair each winner with a sampled alternative4. Pair each winner with a sampled alternativeStep 5: Score both replies against the frozen reference5. Score both replies against the frozen referenceStep 6: Update the student with direct preference optimization6. Update the student with direct preference optimization

How the dialogue examples are made

The paper first describes distilled supervised fine-tuning, abbreviated dSFT, as a general procedure. A set of seed prompts covers a range of subjects. The teacher responds to an initial request, then receives a refinement instruction that lets it generate a revised request using the original prompt and reply. Repeating this kind of generation yields examples of instructions with corresponding answers. The teacher’s two roles in this description are to help construct the inputs and to supply the target outputs.

y⁰ ∼ π_T(· | x⁰)

Here x⁰ is the initial request and y⁰ is the sampled reply. The superscript ⁰ marks the initial stage. π_T is the teacher’s probability distribution, and T identifies it as the teacher. The dot is a placeholder for the possible reply, the vertical bar means that the distribution is conditioned on the request, and ∼ indicates sampling from that distribution.

x¹ ∼ π_T(· | x⁰, y⁰)

Here x¹ is a revised request, with ¹ marking the stage after the initial exchange. The teacher distribution is written as π_T again, now with the dot standing for a possible revised request. The arguments after the vertical bar are the original request x⁰ and its reply y⁰. The refinement instruction tells the teacher what to generate in this step. The sampling symbol ∼ has the same meaning as before.

C = {(x₁, y₁), …, (x_J, y_J)}

Here C is the resulting collection of supervised examples. An x entry is a request and its paired y entry is the answer to imitate. The subscripts identify corresponding examples, J is the number of examples in this description, and the ellipsis stands for the entries between the first and the last. The parentheses group the paired items and the braces enclose the collection.

For the actual training run, the authors draw on the work behind UltraChat, a corpus generated by gpt-3.5-turbo. Its 1.47M multi-turn dialogues span 30 topics and 20 types of written material. A multi-turn example can demonstrate how an assistant continues an exchange after an initial answer. It also gives the student repeated examples of the distinction between a user message, which specifies the next task, and an assistant message, which carries it out. UltraChat

The authors initially tried training on the full corpus. That run exposed a problem with the notion of a teacher answer as a target. The student imitated recurring mistakes in capitalization and adopted unnecessary introductions about its own experience, including on simple practical questions. Such wording is part of the target sequence during supervised learning. If it recurs across training examples, the objective can reward reproducing it in contexts where a user would find it unnecessary.

The authors used truecasing heuristics, which repair letter case, to address errors affecting approximately 5% of UltraChat. They applied further filters aimed at keeping helpful exchanges and removing undesired replies. The resulting supervised collection contains roughly 200k examples. The size describes the curated data used for this stage. It is distinct from the proportion associated with case correction, which measures one issue in the original corpus. The paper describes the initial observations that motivated the changes. The controlled training comparisons later in the paper address the sequence of alignment stages.

What supervised optimization does

In supervised training the student learns to assign higher probability to the given reply in the context of its request. Here probability is a way to express what the system is inclined to generate. A reply already written in the dataset can be scored under the student’s distribution. The optimizer changes the student’s parameters in the direction that makes such target replies more likely on average. To write the resulting policy as the outcome of that search, the objective can be expressed with an argument maximum.

π_dSFT = arg max_π E_(x,y)∼C [log π(y | x)]

Here π is a candidate student policy, meaning a distribution over replies given a request. π_dSFT is the policy sought by distilled supervised training. The expression arg max_π selects the policy that maximizes the following objective. E denotes the expectation, or training average, over pairs (x,y) drawn from C, the supervised collection. The expression π(y | x) is the probability of the target reply y under that candidate when it receives request x. The logarithm log makes the criterion an average of log probabilities. The formula describes the optimization goal, which is approached through parameter updates in a finite training run.

This step establishes the behavior from which the preference stage starts. The structure of the dialogues is part of what the student gets to see. It repeatedly encounters an actual assistant answer after the request and learns how the task is represented in the conversation. That matters for interpreting the later comparison with direct preference optimization on the base system. A ranking loss can indicate that one answer should be raised relative to another, while the supervised examples directly train the system to generate an assistant message in a chat context.

The authors run supervised training for one to three epochs, with an epoch meaning a pass through the training set. They use a cosine learning-rate schedule with a peak of 2e-5 and devote 10% of the steps to warmup. The learning rate controls the size of parameter updates, and warmup increases it during the early part of training. The global batch size is 512. Packing puts examples into sequences of 2048 tokens, the text units used by the system during training. This packing and batch configuration belongs to the supervised stage. The preference stage has its own schedule and handles pairs of answers per prompt. Tokenization

How the ratings become comparisons

UltraFeedback starts from 64k prompts. Four different systems reply to each one. The authors mention Claude, Falcon, and Llama as examples in their description of the ensemble. GPT-4 rates the replies according to criteria that include instruction following, honesty, and helpfulness. The candidate systems and the judge therefore serve different purposes. Variation among the candidates gives the judge alternatives to assess, and the judge’s ratings supply a way to order those alternatives for training. GPT-4

yⁱ ∼ πᵢ(· | x),  i ∈ {1, 2, 3, 4}

Here i indexes a responding system in the set of four, and ∈ means that the index belongs to that set. Each πᵢ is the distribution of the corresponding system. The response yⁱ is sampled from that distribution for prompt x, as indicated by ∼. The dot stands for a possible response and the vertical bar indicates that the distribution is conditioned on the prompt. The superscript on yⁱ distinguishes candidates for the same request.

sⁱ ∼ π_T(· | x, yⁱ)

Here sⁱ is the teacher’s score for the candidate indexed by i. π_T is the teacher distribution, with GPT-4 filling the role of the rating teacher. In this expression the dot stands for a possible score. The information after the vertical bar is the request x and its candidate reply yⁱ. The ∼ notation expresses the score as an output of the teacher under those conditions. The score and the reply share an index because the rating is attached to that particular candidate.

The strongest candidate is the one with the highest mean score. For each prompt, the authors select that answer and draw the rejected answer at random from the remaining three. In this context, a rejected answer is a comparison partner. It may still have useful content or share much of its approach with the winning answer. The random draw allows the chosen answer to face a range of alternatives across the dataset. The stated motivation is to increase diversity and make the optimization problem more demanding than it would be if the rejected response were always the lowest scoring one.

D = {(x, y_w, y_l)}

Here D denotes the preference dataset, and the braces indicate its collection of triples. Each triple contains prompt x, the winning reply y_w, and the sampled alternative y_l. The subscripts w and l distinguish the preferred and dispreferred positions in that comparison. The parentheses group the items that belong to the same training instance. The expression gives the form of a record in the dataset, with a triple of this form for each included prompt.

Converting graded scores to a pair discards information deliberately. The objective receives the direction of the preference. It uses the same representation for an easy choice and for a close choice, since neither the gap in scores nor the full ordering of the candidates is carried into the triple. The candidate pool and the judge’s criteria still matter. They determine which differences are present in the comparisons and which side is labeled preferable. This is how the choice of synthetic data enters the final stage, even though the final calculation operates on text and a binary ordering.

The pairing is done offline, before the preference updates. Candidate replies have already been generated and rated, and that work is a prerequisite of the experiment. Offline here describes what the optimizer has available when it begins. It can read the same examples again on another pass, and the student’s latest replies do not determine which examples appear next. The preferences are therefore independent of the intermediate generations the student would have produced during that run.

How direct preference optimization uses the reference

The aim of the final update is to favor y_w over y_l for the shared prompt. The paper describes this in terms of a reward, a quantity associated with an answer in context. In an approach using PPO, a fitted reward predictor would supply that quantity and the training procedure would generate replies from the current policy to obtain information for updates. DPO instead uses a relationship between a policy and its reference to express the preference directly. It uses the student’s probability for a fixed reply and the reference’s probability for that reply.

There are two relevant policies throughout the update. The reference is the dSFT checkpoint. It stays fixed and supplies a baseline for how probable each candidate was before preference training. The trainable policy starts from the same checkpoint and changes as it processes comparisons. Looking at probabilities relative to the reference gives the objective a way to ask whether the student has changed its treatment of the winning and rejected replies in the desired direction. A candidate that was already easy for the reference to predict enters the calculation with that starting point accounted for.

The paper prints the following expression for the optimal reward.

r*(x,y) = β · π_*(y | x) / π_dSFT(y | x) + β · log Z(x)

Here r* is the optimal reward as a function of prompt x and answer y. The star marks an optimum in r* and in π_*, the optimal policy. The denominator π_dSFT(y | x) is the reference policy’s probability of the same answer. The vertical bar indicates that both probabilities condition on the request. β is a constant that sets the strength of the reference-related term, Z(x) is a prompt-dependent partition function, or normalizer, and log is the logarithm. The centered dot and the slash indicate multiplication and division, and the plus sign adds the prompt-dependent term.

There is a mathematical inconsistency between that displayed reward and the training objective that follows it. The reward display gives the probability ratio directly, while the training objective uses the logarithm of that ratio. When comparing replies for the same prompt, the contribution involving Z(x) cancels because it is shared. A plain probability ratio would still produce a difference of plain ratios after that cancellation. The objective the paper tells the reader to optimize uses a difference of log ratios. That objective and the stated update procedure specify the training step.

π_θ = arg max_π E_(x,y_w,y_l)∼D [
  log σ(β · log(π(y_w | x) / π_dSFT(y_w | x))
      − β · log(π(y_l | x) / π_dSFT(y_l | x)))
]

Here π_θ is the student policy parameterized by θ, the weights to be learned. The expression arg max_π indicates the policy sought by maximizing the objective over candidate policies π. E denotes an average over preference triples (x,y_w,y_l) from dataset D. The prompt is x, the preferred reply is y_w, and the rejected reply is y_l. Each π(y | x) gives the candidate policy’s conditional probability for the reply in that position. Each π_dSFT(y | x) gives the fixed reference’s probability of the corresponding reply, with the vertical bar denoting conditioning on x.

In the same expression log means logarithm, σ denotes the sigmoid, and β sets the scale of the comparison. The sigmoid converts the signed difference into a value that can be interpreted as a preference probability. The centered dots multiply the log ratios by β, the slashes form the ratios, and the minus sign subtracts the rejected reply’s term from the preferred reply’s term. The outer logarithm rewards a high estimated probability that the preferred reply comes first. The objective averages that reward across prompts and pairs.

The sign of the difference is central to what the training does. If the student raises the winning answer’s probability relative to its reference more than it raises the alternative’s, the difference favors the labeled ordering. It can also move the difference in the desired direction by reducing the relative probability of the rejected answer. The optimization concerns how the replies are treated together. A rising preference objective does not require every favored reply’s absolute probability to rise on every update.

The procedure uses both members of the pair under both policies. The reference scores the two stored replies in a forward pass, meaning its weights are used to compute probabilities and are left fixed. The student also scores the replies. The optimizer then uses the gradient of the objective to update the student. Because the text of each reply is already available, likelihood evaluation can condition on the existing reply sequence as it scores it. The optimizer needs no newly sampled answer to decide the next update.

This distinction is important to the reported efficiency. GPT-4’s judging and the candidate systems’ writing belong to the construction of the training data. In the preference run, the student and reference still perform probability calculations, and the student still incurs the work of back-propagation. The authors avoid the separate fitting of a reward predictor and the sampling of current-policy answers that their discussion associates with the PPO route. The run can proceed using a fixed set of scored comparisons.

Training the released assistant

The authors run preference optimization for one to three epochs. They report a linear learning-rate schedule peaking at 5e-7, with warmup over 10% of the steps. The global batch size for this stage is 32. The value of β is 0.1, which the authors describe as controlling deviation from the reference. The released Zephyr-7B uses the checkpoint from one epoch of UltraChat supervised training and then receives three epochs of direct optimization on the UltraFeedback pairs.

The fine-tuning experiments use the TRL library together with DeepSpeed ZeRO-3 and FlashAttention-2 to manage memory and speed up training. Optimization uses AdamW with no weight decay. Runs use bfloat16 precision on 16 A100s. The paper reports that they usually take 2-4 hours under that setup. This is a statement about elapsed experimental training time with the reported infrastructure and prepared datasets. Constructing those datasets through generation and rating is a separate part of the recipe.

The preprocessed datasets were made available on the Hugging Face Hub. The Alignment Handbook release includes the implementation, the trained checkpoints, and instructions and materials for reproducing the training. The public release covers what the authors used to adapt the student. Producing the original synthetic data involved both openly available and proprietary systems.

Experiments and results

Three views of the finished assistant

The paper measures whether Zephyr can carry out requests in conversation and whether its behavior changes on more constrained tasks. An assistant can succeed on a follow-up because it remembers a condition from the previous turn, while a fixed-answer assessment can reveal whether it still selects the right completion or factual response. AlpacaEval adds a third perspective by judging whether a single reply is preferable to a standard comparison answer. Each metric is tied to a particular task and kind of judgment.

MT-Bench provides 160 questions spanning eight areas. An instance begins with a request and then presents a pre-defined follow-up. The assistant’s second reply is produced in the context of the exchange so far. GPT-4 rates each response on a scale of 1-10, and the evaluation uses the mean across the two turns. A strong opening therefore contributes part of the result. The assistant also has to handle whatever the follow-up asks it to preserve, revise, or extend.

The categories include writing, roleplay, humanities, and extraction, as well as coding, math, reasoning, and STEM. The breadth gives the authors a way to inspect whether a similar overall score masks a different distribution of abilities. A model can write a credible reply in one class of tasks and struggle when a precise solution is required in another. The category breakdown helps locate the weaknesses represented by the aggregate score.

AlpacaEval contains 805 questions, largely concerned with helpfulness. Each produces a standalone response. GPT-4 compares that response against an answer from text-davinci-003, the fixed baseline, and the reported measure is the pairwise win rate. The comparison therefore asks how frequently the evaluated system’s reply is preferred to the baseline’s reply on that set of requests. Two systems can have similar win rates against the baseline while being attractive for different reasons or winning on different prompts.

The Open LLM Leaderboard evaluates multiclass tasks. Its tests include HellaSwag and ARC, alongside MMLU and TruthfulQA. The authors use the suite to look for changes in abilities such as reasoning and truthfulness after fine-tuning. The relevant output in such a test is a choice among answers. The evaluation therefore puts less weight on how a system manages an ongoing conversation or elaborates a response. It gives the authors a check on performance outside the two chat benchmarks.

Comparing training conditions and systems

The authors compare systems at the same parameter scale and also ask how far a strong 7B assistant can go against larger ones. The same-scale group includes Xwin-LM-7B, Mistral-Instruct, MPT-Chat, and StableLM-alpha. Larger open systems include Llama2-Chat, WizardLM, Vicuna, and Guanaco. They also consider a larger Xwin-LM. Proprietary chat comparisons include Claude 2, GPT-3.5-turbo, and GPT-4. These systems come with different foundations and alignment histories, so a benchmark placing them side by side is a comparison of finished assistants.

Xwin-LM-7B is of particular interest because its process uses distilled PPO. Its presence puts Zephyr alongside an alternative that also learns from synthetic preferences. Mistral-Instruct provides context at the same parameter scale and within the Mistral family. Llama2-Chat at 70B answers a separate question about how well the smaller assistant can do against a much larger open system trained with substantial human feedback. The controlled tests on a shared Mistral base address the role of the individual stages more directly.

The reported training configurations also put the chat comparison in context. The global batch counts compare how many training examples are grouped for an update in the supervised and preference stages. Each preference example contains a pair of replies, so counting examples alone leaves the amount of token processing per update undetermined.

Global batch size for UltraChat and UltraFeedback training

Zephyr uses a smaller global batch in its final preference stage.

Global batch size for UltraChat and UltraFeedback trainingSupervised tuning on UltraChat: 512Supervised tuning on UltraChat512Zephyr preference tuning on UltraFeedback (this paper): 32Zephyr preference tuning onUltraFeedback (this paper)32
The numbers
System or settingexamples per global batch
Supervised tuning on UltraChat512
Zephyr preference tuning on UltraFeedback (this paper)32

Here the direction on the chart refers to the smaller example count per batch. The experiment uses the two batch sizes for different objectives. It offers no measured link between batch size on its own and a higher chat score. The outcome of interest comes from evaluating the trained systems, with the architecture, data, and training choices of each one in place.

What the chat benchmarks show

Among the open 7B assistants in the comparison, Zephyr-7B leads on both MT-Bench and AlpacaEval. The authors report a substantial advantage over systems trained by distilled supervised fine-tuning. Zephyr also beats Xwin-LM-7B in the chat comparison. This shows that the Zephyr recipe can compete with a sampling-based route to learning from synthetic preferences. Since the comparison is between finished systems, the advantage reflects the recipes as used, with differences in data and training procedure together.

The comparison with Llama2-Chat-70B depends on which benchmark supplies the judgment. Zephyr scores higher on MT-Bench. On AlpacaEval, the authors report that the two results are within two standard deviations. These are different statements about performance. The first compares scores on a multi-turn test. The second describes proximity on a win-rate test against a fixed baseline. Together they support the characterization of Zephyr as competitive with Llama2-Chat-70B on the paper’s chat evaluations, with the clearer advantage belonging to MT-Bench.

The comparison with other assistants in the larger group puts that result in perspective. Zephyr scores below WizardLM-70B and Xwin-LM-70B in the paper’s discussion. The authors raise the possibility of applying dDPO at larger scales to close some of the remaining gap. The existing comparison shows that model size alone does not determine the ordering on the chat tests. A well-aligned small system can do better than a larger comparator in one evaluation, while other larger systems score better under the same broad experimental question.

On AlpacaEval, the authors describe Zephyr as competitive with GPT-3.5-turbo and Claude 2. They attach a condition to that reading. The prompts may give a limited picture of real use, particularly for demanding applications. The detailed MT-Bench comparison shows why the condition matters. Zephyr holds up against proprietary systems in several categories, but math and coding show pronounced weaknesses. An assistant can make a favorable impression on a set of helpfulness prompts while remaining unreliable on tasks where a small error changes the correctness of the entire answer.

The math example in the appendix helps relate the aggregate and category views. The authors pick a case where dDPO produces a reply that follows the mathematical instruction better than dSFT. An individual success can illustrate a behavioral improvement after preference learning. The larger category comparison still shows a gap relative to proprietary assistants. These two observations can coexist because they use different comparison points and different units of evidence. One compares two stages of Zephyr on a chosen problem. The other compares the finished assistant with other systems across a category.

What the academic tasks add

On the Open LLM Leaderboard, the authors describe Zephyr as the strongest 7B entry in their comparison. They report a substantial advantage over the best distilled supervised comparators and the distilled-PPO Xwin-LM at that scale. The result extends the observed advantage beyond the settings where a judge reads free-form replies. It gives some evidence that the post-training recipe can produce a strong small assistant while maintaining performance on constrained tasks.

Scale is more visible on some knowledge-intensive parts of this evaluation. The authors report that larger systems outperform Zephyr on some of those tasks, even though Zephyr reaches performance associated with systems at the 40B scale in their comparison. That statement concerns the academic leaderboard results. MT-Bench and AlpacaEval ask different questions and produce scores with different meanings. A comparison across parameter scales can be favorable on one test while revealing different strengths on another.

The academic results help qualify what an improvement in intent alignment amounts to. They give the authors an additional view of the resulting system’s abilities beyond its skill at writing chat replies that earn favorable judgments. A strong aggregate does not identify the contribution of any particular reasoning or factual skill. It also leaves open how the same knowledge is expressed in an unconstrained reply. The combined evaluation is informative because the chat and academic tasks impose different demands on the same checkpoint.

What the ablations show

The starting checkpoint changes what preference training can achieve

The authors compare ways of fine-tuning the same Mistral 7B foundation to see which parts of the recipe matter. The first applies direct preference optimization for one epoch on UltraFeedback starting from the base system. The second uses one epoch of supervised training on UltraChat. The third starts from that supervised checkpoint and adds one epoch of supervised learning using the highest-rated UltraFeedback replies as targets. The final comparison starts from the same supervised checkpoint and uses one epoch of direct preference optimization on the UltraFeedback pairs.

Direct preference optimization from the base produces poor results on both chat benchmarks. The appendix offers a behavioral clue. In the MT-Bench outputs the authors examine, the system struggles to use the chat template, the format that marks the roles and turns in a conversation. The result helps explain why jumping straight to a pairwise objective can fail. The optimizer changes the relative treatment of candidate replies. A system that has not learned to act as the assistant can still struggle to produce a usable reply at the right place in a chat exchange.

One epoch of UltraChat supervision produces much stronger chat scores than the direct-only condition. This gives the supervised stage a specific role. It supplies repeated examples of participation in a dialogue, and it puts the subsequent reference in a different behavioral state. In the two-stage recipe, these two effects come together. The student starts from a system that already answers as an assistant, and the probability ratios measure changes from that assistant. The ablation shows the importance of the starting stage within the reported procedure. It does not isolate how much of its value comes from learning the template and how much comes from the broader content of the dialogues.

The direct-only comparison also has a defined duration. The authors tried one epoch of preference optimization from the base in this ablation. Their observation is about its performance at that setting and with these examples. A different prompt representation or an independently established chat format would change what capabilities the direct-only run could rely on. The reported experiment establishes that, for Zephyr’s construction, retaining supervised preparation makes a large practical difference.

Seeing the winning answer and seeing what it beat

The comparison involving additional supervised tuning addresses a second explanation. Perhaps UltraFeedback simply supplies strong answers, and the value of the final stage comes from imitating those answers. To assess that, the authors take the checkpoint already trained on UltraChat and give it the top UltraFeedback completions as another round of supervised targets. This lets the student see the winners while setting aside the rejected alternatives. The authors find no meaningful change in chat performance from that additional supervised stage.

Applying preference optimization to the pairs instead produces a sizable rise on both chat benchmarks. The supervised and preference extensions start from the same checkpoint, draw on the same feedback collection, and run for one epoch in the ablation. The distinguishing intervention is to use the winner with an alternative and train on their relative probabilities. This is evidence that the preference comparison contributes something beyond exposure to the selected answer texts in the recipe.

The contrast also clarifies what kind of information an alternative can supply. A winning answer may have several qualities at once, including a style the judge likes and a choice that directly satisfies an instruction. The paired example exposes differences visible between answers to a common prompt. The objective then gives the student a directional signal about those answers as complete responses. The ablation evaluates that signal as a package. It leaves open which features the student learns most strongly and whether each learned preference is desirable.

The experiment also leaves the choice of loser open. The authors explain why they sample an alternative rather than always using the lowest score. The observed gain for the resulting pairs does not disentangle the effect of random selection from the effect of using comparisons at all. The strongest conclusion is that their implemented preference stage improved chat performance over the supervised extensions they tested.

Preference accuracy and chat performance follow different curves

The authors track how well the student ranks the stored preferences as optimization proceeds, with curves for training and test accuracy. After one epoch of DPO, the training-set accuracy is perfect. The authors describe this as strong overfitting. The event concerns correct ordering of the stored comparison pairs according to the objective. Each of those pairs asks the optimizer to put a known candidate ahead of another known candidate.

MT-Bench and AlpacaEval require the finished system to generate replies to benchmark prompts. This gives preference fitting and downstream evaluation different targets. The stored comparisons can become entirely separable under the student’s learned preference scores while the distribution over new replies continues to change. For that reason, perfect training accuracy gives a limited account of the state of the assistant. It identifies saturation on the pair-ordering measure.

In the experiments, the saturation does not coincide with worsening chat performance. The strongest schedule the authors report starts with one epoch of supervised training and continues for three epochs of preference training. The final Zephyr checkpoint comes from that schedule. Continued optimization can therefore be associated with a better chat result after the training pairs already have the right ordering. The epoch study makes the downstream benchmark necessary for choosing among checkpoints that a training-accuracy measure would treat as equally successful.

The pattern changes when the supervised stage runs longer. Starting from checkpoints trained for more than one supervised epoch, additional preference training can cause a regression. This gives the study a conclusion about the interaction of the stages. The effect of extending preference training depends on the checkpoint from which it begins. The best epoch count in this experiment belongs with its particular supervised schedule, rather than serving as an independent recommendation for direct preference optimization.

What the selected replies illustrate

The appendix compares dSFT and dDPO outputs on a few chosen examples. One illustrates better adherence to a mathematical request after preference training. Another probes a prompt with an erroneous premise about a helicopter and shows a subtle mistake in the supervised reply. The example is useful for understanding why the authors frame helpfulness as a question about how an assistant reads a request. Fluent participation in an exchange is only one part of answering well. A reply also needs to manage the assumptions embedded in what it is asked.

The paper also shows replies to selected harmful requests. Some responses after dDPO are more polite than those from dSFT, and in other examples the dDPO system follows the harmful instruction. The authors generated the adversarial examples using nucleus sampling with a top-p setting of 0.95 and a temperature of 0.7. Nucleus sampling limits the pool of token choices by cumulative probability, while temperature changes how concentrated the probabilities are before sampling. These are settings for producing the displayed adversarial completions. They describe how the examples were generated, distinct from the offline optimization that produced the checkpoint.

The examples identify behaviors a benchmark average can conceal. They involve chosen prompts, so they cannot give a rate for those behaviors or establish their prevalence before and after training. The math and false-premise examples are particularly suited to showing what a comparison of actual replies can reveal. The harmful-request examples also make clear why the paper separates helpfulness from a systematic account of safety.

Limitations

Limits the authors identify

The authors identify dependence on GPT-4 as an evaluator as a central limitation. GPT-4 supplies the judgments used to turn UltraFeedback ratings into a training signal. It is also the evaluator for the two main chat benchmarks. The resulting system is therefore trained with one role played by GPT-4 and measured with another. The authors point to evidence that the judge can favor systems distilled from it and can reward verbosity even when a reply may be incorrect.

These concerns affect the interpretation of the metric. An improvement can reflect better answers by the criteria the evaluator uses, including closer adherence to an instruction. It can also reflect movement toward a style the evaluator finds persuasive. Shared judgment preferences can matter even when the benchmark prompts differ from the prompts used for training. The experiments show a benchmark advantage under the specified scoring process. The authors’ caveat concerns how far that advantage carries over to the range of judgments people might make about the same replies.

The authors also question how well AlpacaEval represents real use and advanced applications. The benchmark is mostly concerned with helpfulness on isolated prompts, so an attractive win rate gives a picture conditioned on that mix. MT-Bench extends the exchange through a follow-up and covers several types of tasks. Its category results still reveal weaknesses in math and coding against proprietary competitors. The breadth of the tests helps make those differences visible. A claim about overall parity with a proprietary assistant would require evidence on the hard cases as well as on the prompts where the systems are competitive.

Scale is a further limitation named by the authors. They adapt Mistral at 7B and compare the result with larger existing chat systems. They leave open how much benefit their training procedure would produce if applied to a larger starting point such as Llama2-70B. Larger assistants in the results provide comparison targets with their own training histories. They leave the performance of a larger Zephyr-style run undetermined. The authors also did not test parameter-efficient fine-tuning methods such as LoRA, although they expect the result to carry over to them.

The paper explicitly confines intent alignment to helpfulness. It does not systematically test whether the assistant avoids harmful outputs or illegal advice. The appendix shows that favorable conversational behavior and appropriate boundaries can vary independently. Politeness can accompany a response that still carries out a harmful request. The authors also note a practical difficulty for distillation here. Obtaining suitable synthetic examples for safety training depends on the outputs available from teachers and on the feasibility of curating that material. Their discussion of possible improvements is a direction for research rather than an established result about the released assistant. Bias, fairness & safety

What follows from the design of the study

The evidence for using preference optimization is strongest in the shared-base comparison. The broader leaderboard results have a different evidentiary role. For example, Xwin-LM-7B provides a relevant comparison because it used a distilled PPO procedure. To isolate a difference between optimization algorithms, one would need to hold the data and other training choices fixed across them. The paper’s comparison establishes the relative performance of the complete systems in the reported tests. The ablation establishes what happens when the Zephyr recipe changes the use of UltraFeedback or omits the supervised starting stage.

The meaning of a preferred reply is limited to the comparison constructed for its prompt. The winner has the best mean rating of the candidates that were generated. A judge can still choose a weak answer from a weak set, and a world of better answers can lie outside the candidate pool. Pair construction also gives the objective limited information about why an answer won. When judgment and data collection are automated, the quality of the supervision depends on the generator pool, the judge, the scoring instructions, and the way the ratings are converted into pairs.

The random selection of the rejected reply can supply a variety of contrasts. It also makes each preference example a partial view of the original ratings. The experiment can demonstrate that these comparisons work in aggregate without showing that they capture the same priorities as a human comparison on each prompt. A human might favor a concise answer, demand stronger support for a claim, or disagree with the weight implicitly given to stylistic features. The paper supplies no direct human evaluation of the resulting preference-trained behavior on its two main chat tests.

The reported runtime has a defined cost boundary. A run that reuses prepared UltraChat and UltraFeedback data can go directly to supervised training and preference updates. Recreating comparable data would involve generating conversations, collecting candidate completions, obtaining teacher ratings, and preparing the results. Those activities still require capable systems and access to their outputs. The experiment shows that a team with the synthetic data and the reported hardware can adapt the student in hours. The hardware and prior data generation are conditions of that result.

Finally, the epoch experiment establishes a local relationship between successful pair fitting and benchmark performance. It shows that the loss of headroom in training-set accuracy need not coincide with lower chat scores, and that a longer supervised stage can change the effect of subsequent updates. The mechanism behind either pattern is unresolved. Extrapolating it would require experiments across alternative references, data, or scales. For this paper, the evidence supports choosing the released checkpoint on its measured downstream performance.

What came after

Making post-training a subject of study

Zephyr combined supervised adaptation, preference data, and a direct objective in a way that made the boundaries between them visible. Later citing work on open post-training addresses the broader problem those stages belong to. The title of Tulu 3 puts open post-training at the center of the research, the same phase in which Zephyr’s contribution operates. This is the closest connection in scope among the later works. Zephyr demonstrates a specific route from a pretrained foundation to a conversational assistant, while Tulu 3 takes open post-training as its wider subject. The common subject puts questions about the choice of training stages, the source of supervision, and the performance of the resulting assistant into a single experimental agenda. Tulu 3

LlamaFactory situates efficient fine-tuning across many language systems. Its connection to Zephyr is the practical problem of making adaptation methods usable beyond a single foundation and training configuration. Zephyr describes one concrete combination of a base system, data processing, and objectives. A unified fine-tuning effort has a broader implementation focus. It addresses adaptation as work that can be performed across systems, where the ability to specify and reproduce the training stages matters alongside the result of any one experiment. LlamaFactory

The paper on automatic data selection for instruction tuning approaches the part of the pipeline that determines which demonstrations enter training. Zephyr’s initial experience with UltraChat illustrates the premise of that research area. A large pool of synthetic conversations can contain recurring patterns that a student learns and reproduces, and curation changes the examples it sees. Research devoted to selecting instruction data turns that decision into the main object of study. This connection lies in the importance of the supervised data before preference optimization begins. What Makes Good Data for Alignment?

Testing the feedback and the resulting behavior

RewardBench concerns evaluation of reward models. Zephyr bypasses fitting a separate reward predictor for its final update, yet its success still depends on the quality of the preference signal. In Zephyr the relevant judgment arrives as ratings used to choose the winner in each pair. A benchmark devoted to reward models examines the quality of a closely related component in systems that explicitly predict rewards. The connection is the problem of assessing the judgments that will steer optimization, independently of how impressive the resulting assistant is on a chat leaderboard. RewardBench

The study of whether language systems can substitute for human judges takes up a question central to the interpretation of Zephyr. The original paper relies on automated judging at data construction and evaluation time and recognizes that this choice can favor certain response patterns. A study across NLP evaluation tasks makes the judge itself the object of assessment. Its stated scope connects to the question of when a favorable automated evaluation gives a sound account of what people would prefer. That is distinct from the question of whether an optimizer can fit the preferences it was given. LLMs instead of Human Judges?

MMLU-Pro develops a more challenging benchmark for multitask language understanding. The link to Zephyr runs through the academic side of the evaluation. Zephyr uses MMLU within a suite of constrained tests to check the adapted system outside conversation. A benchmark designed to make language-understanding assessment more demanding continues that part of the evaluation problem. It gives a separate focus to the capabilities that can sit underneath a polished chat response, particularly when a conversational score alone leaves the level of understanding unclear. MMLU-Pro

HarmBench is concerned with standardized evaluation of automated red teaming and robust refusal. It addresses a boundary the Zephyr authors draw around helpfulness. Their selected examples show that an assistant may respond politely and can still follow a harmful instruction. Evaluating robust refusal requires an explicit task for testing that behavior. HarmBench’s stated purpose connects to that need for a systematic measure, separate from asking how well an assistant carries out ordinary requests. HarmBench

These citing works link Zephyr to distinct questions about how assistants are adapted and how the result is measured. Their stated contributions establish those connections in scope. The specific experimental finding remains Zephyr’s own. On the Mistral foundation, learning from synthetic preferences after supervised dialogue training produced an assistant whose benchmark performance could compete with much larger systems, with the strongest claims tied to the tasks, the evaluator, and the training conditions the authors studied.

Cite

Cite as Lewis Tunstall, Edward Beeching, Nathan Lambert, Nazneen Rajani, Kashif Rasul, Younes Belkada, Shengyi Huang, Leandro von Werra, Clémentine Fourrier, Nathan Habib, Nathan Sarrazin, Omar Sanseviero, Alexander M. Rush and Thomas Wolf. 2023. Zephyr: Direct Distillation of LM Alignment. arXiv:2310.16944.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.48550/arxiv.2310.16944 · arXiv 2310.16944

@misc{tunstall2023zephyr,
  title = {{Zephyr: Direct Distillation of LM Alignment}},
  author = {Lewis Tunstall, Edward Beeching, Nathan Lambert, Nazneen Rajani, Kashif Rasul, Younes Belkada, Shengyi Huang, Leandro {von Werra}, Clémentine Fourrier, Nathan Habib, Nathan Sarrazin, Omar Sanseviero, Alexander M. Rush and Thomas Wolf},
  year = {2023},
  doi = {10.48550/arxiv.2310.16944},
  eprint = {2310.16944},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.2310.16944}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/tunstall-2023-zephyr-direct-distillation-lm-alignment/

References

38 references, from the paper's own bibliography.

  1. Fasteval, 2023. OpenAlex ↗ · Scholar ↗
  2. Together AI. Releasing 3b and 7b redpajama-incite family of models including base, instruction-tuned and chat models, 2023. URL https://together.ai/blog/redpajama-models-v1. OpenAlex ↗ · Scholar ↗
  3. 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 ↗
  4. 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/HuggingFaceH4/open_llm_leaderboard, 2023. OpenAlex ↗ · Scholar ↗
  5. 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. OpenAlex ↗ · Scholar ↗
  6. Hyung Won Chung, Le Hou, Shayne Longpre, Barret Zoph, Yi Tay, William Fedus, Yunxuan Li, Xuezhi Wang, Mostafa Dehghani, Siddhartha Brahma, Albert Webson, Shixiang Shane Gu, Zhuyun Dai, Mirac Suzgun, Xinyun Chen, Aakanksha Chowdhery, Alex Castro-Ros, Marie Pellat, Kevin Robinson, Dasha Valter, Sharan Narang, Gaurav Mishra, Adams Yu, Vincent Zhao, Yanping Huang, Andrew Dai, Hongkun Yu, Slav Petrov, Ed H Chi, Jeff Dean, Jacob Devlin, Adam Roberts, Denny Zhou, Quoc V Le, and Jason Wei. Scaling Instruction-Finetuned language models. October 2022. OpenAlex ↗ · Scholar ↗
  7. 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, 2018. our card
  8. 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. October 2023. OpenAlex ↗ · Scholar ↗
  9. Tri Dao. FlashAttention-2: Faster attention with better parallelism and work partitioning. 2023. our card
  10. Harm De Vries. Go smol or go home, 2023. URL https://www.harmdevries.com/post/model-size-vs-compute-overhead/. OpenAlex ↗ · Scholar ↗
  11. Tim Dettmers, Artidoro Pagnoni, Ari Holtzman, and Luke Zettlemoyer. Qlora: Efficient finetuning of quantized llms, 2023. our card
  12. 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. May 2023. our card
  13. Yann Dubois, Xuechen Li, Rohan Taori, Tianyi Zhang, Ishaan Gulrajani, Jimmy Ba, Carlos Guestrin, Percy Liang, and Tatsunori B. Hashimoto. Alpacafarm: A simulation framework for methods that learn from human feedback, 2023. our card
  14. Yao Fu, Litu Ou, Mingyu Chen, Yuhao Wan, Hao Peng, and Tushar Khot. Chain-of-thought hub: A continuous effort to measure large language models' reasoning performance, 2023. our card
  15. Arnav Gudibande, Eric Wallace, Charlie Snell, Xinyang Geng, Hao Liu, Pieter Abbeel, Sergey Levine, and Dawn Song. The false promise of imitating proprietary LLMs. May 2023. our card
  16. Dan Hendrycks, Collin Burns, Steven Basart, Andy Zou, Mantas Mazeika, Dawn Song, and Jacob Steinhardt. Measuring massive multitask language understanding, 2021. our card
  17. Edward J. Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, and Weizhu Chen. Lora: Low-rank adaptation of large language models, 2021. our card
  18. Albert Q Jiang, Alexandre Sablayrolles, Arthur Mensch, Chris Bamford, Devendra Singh Chaplot, Diego de las Casas, Florian Bressand, Gianna Lengyel, Guillaume Lample, Lucile Saulnier, Lélio Renard Lavaud, Marie-Anne Lachaux, Pierre Stock, Teven Le Scao, Thibaut Lavril, Thomas Wang, Timothée Lacroix, and William El Sayed. Mistral 7B. October 2023. OpenAlex ↗ · Scholar ↗
  19. 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, 2023. OpenAlex ↗ · Scholar ↗
  20. Stephanie Lin, Jacob Hilton, and Owain Evans. TruthfulQA: Measuring how models mimic human falsehoods, 2022. our card
  21. Mosaic ML. Introducing mpt-7b: A new standard for open-source, commercially usable llms, 2023. URL https://www.mosaicml.com/blog/mpt-7b. OpenAlex ↗ · Scholar ↗
  22. OpenAI. GPT-4 technical report. March 2023. our card
  23. Long Ouyang, Jeff Wu, Xu Jiang, Diogo Almeida, Carroll L Wainwright, Pamela Mishkin, Chong Zhang, Sandhini Agarwal, Katarina Slama, Alex Ray, John Schulman, Jacob Hilton, Fraser Kelton, Luke Miller, Maddie Simens, Amanda Askell, Peter Welinder, Paul Christiano, Jan Leike, and Ryan Lowe. Training language models to follow instructions with human feedback. pp. 27730–27744, March 2022. our card
  24. Guilherme Penedo, Quentin Malartic, Daniel Hesslow, Ruxandra Cojocaru, Alessandro Cappelli, Hamza Alobeidli, Baptiste Pannier, Ebtesam Almazrouei, and Julien Launay. The refinedweb dataset for falcon llm: Outperforming curated corpora with web data, and web data only, 2023. OpenAlex ↗ · Scholar ↗
  25. Rafael Rafailov, Archit Sharma, Eric Mitchell, Stefano Ermon, Christopher D Manning, and Chelsea Finn. Direct preference optimization: Your language model is secretly a reward model. May 2023. our card
  26. Samyam Rajbhandari, Jeff Rasley, Olatunji Ruwase, and Yuxiong He. Zero: Memory optimizations toward training trillion parameter models, 2020. OpenAlex ↗ · Scholar ↗
  27. Victor Sanh, Albert Webson, Colin Raffel, Stephen H Bach, Lintang Sutawika, Zaid Alyafeai, Antoine Chaffin, Arnaud Stiegler, Teven Le Scao, 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, Tali Bers, Stella Biderman, Leo Gao, Thomas Wolf, and Alexander M Rush. Multitask prompted training enables Zero-Shot task generalization. October 2021. our card
  28. John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. Proximal policy optimization algorithms. July 2017. OpenAlex ↗ · Scholar ↗
  29. Jo ao Sedoc, Daphne Ippolito, Arun Kirubarajan, Jai Thirani, Lyle Ungar, and Chris Callison-Burch. Chateval: A tool for chatbot evaluation. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics (Demonstrations), pp. 60–65. Association for Computational Linguistics, 2019. URL http://aclweb.org/anthology/N19-4011. OpenAlex ↗ · Scholar ↗
  30. Rohan Taori, Ishaan Gulrajani, Tianyi Zhang, Yann Dubois, Xuechen Li, Carlos Guestrin, Percy Liang, and Tatsunori B Hashimoto. Alpaca: A strong, replicable instruction-following model. Stanford Center for Research on Foundation Models. https://crfm. stanford. edu/2023/03/13/alpaca. html, 30 (6):0 7, 2023. OpenAlex ↗ · Scholar ↗
  31. Xwin-Lm Team. Xwin-LM, 2023. OpenAlex ↗ · Scholar ↗
  32. Hugo Touvron, Louis Martin, Kevin Stone, Peter Albert, Amjad Almahairi, Yasmine Babaei, Nikolay Bashlykov, Soumya Batra, Prajjwal Bhargava, Shruti Bhosale, Dan Bikel, Lukas Blecher, Cristian Canton Ferrer, Moya Chen, Guillem Cucurull, David Esiobu, Jude Fernandes, Jeremy Fu, Wenyin Fu, Brian Fuller, Cynthia Gao, Vedanuj Goswami, Naman Goyal, Anthony Hartshorn, Saghar Hosseini, Rui Hou, Hakan Inan, Marcin Kardas, Viktor Kerkez, Madian Khabsa, Isabel Kloumann, Artem Korenev, Punit Singh Koura, Marie-Anne Lachaux, Thibaut Lavril, Jenya Lee, Diana Liskovich, Yinghai Lu, Yuning Mao, Xavier Martinet, Todor Mihaylov, Pushkar Mishra, Igor Molybog, Yixin Nie, Andrew Poulton, Jeremy Reizenstein, Rashi Rungta, Kalyan Saladi, Alan Schelten, Ruan Silva, Eric Michael Smith, Ranjan Subramanian, Xiaoqing Ellen Tan, Binh Tang, Ross Taylor, Adina Williams, Jian Xiang Kuan, Puxin Xu, Zheng Yan, Iliyan Zarov, Yuchen Zhang, Angela Fan, Melanie Kambadur, Sharan Narang, Aurelien Rodriguez, Robert Stojnic, Sergey Edunov, and Thomas Scialom. Llama 2: Open foundation and Fine-Tuned chat models. July 2023. our card
  33. Leandro von Werra, Younes Belkada, Lewis Tunstall, Edward Beeching, Tristan Thrush, Nathan Lambert, and Shengyi Huang. TRL: Transformer reinforcement learning, 2020. OpenAlex ↗ · Scholar ↗
  34. Ben Wang and Aran Komatsuzaki. GPT-J-6B: A 6 billion parameter autoregressive language model, 2021. OpenAlex ↗ · Scholar ↗
  35. 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, July 2023. Association for Computational Linguistics. our card
  36. 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. OpenAlex ↗ · Scholar ↗
  37. Rowan Zellers, Ari Holtzman, Yonatan Bisk, Ali Farhadi, and Yejin Choi. HellaSwag: Can a machine really finish your sentence?, 2019. OpenAlex ↗ · Scholar ↗
  38. Lianmin Zheng, Wei-Lin Chiang, Ying Sheng, Siyuan Zhuang, Zhanghao Wu, Yonghao Zhuang, Zi Lin, Zhuohan Li, Dacheng Li, Eric P Xing, Hao Zhang, Joseph E Gonzalez, and Ion Stoica. Judging LLM-as-a-Judge with MT-Bench and chatbot arena. June 2023. our card