Elamur Research

Learning to Perform Complex Tasks through Compositional Fine-Tuning of Language Models

Paper · 2022 · Victor Bursztyn, David Demeter, Doug Downey et al.

Summary

A recommendation can require several judgments even when the answer is just the name of a city or a restaurant. A traveler may say they dislike cold weather, leaving the system to infer that warmth is the relevant criterion, recall something about the destinations, and decide which better fits the request. Training on finished recommendations gives feedback on the choice. Bursztyn and colleagues ask what happens when training also gives direct practice in the work that leads to the choice. They call their approach compositional fine-tuning.

The authors build a curriculum around the dependencies between tasks. In their recommendation experiments, the curriculum can teach individual facts, such as a city's average temperature, then provide practice comparing cities and choosing a destination from a stated preference. The final prompt asks for a choice. The intermediate operations are taught through separate examples, so the system can learn from them without having to print an explanation when it makes a recommendation. The authors test this approach on world travel and local dining, with the dining task designed to put greater pressure on facts supplied during training. They also adapt the method to a sports task that asks whether an athlete performing a particular action sounds plausible.

Teaching the intermediate tasks improved recommendation scores over training on decisions alone. The comparison remained favorable after the authors gave a baseline the same facts and expanded its decision practice to bring the amount of training text into line. In that comparison, the authors report a gain of 2% on world travel and up to 32% on local dining. A separate experiment held back decision examples for an entire attribute while still teaching its facts and comparisons. Some decision ability carried over. Negative wording was a particular source of trouble, and 12 examples per domain that translated a negative preference into its positive counterpart helped.

The authors also compare their curriculum with prompts that demonstrate a chain of intermediate judgments. On world travel, the fine-tuned Curie system scored 95% on the test decisions, close to the 98% of DaVinci with chain-of-thought prompting. On local dining, the corresponding averages were 0.74 and 0.55. Curie had 13B parameters and DaVinci had 175B, making the smaller system 7.4% of the size by parameter count. Curie needed considerably more task-specific training material than the prompting approach. The experiments show how that material can be put to work, especially when making a decision requires facts that a pretrained system is unlikely to have.

Deep dive: Learning to Perform Complex Tasks through Compositional Fine-Tuning of Language Models

Compositional fine-tuning teaches complex tasks through simpler ones, improving recommendations when facts about the choices are hard to recover. · about 35 minutes to read

The problem and its context

What a finished answer leaves implicit

Consider a choice between London and Lisbon based on a traveler's dislike of cold weather. The preference names a condition to avoid. The offered options are place names. Connecting them requires a criterion that can actually be applied to those places, an understanding of which direction satisfies it, and enough factual knowledge to make a comparison. The recommendation itself is short because the request leaves those operations implicit. That gap between a short answer and the work behind it is the paper's starting point.

All of those operations can be left to end-to-end learning. In the paper's setting, that means supplying examples of complete requests and their answers, with a recommendation as the training target. If training succeeds, some combination of the needed abilities can emerge from practice on the full task. The advantage of that setup is its simple supervision: each request needs an answer. Its weakness for this research question is that the training example gives little information about how an answer was obtained or where a wrong choice came from. A system can get the relevant fact wrong, misread the preference, or fail to apply the comparison. The same incorrect destination could result from any of those failures.

The authors situate this problem in a longer debate about whether the structure of a task should be made explicit in a system that processes language. They describe end-to-end learning as the prevailing approach and cite work on increasingly capable pretrained systems as part of that shift. Their question is narrower than the general debate. Given a complex task with dependencies a researcher can identify in advance, does teaching those dependencies through examples improve learning of the final task? The recommendation setting gives them a way to ask this while keeping the final answer format simple and varying which intermediate operations receive supervision.

Conversational recommendation is useful for this purpose because the wording of a preference and the data used to satisfy it can differ considerably. A sentence about avoiding cold need never mention an average, and a request about restaurants need never state the price or distance of the choices. The work of interpreting the expression belongs to language understanding. The work of comparing options depends on the values associated with those options. A benchmark can give both operations the same final answer format while making them separately available for training. The authors also describe recommendation as relatively underexplored in the research they discuss, in spite of that variety of component tasks.

Showing the steps in a prompt

The closest motivation comes from work that supplies intermediate judgments in examples shown at the time of a query. An ordinary demonstration presents a question and its answer. A chain-of-thought demonstration presents the steps that connect them as well. In the account given by Bursztyn and colleagues, this made it possible for very large pretrained systems to do better on tasks such as mathematics and symbolic inference. It also suggested that the way a problem is broken down can affect the final answer. The paper takes that suggestion from Chain-of-Thought Prompting.

There is an important practical distinction between putting steps in the query and using steps to create training material. A prompt can show how facts would be used in a solved example. When the test case concerns different items, the system still needs access to the facts about those items. Repeating the pattern of the demonstration cannot supply a missing temperature, a restaurant price, or a distance to an invented location. A training curriculum offers a place to supply those facts explicitly alongside practice in what to do with them. The paper's dining task is designed to make that distinction matter.

The authors also connect their work to methods that generate intermediate text by other means. Scratchpads illustrate the idea that intermediate text can support computation across a sequence of steps. Work on factual knowledge injection addresses a different part of the problem by studying what happens when a system is taught facts it needs to combine. The recommendation experiments bring these concerns together. They distinguish training on facts from training on the operations that use those facts, and they make the latter available as a separate kind of example. The related work the authors single out on factual instruction is Leap-Of-Thought.

