Elamur Research

An Experimental Design Framework for Label-Efficient Supervised Finetuning of Large Language Models

Paper · 2024 · Gantavya Bhatt, Yifang Chen, Arnav Das et al.

Summary

An instruction can be easy to collect and expensive to answer well. That difference matters when building a training set for a language system. A pool may contain many prompts that ask for much the same skill, alongside less common requests that need different kinds of answers. If every response takes work, which prompts deserve that work? Bhatt and colleagues test whether experimental design, the practice of deciding what information to collect before collecting it, can make supervised fine-tuning more efficient.

The authors begin with prompts whose desired responses are hidden from the selection procedure. They use the starting language system to inspect the prompts, choose a batch, and then fine-tune on the chosen instructions and their answers. Some selection rules look for uncertainty in the system’s own draft completions. Others look for a batch that represents the range of prompts in the pool. The strongest overall rule in the main comparisons is facility location with a radial basis kernel. It favors a batch in which every prompt in the pool can find a similar selected prompt, added up across the pool. Selection happens before fine-tuning, so there is no cycle of collecting answers, updating the system, and scoring the remaining prompts again.

The training pool is a 99K subset of FLAN V2, and the starting system is the 7B version of Llama-2. At a budget of 45K labels, radial basis facility location at the main kernel setting reaches 47.63 on MMLU accuracy and 41.30 on BBH-CoT accuracy. The system trained on 90K randomly chosen prompts scores 47.76 and 40.49 on those respective evaluations. A separate AlpacaEval comparison uses GPT-4 turbo to judge pairs of answers. Several selection rules match or outperform the larger random reference in that evaluation while using 50% of its annotation budget. The standard benchmarks also show where the advantage weakens. At 20K on BBH-CoT, the main facility location setting trails random selection, while least confidence has the highest reported mean.

The experiments establish a way to spend fewer labels under a particular training and evaluation setup. They also show why the choice of selection rule matters. A prompt that produces a hesitant answer may be worth labeling, yet a whole batch of hesitant prompts can repeat the same need. A rule that considers how the batch represents the pool addresses that problem directly. The results use curated answers, cover a single starting system, and measure performance after supervised fine-tuning. The reported savings concern the number of prompts requiring responses, with actual annotation time and financial cost outside the measurements.

Deep dive: An Experimental Design Framework for Label-Efficient Supervised Finetuning of Large Language Models

Bhatt and colleagues test which prompts to label for instruction fine-tuning and find that representative subsets can match much larger random samples. · about 40 minutes to read

The problem and its context

An instruction pool and a response budget

Supervised instruction tuning learns from pairs. One member of a pair tells the system what to do, and the other supplies a response worth learning from. The instructions can ask for quite different things, such as making a judgment, reasoning through a problem, or producing a piece of text. The work required to turn a raw instruction into a training pair lies on the response side. A specialist may have to work through the problem, decide what a suitable answer should include, and express it clearly. A collection can therefore be broad in what it asks while still being too expensive to answer in full.

The authors connect this problem to efforts to improve generalization by training on collections that cover a wider range of tasks. A system fine-tuned on varied instructions may be better able to respond to requests it did not see in that form during training. The appeal is strongest when users can state a task directly, without the developers having to collect a dedicated training set for every new request. The earlier instruction-tuning line that the paper uses to motivate this goal includes the work on zero-shot learning through instruction fine-tuning.

Widening the pool creates a choice about how to distribute annotation. Uniform random sampling is an easy way to spend a fixed budget. A common kind of prompt will occupy much of a random subset if it occupies much of the pool. By the same logic, a small group may contribute few examples. This can be a reasonable reflection of the available data, but repetition can limit the variety of supervision obtained for the budget. If several prompts would teach closely related behavior, their chance of selection tells an annotator little about how much the later examples add to the earlier ones.

The paper also considers where responses might come from. Crowd-workers and specialists can supply answers for tasks that require judgment or domain knowledge. Another approach asks a capable existing system to produce the responses. That can reduce reliance on manual work for some collections, and the authors place it in the context of work on instruction tuning with GPT-4. The expense can still matter when the volume of requests is large. The paper also argues that expert answers can remain important where a general-purpose system has inadequate domain competence. Prompt selection precedes either route and changes how many answers need to be procured.

The decision is more constrained than an ordinary ranking of training examples. A completed response contains useful evidence about the quality of a pair. It may reveal whether the answer is correct, whether it demonstrates a helpful explanation, or whether a seemingly rich task has been answered in a perfunctory way. All of that information is unavailable when the practical decision is which responses to obtain. The proposed selector instead has the instruction itself and what the starting system can compute from it. Its judgment of usefulness must come from evidence available at that stage.

How earlier selection methods used feedback

The paper describes active learning as the main framework for deciding which unlabeled examples to annotate as training proceeds. A typical round begins with the currently labeled examples. After training on them, the learner examines the remaining pool and selects a batch using its current estimate of informativeness. The new labels then alter the training set and can change which remaining examples appear useful. The survey cited for this broader setting is the Active Learning Literature Survey.

Adaptation gives the selection rule a chance to react to what the latest labels teach. If a weakness is addressed by a batch, examples targeting that weakness may become less urgent in the following round. That opportunity comes with extra work. The procedure described in the paper repeatedly updates the system and runs inference over the unlabeled pool. For a large language system, the added computation can erode the economic advantage of requesting fewer labels. The authors make the design before collecting responses so that each choice can be based on the original system.

This distinction concerns when information arrives. Facility location still builds a chosen set incrementally in the course of its own search. After a prompt is picked, the procedure updates its record of how well other prompts are represented. Those updates use similarities already available to the selector. Labels arrive after the batch has been decided. In active learning, the signal that guides later choices can change because the learner has already trained on new responses. Both procedures can contain repeated calculations, but only the latter kind of loop depends on intermediate annotation and training.

The paper draws its criteria from work on deep active learning. Uncertainty methods look for cases where the learner’s current predictions leave room for doubt. Diversity methods try to spread the selected examples across a feature space. Other approaches combine those two aims, as illustrated by the cited work on deep batch active learning. The present study asks whether related signals can be useful when the entire annotation plan must be fixed before any of the new labels arrive.

