An agent produces a higher-performing machine-learning (ML) model from a supplied starting point. How far does this go towards doing research? The first thing to establish is what decisions were made prior to the start of the run. There is a wide range of things the agent may decide over the course of its run in both MLAgentBench and MLE-bench. The authors set up a scenario, and specify a criterion for judging the submitted solution. So an impressive range of experimentation may be required, but nothing requires the agent to decide what question would be interesting to investigate, or to verify that the quantity being measured is relevant.
Suppose one person hands over some data, a model, and requests that the model be made more accurate. The recipient works out what is going wrong, comes up with a fix, implements and tests this, and writes up the result. This person has clearly done a good deal of experimentation. But it would be misleading to write up this work as if the recipient came up with everything to investigate. Many important decisions have already been made. Equally, if the recipient were an agent, it would overstate the agent's decision to say that it had decided everything.
What decision was left to the agent?
Qian Huang and colleagues designed MLAgentBench to test language models' ability to perform various steps in ML experimentation. There are 13 tasks, differing in the amount and type of code provided, and in the amount of guidance given. One task asks the agent to improve the accuracy of a model provided for classifying images in the CIFAR-10 dataset. The IMDb task asks it to build a sentiment classifier for film reviews and specifies fine-tuning a BERT model. Both examples require training a model. They give the agent different starting points for implementation. Huang et al. §2
The agents are all able to read and write to disk, run programs and observe some output. So, for example, they can predict the effect of a modification, and observe the consequence. Deciding on a change to some aspect of model training amounts to deciding to intervene. A successful exit indicates that a program completed under the conditions of that run. But to conclude anything about the effect of that change requires an appropriate control, plus observation. So it is useful to know both occurred; the authors give examples of agents claiming to have improved the model just as a consequence of modifying some file. Huang et al. §3.1
It would be helpful to know what the "control" model was. Depending on the task, the agent might inherit almost all of a good pipeline, and only need to find something else to add. Or it might first need to write code to read the data properly. So a range of amounts and kinds of decision-making may be required to reach the same level of performance. It is helpful if the paper states what code and other material were provided, what restrictions applied, and what decisions the agent was then able to make.
MLAgentBench versus MLE-bench
| Experimental condition | MLAgentBench | MLE-bench |
|---|---|---|
| Provided to agent | Description of objective, plus data and code, some of which may amount to baselines | Description and associated data of an existing ML competition |
| What agent may do | Modify working files, run experiments and inspect outputs within the task environment | Write code to generate a suitable submission file |
| What is measured | Proportion of runs meeting an improvement over a baseline, for each task, and mean over all tasks | Proportion of runs producing a score equivalent to at least Bronze, against the historical private leaderboard |
| Prespecified | Objective to be achieved, and how to measure this | Processing of raw data, how to measure success, other competitors' scores |
Each model–task condition in MLAgentBench was evaluated over eight trials, and the paper reports proportions successful. As set out in their Table 3, "success" is defined as meeting a specified improvement over baseline models. It will generally not be the proportion improvement achieved. So, for example, if 5 of 8 runs achieved the required minimum improvement over baseline, the reported success rate would be 62.5%, giving no indication of the size of improvements in those 5 runs. MLAgentBench, Table 3
Jun Shern Chan and colleagues built MLE-bench from 75 Kaggle competitions. The grader receives a submission file and scores it with the competition’s metric. They then compare with scores achieved by others taking part in the competition, as recorded on a private leaderboard at the time. Cutoff points for Bronze, Silver and Gold vary with the number of competitors. So achieving the equivalent of a medal only indicates a standing relative to others, according to a formula specific to each competition. And the phrasing avoids implying actual participation in and award from that competition. Chan et al. §2.1 to 2.3
What decisions were made at each stage?
As a simple example, suppose one wanted to predict the number of people in a library reading area at various times, based on a sensor counting people entering. Someone else collects the data over some period, reserves later times for final assessment, and chooses mean absolute error as the measure. The agent observes that numbers are very different on weekdays compared to weekends, decides to add a variable to indicate this, trains a new model, and assesses how much better this is than the original, over some period. All of this is purely hypothetical, but serves to illustrate points.
So a number of decisions were made before the start: what area of the building, what to measure, what measure of accuracy, when to assess. The agent decided on at least one extra variable, and how to assess the effect. It might also have chosen the model family, depending on the starting materials. If it were told in the description of the task that the difference between weekdays and weekends was likely to be significant, it would only be making the decision to add and test this variable. Deciding this was likely to be important would be an extra element. The description of the task would make clear which applied.
Of course, it may turn out that the improved model does well because some other variable contains data not available until later. So there will be an output from the relevant program, but this would be a poor guide to performance if deployed. It would be necessary to look more carefully at the time at which each piece of input data was available, and re-run the comparison restricting to available information. So being aware of and able to address this issue would be an additional ability, beyond producing good scores as assessed by the (overly liberal) measure provided.
Comparison with others on a leaderboard
A further issue arises because, for some competitions, data to assess models on the original final test set may not be available. For these, the authors derive train and test sets from data available for training models, then check whether an example submission scores similarly on the original and reconstructed splits. So models can be assessed in the same way as for the original competition. But scores are then relative to a possibly different test set. So if the score achieved is marginally above, say, the Silver level, this should be treated with caution. Chan et al. §2.1
Similarly, there is a difference between information available while writing code, and the final assessment. The authors provide code which the agent can submit a file to, and it will return an error message if it is of the wrong form, but will not provide the score. So the agent may well wish to reserve some available training data for validation when comparing candidate models. So if a paper describes the agent generating an incorrect file, submitting this and amending it accordingly, this indicates only that it can generate an acceptable file. Further information would be required to indicate it could generate an accurate model. Chan et al. §2.3
Other aspects of the competition may restrict what the agent may do. In particular, they are required to generate the submission file from a model trained by the agent, and are not allowed to look at solutions posted by others who took part. So a good score indicates the agent can perform some combination of the tasks involved in that competition. When considering any other experiment, it is therefore relevant what code and information was available to the agent, what computing power it could use, for how long, and whether solutions to the relevant competition were provided.
Summary of possible conclusions
It may therefore be useful, when reading a paper, to list (i) decisions taken by others prior to the start, (ii) decisions the agent could take, and (iii) decisions actually made, as indicated. For example, it may be permitted to decide how to divide data into training and test sets, but all runs may use code provided for this. So there is a difference between being allowed to make the decision, and doing so.
It is also worth asking whether, given all the code and other outputs generated, someone else could easily generate the best model. So, for example, the code to train the model may omit some key details, and running it as is would generate something closer to the baseline model. On the other hand, all that may be needed to show achievement of a particular score on a competition is a file of predictions. So it depends what one wants to verify.
One can then ask what maximum conclusion could reasonably be drawn, not ascribing to the agent decisions made for it. In the example above, this might be that it thought of a variable likely to be helpful and tested this, using a measure chosen by someone else. If this was then verified on a further held-out period, one could be more confident it would continue to be beneficial. But if the agent reported only its best development score after trying many alternatives, there would be more doubt. Neither would indicate whether the number of people in the area was something useful for the library to know.
Equally valuable may be ideas tried and found wanting. So if the agent added the day-of-week variable, found this did not continue to give good results over a subsequent period, and noted this, it may have shown useful judgement. Papers reporting only scores would be unlikely to show this. On the other hand, an agent may achieve good scores but give little indication of understanding why. It is useful to know both the engineering result and how well the run’s evidence explains it.