Decomposing a question or decomposing a task

Earlier work on question answering frequently used decomposition to turn a question into smaller questions. In multi-hop reading comprehension, for instance, an answer may depend on joining information from multiple statements. A decomposition makes those information needs visible and creates opportunities to answer them separately before assembling the result. The paper situates its own work alongside this approach, with multi-hop reading comprehension as one important precedent. Multi-hop Reading Comprehension through Question Decomposition and Rescoring

A separate line of work asks how well a system generalizes from the question patterns it encountered in training to new instances of those patterns. The paper notes that both decomposition and compositional generalization had also been investigated through semantic parsing. These projects make question structure an object of study. Bursztyn and colleagues choose a setup in which the same underlying division of labor can be reused across questions even when their wording gives few clues about how to divide them. A preference about weather and a preference about restaurant distance have different vocabularies, but each can call for interpreting a criterion, obtaining relevant facts, and comparing options.

This reuse matters to the training design. A decomposition inferred afresh for every request would produce intermediate tasks whose inputs, outputs, and relationships might vary across requests. The paper's recommendation schema lets the researchers decide which classes of examples will recur before any individual prompt is written. They can then omit an entire class during training or keep the class and change the objects or attributes on which it is practiced. The resulting intervention is at the level of tasks rather than individual questions.

What changes in a curriculum

The pedagogical idea comes from curriculum learning, which organizes practice so that earlier training can prepare a system for what follows. The paper traces prior work in language processing to schedules that rank examples by difficulty. A schedule might begin with more frequent linguistic material or shorter sequences. Other approaches discussed in the paper estimate difficulty from how well a system handles each example. In these cases the training target can stay the same throughout. What changes is the difficulty of the material used to practice it. Curriculum Learning for Natural Language Understanding

Compositional fine-tuning changes the training target as the curriculum progresses. An early question about a city's temperature takes a value as its answer. A later question about which city is warmer takes a city name. A recommendation question may ask for the same name, but it describes the criterion through the preferences of a person. The research hypothesis concerns what is learned from moving among those targets, with earlier targets supplying knowledge or abilities that a later target can use. Judging difficulty by sentence length would miss this distinction. A factual prompt can be grammatically long and still call for a simpler operation than a concise request to choose between destinations.

The paper identifies spatial navigation as a close precedent for increasing task complexity during training. There, practice can progress from simple instructions for moving objects to composite instructions. The recommendation setup gives the authors a way to ask a related question about a wider variety of component operations within a task. Stating a fact, deciding the direction of a comparison, and interpreting a human preference involve different targets and different kinds of language. The curriculum treats their relationship as a dependency to teach, an idea the recommendation experiments can test by changing which of those targets appear in training.

The method, step by step

Start with the choice the system must make

The authors call their procedure compositional fine-tuning, or CFT. They first work out the tasks needed to support a finished answer. They then write examples of each task and arrange the examples for training. The decomposition is manual. For recommendations, a researcher can work backward from the final choice and ask which preference determines it, what comparison would apply that preference, and what facts make the comparison possible.

Building a compositional fine-tuning curriculum

The steps in order.

Building a compositional fine-tuning curriculumStep 1: Identify the target task and its component tasks1. Identify the target task and its component tasksStep 2: Write example phrasings for each component2. Write example phrasings for each componentStep 3: Populate the phrasings with domain data3. Populate the phrasings with domain dataStep 4: Group examples by dependencies between tasks4. Group examples by dependencies between tasksStep 5: Teach facts and any preference interpretations first5. Teach facts and any preference interpretations firstStep 6: Fine-tune on comparisons and target decisions6. Fine-tune on comparisons and target decisionsStep 7: Evaluate decisions on held-out cases7. Evaluate decisions on held-out cases

The formal setup begins with a recommendation operation.

Recommend(P, I)

Recommend denotes the operation that chooses the best match. P is the set of user preferences, and I is the set of items being considered for that request. The parentheses enclose the inputs and the comma separates them. An item can be a city in the travel setting or a restaurant in the dining setting. The item's suitability is defined by the preference that applies to the choice.

For the recommendation experiments the authors use a single preference and a pair of options. They express that specialization as follows.

Recommend({p}, {i₁, i₂})

Recommend still denotes the choice operation. The braces form sets. p is the sole preference, and i₁ and i₂ denote the individual candidate items. The indices distinguish the members of the pair. The inner comma separates those members, and the comma between the sets separates the preference input from the item input. The output is the member of the pair that better satisfies p.

The language example for this operation is called a decision template. It expresses the preference in one sentence and asks for a recommendation between the alternatives in another. A request involving London and Lisbon can make Lisbon the target by saying that the traveler wants warmer conditions. It can ask for the same destination by saying the traveler would rather avoid cold. This separates the requested choice from the particular wording used to convey the criterion.

The benchmark makes a decision possible by constructing the choices from known attribute values. A preference specifies which kind of measurement matters and, once interpreted, which direction is desired. In the travel example, temperature is the attribute and a warmer destination is preferred. The option with the higher average temperature is therefore the desired answer. In dining, price and distance can play the role that temperature plays in this example. The template gives the choice a conversational form while keeping the rule that determines the target explicit in the dataset.

Work backward to comparisons and facts