Earlier research had also tested active selection in settings related to language generation. The authors describe a study of natural language generation in which the advantage over random selection appeared in relatively few settings and was uneven overall. They discuss active instruction tuning as a closer comparison. That work estimated which tasks were worth labeling and then acquired the examples belonging to those tasks. The unit of decision was the task. Bhatt and colleagues make the decision at the level of individual instructions, with the aim of allowing different prompts within a task to contribute different amounts of useful information.

These units of selection have different implications for a heterogeneous pool. A task-level decision spends the budget on a group defined in advance. An instruction-level decision can keep some instances of a task while using the rest of the budget in other parts of the pool. It can make a finer distinction, but it needs a way to compare individual examples. The authors’ uncertainty rules make that comparison using predicted token probabilities. Their coverage rules use a representation of the prompt, which gives them a common space in which to compare instructions from different groups.

Selecting before annotation and pruning after it

The paper also describes research showing that a small, carefully chosen set of completed instruction pairs can support strong fine-tuning. One cited study used a manually curated collection of 1000 instruction–response pairs. That example motivates the possibility that value is unevenly distributed across a large collection. It does not itself supply a general procedure for deciding which raw instructions ought to receive answers.

Other work starts with a labeled collection and retains selected pairs based on properties such as quality, difficulty, or diversity. Both sides of a pair can guide the decision. Such methods address how to make good use of annotation already available and can reduce the amount of data used for training. The distinction matters for interpreting a comparison with work such as AlpaGasus. The budget in Bhatt and colleagues’ study is spent at the point when the chosen prompts acquire responses. An answer-based filter would require paying or otherwise obtaining those responses first.

The authors make a similar distinction between their problem and choosing which validation examples to label. A validation set helps compare trained systems and choose among them. Here the labeled subset becomes the material for training. Better selection must translate into better predictions or responses on a separate evaluation. An attractive distribution of prompts, or a large value of the selection objective, is only an intermediate result.

The resulting question is specific. Given the same starting system, a fixed instruction pool, and a fixed number of answers to collect, can a selection rule produce better training data than uniform sampling? A further question asks how its smaller labeled set compares with a much larger random one. The paper uses both comparisons, because they address different decisions. A fixed-budget comparison asks which subset to acquire when the budget is settled. A comparison against a larger random reference asks whether a smaller strategically selected set can reach a performance target that would otherwise call for more annotation.

The method, step by step

Deciding what the annotator sees

The framework begins with a collection of raw instructions and a pretrained language system. It fixes the annotation budget and asks a selection rule to return a batch of that size. The rule can read each instruction and inspect quantities calculated by the pretrained system. It can also compare instructions with each other. Only the selected instructions are paired with the desired responses. Supervised fine-tuning then uses those pairs, and the resulting system is evaluated on separate prompts. In the experiments, the responses are already part of a curated data collection, so revealing the selected answers stands in for collecting them.

From unlabeled instructions to evaluated fine-tuning

The steps in order.

From unlabeled instructions to evaluated fine-tuningStep 1: Start with an instruction pool and annotation budget1. Start with an instruction pool and annotation budgetStep 2: Extract features or decode responses with the pretrained system2. Extract features or decode responses with the pretrained systemStep 3: Select prompts using uncertainty, coverage, or random sampling3. Select prompts using uncertainty, coverage, or random samplingStep 4: Obtain desired responses for the chosen prompts4. Obtain desired responses for the chosen promptsStep 5: Fine-tune on the selected instruction and response pairs5. Fine-tune on the selected instruction and response pairsStep 6: Evaluate the resulting system on separate prompts6. Evaluate the resulting system on separate prompts

The unit of annotation is a whole instruction. Tokens are units of calculation inside some selection rules, and a feature vector is a way of comparing prompts inside others. Neither is what the annotator labels. This difference is especially important for the uncertainty methods. A probability score may single out a particular place in a draft continuation, but the example that reaches fine-tuning is the complete instruction and its desired answer. The draft serves as evidence for selection. It need not be endorsed or used as a target.

The setup can be written with a finite pool and a larger domain of possible prompts.

X = {x₁, …, xₙ, …, x_N} ⊂ 𝒳

Here 𝒳 is the domain of possible input-token sequences. X is the finite pool, N is the number of prompts it contains, and xₙ is the prompt at a generic index n. The braces group the pool members, the dots stand for intervening prompts, and ⊂ places the pool inside the domain.

xᵢ = (xᵢ,₁, …, xᵢ,ℓᵢ)

Here i indexes the prompt, ℓᵢ is its length, and xᵢ,₁ through xᵢ,ℓᵢ are its input tokens in order. The parentheses emphasize that their order is part of the input.

S ⊂ X, |S| = k < N

Here S is the chosen subset, |S| counts its members, and k is the number of annotations the learner can acquire. The final inequality expresses that the available budget leaves part of the pool unannotated. The authors call the initial pretrained system g and the system after fine-tuning g′. Selection uses g or features from the pretrained system. The practical measure of the selected batch is the behavior of g′ after training on the associated answers.

Reading uncertainty from a draft answer

The uncertainty methods first generate an answer with greedy decoding. At each output position the system gives a probability distribution over its token dictionary and chooses the most probable token. It then uses that choice as part of the context for the following step. The selector keeps the distributions as well as the chosen tokens. This gives it more information than the draft text alone. Two positions can yield equally plausible-looking words while their probability distributions differ in how strongly they favor the word that was chosen.

The distributions are conditional on the particular continuation that greedy decoding follows. A close choice early in the answer can lead to a different continuation if decoding takes the alternative token, but the uncertainty rules are calculated along the path that was actually produced. Thus the authors can compute scores without knowing the desired response or exploring every possible answer. The general decoding notation is as follows.

g: 𝒳 → (D × Δ_D)^[L]

Here g is the pretrained system under greedy decoding, 𝒳 is the input domain, and D is the token dictionary. Δ_D is the probability simplex over D, meaning the set of distributions assigning non-negative probabilities that sum to one over the dictionary. The product sign × pairs a generated token with its distribution at that step. The superscript [L] denotes a sequence of these pairs up to the output length limit L, and the arrow denotes a mapping. The paper uses gᵧ(x) for the generated tokens for prompt x and gₚ(x) for the sequence of distributions. Each p in the latter sequence comes from applying softmax to the predictions at its position.

