Data Diversity Matters for Robust Instruction Tuning
Paper · 2024 · Alexander Bukharin, Shiyang Li, Zhengyang Wang et al.
Summary
A collection of excellent answers can still make a poor training set if it contains too many examples of the same kind of request. This paper asks how to choose a small set of instruction–response pairs from a larger collection so that a system learns to handle a wide range of requests. The authors examine two properties of the chosen examples. Quality concerns how well each response answers its instruction. Diversity concerns how well the selected instructions represent the range of requests in the original collection. Both matter for instruction tuning, a form of supervised fine-tuning in which a pretrained system learns from examples of requests and their desired responses.
The authors propose Quality-Diversity Instruction Tuning, or QDIT. It represents each instruction as a vector and uses similarities between vectors to measure coverage. For every instruction in the original collection, it looks for the closest representative in the selected set. A candidate is useful for coverage when it represents requests that are still poorly served by the examples already chosen. QDIT combines this contribution with a separate score for the candidate’s instruction and response, then adds the highest-scoring candidate. Changing the relative weight of the two signals lets the authors investigate how favoring one affects the other. They find that selection based purely on quality can reduce coverage, and that a substantial increase in coverage is often possible while retaining much of the quality advantage.
Across the instruction-tuning datasets studied, the clearest gains came on the prompts where responses received the lowest scores. Compared with choosing examples by quality alone, QDIT improved the average Helpful–Harmless reward score by 1.5% and the reward score for the lowest-scoring 10% of instructions by 5.2%. A separate evaluation asked a judge to compare responses with those from a reference trained on Alpaca 52K. Against that reference, the reported improvement was 4.17% in overall winning score and 6.26% on the hardest prompts. The highest-scoring responses generally changed less. The exact tradeoff varied by dataset and metric, and some individual comparisons favored quality-only selection.
In the authors’ analysis, the diverse subsets also tended to include training instructions closer to the test prompts. One example concerned making a short video. The closest QDIT training instruction asked for help making a short video about nutrition, and the resulting response to the test request offered concrete suggestions. That example illustrates a possible role for coverage in generalization. The experiments establish the broader result through comparisons across datasets, training configurations and evaluators. In this study, robustness means performing better on the lower tail of an instruction-following evaluation, where a useful gain can coexist with a modest change in the overall average.
Deep dive: Data Diversity Matters for Robust Instruction Tuning
Data Diversity Matters for Robust Instruction Tuning examines how training on varied, high-quality examples helps on the hardest prompts. · about 37 minutes to read
The problem and its context
Choosing examples for a system that already knows a great deal
Instruction tuning starts with a pretrained large language model and gives it demonstrations of how to respond to requests. The distinction between pretraining and instruction tuning explains why the choice of demonstrations matters. A pretrained system can possess abilities relevant to many tasks while still being difficult to direct with an ordinary request. An instruction and its associated response demonstrate both what the user is asking for and what fulfilling that request looks like. The paper treats selection of these demonstrations as a problem in its own right.
The paper situates this problem in earlier work on transferring instruction-following behavior across tasks. Researchers had trained on examples written as requests with expected responses, using declarative instructions or prompted tasks to express the desired behavior. The premise was that learning to respond to a collection of instructions could help a system respond to other instructions at evaluation time. This background explains why the composition of a training collection matters alongside its size. The demonstrations are also evidence about what kinds of requests can be made. Finetuned Language Models Are Zero-Shot Learners · Multitask Prompted Training Enables Zero-Shot Task Generalization
The authors point to an earlier study that manually chose or wrote 1000 instructions with expert involvement and reported better performance than training on larger collections. They use that finding to motivate a practical question. If a carefully chosen collection can be small, how should a researcher choose it when the candidate pool is too large to inspect example by example? Keeping the selected collection small reduces the amount of training work and makes it easier to repeat training while trying different choices. The selection procedure therefore matters both as a way to improve the examples and as a way to make experiments feasible.
A person curating a small collection can notice that many examples cover similar tasks, even when their wording varies. The person can also recognize a useful answer to a request that otherwise has little representation. Automatic curation needs operational versions of both judgments. One score needs to say something about the usefulness of the answer, and another needs to say what is gained by adding the instruction to the collection already chosen. The latter judgment depends on the rest of the collection. An example can be useful when it is the first representative of a task and offer little additional coverage when several similar requests are already present.
Earlier approaches to data curation
The paper groups earlier approaches around manual curation, generation by proprietary systems, and automatic selection from existing pools. Manual curation emphasized well-written instruction–response pairs and drew material from different disciplines and internet forums. That breadth was part of the intended design. It depended on people who could judge both individual examples and the balance of the collection. The difficulty, from the authors’ perspective, was preserving those judgments when curating a collection large enough to make direct inspection expensive.
Another approach used a proprietary system to generate instruction-tuning examples. In the work the authors discuss, a system such as GPT-4 could supply responses for downstream training, and researchers paid attention to the range of requests as well as to the quality of the generated material. The paper identifies expense and possible legal concerns as reasons to investigate how much can be done with examples that have already been collected. In this framing, generating the candidates and deciding which candidates to keep are distinct jobs. Instruction Tuning with GPT-4
Automatic selection offered a more direct starting point. Some prior methods gave each candidate a quality rating and retained the highest-rated examples. Another line of work used difficulty as a selection signal. A quality ranking is straightforward to apply because each example has a position in the ranking before selection starts. But an independent rating only evaluates the pair on its own terms. A long run of highly rated examples can repeat a task while leaving other parts of the pool with few representatives. This is the particular gap QDIT is meant to address.
The authors also discuss approaches that enforce a minimum distance between selected examples. Such a rule makes near-duplicates less likely to enter the same subset. It describes the distances within the selected subset, however, while representation is a relationship between that subset and the full pool. It is possible to spread the selected points apart and still miss many of the requests in the original collection. It is also possible for several somewhat similar requests to justify separate representatives if they correspond to distinct, densely populated parts of the pool. A coverage objective can make those distinctions because it takes account of the examples left outside the selection.
The paper places this approach alongside prior uses of diversity in natural language processing and concurrent work on diversity or uncertainty for instruction tuning. It describes the concurrent studies as examining those signals separately from dataset quality. The authors’ specific question is what happens when both signals compete for the same limited number of training slots. That requires an adjustable selection rule and an evaluation that can reveal where performance changes. An overall average gives a broad view of instruction following. A low-scoring portion of the evaluation can show whether the gains reach requests that are difficult for a particular trained system.
The method, step by step
Represent the instructions and score the answers
Suppose a training pool already contains requests and responses. QDIT keeps the pairing intact. It reads the instruction to determine what kinds of requests an example can help represent, and uses a quality rating of the pair to judge the example as a demonstration. This distinction matters when similar requests have answers of different quality. The instructions may have much the same value for representing the rest of the pool, while the accompanying responses give a reason to prefer one candidate.
For coverage, the authors encode each instruction using a sentence transformer, specifically all-mpnet-base-v2. An embedding is a vector that serves as a numerical representation of the text. QDIT compares these vectors using cosine similarity, which expresses how closely aligned their directions are. The method uses this comparison as a proxy for semantic similarity. The calculation takes place in the space defined by the encoder, so the features that the encoder represents determine which instructions count as neighbors. The use of sentence embeddings follows the line of work represented by Sentence-BERT.
The quality signal comes from a separate scorer. The paper considers two sources for this score. One is an assessment of an instruction and its response by a system such as ChatGPT. The other is a reward scorer trained on human preference data. Such a scorer assigns a numerical value to a response in context, using what it learned from judgments about which responses people prefer. In the main experiments, the authors use an existing set of ChatGPT ratings for Alpaca. For the other training pools, they use the scorer described in their experimental setup. Human preference data thus informs some of the training selection through the scorer rather than through a fresh review of every candidate by the authors.
The ratings and embeddings are computed or supplied before selection. An example’s quality stays the same as other examples enter the subset. Its usefulness for coverage can change at each step. If a new selection already represents the instructions that a candidate would have covered, that candidate contributes less than it would have earlier. QDIT depends on this changing value to compare redundancy against the quality of a demonstration.
How QDIT selects training examples
The steps in order.
Measure coverage of the pool
The paper uses the facility location function to give coverage a precise meaning. The name comes from an optimization problem in which a limited set of locations must serve a wider collection of points. Here the selected instructions play the role of locations. Each instruction in the whole pool is represented by whichever selected instruction is most similar to it. The function adds up these best similarities.
d(A) = ∑ᵥ∈ⱽ maxₐ∈ᴬ sim(a, v)
Here V is the full pool, and A is the selected subset of that pool. The symbol v denotes a pool example and a denotes a selected example. The notation ∈ means membership in a set. The function sim(a, v) compares the instruction embeddings of the two examples using cosine similarity. The max chooses the highest such similarity over selected examples for a given v. The summation ∑ runs over every v in V, so d(A) is the resulting coverage score for the whole subset.
A high value means that the pool instructions tend to have good representatives. What matters for an individual pool instruction is its best representative. Once that representative is chosen, another very similar selection can add little for that part of the pool. A candidate from elsewhere can increase the score for instructions that currently have weaker matches. The function gives the selection process a reason to move away from the task types it has already covered.
The summation also gives this form of diversity a particular meaning. It weights the pool through its examples. A candidate that slightly improves the representation of many instructions can be useful, as can one that makes a large improvement for a smaller set. A rare task can contribute to the score, with its influence depending on how much its examples stand to gain. The objective therefore measures representation of an observed collection. It contains no requirement that each topic or task category receive an equal allotment of examples.
The paper uses the notation below for the gain from adding a candidate. Written as a change in facility location coverage for an existing subset, the gain is
d(a | A) = d(A ∪ {a}) − d(A)
Here d(a | A) is the marginal diversity gain of candidate a given the current subset A. The vertical bar indicates that the gain is evaluated in the context of A. The braces in {a} denote a set containing the candidate alone, and ∪ adds that set to A by taking their union. The two quantities on the right are the coverage after and before the addition, respectively. The subtraction − gives the amount added to the coverage score.
This quantity is particularly intuitive once there are already examples in the subset. A candidate changes the contribution of a pool instruction only when it offers that instruction a better match. One can thus understand the marginal calculation by imagining the best similarity currently available to each instruction and asking where a new candidate would raise it. The more coverage the algorithm has already accumulated in an area, the less room there is for another nearby point to improve it. That property also helps explain the paper’s use of a greedy method and of shortcuts that avoid reconsidering every candidate in full at every step.
Combine marginal coverage with quality
The paper writes the quality function as q. Applied to an example, it returns the rating of the instruction–response pair. To describe the quality of a finished subset, the authors take the average of the selected examples’ ratings. To decide which candidate to add, they use its individual rating alongside its marginal contribution to coverage.
f(a | A, α) = (1 − α)d(a | A) + αq(a)
Here f(a | A, α) is the joint selection score for candidate a given the subset A and the weight α. The term d(a | A) is the added coverage from that candidate, and q(a) is its quality rating. The parameter α lies between 0 and 1, inclusive. The coefficient 1 − α weights the coverage gain, and α weights quality. Juxtaposition denotes multiplication and + adds the two weighted components.
At α = 1, QDIT is equivalent to keeping the candidates with the highest quality ratings. Because coverage has zero weight, the membership of the current subset gives the scoring rule no additional information. At α = 0, the next choice depends completely on the coverage it adds. This is the classical greedy approach to the coverage problem described by the paper. Between the endpoints, a candidate can have some advantage on each dimension, or a sufficiently large advantage on one to make up for weaker performance on the other. The balance depends on the numerical scales of the two signals as well as on the coefficient.
The authors use this same rule for both data selection and analysis. As a data selection method, it provides a way to seek a high-quality subset that also represents more of the pool. As an experimental device, it gives them a single parameter that changes the pressure in favor of each objective. They can then examine the quality and coverage of the resulting collections, fine-tune on them, and observe how each choice affects different portions of the evaluation.
Build the subset and train on it
At the start, the selected set is empty, and all candidates remain available. The user of the algorithm specifies K, the target number of examples. At every step, the algorithm finds an available candidate that maximizes the joint score, adds that candidate to the subset, and takes it out of the remaining pool. The next step evaluates candidates in light of the updated set. Selection stops when the set contains K examples. The paper’s pseudocode gives the choice of candidate in this form.
a ← arg maxᵦ∈ᴿ f(b | A, α)
Here R is the set of candidates still available. The variable b ranges over those candidates, as indicated by b ∈ R. The operator arg max returns a candidate at which the score is greatest. The arrow ← assigns that candidate to a, and the score f uses the current selected set A and the fixed weight α. Once chosen, the candidate’s full instruction–response pair joins the training set.
This procedure is greedy because it makes the strongest available addition at each step. It builds the solution one choice at a time. The authors cite a worst-case approximation result for the pure-coverage setting at α = 0, where the classical greedy algorithm gives the best approximation ratio available to a polynomial-time algorithm in the terms stated by the paper. The relevant objective in that argument is coverage. The later evaluations concern a different outcome, namely how well supervised training on the chosen subset teaches a system to follow instructions.
The paper reports a straightforward selection complexity of
O(|V|³ K)
In this expression, O describes how the amount of work grows with the inputs. The vertical lines in |V| give the number of examples in the full pool V. The superscript ³ represents the cubic dependence reported for a selection step, and the factor K is the number of steps needed to fill the requested subset. For a large pool, the paper treats this straightforward approach as too expensive and combines several ways to reduce the work.
GPU parallelism helps evaluate many similarities or candidates concurrently. Lazy greedy selection uses earlier gain estimates to avoid updating every candidate immediately. When a candidate’s potential contribution is bounded by a sufficiently low previous score, the algorithm can prioritize checking candidates with a better chance of being chosen. Sub-sampling limits how many candidates the method considers for a choice. The authors describe these techniques as compatible with one another and report that their combination makes selection from pools containing millions of instructions practical within a few hours.
One timing experiment measured roughly 9.42 minutes to select 10,000 examples on a single A100 40G GPU, once the embeddings and reward scores were available. For comparison, the authors report 48 minutes of training on Ultrachat 10K using 8 A100 40G GPUs. They describe selection as 2% of the training cost in that comparison. The reported wall times refer to different hardware allocations, and the selection figure starts after the candidate features and ratings have been obtained.
After selection, the method uses ordinary supervised instruction tuning. The system sees the selected requests and their paired responses as training examples. QDIT’s role ends with choosing those pairs. In the main comparison, the training procedure and number of epochs are held fixed across selection strategies for a given dataset and budget. An epoch is a pass through the training collection. This setup lets the study examine the effect of changing the examples while keeping the basic learning procedure and amount of training data comparable.
Experiments and results
Training pools and comparisons
The authors use Alpaca 52K and Dolly 15K for their smaller-pool experiments. They follow a small-data setting in which they select ∼ 5% of the original collection. The corresponding experiments are labeled Alpaca 3K and Dolly 1K. For the larger pools, they use Ultrachat 1.3M, LMSYS-Chat 1M and Mixed 270K. Each large-pool comparison selects 10K examples. Mixed 270K combines Alpaca 52K, Dolly 15K and OIG-small-chip2, which is listed with 210K examples.
The primary system starts from LLaMA-1 7B. The authors follow the Alpaca training procedure and keep the number of epochs the same across the main settings. The Alpaca training pairs have ChatGPT quality ratings from the Alpagasus work. The remaining training pools are rated with a reward scorer trained on the Anthropic Helpful Harmless dataset. The paper reports over 75% test accuracy for that scorer. That figure describes the scorer’s own evaluation and gives context for the signal QDIT uses.
The main baselines are random selection and quality-based selection. Random selection samples the requested number of examples from the same pool. Quality-based selection fills the same budget from the top of the quality ranking. For Alpaca, this baseline uses the Alpagasus training data. The comparisons answer different questions. Random selection tests whether the extra information used by a selector improves over sampling the pool. Quality selection tests whether changing which high-quality examples are kept improves training once a quality score is already available.
The main QDIT runs use α = 0.7 for Alpaca, Dolly, Ultrachat and LMSYS. Mixed uses α = 0.9. The large-pool results also include pairwise comparisons with a reference trained on a random 50K from the corresponding pool. That reference gives a separate view of how the selected 10K compares with a larger randomly assembled collection. Moreover, the authors use the reference trained on Alpaca 52K across the main results, including comparisons of the highest- and lowest-scoring portions of the evaluation.
How the paper evaluates responses
One evaluation asks a judge to compare two responses to the same prompt. The primary judge is Claude 2. The authors evaluate on a collection that includes InstructEval, Vicuna and Koala, as well as WizardLM and a set of 200 manually curated examples from ShareGPT. They present each response pair in both orders to reduce the effect of a consistent preference for one position. The responses being judged therefore exchange places between the two presentations. WizardLM
The paper converts the pairwise decisions into a winning score. The offset in the score makes tied overall outcomes easy to identify, while wins and losses determine the direction in which the result moves.
winning score = ((# Win − # Lose) / Total comparisons) + 1
The symbol # denotes a count. # Win counts comparisons won by the evaluated system against the stated reference, and # Lose counts the comparisons it lost. Total comparisons is the number of judgments, including ties. The signs − and / indicate subtraction and division, respectively, and + 1 shifts the score so that an equal number of wins and losses gives 1. Ties contribute through the denominator. A higher winning score means a more favorable balance of wins and losses against the named reference.
The other main evaluation gives each response a reward score, called the HH Score in the paper. The authors compute its mean across the evaluation and separately examine its lower and upper tails. For worst-case HH performance, they rank a system’s responses by HH Score and average the scores for its lowest 10% of instructions. For best-case performance, they use its top 10%. The instructions in a tail can vary with the trained system. The resulting statistic describes each system’s response distribution, with the comparison focused on how low its scores get across the lower tail.
The authors also report pairwise winning scores for the portions identified as hardest and easiest using HH Score. This adds a second form of judgment to the tail analysis. The reward scorer identifies the slice, while the pairwise judge compares answers within it. A system can show a stronger lower tail according to the reward score and a smaller or even reversed change in the pairwise measure. Both measures refer to evaluated responses, and the pairwise score additionally depends on the reference with which those responses are compared.
Average and lower-tail performance
The quality-only baseline improves average performance over random selection. Across the settings, the paper reports a 6.37% improvement in average winning score against Alpaca 52K and an 11.6% improvement in mean HH Score. The lowest 10% winning score is less consistent. The paper reports that quality selection reduced this score in two out of five settings relative to random selection. This matters because it is possible to produce better answers on average while still becoming less competitive on some of the requests the evaluation identifies as hardest.
Compared with quality selection, QDIT improves the average winning score against Alpaca 52K by 4.17% and the mean HH Score by 1.5%. The reported improvements for the lower tail are 6.26% for the winning score against Alpaca 52K and 5.2% for HH Score. A paired t-test across datasets gave p < 0.05 for the robustness gain. The percentile analysis gives additional detail about its location. The gains in HH Score were concentrated in the lower and middle parts of the distribution, with comparatively little change at the highest percentiles.
Ultrachat shows how the gains can be distributed unevenly across metrics. With 10K examples selected from Ultrachat 1.3M, mean HH Score was 6.219 after random selection, 6.961 after quality-based selection and 6.993 after QDIT with α = 0.7. On the lowest 10% by HH Score, those systems received 2.620, 3.405 and 3.497, respectively. Their pairwise results on the hardest prompts distinguish the two selective methods more clearly. The scores in the chart are relative to Alpaca 52K.
Ultrachat 1.3M selection methods by lowest 10% winning score against Alpaca 52K
QDIT leads quality-based and random selection on the hardest prompts.
The numbers
| System or setting | winning score |
|---|---|
| Random 10K | 1.074 |
| Quality 10K | 1.175 |
| QDIT 10K (this paper) | 1.280 |
On the same Ultrachat evaluation, the overall winning scores against Alpaca 52K were 1.138 for random selection, 1.224 for quality selection and 1.226 for QDIT. Against the reference trained on a random 50K from Ultrachat, the respective scores were 0.969, 1.013 and 1.038. At the upper end, quality selection and QDIT both obtained 10.454 for the top 10% HH Score. For that same upper-tail comparison against Alpaca 52K, quality selection received a winning score of 1.303 and QDIT received 1.293. The pattern gives a concrete example of why the authors examine the tails separately. Methods that are close overall can differ substantially in how their strongest and weakest responses are distributed.
The LMSYS results provide another view of the lower-tail result. With 10K examples chosen from LMSYS 1M, the lowest 10% HH Score was 2.575 for random selection, 3.391 for quality selection and 3.551 for QDIT. Yet quality selection had the higher mean HH Score, at 7.066 compared with QDIT’s 7.0. Pairwise judgment favored QDIT on the overall comparison against Alpaca 52K, where QDIT received 1.224 and quality selection received 1.198. It also favored QDIT on the lowest 10% comparison, where the scores were 1.149 for QDIT and 1.052 for quality selection. Random selection scored 1.057 on that lowest 10% pairwise comparison. Thus the two tail metrics capture complementary aspects of performance even on one training pool.
Mixed 270K shows a reversal in the other direction. With 10K selected examples, mean HH Score rose from 5.443 for random selection to 6.140 for quality selection and 6.276 for QDIT at α = 0.9. The lowest 10% HH Score followed the same ordering at 2.260, 2.973 and 3.054. The lowest 10% winning score against Alpaca 52K was 0.940 for random selection, 0.989 for quality selection and 0.973 for QDIT. The quality baseline therefore retains an advantage on this particular pairwise slice. On the overall comparison against the in-pool Random 50K reference, QDIT scored 1.083 and quality selection scored 1.04.
Results with small subsets
The smaller pools help test whether the result depends on starting with a very large candidate collection. On Alpaca 3K, the lowest 10% HH Score was 2.105 for random selection, 2.306 for quality selection and 2.513 for QDIT. On the lowest 10% pairwise comparison against Alpaca 52K, the ordering was different. Random selection obtained 0.931, followed by QDIT at 0.924 and quality selection at 0.873. On the top 10% pairwise comparison, QDIT scored 1.056, while the quality baseline scored 0.934. In this pool, adding diversity improved the lower tail over quality selection under both evaluation measures, with random selection still slightly ahead on the hardest-prompt pairwise measure.
Alpaca 3K selection methods by lowest 10% HH Score
Combining coverage with quality gives the strongest lower-tail reward score.
The numbers
| System or setting | HH Score |
|---|---|
| Random 3K | 2.105 |
| Quality 3K | 2.306 |
| QDIT 3K (this paper) | 2.513 |
On Dolly 1K, the lowest 10% HH Score was 1.474 after random selection, 2.082 after quality selection and 2.229 after QDIT. The corresponding lowest 10% winning scores against Alpaca 52K were 0.632, 0.681 and 0.742. The top 10% HH Score likewise favored QDIT at 7.873, compared with 7.751 for quality selection and 6.144 for random selection. Dolly illustrates a setting where the improvement extends to the upper tail as well. Taken together, the small-pool comparisons give concrete examples of both possible patterns in the main result. The advantage can be concentrated in the weaker portion of the evaluation, or it can extend to easier prompts in a particular dataset.
What the ablations show
Does the coverage score reflect observable variety?
The authors first examine the training data itself. A higher facility location score could simply show that the optimizer is succeeding according to its own definition. To make the comparison more interpretable, the authors use a separate, linguistic description of the selections. They apply the Berkeley Neural Parser to identify the root verb and first direct noun in Alpaca instructions. The root verb represents the main action in the parse, and the noun adds an indication of what that action concerns. The resulting pairs give a compact way to see whether a few kinds of request dominate the selection. Constituency Parsing with a Self-Attentive Encoder
For Alpaca subsets of 3000 examples, they compare random sampling, quality ranking and QDIT with α = 0. The coverage-only selection contains 1347 distinct verb–noun pairs, compared with 1308 in the random subset. Their distributions also show a more even spread under coverage selection. Quality-only selection reduces the observable variety. This comparison gives the embedding objective an independent check: it changes a property that can be inspected without using the facility location score itself. The verb–noun description remains a coarse view, since tasks can share a verb and noun while making different demands, and paraphrases can express similar tasks with different words.
The authors also vary α and examine the average quality and coverage of the chosen Alpaca 3K subset. The results trace a gradual tradeoff. Moving away from purely quality-based selection can improve coverage while leaving much of the average quality intact. The paper shows related comparisons for Mixed 270K, Ultrachat 1.3M and LMSYS 1M. For Mixed, the analysis spans selections labeled 1K, 5K and 10K. These comparisons show that the ability to adjust the measured qualities of the subset is present across several pools and budgets. The downstream question is whether the points on that tradeoff also differ in how well the trained system responds.
How strongly should the selector favor quality?
The authors sweep α and evaluate the systems trained on the resulting subsets. This analysis covers Dolly 1K, Alpaca 3K, Mixed 10K, Ultrachat 10K and LMSYS 10K. The results vary gradually across much of the range. The paper identifies 0.5, 0.7 and 0.9 as values that often give the strongest average and worst-case results. Performance falls when the quality weight is as low as 0.1, and quality-only selection at α = 1 also gives up performance in the comparisons emphasized by the authors.
This sweep distinguishes the value of added coverage from the idea that maximizing coverage should itself produce the best training set. The linguistic analysis used the diversity-only endpoint to make the effect on the selected instructions visible. The downstream results show why the paper’s final selector still gives a strong role to response quality. An instruction that fills a gap in the collection is useful as a training demonstration when its response offers something worth learning. At the other extreme, quality ranking can keep replacing opportunities to cover a new request with additional examples from well-represented parts of the pool. The good settings in the sweep retain some pressure in both directions. The preferred numerical balance varies with the pool and with the outcome being measured.
Is coverage selection equivalent to filtering duplicates or balancing clusters?
The first alternative, QDIT Threshold, begins with a quality ranking. It works through the candidates and only accepts an example if its instruction is sufficiently dissimilar to every instruction already accepted. The authors use cosine similarity and set the threshold τ to 0.5. The symbol τ denotes the maximum similarity allowed by the filter. This procedure gives highly rated examples the first opportunity to enter the set. Its diversity check evaluates whether a candidate is too close to a selected example.
A similarity threshold answers a narrower question than facility location. Consider a candidate that passes the threshold because it is far from what has already been selected. It passes regardless of how many other pool instructions it could represent. Meanwhile, a candidate that fails the threshold may still be the best available representative for a group of pool instructions whose existing matches are weak. In the threshold rule, these cases are decided by one candidate’s similarity to the selected set. In QDIT, they are decided by the candidate’s aggregate contribution across the pool, tempered by quality.
The second alternative, QDIT Cluster, groups instructions using k-means over the sentence-transformer embeddings. The authors set k = 100, where k is the number of clusters. They give each cluster an equal share of the selection, choosing its highest-quality examples. This design spreads selections across groups defined in advance. Its success therefore depends on the clustering and on the quality of examples in each group. In a pool with uneven cluster sizes or uneven quality, equal quotas can allocate training slots to relatively weak examples. The main QDIT rule can add examples where they improve coverage and quality without first drawing fixed boundaries or assigning equal quotas.
The paper illustrates the selection behavior of these alternatives on an example pool and compares them empirically on Ultrachat. Both variants have slightly weaker average performance than the main method in that comparison, with often much weaker worst-case results. The finding is relevant to the meaning of diversity in this study. Removing repetitions and spreading examples across groups can make a set look varied. The method that performed better on the lower tail gave priority to how well the chosen examples collectively covered the original pool, while continuing to reward higher-quality responses.
Do the effects survive changes in training and evaluation?
The authors compare different subset sizes using Ultrachat. The largest benefits from QDIT occur when the training collection is small, though the method can still improve performance with larger selections. When only a small fraction of the candidates can be used, each slot matters more because choosing several examples from one area leaves fewer opportunities to represent other requests. With a larger selection, a quality-ranked or random sample has more opportunities to cover different areas. That offers an interpretation of the size dependence alongside the measurements in the paper.
The size experiment also shows that adding examples can have different effects on average and lower-tail results. Increasing the subset beyond 50K yields only marginal average gains and can reduce the worst-case HH Score. The authors suggest that the average reward rating of selected training examples falls as the collection grows. In a quality-ranked collection, expanding the budget means moving further down the ranking. In a joint selection, it means deciding among candidates left after the strongest combinations of quality and coverage have been used. The study uses the observed decline in the selected examples’ average reward to motivate its explanation of the weaker return from additional data.
Experiments with other pretrained starting points examine whether the effect depends on the main LLaMA-1 7B setup. The paper reports improvements in mean and worst-case performance for other starting points, including LLaMA-2-13B. It notes that LLaMA-2-13B was trained for 2 epochs and that this may account for a lower absolute HH Score. The relevant comparison is how the selection strategies fare within a given training configuration. Differences between starting points also reflect the conditions under which each was tuned. Llama 2
The authors additionally test sensitivity to training randomness on Alpaca 3K over 3 seeds. A seed changes the way a run realizes random choices, so repetition helps reveal whether a result depends heavily on one run. The mean HH Scores across those seeds were 5.55 for random selection, 5.61 for quality selection and 5.63 for QDIT. The corresponding standard deviations were 0.05, 0.01 and 0.02. For worst-case HH Score, the means were 2.12, 2.30 and 2.41, with standard deviations of 0.04, 0.02 and 0.07, respectively. The quality-based and joint selections again lead random selection, and the more visible advantage of QDIT over quality selection remains in the lower tail.
To test whether the robustness result depends on the preferences of one judge, the authors repeat lowest-tail pairwise evaluation on Alpaca using Claude-2, Claude-2.1, GPT-3.5-Turbo and GPT-4-Turbo. QDIT consistently improves worst-case performance in these comparisons. They also conduct a blind preference study in which a subset of the authors judges the responses. The order is randomized so annotators are unaware of which system supplied each response. They choose their preferred answer using the Alpacafarm evaluation prompt. These checks give the study several sources of response judgments while retaining the paper’s definition of which responses belong to the low-scoring slice.
What changes on other benchmarks?
The authors also evaluate on standard benchmarks that test abilities related to instruction following. MMLU, BBH and DROP receive demonstrations in the evaluation prompt. The paper uses five shot evaluation on MMLU and three shot evaluation on each of BBH and DROP. In this usage, a shot is a worked example included in the evaluation context. It shows how the task is expressed and what form an answer should take. MMLU · BIG-Bench Hard · DROP
ARC, LAMBADA and SCIQ use the default zero shot settings, meaning that the evaluation prompt supplies no worked examples. Across the instruction-tuning datasets, the authors report higher average benchmark scores for QDIT than for quality selection on four out of five datasets. These benchmark results add a view of how the selected data affects performance on established tasks. The conversational comparisons and the HH tails remain the paper’s more direct evidence about instruction following. ARC · LAMBADA
Are training requests closer to evaluation requests?
The authors investigate a possible explanation for the improvement by looking for the closest training instruction to each evaluation instruction. They measure closeness using the cosine similarity between instruction embeddings. For every test request, they compare the best match in the QDIT subset with the best match in the quality-selected subset. The paper counts which subset has the closer example and leaves ties out of that comparison. Across the experiments, the QDIT selection more often has the closest match. This analysis takes the original coverage idea and asks whether it extends beyond the training pool to the test prompts.
A case study illustrates what a closer match might mean. A test request asks for help making a short video. The nearest training instruction according to the quality-selected subset is about something unrelated. The nearest QDIT example asks how to make a short video about nutrition. The response from the QDIT-trained system offers suggestions for the requested video, while the response trained on the quality-selected examples mostly restates the supplied requirements. The example connects the abstract measure of coverage to a difference a reader can recognize in the answers.
The study treats better test-set coverage as a possible explanation. The retrieval analysis establishes that a closer example is more often available in the QDIT subset. The response comparison shows that the difference can coincide with a more helpful answer. Attributing that answer to the single closest demonstration would require another comparison, since the system was trained on the whole subset. Other nearby requests or broader changes in the selected data could contribute to the same outcome.
Does the choice of supervised data matter after preference optimization?
The paper also tests whether subset selection can improve the starting point for a subsequent training stage. The authors fine-tune Phi-2 on subsets of the helpsteer dataset using random selection, quality selection or QDIT. They evaluate against a baseline that uses supervised fine-tuning on the full helpsteer dataset. This experiment reports win rates, distinct from the offset winning scores of the earlier experiments. The two evaluators are Claude 3.5 Sonnet and a Llama3-8B reward scorer trained with RLHF-Flow.
For supervised fine-tuning alone, the RLHF-Flow reward scorer gives win rates of 47.71% for random selection, 54.27% for quality selection and 59.44% for QDIT, all against full-data supervised fine-tuning. Claude 3.5 Sonnet gives 35%, 45% and 52%, respectively, against the same reference. Both evaluations rank the selection methods in the same order. They differ in how frequently each trained system beats the full-data reference.
The authors then apply Direct Preference Optimization, or DPO, using the helpsteer preference data. This stage uses preference judgments to adjust the systems after their supervised training. All three starting points improve on the reported evaluations after DPO. The gains from the preference stage are smaller for the stronger supervised starting point, and the final ordering continues to favor QDIT. According to the paper, selecting the supervised data with QDIT improved final performance by up to 12%.
Helpsteer after DPO by Sonnet win rate against full-data supervised fine-tuning
The strongest final win rate comes from the QDIT supervised starting point.
The numbers
| System or setting | win rate % |
|---|---|
| Random selection plus DPO | 40% |
| Quality selection plus DPO | 47% |
| QDIT plus DPO (this paper) | 53% |
With the RLHF-Flow reward scorer, the corresponding post-DPO win rates against full-data supervised fine-tuning are 49.11% for the random start, 59.44% for the quality-selected start and 61.23% for the QDIT start. The experiment extends the paper’s main argument in a specific way. The selected data can affect a supervised starting point, and those effects can survive a later training stage in this setting. The selection intervention still takes place before preference optimization.
Limitations
Limits identified by the authors
The authors identify system scale, scoring quality and the scope of training as limits. They include several pretrained starting points, with LLaMA-2-13B among them, and leave the behavior at scales such as 70B open. Larger pretrained systems could depend on instruction-tuning examples differently, even when the selection budget or pool looks similar. The evidence therefore concerns the specific scales the paper tests and gives a reason to examine larger systems separately.
The method assumes that a good quality measure is available. A reward scorer learns from the judgments on which it was trained, while externally supplied ratings depend on the criteria and evaluator used to assign them. QDIT takes these values as given. When quality receives substantial weight, the selector will favor examples that the scorer rates highly, even if the intended users have different preferences. The use of ChatGPT ratings for Alpaca also illustrates that automating selection from a pool can still depend on outside judgments for a component of the selection rule.
The authors frame their main evidence around supervised fine-tuning, which they regard as one part of the broader alignment process. They propose examining the relationship between quality and diversity in other forms of training, including reinforcement learning from human feedback. The helpsteer appendix supplies a limited result for one later preference stage by changing the supervised initialization. It leaves open what happens when QDIT itself is used to choose preference data or when a different preference-training procedure follows the supervised stage. Training language models to follow instructions with human feedback
The authors also mention a possible harmful use. The selector could be applied to a pool of harmful examples, with an objective adapted to keep those that serve the operator’s purpose. The paper regards its contribution as foundational and raises this as a possible adaptation. Its performance experiments study instruction following under the selected reward and preference measures.
Limits of the comparisons
The paper’s worst-case statistic is a lower-tail average. In the main HH evaluation, it describes the responses to the lowest-scoring 10% of sampled prompts for each trained system. A higher value indicates improvement across that measured tail. The statistic leaves open the behavior on a single exceptionally difficult request, on prompt populations outside the evaluation, or under other definitions of failure. For the pairwise metric, the result also depends on the reference response and on the reward score used to identify the slice. This is a precise, empirical sense of robustness tied to the evaluation design.
System-specific tails also matter when interpreting the reported gains. The instructions below the cutoff can change when a system becomes stronger or makes different mistakes. That is appropriate for comparing the distributions of their response quality. A question about which particular prompts improved would require tracking the same prompts between systems. The test-neighbor analysis carries out a related comparison at the level of training coverage, and the short-video example shows one concrete change in behavior. Neither provides a prompt-by-prompt account of how the entire lower tail moved.
Automated judges introduce another dependency. Presenting pairs in both orders addresses the possibility that a judge systematically favors one position. The checks with other judges and the blind study broaden the evidence. Even so, the automated comparisons reflect the criteria of the scorers, and the human study reflects the preferences of a group drawn from the authors. Different measures can rank a setting differently, as the results for LMSYS and Mixed demonstrate. Readers can interpret the lower-tail HH gains and the pairwise gains together because they test related qualities with different instruments.
Facility location also inherits the representation supplied by the encoder and the composition of the pool. The score favors covering requests that have weak representatives among the selected instructions, with the sum taken over observed examples. Coverage of an entire pool can therefore improve while some rare or poorly represented kinds of request remain difficult. Instructions whose differences matter to users can be close in the embedding space, and two surface forms of a similar task can be spread apart. The verb–noun analysis is a partial cross-check of what the embedding measure captures. The test-neighbor comparison uses the same kind of embedding similarity as selection, which makes it informative about that mechanism and leaves other notions of coverage to be tested separately.
The quality–diversity tradeoff is observed through particular scorers, data pools and budgets. The parameter sweeps show how the chosen subsets and downstream outcomes change in those settings. The same numerical weight can behave differently when the quality scores have another scale or when the distribution of candidate similarities changes. The paper’s strongest claim is therefore about the importance of balancing these signals in its tested settings. How to choose that balance across more varied scoring systems and applications remains an empirical question.
Finally, the experiments compare complete training subsets. Changing α can change many demonstrations at once, including their wording, task coverage and responses. The matched budgets help show that the selection strategy can change measured performance. The more specific causal explanation, that a particular increase in coverage produces an improvement through exposure to closer examples, remains an interpretation supported by the coverage analysis and illustrative case study. Establishing that mechanism separately would require controlling what changes among the demonstrations.
What came after
Diversity as a measurement problem
The work most directly aligned with QDIT’s definition of diversity is Measuring Data Diversity for Instruction Tuning. Its stated focus is a systematic analysis of diversity measurement and a reliable metric. That focus follows a question raised by QDIT’s design. Facility location is meaningful only after the researcher decides what similarity between instructions should mean. A study centered on measurement takes that decision as the object of inquiry. It asks how diversity should be characterized before a selector is trusted to optimize it.
A related direction examines diversity alongside other attributes of generated examples. Surveying the Effects of Quality, Diversity, and Complexity in Synthetic Data takes up quality and diversity together with complexity, with synthetic training data as its setting. QDIT treats response quality and instruction coverage as separate quantities. Adding complexity to the question draws attention to another aspect of collection design. A pool can encompass many related tasks and still vary in how demanding its demonstrations are. The scope of the survey places that attribute alongside the two examined by Bukharin and colleagues.
The paper itself describes An Experimental Design Framework for Label-Efficient Supervised Finetuning as concurrent work. In the authors’ account, that work examines diversity and uncertainty measures without explicitly addressing dataset quality. Its emphasis on label efficiency gives selection a different experimental purpose. QDIT is presented for a pool with candidate instruction–response pairs and quality scores. An experimental-design framing raises the question of which examples are most worth labeling when annotation is the resource being allocated. The common ground is deciding how to spend a limited number of training examples.
Choosing examples for a target
LESS frames selection around influential examples for targeted instruction tuning. The distinction in scope is important. In QDIT, coverage is defined relative to the available pool, and the evaluation examines instruction following across a range of prompts. A target-oriented formulation asks which examples matter for a specified downstream aim. From that perspective, excellent coverage of the original pool and influence on the target are separate criteria that could favor different training examples. The shared problem is choosing a useful subset when only some candidates will be used.
Select2Reason states a more specific target in its title: efficient instruction-tuning data selection for long chain-of-thought reasoning. That target gives a concrete application for the question of what a collection ought to cover. In the QDIT instruction-following experiments, a useful spread includes many kinds of requests. For a selection problem centered on long reasoning traces, the stated target directs attention to the breadth and quality of examples within that kind of task. The connection is the budgeted selection question, with the target made more specific.
Superfiltering puts the filter and the cost of running it at the center of the problem. Its stated direction is weak-to-strong data filtering for fast instruction tuning. QDIT also distinguishes the signals used to select examples from the system eventually trained on them. Its selection stage uses sentence embeddings and quality ratings, and its computational analysis measures selection after those inputs have been obtained. The two formulations make complementary parts of the data pipeline visible. One foregrounds how the filter can be made efficient, while QDIT examines what the selector should value once the candidate signals are available.
Taking selection and coverage into other settings
Some of the citing work applies instruction tuning to a narrower domain. Unlocking Public Catalogues concerns instruction tuning for ICD coding of German tumor diagnoses. That application defines a different population of requests and desired outputs from the conversational evaluations used in QDIT. It gives the issue of representation a concrete domain boundary. What counts as useful breadth for this task would be judged against the data and outputs associated with coding diagnoses. The title establishes the application, while the QDIT experiments establish the separate result about diversity and the lower tail of general instruction following.
CypherSmith names text-to-Cypher generation and synthetic data as its setting. This work belongs to a line of questions about designing the pool itself. The QDIT method begins once an existing pool of instructions and responses is available. A synthetic-data project makes choices about which training cases will exist before any subset is chosen. Both stages shape the demonstrations a system can learn from, and the distinction matters when interpreting coverage. A selected set can represent its pool well while the pool’s design determines the full range from which it can draw.
Other links widen the selection question further. RegMix casts data mixture as a regression problem for pretraining. Its stated unit of interest is the mixture, in contrast to the individual instruction–response pairs selected by QDIT for a supervised stage. Multilingual Arbitrage frames the problem as optimizing data pools for multilingual progress. Its multilingual scope brings the composition of the pool to the foreground. These works share an interest in how allocating training data affects the resulting system, with the stage of training and the unit of allocation varying across the papers.
The titles and citation relationships establish these directions of work. Specific reuse of QDIT’s algorithm or replication of its empirical result is established only where the relationship is described, as in the paper’s discussion of concurrent experimental design work. The common question is concrete across the different settings. With a limited training budget, the examples and their mix determine what the system is given an opportunity to learn. QDIT addresses that question by measuring how well selected instructions represent a pool, weighting that coverage against response quality, and checking the consequences on the prompts where instruction following is weakest.
Cite
Cite as Alexander Bukharin, Shiyang Li, Zhengyang Wang, Jingfeng Yang, Bing Yin, Xian Li, Chao Zhang, Tuo Zhao and Haoming Jiang. 2024. Data Diversity Matters for Robust Instruction Tuning. Findings of the Association for Computational Linguistics: EMNLP 2024.
@inproceedings{bukharin2024data,
title = {{Data Diversity Matters for Robust Instruction Tuning}},
author = {Alexander Bukharin, Shiyang Li, Zhengyang Wang, Jingfeng Yang, Bing Yin, Xian Li, Chao Zhang, Tuo Zhao and Haoming Jiang},
booktitle = {Findings of the Association for Computational Linguistics: EMNLP 2024},
year = {2024},
doi = {10.18653/v1/2024.findings-emnlp.195},
url = {https://doi.org/10.18653/v1/2024.findings-emnlp.195}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/bukharin-2024-data-diversity-matters-robust-instruction/