Once a preference is interpreted, making the choice requires an ordered comparison. The authors write that operation as follows.

Compare(a, o, {i₁, i₂})

Compare is the operation that returns whichever item satisfies the comparison. a denotes the attribute, such as average temperature. o specifies the direction of the comparison, such as higher. i₁ and i₂ are the candidate items. The braces delimit the candidate set, the parentheses enclose the operation's inputs, and the commas separate the arguments or the members of the set. In a weather example, the system can be asked which candidate has the warmer climate without any reference to why a traveler wants to know.

The authors call an example of this kind a factual comparison. The phrasing can name the measured attribute directly or refer to it in everyday terms. Both approaches ask the system to order the same pair by the same attribute. The distinction between factual comparison and decision is in the information the request gives directly. A comparison specifies the ordering to apply. A decision expresses a person's preference, from which the ordering must be recovered. The correct city can be the same in both cases.

A comparison in turn depends on factual statements. In the dataset, a factual statement names a specific item and a specific attribute, with the measured value as the completion. For Lisbon, the paper gives an average temperature of 17.5C as an example. This target differs from the name of a preferred city. A factual example supplies something to know about Lisbon. A comparison example supplies practice applying that kind of knowledge to a pair. This difference is what allows the authors to teach facts and comparisons in separate parts of the training data.

Preferences that use negation also motivate a small component task later in the experiments. To teach it, the authors give examples that restate an aversion as the equivalent positive preference in the benchmark. Disliking cold weather is restated as preferring warmer weather. Once the preference is in that form, its relation to the comparison is more direct. The restatements use the meaning intended by the recommendation schema. They teach how to read the benchmark's preferences without requiring any new city or restaurant attributes.

The component structure is a plan for what training should teach. At evaluation, a decision prompt can be answered directly. The authors do not describe an inference procedure that first calls a fact generator, passes those answers to a comparison program, and then calls a recommender. There are separate factual and decision prompts in the experiments, but a decision score comes from the response to the decision prompt. Thus a system can benefit from a task's training examples even if its answer to the final prompt consists only of the selected item.

Define the catalog before making examples

Each domain has a catalog of items and a set of attributes that can be used to compare them.

D = (I_full, A)

D denotes a domain. I_full is the complete set of items in that domain. A is the set of attributes on which the items can be compared. The equals sign defines D as the pair inside the parentheses, and the comma separates the catalog from the attribute set. The full part of I_full distinguishes the complete catalog from the smaller set I offered in a single request.

For world travel, the domain takes this form.

D_c = (I_c_full, {temperature, population})

D_c is the city domain, with c identifying cities. I_c_full denotes the entire city catalog. The braces contain the attributes temperature and population, meaning average temperature and total population. The equals sign defines the domain as the parenthesized pair, and the commas separate the elements of the pair or the members of the attribute set.

For local dining, the same structure is populated differently.

D_r = (I_r_full, {price, distance})

D_r is the restaurant domain, with r identifying restaurants. I_r_full is the complete restaurant catalog. The set in braces contains price and distance, where distance is measured relative to a hypothetical location. The equals sign defines the domain, the parentheses group the catalog and its attribute set, and the commas separate the elements within each group.

For the template counts used in both domains, the relevant size of the attribute set is given by the following expression.

|A| = 2

A is the set of attributes. The vertical bars denote its cardinality, or how many members it contains. The equals sign states that the cardinality is 2, the number of attributes in each experimental domain. The common structure lets the authors keep the kinds of training examples comparable while changing the items, the preferences, and how likely a pretrained system is to know the relevant facts.

Turn each operation into examples

The demonstration step translates the decomposition into text. A factual statement has a single wording pattern for giving a value of an attribute. A factual comparison uses a direct and an indirect wording. A direct temperature comparison explicitly asks which place has the higher average temperature. An indirect version asks which has warmer weather. The label is unchanged because the values and the requested direction are unchanged. This variety gives the system practice linking everyday descriptions with the attributes they refer to.

Decision templates use a broader range of formulations. For a given attribute and direction, the preference can be expressed positively or through rejecting the opposite condition. It can be attributed to the person making the request, to the person being addressed, or to someone else. The authors also include wording that frames the decision as what someone would choose in the other's position. The variants keep the underlying preference fixed while changing how the practitioner must read it. In this way, the language of choice varies more than the relatively direct language of factual comparison.

For a pair of items, the authors report that their schema provides 32 decision templates, eight factual comparisons, and four factual statements. The facts cover the attributes of the individual items. The comparisons and decisions describe relationships involving a pair, with different directions and phrasings represented. The counts describe how the template inventory is populated. A factual statement about a particular item and attribute remains the same fact when the item comes up in another pair. The factual inventory for the full domain is therefore reported by item and attribute.

The authors restrict which pairs are eligible. On the travel side they use a minimum difference of 10C for temperature and 2.5M for population. For dining, the corresponding cutoffs are a price gap of one dollar sign and a distance gap of three miles. The rule helps the language of preferences line up with a clear answer. In a controlled dataset, a request to avoid cold is easier to label unambiguously when the choices differ noticeably in temperature. The experiment is built to ask whether the system can apply the criterion to the pair, with few opportunities for near ties to dominate the result.