An uncertainty rule reduces that sequence to a real-valued score assigned to the prompt. The paper writes the selection as a maximin objective. Its meaning is to choose the batch whose least uncertain member has the highest possible score.

S = argmax_(S′ ⊂ X, |S′| = k) min_(x ∈ S′) U(x)

Here U is the uncertainty scoring function, x is a prompt, and x ∈ S′ identifies a member of the candidate subset S′. X is the full pool and k is the budget. The inner minimum finds the lowest score in the candidate batch, and argmax chooses a batch that makes that minimum as high as possible. Taking the prompts with the highest scores gives such a batch. Once the scores have been calculated, the rule can rank each prompt independently of which others are selected.

The paper examines several ways to define U. They differ in whether they inspect the entire distribution, the probability of the chosen token, or the difference between the top alternatives. They also differ in how they put the evidence from multiple positions together. This is a substantive choice for text generation. A long answer may contain predictable framing around a decisive uncertain choice. A statistic that combines positions by averaging and one that isolates the weakest decision can treat that answer very differently.

Mean entropy considers how probability is spread across the whole dictionary at each position. A distribution concentrated on a small number of alternatives and one spread broadly over the dictionary have different entropy. The paper gives the mean of the signed expression below.

U_entropy(x) = (1 / |gₚ(x)|) Σ_(p ∈ gₚ(x)) Σ_(t ∈ D) pₜ log(pₜ)

Here U_entropy is the mean entropy score as displayed in the paper. The outer summation Σ ranges over the sequence gₚ(x) of distributions for prompt x, and |gₚ(x)| is the number of output positions included. The inner summation ranges over tokens t in dictionary D. The value pₜ is the probability assigned to t at that position, and log is the logarithm. The displayed positive sum of the probability–log products is negative entropy in the usual sign convention. Greater spread corresponds to a smaller value of this signed expression. The formula and the general instruction to favor larger uncertainty scores therefore leave the direction of the entropy ranking ambiguous in the paper.

Least confidence uses the probability of the generated token at each step. Multiplying these conditional probabilities gives the probability of the greedy continuation along its own path. A single poorly supported token can reduce the product, as can a succession of moderately supported choices.

U_conf(x) = −∏_((t,p) ∈ g(x)) pₜ

Here U_conf is the least-confidence uncertainty score for prompt x. The product sign ∏ runs through the generated token t and its associated distribution p at each position in g(x), and pₜ is the probability of that generated token. The leading minus sign means that a lower sequence probability gives a higher uncertainty score. Since the paper uses a product, a sequence with more factors has additional opportunities for the value to shrink. The score can consequently reflect output length along with how sharply the individual decisions are made.

Mean margin uses only the probabilities of the leading candidates at each position. The margin is the lead of the most probable token over the next most probable one. A narrow margin means the greedy decision was close, even if these candidates account for much of the probability mass.

Ū_margin(x) = −(1 / |gₚ(x)|) Σ_(p ∈ gₚ(x)) [β₁(p) − β₂(p)]

Here Ū_margin is the mean-margin uncertainty score. β₁(p) is the largest probability in distribution p and β₂(p) is the next largest. The bracketed difference is the margin for that position. The summation covers the output distributions in gₚ(x), and dividing by their count gives the mean. The minus sign makes a smaller average margin correspond to a higher score. The overbar distinguishes this averaging statistic from the next rule.

Min margin uses the same local margin, but the whole prompt is judged by the position where that difference is smallest. An answer can consist mostly of decisions with clear favorites and still receive a high score if one position is especially close. Conversely, uncertainty distributed more evenly across an answer can have a stronger effect on the mean than on the minimum.

Ũ_min margin(x) = −min_(p ∈ gₚ(x)) [β₁(p) − β₂(p)]

Here Ũ_min margin is the paper’s minimum-margin uncertainty score for x. The minimum ranges over the distributions in the greedy continuation, and the two β terms again denote the largest and next-largest probabilities. The minus sign gives priority to continuations with a close decision somewhere along the path. The authors motivate this rule by the prospect that a decoder allowed to consider the runner-up could generate a different sequence. It is a measure of the ease of changing a local token choice. Whether an alternative yields a different meaning or a better answer is outside what the statistic measures.

All these scores assign a value to each prompt on its own. If a pool contains many related prompts that expose the same weakness, each may rank highly. The selection rule has no built-in adjustment for the fact that related examples have already been chosen. This leaves a distinct problem for the coverage methods to address. They judge an example partly by what it adds to the other members of the batch.

Representing prompts and covering the pool

The coverage rules use a numerical representation of each input prompt. The paper calls the feature extractor f and describes it as derived from the pretrained system, denoted h in the representation section. For a decoder-only architecture it uses the last hidden state as the prompt feature. A hidden state is an internal numerical representation produced when the system processes input. It supplies coordinates with which the selection procedure can compare instructions.

f: 𝒳 → ℝᵈ

Here f maps a prompt in input domain 𝒳 to a vector in ℝᵈ, the space of vectors with d real-valued coordinates. The dimension d is the size of the feature representation. The feature space determines what a small or large separation means for the selection procedure. The paper uses geometric closeness as a proxy for similarity relevant to choosing training examples.

The first coverage objective is k-center. Imagine assigning every prompt to the closest prompt that has been selected. There will be an assignment with the greatest distance, and the objective seeks a batch that makes this worst distance as small as possible. The selected prompts serve as centers and each point is covered by a ball around its nearest center. The required common radius is the greatest nearest-center distance.

S = argmin_(S′ ⊂ X, |S′| = k) max_(xᵢ ∈ X) min_(xⱼ ∈ S′) ‖f(xᵢ) − f(xⱼ)‖

Here xᵢ is any prompt in X and xⱼ is a candidate representative in S′. The double bars give the distance as the norm of the difference between their features. The inner minimum locates the closest selected feature for xᵢ. The outer maximum finds the largest of those nearest distances over the pool. The argmin selects a batch of size k with the smallest attainable value of that largest distance. This priority gives an isolated prompt leverage over the outcome even if relatively few other prompts stand near it.

