ai.si
Field notes

From AI to SI

Can AI Get Better by Learning From Its Own Output?

Bottom line

STaR improved on held-out questions by selecting generated explanations against known answers. When evaluating another self-training claim, ask who supplied the check and which original examples later rounds could still use.

Examples feed a model, its outputs pass through a check, and selected material loops back to the examples.

In a learning loop, follow the information that changes the next attempt and identify what checks it.

Yes. In the Self-Taught Reasoner (STaR) experiments, a model generated examples that helped a later model answer unseen questions. But it makes a large difference to the meaning of "trained on its own outputs" whether there is some other criterion for admission of an example to the training set. In STaR, the ground-truth answers were available, and were used to decide which model-generated examples to train on. On the other hand, in a series of experiments in which models were trained successively on data generated by previous models, the question was how far the original data could be displaced by generated data. STaR · Recursive training experiments

Suppose you set two people the same questions to practice on. One is given a book of answers, and writes out solutions to as many as possible in a book to leave for the next person. The other is given such a book left by a predecessor, and is expected to complete and improve it. You would want to check, in the first case, some solutions which gave a correct answer; and, in the second, what questions had been left out. Each corresponds to a feature of at least one set of experiments.

How a correct answer earns a place in training

Given a set of questions and answers, plus a few demonstrations of solutions, the model is set the other questions, generating a solution and answer. All of these giving the correct answer are included for training. So the model generates a very large number of examples, of which a useful fraction can be selected automatically. STaR, method

If many questions fail, this can lead to very few examples of that type remaining to be practised on. So STaR sets out the question with the answer appended, to prompt solution. If the resulting solution concludes with the correct answer, it too can be included for training, with the appended answer omitted. So at test time the model is expected to deduce the answer as well. STaR, rationalization

However, reading on to the algorithm reveals that, after generating and selecting examples with the current model, the initial model is trained on those. So it is the current round’s selected examples that carry forward the benefit of previous iterations. Each round starts fine-tuning from the original weights. A schematic showing successive updates to the parameters would therefore be somewhat misleading. STaR, Algorithm 1

When an incorrect solution reaches the right answer

As a simple example, suppose "A ticket is $12. You have a voucher entitling you to $3 off. What do you pay?" Answer: $9. The solution may be "Subtract 3 from 12", or "All tickets are available at 25% off; 25% of 12 is 3; subtract 3". If the question were altered to "A ticket is $16...", these two solutions would give answers of $13 and $12 respectively. So it would pay to look more closely at solutions to questions with the answer changed, if available. At minimum this shows that solutions remaining after selection by final answer are not all guaranteed to be sensible.

With multiple-choice questions, the model may arrive at the correct answer in all sorts of ways: elimination of the other alternatives, pure chance, coincidental memory association, and so on. The paper cites examples repeating information from the question, or stating something true and relevant, but giving no basis for the answer chosen. Knowing the answer allows assessment of whether that is correct, but not whether the reasoning leading to it is. STaR, failure cases

How much did the extra training improve accuracy?

On CommonsenseQA, GPT-J fine-tuned to give answers only scored 60.0% accuracy. STaR without rationalization scored 68.8%, and STaR with rationalization scored 72.5%. The full procedure gained 12.5 percentage points over direct fine-tuning, which also used the training answers. The gain from adding rationalization was 3.7 percentage points and reflects not only any benefit from better examples but a larger number of examples, and a different set of questions. STaR, Table 1

How well did the procedure work when applied to a different task? On GSM8K, direct fine-tuning yielded 5.8% test accuracy and STaR with rationalization yielded 10.7%. That 4.9-percentage-point improvement still left the large majority of questions answered incorrectly. Both endpoints matter when judging whether to trust the next answer. STaR, Table 2

It also indicates some features to look for in a repeat of the experiment: the same set of training questions and answer labels for the procedures being compared, a comparable starting model, and measurement on held-out questions. And, if the method requires much more computation to generate and select the training set, it would be useful to know by how much. One may wish to compare improvement achieved per computation, as well as per answer known. None of this is provided in the percentages quoted.

It would also be interesting to set aside some pairs of very similar questions, differing only in a feature which changes the appropriate method of solution, and note the proportion correctly answered and examine solutions to those answered correctly in one case only.

How rare examples disappear from a training set

If about 1% of items in some list describe a product containing a special feature, and a model generates a similar list with items independently chosen to match this frequency, then there is about a 37% chance that none of 100 items generated will contain that feature. So a model generating a very faithful representation of the original data may generate 100 examples containing no trace of it.

If a model is trained only on these 100 examples, there will be none to remind it of the special feature, although it may well generate products containing it from general knowledge. But there will be nothing in the data to inform it of the frequency of occurrence. Repeating this process with an arbitrarily large number of examples, all drawn from this set of 100, will never restore information about the original data set. Of course this says nothing about the likelihood of this actually occurring with any real model.

A number of authors have investigated various forms of recursive self-training, and find various degrees of loss of characteristics of the original data distribution. Shumailov et al. These experiments concern the degree to which the generated data match some target distribution. In contrast, the criterion in STaR was the model's ability to answer new questions. There is no necessary inconsistency between improved performance on new questions and reduced ability to match the original distribution.

What changes when the original examples remain available?

Of course, if the original list of products were available as well, a model generating a new list might include products drawn from it. Depending on how the data to be learnt from is chosen and weighted, and how much is read in one training run, the model may or may not see many, if any, examples from the original. So it is not enough that the data used "includes" the original data.

Gerstgrasser et al. contrast successive replacement of the data with generated examples against adding generated examples to the original, in each case training on all the data. In all cases they tried, addition prevented "model collapse". They also show, for a particular form of regression, that test error is bounded over iterations. So it would be good to know what data previous models had been trained on, in other experiments. But this would not cover a case where there was an ever-increasing amount of data available to the model, of which it read only a small, and non-random, fraction.

So there are two separate issues: what checks are applied to individual examples admitted to a set; and whether examples can be learnt from in subsequent iterations, if omitted from those generated in one iteration. Checking the answer selects examples that finish with the expected answer, but will do nothing to ensure generation of examples of all types. Availability of the original examples may solve this problem, but will do nothing to prevent erroneous solutions.

Scrutinising "self-improvement"

Take one example admitted to the training set. What is the source of the question, and of the answer (or other measure of success) against which it has been checked? Are there solutions which would pass this test which you would not accept? Having established the example will be used for training, which model actually trains on it? What questions is performance assessed on, and what other information is available to models so assessed? If any of these cannot be identified, the "improvement" demonstrated may be unrelated to that of interest to you.

If the claim is that fewer human-written explanations are required, it should be possible to count the number of examples and answers supplied, and compare performance on unseen questions. To show that it can find answers not given, some independent means of verifying the new answers would be required. And to show continued self-improvement, it would need to show improvement, but also check that other abilities were not being lost. So there are a variety of tests which might be relevant, depending on what is claimed.

None of this detracts from the claim that a model can generate a substantial body of examples useful for training another model to answer questions. There may be good reason to question individual examples selected. With any claim of self-education, it is worth asking what or who provided the information to judge on.

References

All field notes