The positions of the options are also varied. Across the comparison and decision examples, the authors flip the order of the items with a 50% chance. A rule that always completes a prompt with the first mentioned name would otherwise have an opportunity to exploit regularities in how pairs were generated. Randomizing presentation order addresses that particular shortcut. The options and their attributes continue to determine which completion the authors mark correct.

Separate knowing the items from practicing their comparisons

The train and test split is done on items before pair generation. Training pairs come from the 30% of items reserved for training, and test pairs are sampled from the other 70%. This applies to factual comparisons and decision templates. Accordingly, practice on those tasks cannot directly include a test comparison or a decision featuring either of its options. Holding back the items is stronger in this respect than merely reserving a different wording of an answer involving familiar training pairs.

The treatment of factual statements is deliberately different. Whenever the curriculum includes them, it includes statements for every item in the domain, including the items reserved for testing on comparisons and decisions. The authors want to test whether a system can use taught facts in judgments involving items that have never appeared in those kinds of judgments during training. In the full curriculum, a test city can have appeared in statements about its temperature and population. It has never appeared as an option in a training recommendation. The split preserves that distinction.

This arrangement makes it possible to give a baseline access to exactly the kind of factual knowledge that could help the full curriculum. If the full curriculum then does better, practice with the comparison operation becomes a plausible contributor. The same split also explains what the term held out signifies in the results. It refers to the use of an item in comparison and decision examples. Whether the system received facts about that item depends on the training configuration.

Put the examples in dependency order

In the curriculum, the earlier phase contains factual statements and, in the attribute transfer experiment, the examples that interpret negative preferences. They are placed early because each can be taught without requiring an answer to a comparison or recommendation. The later phase contains factual comparisons and decision templates. Both concern selecting an option from a pair, even though a decision adds the need to recover the criterion from the preference. The method places them in the same phase. The relationship between their outputs is part of the decomposition, but training on comparisons does not have to finish before training on decisions begins.

The authors shuffle examples within each phase and report finding this beneficial. They suggest that it helps the system practice all of the early components before progressing. For the later phase, their proposed explanation is that the tasks are close enough to reinforce the same abilities when interleaved. Those are interpretations of why shuffling helps. The main quantitative comparisons vary the kinds of examples available in training, instead of providing a separate estimate of the effect of every possible schedule.

The amount of training text for comparisons and decisions is controlled at the data construction stage. The template inventory initially produces many more decision examples. The authors sample decisions until the number of tokens in the selected decision examples matches the number in the comparisons. A token here is a unit used to measure input length. Balancing on tokens controls the amount of text contributed by each component even though its prompts can have different lengths and its inventory can contain different numbers of sentences. Later, the authors modify this balance deliberately to test whether adding more decisions can recapture the benefit of adding comparisons.

Adapt the decomposition for sports

The sports task has the same broad relationship between facts and a final judgment, with different kinds of intermediate examples. The input is a sentence about a known athlete performing a sports action. The objective is to judge whether that sentence is plausible. The authors teach facts connecting athletes to sports and facts about the actions performed in particular sports. The target judgment can then draw on whether the action belongs with the activity associated with the athlete.

The authors obtain these examples from explanations produced in the earlier sports study. They keep explanations associated with correct final answers, then parse the material into unique membership statements and sports actions. Those extracted facts form the component data. The training setup pairs that component data with a portion of the final questions and answers. It therefore demonstrates a different way of obtaining the examples for CFT. In recommendations the authors start with a structured item catalog and write templates to express it. In sports they extract component statements from existing successful chains before fine-tuning on the resulting tasks. Chain-of-Thought Prompting

Experiments and results

The two recommendation datasets

The world travel catalog combines average temperatures from Wikipedia with city populations from SimpleMaps 2019. After the sources are joined, the catalog contains 347 cities, with the paper describing the population cutoff as >50k inhabitants. There are 694 factual statements for this dataset. Each statement teaches a value for an attribute of a city. Using well-known destinations gives the pretrained system a plausible source of knowledge apart from the examples that the authors supply. The experiments can then ask whether specific factual and comparative instruction still has value.

The dining catalog is drawn from Toronto, the city with the most restaurant entries in the Yelp dataset used by the authors. They randomly sample 240 restaurants, using Yelp for prices and randomly generated distances to a hypothetical location. The resulting catalog supplies 480 factual statements. The restaurant identities are real, but the distance attached to each is specific to the experiment. This construction creates a situation in which knowing general things about a restaurant cannot settle its distance comparison. Direct access to the experiment's data matters more.

Once the training items are paired under the minimum-difference rules, the authors obtain approximately 1,970 city pairs and 2,320 restaurant pairs. Populating the comparison phrasings yields approximately 15.8k city examples and 18.5k restaurant examples. The initial decision inventories are roughly 63k examples for travel and 74.2k for dining. The token-matched selection of decisions happens after those inventories are made. The counts thus distinguish the set of examples that can be generated from the amount used to teach each component in the standard training configuration. The authors release their data and code with the study under the name compositional-fine-tuning.

What the scores measure

The standard evaluation uses 1.6k factual comparison cases, with 200 examples for each of the eight phrasings. For decisions it uses 6.4k cases, with 200 examples for each of the 32 phrasings. The test examples are generated with the same rules as the training examples, using the designated test items. The repeated sampling across phrasings prevents the reported decision score from being determined only by a particularly easy way of expressing a preference. It also allows the authors to examine narrower groups of expressions, as they do for negation.