The exact optimization is computationally difficult. The paper uses a greedy method from earlier k-center work and reports a multiplicative approximation guarantee of 2 for the objective. That statement concerns geometric coverage. Classification accuracy, generation accuracy, and preference judgments enter only after training. The guarantee supplies a reason to use the greedy search for the stated objective, while the evaluation determines whether that objective is useful for the paper’s task.

The other coverage objective is facility location. The name comes from thinking of each member of the pool as a client and each chosen prompt as a possible facility. Every client gets the best available representative. Instead of taking the poorest match as the value of the entire set, the objective adds up the quality of these matches. A candidate can therefore be valuable because many clients would be better represented if it were included.

S = argmax_(S′ ⊂ X, |S′| = k) Σ_(xᵢ ∈ X) max_(xⱼ ∈ S′) wᵢⱼ

Here wᵢⱼ is a non-negative similarity between the features of prompts xᵢ and xⱼ. The inner maximum finds the best similarity available to xᵢ from any selected prompt xⱼ. The sum ranges over the full pool X. The argmax chooses the size-k set S′ that gives the largest total, and S denotes the resulting choice. The procedure favors representativeness as well as spreading the batch out. Two selected prompts that serve much the same group can add little to each other’s contribution.

Facility location has diminishing returns at the level of the set objective. When the selected set is small, a new prompt may improve the best available match for many clients. When the set is larger, some of those clients will already have a similarity at least as good. The gain from adding the same prompt is then smaller. This property is called submodularity. It makes it possible to use a greedy procedure that repeatedly selects the candidate with the greatest current gain. The paper gives the approximation factor for that procedure on the facility location objective.

1 − 1/e

Here e is the base of the natural logarithm. The expression is the fraction of the optimal objective value guaranteed by the greedy procedure under the facility location conditions. The numerical value being optimized is the sum of similarities. Any relationship between that sum and evaluation accuracy must be investigated empirically. The paper also notes that data structures or stochastic variants can accelerate greedy maximization.

The main similarity measure is a radial basis function, abbreviated RBF. It converts the squared distance between prompt features into a similarity that falls as distance increases.

wᵢⱼ = exp(−‖f(xᵢ) − f(xⱼ)‖² / γ)

Here exp is the exponential function, and the squared norm is the squared distance between the two feature vectors. The parameter γ is positive and controls the width of the kernel, meaning the range of distances over which it assigns an appreciable similarity. Increasing γ makes the decay with distance gentler. Decreasing γ makes distinct feature vectors lose similarity faster. The scale of γ is meaningful in relation to the feature distances used in the experiment.

The alternative is clipped cosine similarity. Cosine similarity compares the directions of two features after accounting for their lengths. The clipping ensures that the weights used by facility location stay non-negative.

wᵢⱼ = max{0, f(xᵢ)ᵀf(xⱼ) / (‖f(xᵢ)‖ ‖f(xⱼ)‖)}

Here the superscript ᵀ transposes the first feature vector for the dot product with the second. The denominator multiplies the lengths of the two vectors. The maximum takes the larger of the resulting cosine and zero. This rule supplies a fixed similarity without choosing an RBF width. It still imposes a specific notion of which prompts can represent one another, based on the angle between their features.

Inspecting the objective before obtaining responses

RBF facility location introduces a decision about γ. If the kernel gives high similarities across a broad part of the pool, a small selected set can leave few substantial improvements on the objective. The paper calls this saturation. At the other extreme, a very narrow kernel can give so little weight to relationships between distinct prompts that selecting a prompt largely improves that prompt’s own match. In that regime, an objective that continues to grow can still contain little information about which prompts represent their neighbors.

The authors examine marginal gains as the greedy batch grows. Let Sₖ denote the first k prompts chosen in the greedy ordering and Sₖ₋₁ the set immediately before the last of these was added. Because the sets are nested, the difference in their values describes what that addition accomplished under the same similarity rule.

F(Sₖ) = Σ_(xᵢ ∈ X) max_(xⱼ ∈ Sₖ) wᵢⱼ

Here F is the facility location set function and F(Sₖ) is its value at the greedy set of size k. The sum and maximum assign to each pool prompt xᵢ the similarity to its best available representative xⱼ in Sₖ. The number wᵢⱼ comes from the kernel currently under consideration.

F(Sₖ | Sₖ₋₁) ≜ F(Sₖ) − F(Sₖ₋₁)

Here the vertical bar in the argument identifies the earlier set against which the gain is measured. The symbol ≜ gives the definition. The right-hand side subtracts the earlier objective value from the current one, giving the marginal gain from the added prompt. Since the calculation only uses the features and the greedy selections, the authors can inspect it before acquiring answers.

The diagnostic tells the authors whether there is meaningful movement left in the objective around the annotation budget they intend to use. It gives them a range of widths to consider. The downstream ablation then asks a separate question about this range. It checks whether different choices inside it lead to similar conclusions once the selected answers are used in training. The former step is available to a practitioner before annotation. The latter is evidence collected in the experiment.

Turning the selection into training data

The training comparison uses a processed 99K subset of FLAN V2. That collection brings together earlier instruction data and additional tasks involving reasoning, dialogue, and program synthesis. It gives the selector a mixed pool in which different parts of the data can make competing claims on the annotation budget. The paper identifies the underlying instruction collection in its discussion of FLAN V2.

For each budget, a rule selects instructions from that same pool, and the experiment uses the corresponding curated responses. Every strategy hands the same kind of object to training, a batch of complete prompt–response pairs. Differences in outcomes can then be examined in relation to which pairs each rule selects. The system supplying the selection signals is also the starting point for fine-tuning, the 7B version of Llama 2.

The authors fine-tune using Low-Rank Adaptation. This is the adaptation procedure shared across their subset comparisons, while data selection is the part varied to study label efficiency. The method applies low-rank updates during adaptation and is identified in the paper as LoRA.

The comparison with random sampling follows the same training pipeline. The random strategy differs at the point where the batch is chosen. An additional comparison uses the starting system with k = 0, which shows the evaluation score before any of the selected pairs are used. Together, the random subsets and the unadapted starting point help distinguish two questions. One concerns how much instruction tuning changes performance in this setup. The other concerns how much of that change depends on the choice of examples, given the same budget.

Experiments and results

What the evaluations measure