For a test case, the authors generate the top 5 predictions using greedy decoding. They compare the likelihood of the correct candidate with that of the other candidate. The case receives a score of 1 if the correct candidate ranks higher and 0 otherwise. The averages therefore measure how often the system favors the intended option in a pair under the paper's scoring procedure. They do not measure the quality of an explanation, how accurately a numerical fact would be produced if requested independently, or how an unrestricted answer would read to a user.

The comparison baselines answer different questions. Curie without training on these tasks establishes how it performs when asked directly to make the decisions. Curie fine-tuned on decisions alone shows what full-task practice can accomplish. An additional baseline learns facts and decisions, leaving out explicit comparison practice. The authors also evaluate prompting with curated demonstrations, using both the Curie system that underlies their curriculum experiments and the larger DaVinci system. The learning baselines help isolate the value of component data. The prompted systems offer a comparison with another way of making task structure explicit.

From untrained choices to the full curriculum

On the standard world travel decision test, Curie without task training averaged 0.06 ± 0.07. Teaching it with decision templates alone raised the average to 0.89 ± 0.04. A curriculum containing facts and decisions produced 0.92 ± 0.02. With factual statements, factual comparisons, and decision templates all included, the average reached 0.95 ± 0.01. The results show that finished recommendations by themselves provide a strong training signal for this catalog. Component practice adds to that signal, although the baseline already succeeds on most travel decisions.

The corresponding dining decision scores make the role of the components easier to see. With no task training, Curie averaged 0.18 ± 0.05. With decision templates alone it averaged 0.52 ± 0.07, and with facts plus decisions it averaged 0.55 ± 0.04. All of the component tasks together brought the mean to 0.74 ± 0.05. On this dataset, practice choosing between restaurants leaves a substantial part of the difficulty unresolved. Teaching both the underlying information and the comparison task yields a higher average than teaching either one alongside decisions on its own.

The authors also report factual comparison as a secondary outcome. With the full curriculum, the average comparison score was 0.96 ± 0.01 for cities and 0.75 ± 0.05 for restaurants. The same training configuration gives the highest mean on both kinds of test prompt in both domains. Since those prompts have different language and targets at training time, gains on both suggest a benefit that reaches beyond learning the surface form of a recommendation. The ablations test how far the outcomes depend on facts, explicit comparison practice, and the amount of decision practice.

Compare with solving from demonstrations

For the chain-of-thought comparison, the authors manually construct 8 demonstrations per domain, using pairs from the training set. Each demonstration gives the relevant item facts, uses them to make a comparison, and connects that comparison to the requested choice. DaVinci is evaluated with that prompt and with a regular 8-shot prompt, which gives demonstrations without the same intermediate work. Curie is also evaluated with the chain-of-thought prompt. The setting is specified as follows.

k = 8

k is the number of demonstrations included in an input prompt. The equals sign assigns k the value 8, the setting adopted from the earlier prompting work. These examples accompany the test request. They do not update the system's weights in the way the CFT curriculum does.

Curie has 13B parameters and DaVinci has 175B. For the costly DaVinci chain-of-thought runs, the authors reduce the evaluation to 100 cases per decision phrasing, or 3.2k in total. The tables report the mean decision scores shown in the charts, with variation alongside the means in the paper. Because the comparison uses a reduced sample for the costly runs, the travel result is best read as a comparison of the reported levels of performance in the authors' setups.

World travel decision templates by training or prompting method

The compositional curriculum comes close to the highest mean, achieved by DaVinci with chain-of-thought demonstrations.

World travel decision templates by training or prompting methodDaVinci with regular prompting: 0.83DaVinci with regular prompting0.83DaVinci with chain of thought: 0.98DaVinci with chain of thought0.98Curie with chain of thought: 0.50Curie with chain of thought0.50Curie with compositional fine-tuning (this paper): 0.95Curie with compositional fine-tuning(this paper)0.95
The numbers
System or settingmean decision score
DaVinci with regular prompting0.83
DaVinci with chain of thought0.98
Curie with chain of thought0.50
Curie with compositional fine-tuning (this paper)0.95

For the world travel decision test, the paper reports 0.83 ± 0.08 for regular DaVinci prompting and 0.98 ± 0.02 for DaVinci with intermediate steps in its demonstrations. In the setting with the larger system and relatively familiar facts, showing the reasoning steps makes a substantial difference. Curie with chain-of-thought prompting receives 0.50 ± 0.12. Fine-tuning that same base system on factual statements, comparisons, and decisions produces 0.95 ± 0.01. This pattern supports the paper's practical claim about a smaller system. It can approach the best travel score by learning through extensive component practice. The highest reported travel mean belongs to the larger prompted system.

Local dining decision templates by training or prompting method

The compositional curriculum has the highest mean in the domain designed to require new facts.

Local dining decision templates by training or prompting methodDaVinci with regular prompting: 0.54DaVinci with regular prompting0.54DaVinci with chain of thought: 0.55DaVinci with chain of thought0.55Curie with chain of thought: 0.50Curie with chain of thought0.50Curie with compositional fine-tuning (this paper): 0.74Curie with compositional fine-tuning(this paper)0.74
The numbers
System or settingmean decision score
DaVinci with regular prompting0.54
DaVinci with chain of thought0.55
Curie with chain of thought0.50
Curie with compositional fine-tuning (this paper)0.74