The standard benchmarks cover two different kinds of performance. MMLU presents questions across 57 subjects, at levels ranging from elementary to professional. The paper uses its classification evaluation, with accuracy reflecting whether the predicted answer is correct. The reported run uses 5-shot prompts, so the system receives demonstrations at evaluation time. This is the specific setup to attach to the accuracy figures, even though the paper’s broader motivation is generalization to new tasks. The benchmark is introduced in Measuring Massive Multitask Language Understanding.

Big-Bench-Hard consists of 23 challenging tasks from Big-Bench. The paper treats it as a generation benchmark and uses the chain-of-thought version, BBH-CoT, in which the evaluation format calls for intermediate reasoning. Because evaluation resources are limited, the authors use a random 20% subset of the chain-of-thought inputs. The resulting scores describe that evaluated subset. The suite is the subject of Challenging BIG-Bench Tasks and Whether Chain-of-Thought Can Solve Them.

The third evaluation asks for a judgment between generated responses to the same instruction. Under the AlpacaEval framework, GPT-4 turbo compares an answer from a system trained on a smaller selected set with an answer from the larger random reference. The score is a win rate weighted by the judge’s continuous preference. This tests a different outcome from whether an answer matches a benchmark target. An answer that the judge prefers need not indicate an increase in classification accuracy, and a gain on a reasoning benchmark need not imply the same ordering in an evaluation of general instruction responses.

In the standard benchmark tables, the paper compares random sampling with the four uncertainty scores, k-center, and both facility location kernels. The main budgets are 20K, 30K, and 45K annotated prompts. The standard benchmark results for random sampling average over 6 seeds, varying the random selection and training. The other rows average over 3 seeds, with variation mainly attributed to training. The reported ± values are based on standard error. These values describe variability in the experiment as run, and the ordering of point estimates can be read separately from how decisively a small difference is resolved.

MMLU accuracy

Before adaptation, the 5-shot MMLU accuracy is 37.58. At 20K, the random subset reaches 44.33 with standard error 0.32. RBF facility location at γ = .002 reaches 45.08 with standard error 0.33, and min margin reaches 44.55 with standard error 0.32. The remaining strategies at that budget have means below random. Least confidence, for example, scores 43.26 with standard error 0.58. Thus the improvement associated with having supervised data is visible even where the rule used to choose that data underperforms random sampling.

The spread across strategies is especially clear at 30K. RBF facility location records the highest mean. K-center and cosine facility location are also ahead of random at this budget, and min margin leads the uncertainty-only rules. Least confidence and mean margin remain below the random mean. The figure shows why it matters to report the particular definition of uncertainty and the particular coverage objective, instead of treating either family as a unit.

Prompt selection at 30K labels on 5-shot MMLU accuracy

Radial basis facility location leads the comparison, with k-center and cosine facility location also ahead of random sampling.

Prompt selection at 30K labels on 5-shot MMLU accuracyRandom: 44.91Random44.91Mean entropy: 45.38Mean entropy45.38Least confidence: 44.56Least confidence44.56Mean margin: 44.88Mean margin44.88Min margin: 45.62Min margin45.62k-center: 46.14k-center46.14Facility location, cosine: 45.89Facility location, cosine45.89Facility location, radial basis (this paper): 47.12Facility location, radial basis (thispaper)47.12
The numbers
System or settingaccuracy %
Random44.91
Mean entropy45.38
Least confidence44.56
Mean margin44.88
Min margin45.62
k-center46.14
Facility location, cosine45.89
Facility location, radial basis (this paper)47.12

For the 30K MMLU comparison, the standard error is 0.35 for RBF facility location and 0.50 for random sampling. The k-center result has standard error 0.12, and cosine facility location has standard error 0.50. The chart shows means under the reported training setup. It gives a clearer picture of the broad pattern than would a claim that every plotted rank is settled. In particular, several strategies are clustered around the random result, even as the leading facility location setting stands farther away in the reported means.

At 45K, random sampling reaches 45.99 with standard error 0.37 on MMLU. RBF facility location reaches 47.63 with standard error 0.24, and cosine facility location reaches 47.01 with standard error 0.37. Least confidence rises to 46.55 with standard error 0.25, while min margin falls to 45.31 with standard error 0.14. The ordering of the uncertainty criteria has changed from the 30K comparison. Increasing the budget admits prompts farther down the same ranking, which can alter the balance of examples in the training set. More selected prompts under a fixed rule therefore need not yield a steadily rising reported mean.

Viewed across the main budgets, radial basis facility location has the strongest MMLU result every time. Cosine facility location has a weaker start at 43.77 with standard error 0.23 at 20K. Its later results show that there can be a benefit to using the set-level objective even with a fixed kernel. The radial basis version nonetheless achieves the higher mean in each comparison. The authors consider saturation as a possible explanation for part of the difference. The benchmark comparison observes the combined consequences of choosing a kernel and running selection with it. It does not isolate saturation from all the other ways the kernels induce different sets.

BBH-CoT accuracy

The unadapted BBH-CoT accuracy on the evaluated inputs is 37.66. With 20K labels, uniform sampling reaches 38.95 with standard error 0.48. Least confidence has the highest reported mean at this budget, 40.33 with standard error 0.49. Mean entropy is close at 40.28 with standard error 0.60, and min margin reaches 39.74 with standard error 0.19. RBF facility location reaches 38.33 with standard error 0.27. The paper describes this last result as close to random. Its mean is on the lower side of the comparison, so this budget is an exception to the otherwise favorable benchmark results for that kernel setting.

At 30K, the order changes. RBF facility location reaches 41.12 with standard error 0.71, compared with 39.42 and standard error 0.56 for random. Min margin scores 40.20 with standard error 0.20, while mean margin scores 40.05 with standard error 0.39. Least confidence falls to 38.28 with standard error 0.39, and mean entropy falls to 38.18 with standard error 0.43. The corresponding runs use a larger labeled set than the 20K runs. Their lower means show why an early advantage at one budget is insufficient to establish a dependable ranking of uncertainty signals.

By 45K, the RBF facility location mean remains the highest. Least confidence is close in mean, followed by cosine facility location. At this budget the k-center score is again below random sampling, as it is at the other reported BBH-CoT budgets. The same k-center rule that beats random on MMLU at 30K and 45K therefore does not yield a corresponding advantage in the generation evaluation.

Prompt selection at 45K labels on BBH-CoT accuracy

Radial basis facility location has the highest mean, and least confidence is its closest competitor.

Prompt selection at 45K labels on BBH-CoT accuracyRandom: 39.44Random39.44Mean entropy: 39.99Mean entropy39.99Least confidence: 41.04Least confidence41.04Mean margin: 38.43Mean margin38.43Min margin: 39.66Min margin39.66k-center: 38.6k-center38.6Facility location, cosine: 40.46Facility location, cosine40.46Facility location, radial basis (this paper): 41.30Facility location, radial basis (thispaper)41.30
The numbers
System or settingaccuracy %
Random39.44
Mean entropy39.99
Least confidence41.04
Mean margin38.43
Min margin39.66
k-center38.6
Facility location, cosine40.46
Facility location, radial basis (this paper)41.30

At 45K on BBH-CoT, the standard error is 0.60 for RBF facility location, 0.74 for least confidence, and 1.03 for cosine facility location. For random sampling it is 0.52. Least confidence’s position near the top of the chart is a useful qualification to the authors’ general observation that uncertainty alone often struggles. In this experiment it can produce a competitive set, but its lower mean at 30K limits what the final-budget result says about its behavior across budgets.

The authors suggest redundancy as an explanation for some of the unevenness in uncertainty sampling. A high rank tells the selector how a prompt looks in isolation. If a group of similar prompts all elicit hesitation, that group can take up much of the top of the list. Facility location can redirect its choices after a representative has already been selected. The benchmark scores are consistent with that explanation. They measure the behavior of the fine-tuned system, so they do not reveal which individual examples repeated supervision or how much each repeated example contributed.

Comparing a small selected set with a larger random one

The larger reference uses 90K randomly sampled prompts. On 5-shot MMLU it scores 47.76 with standard error 0.57. On the evaluated BBH-CoT inputs it scores 40.49 with standard error 0.30. The main RBF facility location setting at 45K gets 47.63 with standard error 0.24 on MMLU and 41.30 with standard error 0.60 on BBH-CoT. Its mean is close to the larger reference on MMLU and exceeds it on BBH-CoT. The paper interprets this performance as roughly 50% savings in annotation for the classification and generation tasks it tested.

This comparison defines the target more carefully than a general claim that a selected batch can replace a larger training set. The target is performance attained by the particular 90K random baseline under the same adaptation and evaluation setup. The facility location run meets or approaches that target according to the benchmark in question. There is no reason for the two training sets to produce identical outputs, and a close pair of mean accuracies does not give a formal equivalence bound. The central economic quantity is the response budget that had to be committed to reach that reference performance.

The two comparisons also answer different questions about the 45K set. Against 45K random sampling, the main facility location choice has a higher mean on both standard benchmarks. Against 90K random sampling, it trades a smaller budget for close or better observed scores. The former isolates the selection decision at a common budget. The latter is what makes the result about label savings. A strategy could succeed at the first comparison while falling well short of the larger reference, so both are worth reporting.

Pairwise judgments of generated answers

For AlpacaEval, the authors compare systems trained on 45K selected prompts with the system trained on 90K randomly sampled prompts. They evaluate outputs on 805 standard AlpacaEval prompts. The judge sees the competing responses and supplies the continuous preferences used to weight the win rate. The figure’s error bars are standard errors across prompts. This variability concerns evaluation examples, while the standard benchmark tables summarize repeated training runs. The error bars therefore have different units of repetition behind them.

Several selection strategies match or outperform the larger random reference according to this judge, using 50% of its annotation budget. The authors report the strongest improvement for RBF facility location at γ = 0.002. Margin-based uncertainty methods also fare well in the pairwise judgments. The other uncertainty methods are described as similar to or worse than random. The paper discusses the figure in terms of relative performance, with no exact win rates stated in its prose.

The margin results illuminate the choice of evaluation. On the standard benchmarks, the margin variants have advantages in some settings and losses in others. In the judge comparison, the authors find more favorable results for this family. A judgment about two generated answers can respond to features of an answer that a benchmark accuracy score treats differently. The study shows that the choice of selection rule and the choice of outcome measure both matter. It leaves the reason for the margin methods’ different relative performance across these evaluations open.

Taken together, the generation evaluations provide complementary evidence. BBH-CoT tests results on challenging reasoning tasks using its chain-of-thought format. AlpacaEval asks which response to an instruction a judge prefers when the competing output comes from a much larger random training set. The paper’s annotation-saving claim draws support from each under its own conditions. The larger random reference is shared in spirit, while the meaning of better performance comes from the specific metric used.

The computation behind selection and training

The authors report precomputing the embeddings in 12 hours. On an A100, a trial including evaluation takes approximately 9 hours at 30K, 15 GPU hours at 45K and 24 GPU hours at 90K. For the 90K budget on an A40, the reported time is roughly 30 GPU hours. The hardware and the amount of data used are part of the conditions for those figures.

The reported embedding preparation is work performed before the fitting runs. The feature-based rules can use those computed representations during subset selection. The fixed batch also removes the repeated training and inference of the adaptive procedure discussed in the introduction. The paper’s timings show that preparing the selection signal has a real cost and that training and evaluation still take substantial GPU time. They do not amount to an end-to-end timing comparison against a matched active-learning run.

The practical economy in the experiments has two parts. Fewer selected instructions require fewer requested answers under the budget definition. The smaller labeled sets also lead to shorter reported trials on the A100. Embedding preparation is a separate cost of reaching that point. The relative importance of these parts would depend on what it costs to get a suitable response and how frequently the same pool or representations can be reused. The experiments measure selected label counts and selected computation times, leaving that broader accounting to the circumstances of a deployment.

What the ablations show

Choosing a useful range of kernel widths

The authors first inspect what happens to the facility location objective as the greedy procedure runs. They plot successive gains out to a budget of 45K for a series of RBF widths. A broad kernel can make many points similar enough to be served by an early representative, after which few remaining candidates make a large difference to the total. The paper reports that at γ = 10 the gains become very small before 1K examples have been selected. At γ = 1 the same kind of decline is visible before 10K. For γ = 0.1 the gains continue to fall after 20K. These curves show how quickly the objective runs out of large changes at the broader settings.