For local dining, the paper reports 0.54 ± 0.09 for regular DaVinci prompting, 0.55 ± 0.07 for DaVinci with chains, and 0.50 ± 0.06 for Curie with chains. On price specifically, the pretrained approaches reach up to 65%, but the overall averages reflect the difficulty of the complete set of decisions. Curie with CFT averages 0.74 ± 0.05 across that set. The point of the cross-domain comparison is that the same prompting strategy can be effective when the items and their attributes are reasonably familiar and yield little gain when demonstrations provide the procedure but facts about the test items remain hard to recover.

Sports plausibility

The earlier sports study attained 83% on the task. Bursztyn and colleagues began with its 980 examples and kept the 815 examples whose explanations accompanied a correct answer. From these they extracted 390 unique statements about membership in a sport and 182 unique sports actions. The resulting component inventory supplies sports information in a form that can be used during fine-tuning. The final question-answer examples supply practice judging whether the athlete and action fit together.

The authors use all of the extracted membership and action material in their curriculum. They train on 50% of the final question-answer pairs in a 2-fold cross-validation scheme, in which the two portions take turns serving as held-out final questions. Performance on the held-out questions is 95.83% in one fold and 95.57% in the other. The result extends the evidence beyond recommendations based on numerical or ordered attributes. It comes from a curriculum that can use component facts extracted from the explanation collection, a detail that matters when interpreting the comparison with the earlier prompting result.

What the ablations show

Facts and comparisons contribute differently

The main ablation looks at which of three kinds of training examples are present: factual statements, factual comparisons, and decision templates. This creates contrasts in which a particular kind of practice is added while the availability of the other kinds stays fixed. The primary outcome is the score on held-out decisions. The secondary outcome, the score on held-out comparisons, helps distinguish ability to compare options when the criterion is explicit from ability to apply that comparison to a preference.

The travel results show a progression once the training includes comparisons or decisions. Comparison practice alone yields 0.54 ± 0.17 on decision templates. With both factual statements and comparisons, but still without training on decisions, the mean is 0.63 ± 0.18. Teaching facts and decisions together produces 0.92 ± 0.02, and the full curriculum reaches 0.95 ± 0.01. These figures help explain why direct practice on the target remains part of the method. Familiarity with a comparison can carry into a recommendation, while decision examples give supervision on how to express the comparison in response to a preference.

An instructive contrast is between training on decisions alone and training on decisions plus comparisons. On travel, the decision averages for those settings are 0.89 ± 0.04 and 0.88 ± 0.03. On dining, they are 0.52 ± 0.07 and 0.53 ± 0.10. Comparison examples without factual statements do little for the target in these contrasts. Once factual statements are included alongside decisions, adding comparisons produces a clearer gain, especially for dining. The evidence favors a curriculum that supplies the knowledge and gives practice using it, with the size of the benefit depending on what the rest of the curriculum contains.

The comparison test shows benefits in the other direction as well. In dining, training on facts and comparisons yields 0.66 ± 0.13 on factual comparisons. With decision examples included alongside those components, the comparison mean reaches 0.75 ± 0.05. Both tasks involve choosing between options on an attribute, so decision examples can give additional practice relevant to the simpler prompt. The recommendation target therefore does more than consume abilities learned earlier. Under full training it can also help the system answer the more direct comparison questions.

Individual rows make the context of these effects important. Facts alone leave the dining decision average at 0.13 ± 0.06, compared with 0.18 ± 0.05 without task training. A factual statement gives a value and requests no choice. A score from that configuration says little about what the same statement can contribute when comparisons and decisions teach the system how to use it. The strongest evidence for component value comes from the contrasts within curricula where the added information has a route to the target task.

Extra decisions at nearly the same token budget

The first set of ablations has an important alternative explanation. Adding factual comparisons to facts and decisions supplies a large amount of text because the comparison and decision portions are sized to have similar token counts. A better result for the full curriculum might reflect more training material. To test that possibility, the authors keep the factual statements in the baseline and add more decision templates until the total token budget is close to the full curriculum's budget. This gives the baseline another way to use the available training capacity.

In travel, the facts-plus-decisions baseline begins with 186,413 training tokens. With extra decision templates it reaches 367,144, close to the full curriculum's 367,157. The expanded baseline achieves 0.93 ± 0.02 on the decision test, and the full curriculum achieves 0.95 ± 0.01. The held-out factual comparison scores are 0.75 ± 0.26 for the expanded baseline and 0.96 ± 0.01 for the curriculum. The baseline uses its additional examples to practice the actual decisions, but that extra practice does little to reproduce the full curriculum's comparison performance.

The corresponding dining budgets are 293,967 tokens in the original baseline, 581,370 after the addition of decision templates, and 581,379 for the full curriculum. The expanded baseline scores 0.50 ± 0.10 on factual comparisons and 0.56 ± 0.04 on decisions. The full curriculum scores 0.75 ± 0.05 and 0.74 ± 0.05 on the respective tests. By the authors' measure, the decision advantage under this budget control is 2% for world travel and up to 32% for local dining.

Local dining decision scores as training time is spent on decisions or comparisons

Extra decision examples barely move the baseline, while a similar token budget with comparisons gives a higher score.

Local dining decision scores as training time is spent on decisions or comparisonsFacts and decisions with the original budget: 0.55Facts and decisions with the originalbudget0.55Facts and decisions with added decision examples: 0.56Facts and decisions with added decisionexamples0.56Facts, comparisons, and decisions with a matched budget (this paper): 0.74Facts, comparisons, and decisions with amatched budget (this paper)0.74
The numbers
System or settingmean decision score
Facts and decisions with the original budget0.55
Facts and decisions with added decision examples0.56
Facts, comparisons, and decisions with a matched budget (this paper)0.74

This control answers a question about how the training budget is spent. The full curriculum still has a wider set of learning targets, and some of its text directly teaches an operation that the enlarged baseline encounters only through completed decisions. Both systems receive attribute values. Under those conditions, it is the explicit comparison practice that distinguishes the stronger use of the training budget. The larger effect on dining fits the paper's interpretation that teaching how to use facts matters most in the harder catalog, where supervision on decisions alone gets the system less far.

Transfer when decision practice covers one attribute

The attribute transfer experiment asks how much of a decision procedure carries over when the system has practiced decisions for only part of a domain. The authors divide the decision data by attribute. In world travel, training decisions in a given condition concern either weather or population. In local dining, they concern either price or distance. In each condition factual statements and comparison training remain available. Evaluation uses the entire decision set for the domain, covering both the practiced attribute and the one withheld from decision training.

An attribute can therefore be missing from the decision examples while its data and the procedure for comparing items along that attribute are present elsewhere in training. In a fold without weather decisions, for example, the system can still see temperature statements and examples of deciding which city is warmer. At test time it has to connect that material to a weather preference. The transfer test is informative because it can reveal the part of the recommendation that practice on facts and comparisons leaves underspecified.

The authors find partial transfer, with reported drops of 7-24% against the corresponding full decision training configurations. They identify negative wording for the withheld preference as the strongest source of error. This gives the experiment a more precise interpretation than a simple claim that the system struggles with an unfamiliar attribute. The relevant comparison can be familiar. The missing link is frequently how to interpret the direction requested by a preference that expresses what someone wants to avoid.

To address that link, the authors add 12 negative preference interpretations per domain. These examples explicitly restate a negative preference in its positive form. They enter the earlier part of the curriculum because they teach how to interpret a criterion before applying it to the choices. The small addition lets the authors ask whether feedback on that reading operation can help final decisions even when the withheld decision examples remain unavailable.

The intervention improves the mean decision score in each of the attribute transfer conditions. For travel, the paired means reported in the paper are 0.84 and 0.89 in one condition and 0.88 and 0.90 in the other, in each case with the higher mean after adding the interpretations. For dining the corresponding means are 0.56 and 0.65, and 0.67 and 0.69. The authors report improvements of 2-6% in travel and 3-16% in dining on the decision test. On decision templates containing negations specifically, the average improvement is 9% for cities and 15% for restaurants.

The comparison outcomes help locate the benefit. The intervention changes the interpretation of a preference, so it can improve decisions even when factual comparison scores move little. That is evident in the dining conditions, where the overall decision means rise in both cases while one mean on the factual comparison test goes from 0.68 ± 0.13 to 0.67 ± 0.17. The transfer experiment thus shows why the decomposition includes language about the criterion as well as facts about the options. Knowing what is cheaper, nearer, warmer, or more populous is useful only after the request has been mapped to the right ordering.

Limitations

Limits identified by the authors

The curriculum starts with a decomposition supplied by the researchers. The paper establishes that those particular component tasks can be helpful, then leaves open whether a system could find them on its own. Producing a useful decomposition requires more than listing ideas that might be relevant to the task. The resulting operations need to have teachable inputs and outputs, and the available data need to support examples of them. The authors also leave open how much performance depends on choosing among alternative decompositions for the same target.

Constructing the demonstration material poses a related problem. In recommendations, the researchers choose a vocabulary of preferences, devise formulations, and populate them with item data from each domain. In sports, they have existing explanations that can be filtered and parsed. Automating those processes would require deciding which expressions preserve the intended operation and which sources provide usable component examples. The authors discuss ways future work might address decomposition and demonstration, with least-to-most prompting as one direction for exploring how to identify subproblems. Least-to-Most Prompting

The authors note that the method is meant for tasks with a sufficiently stable component structure. A dataset can test compositional generalization using many different kinds of questions, each requiring a different sort of intermediate operation. A curriculum built around facts, comparisons, and preference interpretations is easy to define when those categories recur across requests. The same design says less about how to cover a heterogeneous collection in which the needed operations vary widely. The paper identifies spatial navigation and tasks with deeper or broader dependencies as directions for further evaluation.

Language and system choice also limit the result. The demonstrations and the test examples are in English, and the experiments rely on GPT-3 variants. The authors present the comparison of 13B and 175B parameters as evidence about Curie fine-tuning and DaVinci prompting in this setting. They call for replication across languages and systems. In particular, the negation intervention teaches forms used in the domain templates. Demonstrating its benefit on those forms leaves open how a curriculum would need to change for languages that express the same preference differently.

The cost discussion has a similarly specific scope. The authors report that a DaVinci decision example with their 8-shot chain-of-thought setup cost USD 7. They give a figure of 5 cents, which by their calculation is about 50 times what it costs to fine-tune Curie with CFT. They also acknowledge that their curriculum requires more data than prompting. The parameter comparison, the reported service costs, and the amount of task-specific material describe distinct resources. The observed comparison depends on the prices, systems, and experimental workloads available to the authors.