The paper also describes what happens at a very narrow width such as 10⁻⁴. The similarity matrix comes close to diagonal. Each prompt remains similar to itself, and the similarities that connect it to other prompts become small. An objective that sees the collection in that way has little basis for choosing an example because it stands in for others. This also explains why the diagnostic is about the useful scale of relationships, beyond simply seeking a kernel with a steady stream of non-zero gains.

For widths of 10⁻³, 5 × 10⁻³, and 10⁻², the paper reports relatively stable gains through the 45K budget. That behavior gives the authors a range in which the greedy procedure keeps registering improvements as the selected set grows. It is evidence available from the prompts and their features alone. The diagnostic can screen out some unpromising widths before anyone writes new answers. It does not tell the authors which setting within the range will obtain the highest evaluation score.

The downstream ablation fixes the budget at 45K and compares several widths inside the identified range. On 5-shot MMLU, γ = 0.001 gives 47.04 with standard error 0.69, and γ = 0.002 gives 47.63 with standard error 0.24. At γ = 0.003, the score is 47.96 with standard error 0.25. At γ = 0.004, it is 47.94 with standard error 0.49. All the means exceed the random score of 45.99 with standard error 0.37. The setting used in the primary comparisons is thus part of a range of favorable outcomes on MMLU.

On the evaluated BBH-CoT subset, γ = 0.001 scores 40.56 with standard error 0.86, and γ = 0.002 scores 41.30 with standard error 0.60. The mean at γ = 0.003 is 41.99 with standard error 0.73. At γ = 0.004 it is 41.35 with standard error 1.04. Random sampling scores 39.44 with standard error 0.52. The best observed mean on each benchmark in this sweep occurs at γ = 0.003. The differences among some of the widths are small alongside their standard errors, and the width sweep supports the more limited claim that several reasonable choices retain the benefit over random sampling in this setup.

The choice of budget matters to the diagnostic because saturation is measured along a selection trajectory. A width that still produces substantial gains early in the run can lose them well before the intended batch has been assembled. The ablation combines a prompt-only check over that trajectory with downstream evidence at its endpoint. It shows a procedure for locating a range before committing responses and an empirical check within that range for the authors’ pool. It leaves the preferred widths for other budgets and representation spaces unmeasured.

Combining coverage and uncertainty

The paper also tests a hybrid selection objective. Facility location rewards how well the selected set represents the pool. The second term gives the set extra credit based on the sum of the selected prompts’ min-margin uncertainty scores. The logarithm is intended to make marginal rewards from that aggregate diminish. The experiment uses RBF similarity for the coverage part.

S = argmax_(S′ ⊂ X, |S′| = k) {Σ_(xᵢ ∈ X) max_(xⱼ ∈ S′) wᵢⱼ + log(1 + Σ_(x ∈ S′) Ũ_min margin(x))}

Here S′ is a candidate selection of size k from the pool X, and S is the maximizing set. The first sum adds each pool member xᵢ’s best similarity wᵢⱼ to a selected representative xⱼ. In the second sum, x ranges over selected prompts and Ũ_min margin(x) is the minimum-margin uncertainty score. The final log term applies a concave increasing transformation to the aggregate on its domain. The constant 1 shifts the argument. The authors argue for a greedy solution using the submodularity of facility location and the diminishing returns supplied by the concave transformation of a sum.

There is a detail to resolve when reading the hybrid formula alongside the earlier uncertainty definition. The displayed min-margin score is nonpositive because it is the negative of a probability difference. Summing such scores can make the logarithm’s argument nonpositive, where the real logarithm is undefined. Also, the usual diminishing-returns argument for a concave increasing function of an additive reward needs conditions on the contributions. The paper does not specify a rescaling or other convention that reconciles the displayed score with these requirements. The reported hybrid experiment can be read as a comparison of the authors’ implementation, while the written objective leaves a question for reproducing that implementation exactly.

At 45K on MMLU, the mixture reaches 46.26 with standard error 0.36. Min margin alone reaches 45.31 with standard error 0.14, and RBF facility location alone reaches 47.63 with standard error 0.24. On BBH-CoT, the mixture reaches 40.71 with standard error 0.63. The corresponding means are 39.66 for min margin and 41.30 for facility location, with standard errors of 0.67 and 0.60 in the mixture comparison. The min-margin BBH-CoT mean also appears in the main benchmark table, where the paper reports standard error 0.37. The mixture comparison is the source of the 0.67 figure.

On both benchmarks the hybrid mean falls between the means of its constituents. Adding the particular uncertainty term tested here recovers part of the gap between min margin and facility location while giving up some of the performance reached by facility location alone. The authors suggest that a different way of measuring uncertainty or mixing the scores might be more effective. The ablation establishes the behavior of this mixture at the tested budget. It leaves other combinations open.

What the comparisons identify

The width sweep and the mixture test change different parts of the method. The width sweep keeps the same coverage objective and varies the definition of similarity. It shows that several nearby widths work better than random after a plausible range has been identified. The mixture test keeps a form of the coverage objective and changes what the optimizer rewards by adding uncertainty. It shows that this addition produces intermediate performance on the two standard benchmarks. Neither comparison singles out a universal property of the best possible labeled set.

The main strategy comparisons also supply evidence about two plausible explanations for the success of facility location. K-center uses the same general idea of prompt features but gives priority to the least well-covered part of the pool. Facility location sums over all clients. The two approaches have different results across the reported benchmarks, with k-center trailing random on BBH-CoT. The cosine and RBF comparison shows further variation within facility location itself. Both observations support studying the actual objective and geometry used to make the choice. They leave the exact character of the instructions responsible for the accuracy gains unresolved.

Limitations

Limits the authors state

The authors study the 7B version of Llama-2. They chose it as a common option with relatively low compute requirements. The behavior of the selection criteria depends on the predictions and representations of the starting system, so transferring the procedure to a different starting point could change which examples look uncertain or representative. The paper supplies empirical results for the variant used in the study.

The responses in the experiment come from curated data and are assumed to be accurate. Real annotation can contain errors, incomplete answers, and disagreements about the desired response. An example that looks informative before annotation may also be challenging for an annotator. The experiments do not establish how errors would be distributed among prompts chosen by different strategies or how they would affect the comparison. The stated label savings apply under the assumption that selecting an instruction yields a usable training response.