Limits visible in the experimental setup

The recommendation task is deliberately narrow. Each measured decision involves a pair of options and a single preference. Attributes are treated as sufficiently distinct under the pair-generation rules, and the intended decision follows a predetermined ordering. This supports a clear test of whether learning the components improves the defined task. It leaves questions about conflicting preferences, more than a pair of alternatives, near ties, and requests whose criteria are ambiguous. Those are cases where even deciding what constitutes the best answer may require more work than comparing known values.

The authors express one possible larger form of the problem through the preference set.

|P| > 1

P is the set of preferences, the vertical bars give its size, and > means greater than. 1 is the single preference used in a tested decision template. The expression describes a request containing more preferences than the recommendation experiments evaluate together.

They give the analogous generalization for the item set.

|I| > 2

I is the set of options in a request, the vertical bars count those options, and > means greater than. 2 is the number of options in a tested decision template. The expression describes a request that gives the recommender more choices than one pair.

The authors suggest that another system could decompose larger requests into decisions of the tested size and combine the answers. The benchmark provides no measured result for such an arrangement. An upstream procedure would itself have to select comparisons and decide how to combine their outcomes. This matters when criteria conflict. Solving each individual comparison successfully may still leave open how the user's preferences should be traded off against one another.

The coverage of facts is another meaningful condition. With factual statements included, the system receives attributes for every test item during training. It is then asked to combine that knowledge in judgments involving items that have been held out of comparison and decision practice. This is a useful test of applying taught facts in new cases. A recommendation setting in which the catalog changes after training, or in which an item's attributes are missing, would put a different demand on the system. The experiments supply the facts in advance so they can study what the curriculum learns to do with them.

The language variation is also bounded by design. The travel and dining datasets contain several ways of wording comparisons and decisions, but the test cases are generated with the same inventory of phrasings used to create training examples. The item split creates a novel decision about particular entities. The attribute transfer setup introduces another kind of novelty by withholding decisions about a criterion. Neither directly measures performance on unrestricted user formulations whose meaning departs from the template interpretations. In particular, the benchmark can equate avoiding cold with preferring warmer choices because it defines the decision that way. Everyday requests can use the same language to express a threshold or a constraint with a different practical consequence.

Different training arrangements are compared with different information budgets as well. The token control in the ablations is between fine-tuned systems. It shows what happens when a similar amount of text is invested in full decisions or in a mixture that includes explicit comparisons. It does not equalize the factual exposure of CFT and chain-of-thought prompting. For instance, the dining curriculum supplies the generated attributes of the test restaurants in factual statements, while the prompt demonstrations use training pairs. The prompting comparison shows how the methods perform under those practical setups. It leaves open how much of the advantage would persist if both methods had access to every relevant test fact at the point of decision.

The experiments chiefly measure the benefit of including component examples under the authors' training schedule. They give less leverage on the separate contribution of the schedule itself. The full curriculum and the token-matched baseline differ in the types of tasks that have examples. The paper describes a benefit from shuffling within phases, but the reported comparisons do not give a parallel set of decision scores for every ordering of identical training material. The evidence can establish an advantage for the curriculum as implemented while leaving the exact role of phase order unresolved.

Finally, a high decision score gives evidence of successful selection under the scoring rule. It cannot reveal whether an individual answer was produced by recovering each fact and applying the intermediate operations in the order the researcher used to design the curriculum. The sports result has an additional dependency worth keeping in view. Component statements are drawn from the collection of successful explanations and used across the folds. Holding out final question-answer pairs evaluates the use of those components on withheld judgments. It does not test the separate problem of answering about athletes and actions whose component facts were excluded from training.

What came after

In 2024, Scaling of Search and Learning cited the study in a roadmap for reproducing o1 from a reinforcement learning perspective. The roadmap's stated focus is the scaling of search and learning. That puts it in conversation with the earlier paper's narrower investigation of where to teach the work behind a difficult answer. The recommendation experiments compare two concrete locations for that work: examples used during fine-tuning and demonstrations included in the prompt when a decision is requested.

The connection is clearest in the distinction between learning an operation in advance and carrying out intermediate work while solving a problem. Bursztyn and colleagues give a measured example of what can be gained on the learning side when operations recur across requests and the facts can be supplied during training. A roadmap organized around search and learning takes up the broader question of how those sources of improvement fit together. The citation establishes that connection. It does not establish that the roadmap adopted the recommendation templates, reproduced the component ablations, or reported a new result for compositional fine-tuning.

Cite

Cite as Victor Bursztyn, David Demeter, Doug Downey and Larry Birnbaum. 2022. Learning to Perform Complex Tasks through Compositional Fine-Tuning of Language Models. Findings of the Association for Computational Linguistics: EMNLP 2022.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/2022.findings-emnlp.121

@inproceedings{bursztyn2022learning,
  title = {{Learning to Perform Complex Tasks through Compositional Fine-Tuning of Language Models}},
  author = {Victor Bursztyn, David Demeter, Doug Downey and Larry Birnbaum},
  booktitle = {Findings of the Association for Computational Linguistics: EMNLP 2022},
  year = {2022},
  doi = {10.18653/v1/2022.findings-emnlp.121},
  url = {https://doi.org/10.18653/v1/2022.findings-emnlp.121}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/bursztyn-2022-learning-perform-complex-tasks-through/