The evaluation occurs immediately after supervised fine-tuning. The authors leave open what happens if those systems then undergo reinforcement learning with human feedback. A later stage could affect the ordering of the systems or respond differently to what the supervised stage taught. The comparison concerns performance at the point where the experiment stops. The paper identifies the later training stage with work on instruction following through human feedback.

The authors also raise a concern about biased sampling. Each proposed strategy deliberately changes which prompts are likely to enter training. A similarity function can summarize the pool according to the features available to it, while important distinctions for fairness or inclusion may be poorly reflected in those features. Similarly, selecting for uncertainty can concentrate the budget on a narrow range of difficulties. The paper warns that an unrepresentative selected set can amplify existing biases. The reported benchmark gains come from evaluations with other aims and do not measure that ethical outcome. This places the warning in the broader question of bias, fairness and safety.

In its future work, the paper notes that the unselected examples contribute through selection but are left out of supervised fine-tuning. Their prompts can help determine which part of the feature space deserves a representative. Once the selected pairs are assembled, only those pairs enter training. Other uses of the remaining prompts might improve the overall return on the annotation budget, but they lie outside the studied setup.

What follows from the experimental setup

The results concern one processed instruction pool. Its mixture of tasks shapes both what uniform sampling produces and what the alternative objectives can improve. A pool dominated by repeated expressions of a few tasks gives a selector a different problem from a pool whose instructions all require unrelated skills. Facility location computes representativeness relative to the pool it sees. Its high objective value can coexist with gaps in the pool relative to future use. The study tests the downstream performance of summaries of FLAN V2 rather than the ability to discover suitable tasks outside it.

The paper treats an annotation as one instruction receiving one answer. This is a clear budget for controlled comparison with pre-existing labels. It is a partial measure of operational expense. Some prompts may need much more writing, verification, or specialist time than others. An uncertainty-based rule could change that composition by selecting difficult requests. A coverage rule could change it by selecting examples from task types that uniform sampling seldom reaches. Because the study uses already available responses and does not measure production time or spending, the proportional savings are most directly interpreted as savings in the number of prompt–response pairs required for the tested performance.

There is also a distinction between a tuned selection objective and a tuned task outcome. The greedy guarantees are about distances or similarities. They do not specify how useful an answer will be for fine-tuning. The experiment checks that connection through benchmark performance, while a closer account of the mechanism would require additional evidence about which examples were selected and what their responses taught. The results on k-center and on the hybrid show why a principled objective by itself leaves substantive uncertainty about downstream outcomes.

The benchmarks sample different abilities and do so under specific settings. MMLU uses 5-shot evaluation. The BBH-CoT experiment uses a random 20% subset of the chain-of-thought inputs. AlpacaEval uses 805 prompts and a GPT-4 turbo judge, with preferences reported relative to the larger random reference. These details determine what the results measure. The authors describe the judge as having high agreement with human annotations, but the reported comparison itself is a judge-based evaluation. Its measured preferences do not directly establish how independent human readers would rank these particular outputs.

Training seeds and uncertainty in the estimates also place limits on fine-grained comparisons. The experiments offer repeated runs and standard errors, which are helpful for seeing how variable an observed score is. They do not supply a formal demonstration of equivalence between the 45K selected set and the 90K random set. The small MMLU separation and the higher BBH-CoT mean describe observed performance under the tested conditions. This supports the paper’s practical comparison while leaving the exact size and reproducibility of the label saving open outside those conditions.

Finally, the computational argument about active learning comes from the structure of the procedures. Fixing a batch removes the need to incorporate newly collected responses before scoring subsequent batches. The study reports preparation and trial costs for its own experiments and assesses the resulting label efficiency against random sampling. It does not measure the label–compute tradeoff against a fully run adaptive baseline at matched performance. Such a baseline might change the useful allocation of labels, and its repeated computation would need to be counted in the same accounting. The demonstrated outcome is that a fixed selection can improve on random sampling without relying on that adaptive loop.

What came after

A later survey on active learning places selection in a wider frame that also includes generation. Bhatt and colleagues address the selection side of that distinction in a specific form. Their candidate instructions already exist, and the decision is which of them should acquire responses. Generating a draft to measure uncertainty serves that decision. The draft is evidence about an existing prompt, while the desired response comes from the annotation source. The later work cites the study in the broader setting named by From Selection to Generation.

A separate later survey cites the paper from a data-centric perspective on efficient training. The connection is the decision to change which data reach supervised training and how much of that data needs responses. The experiment makes this connection measurable by holding the training procedure common across selection rules while varying the labeled subset. The broader survey perspective is reflected in A Survey on Efficient Large Language Model Training.

These later works are surveys, and their scope gives the citation a different setting in each case. One concerns how learning systems select or generate data. The other concerns efficiency achieved through decisions about training data. The citations establish those connections. Evidence for the particular label savings, the kernel-width behavior, and the differences among uncertainty rules remains with Bhatt and colleagues’ experiments.

Cite

Cite as Gantavya Bhatt, Yifang Chen, Arnav Das, Jifan Zhang, Sang Truong, Stephen Mussmann, Yinglun Zhu, Jeff Bilmes, Simon Du, Kevin Jamieson, Jordan Ash and Robert Nowak. 2024. An Experimental Design Framework for Label-Efficient Supervised Finetuning of Large Language Models. Findings of the Association for Computational Linguistics: ACL 2024.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/2024.findings-acl.390

@inproceedings{bhatt2024experimental,
  title = {{An Experimental Design Framework for Label-Efficient Supervised Finetuning of Large Language Models}},
  author = {Gantavya Bhatt, Yifang Chen, Arnav Das, Jifan Zhang, Sang Truong, Stephen Mussmann, Yinglun Zhu, Jeff Bilmes, Simon Du, Kevin Jamieson, Jordan Ash and Robert Nowak},
  booktitle = {Findings of the Association for Computational Linguistics: ACL 2024},
  year = {2024},
  doi = {10.18653/v1/2024.findings-acl.390},
  url = {https://doi.org/10.18653/v1/2024.findings-acl.390}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/bhatt-2024-experimental-design-framework-label-efficient/