← Research

Research · Multi-model Selection

How should we choose among answers from different AI models?

If we ask three AI models to write the same code, which answer should we use? We used Tutti to test the candidates and choose one answer, then compared how many problems Tutti solved with how many one model solved when we used it throughout.

Choosing a model for comparison

If we always assign a job to the same model, we will encounter problems it struggles to solve. If another model can solve them, we can change which model we use according to the job. We can also ask both to solve the problem and then use the better answer. Both approaches raise the same question: how many problems could we solve by assigning every job to the candidate model best suited to this work?

The results below come from internal measurements in which we chose the problems and models. External researchers have yet to reproduce them, and they have not been approved as a public performance claim through the project's formal process. We do not know whether multiple models generally outperform the best single model.

We set two baselines for comparison. The designated single is the model we chose before measurement because we expected it to be strong. The best single is the model that scored highest across the same set of problems after we scored each candidate's answers. Even if the designated single solves few problems, another model may solve more on its own; the difference from that model shows the effect of combining answers.

We also examined a score we can calculate only after knowing the correct answers. We take the answers collected in one run and mark each problem for which at least one answer is correct. The number of marks is the number of correct answers ideal selection could achieve using those answers. Subtracting the number solved by using the same single model throughout shows the room to improve by choosing an answer for each problem.

We cannot tell how much selection might help just by looking at how differently the candidates wrote their code. If different implementations all fail on the same input, reading more candidates will not give us a correct answer for that input. Even similar implementations can differ in their handling of boundary cases, so one may pass a test while the other fails. We want to know which problems one candidate solves and another misses.

Tests for selection and tests for scoring

For our own problems, we described function specifications in natural language. Examples include splitting a CSV row containing quotation marks, reading integer ranges and calculating a date after adding months. We paired 60 hard coding problems, including these, with handwritten inputs and expected results. The models read the specification and examples and return code.

We show 2–4 tests in advance for each problem. Tutti gives every model the same problem once and runs the returned candidates against those tests. It selects a top-scoring candidate and uses the code without changing a single character. The models do not vote, and no one needs to rewrite the selected answer.

We use a separate set of 5–12 held-out tests to decide whether the selected answer is correct. The models cannot see these scoring tests when writing code, and Tutti cannot see them when selecting candidates. To check whether implementations that satisfy the visible examples also follow the specification on other inputs, we counted a problem as solved only if the selected code passed all its held-out tests.

Before scoring the models, we checked the tests. We ran the reference answers for all 60 problems and confirmed that they passed every visible example and held-out test. Next, we used answers with deliberate errors and confirmed that they did not score full marks on either set of tests. To use tests to distinguish candidates, we need to know both whether they reject correct answers and whether they let erroneous answers pass.

The way we count a success also changes the picture. Our early scoring included answer format and processing time alongside correctness. On our 60 problems with visible examples, one model in the low-cost group scored about 0.60 overall but passed all held-out tests on only 10 problems. Reading the composite score as a success rate would greatly overstate the number of pieces of code passing the held-out tests. We therefore use correct counts for the coding problems below.

Gains on hard public problems

The third-party BigCodeBench-Hard benchmark contains 148 problems. We excluded 38 according to criteria for compatibility with the execution environment and measured the remaining 110. We showed one of the tests supplied with each problem in its prompt and held out all the others for scoring. The results below use these 110 problems as their denominator.

We used three mid-tier open-weight models. We compared gpt-oss-120b, Nemotron and GLM used on their own with selection from their three answers using tests. We fixed temperature, which controls the randomness of output, at 0. We used Fireworks and DeepInfra as services running the same models and scored a full set on each service.

On Fireworks, the designated single GLM solved 27 problems, the best single gpt-oss-120b solved 54, and Tutti's selection solved 63. That is 36 more than the designated single. Of those, 27 are the difference we would get by choosing a different single model. The additional 9 over the best single correspond to the work of collecting and testing three answers.

Number of problems, out of 110 on BigCodeBench-Hard, for which the code passed all held-out tests on Fireworks. From left, the designated single solved 27, the best single 54, and Tutti's selection 63.
Number of problems, out of 110 on BigCodeBench-Hard, for which the code passed all held-out tests on Fireworks. From left, the designated single solved 27, the best single 54, and Tutti's selection 63.

The 9 problems are a net gain. Matching the scores for the same 110 problems, we found that selection alone solved 14 and the best single alone solved 5. On each remaining problem, both methods succeeded or both failed. If we switched a job to the new method, we would want to examine the 5 problems only the previous method solved as well as the 14 newly solved problems.

On the 110 problems on DeepInfra, the designated single solved 36, the best single 54 and selection 61. Selection alone solved 13 and the best single alone solved 6, a net gain of 7. Selection solved more on both services. How clearly we could establish the difference varied by service.

To examine the range of the difference, we paired the single model's and selection's scores for each problem and repeatedly resampled problems with replacement. This method is called a paired bootstrap. Keeping each pair together for hard and easy problems lets us examine how changes in the number solved by only one method affect the difference in success rates. The 95% confidence intervals below estimate the range of that difference.

On Fireworks, the difference in success rates was 8.18 percentage points, with a 95% confidence interval of 0.91–15.45 points. On DeepInfra, the difference was 6.36 points, with an interval of −0.91–13.64 points. The latter crosses zero, so the DeepInfra result alone does not let us distinguish which method scored higher with confidence.

We pooled scores from both services and found a 7.27-point difference between selection and the best single, with an interval of 1.82–12.73 points. The 220 observations cover the same 110 problems twice. Testing 220 distinct unseen problems once each would be a different comparison. This was also an exploratory comparison of multiple methods and benchmarks, with no statistical adjustment for the number of comparisons.

When a single model already solves most problems

We also compared the same three mid-tier models at temperature 0 on the public coding benchmark MBPP+. We took the first 200 problems in problem-number order, showed the first test for each and used the rest for scoring. The best single alone solved 192 on Fireworks and 189 on DeepInfra. Even if we recovered every missed problem, we could add only 8 and 11 correct answers, respectively.

The room is smaller still when we limit ourselves to the candidates collected. Of the 200 problems, 194 had at least one correct candidate on Fireworks and 192 on DeepInfra. Those candidates covered just 2 problems the best single missed on Fireworks and 3 on DeepInfra. No selection method can recover a problem from that run's answers if all three models failed it.

Selecting with the visible tests yielded 193 correct answers on Fireworks and 191 on DeepInfra. The gains over the best single were 1 and 2 problems, and both 95% confidence intervals for the difference in success rates include zero. The designated singles scored 185 and 171. Compared only with those models, the same selection results look like gains of 8 and 20 problems.

On both BigCodeBench-Hard and MBPP+, the model we expected to be strong beforehand differed from the best model identified by scoring. On the first benchmark, a pooled difference remained after changing the comparison baseline; on the second, the difference became small. Counting only the gain over our usual model misses this distinction when we assess the value of adding a model.

What we learned from repeated runs on our own problems

On our 60 problems with visible tests, we used the three mid-tier models and a group containing higher-tier candidates. In the latter group, we kept gpt-oss-120b and replaced the other two models with Kimi and DeepSeek. On Fireworks at temperature 0, each group attempted the same 60 problems twice. We capped model output at 512 tokens, units used to count text, for our own problems and raised the cap to 2,048 tokens for the public benchmarks to allow longer implementations. Instead of increasing the number of problems, we examined whether the difference remained across calls and model groups.

Across four runs, test-based selection gave 63 correct answers in 240 attempts. The single models designated for each group gave 30. The difference in success rates was 13.75 points, with a 95% confidence interval of 8.33–19.17 points. In the second run with that mix of mid-tier and higher-tier models, selection solved 14 and the designated single solved 9; the interval for the difference includes zero.

For the mid-tier group, we also compared selection with the best single. The highest-scoring model, gpt-oss-120b, solved 7 problems in each run, while selection solved 16 in the first and 17 in the second. In both runs the lower bound of the interval for the difference was above zero. Comparing the problems solved by selection, we found 16 in common across the runs. The runs had similar counts and also agreed closely on which problems they solved.

We also called the same model repeatedly. We gave the mid-tier group's designated single the same 60 problems with visible tests five times under the same settings. It solved 5 problems in its lowest-scoring run and 8 in its highest, and solved 3 in all five runs. Even at temperature 0 with the same starting conditions, this service did not always return the same answer.

Examining only the three mid-tier models' answers collected in the same run, we found 2 problems in the set of 60 that the best single missed and another model solved. When we requested fresh answers and selected by testing, we sometimes beat the earlier run’s count of problems with at least one correct answer. Fresh answers can change which problems are solved, so the upper bound calculated for one run does not set the bound for the next.

We believe the visible tests helped us pick good answers from responses whose quality varied across calls. Differences in the models' strengths alone cannot explain the changes in which problems were solved in this measurement. This also gives a reason why assigning a problem to a particular model in advance can produce different results from choosing after receiving the code.

For the public problems, we also collected the answers used to calculate the upper bound separately from those used for selection. On BigCodeBench-Hard on DeepInfra, 60 of the 110 problems had a correct answer from at least one of the three models. Selection solved 61. The figures may seem surprising, but 61 from a separate run is consistent with them. In comparisons where we could save the same candidates and score both the single models and ideal selection, we used that run’s answers for both scores.

Choosing a model before the answer arrives

Routing means choosing one model as soon as a task arrives. We only need to call that model for an answer. We thought a router trained on past scores might spare us from collecting every model’s answer at run time.

On 50 citation problems using three low-cost models, we tried a trained router at temperature 0 and obtained a higher average score than the designated single. The citation score measures automatically how well an answer satisfies the requirements. After reviewing all candidates in the same report and using the highest-scoring single model as the baseline, we found that the interval for the score difference included zero.

The 50 problems in this test also appeared in training. Even with fresh answers, the router had seen the problems themselves before. We need to distinguish between asking for fresh answers to the same problems and deciding where to send a request received for the first time.

Early on, we also tried combining the content produced by multiple models. We used four models on Fireworks at temperature 0 and scored four sets of 30–50 tasks each by machine, including citation, code defect and tool-use tasks. In each of the four sets, assigning roles in advance and combining the outputs gave a lower average score than the single model we had expected to do well.

In another set of 50 problems, we tried routing that prioritized local models, with two locally run models and one external service model as candidates. At temperature 0, machine scoring showed that the method combining multiple models scored below the external single model. Even ideal routing that chose the best answer to each problem after the fact averaged 0.7171, close to the 0.7153 achieved by continuing to use the external single.

Using only the small local models on these 50 problems required zero external calls. The models available to us depend on whether we can send a job to the higher-scoring external model or need to process it locally. Routing can also serve to choose a destination that meets such requirements. We can assess that use separately from whether routing increases the number of correct answers.

Did rewriting and repair add correct answers?

We settled on returning selected code unchanged because an early experiment with rewriting damaged answers that had been correct. On 60 of our own problems without tests shown in advance, we worked with low-cost models, asking the same model for several answers per problem and then asking a model to rewrite the answer we picked. At temperature 0, calling the generating model once per problem yielded 54 correct answers, while only 1 final answer was correct with the rewriting method.

In the next run, we removed the rewrite and used the selected answers unchanged; 51 were correct. Asking the same model for one answer per problem also yielded 51 correct answers. The correct count recovered without rewriting, but on this set selecting from multiple answers scored the same as asking for one answer per problem.

Finding errors and repairing them did not always improve results with more repair, either. On our 60 problems with visible tests, we used low-cost models at temperature 0 to compare a single model call with a method involving repair. With one call per problem, gpt-oss-20b solved 10 problems, while the repair method using another model solved 1. The repair method generated its own candidates and applied repair to all 60 problems in that run.

Deciding what counts as an error also posed a problem. On 60 hard coding problems without handwritten examples shown, we asked a low-cost model to write tests; some of those tests failed even the reference answers. Using separate held-out tests for scoring, we counted 9 correct answers with model-written tests for selection and 9 with one answer per problem under the same conditions. A model's ability to write plausible tests alone was insufficient grounds for selecting candidates.

Writing separate answers or building one together

When we ask three models for separate finished answers, we cannot choose a correct one if all the candidates we receive are wrong. We therefore also tried assigning planning, implementation, review and repair in advance and having the models produce one answer together. In this method, we also ask a single model to do the same job. We use the joint code only if it scores higher than the single model on the visible tests; a tie keeps the single model's code.

In two runs on our 60 problems with visible tests using the mid-tier models, the fixed workflow gave 53 correct answers in 120 attempts and the designated single gave 15. At temperature 0, the difference in success rates was 31.67 points, with a 95% confidence interval of 23.33–40.00 points. Of the 21 problems on which the joint code was selected in the first run, 18 also passed the held-out tests. The remaining 3 did not reach a correct answer despite beating the single model on the visible tests.

In two runs on the same 60 problems using the three-model group with higher-tier candidates, the fixed workflow gave 24 correct answers in 120 attempts and the designated single gave 17. The interval for the difference includes zero. The joint code was selected on 7 problems in each run, and 12 of those 14 observations were correct. Even though selected joint code often succeeded, there were fewer opportunities to replace the single model's code. We do not yet know why changing the model group changes that frequency.

We also measured the fixed workflow on Fireworks BigCodeBench-Hard with the mid-tier models at the same temperature of 0. The joint code was selected on 38 of 110 problems and solved 23. Including problems where the single model's code was kept, the workflow solved 46. That exceeds the designated single's 27 but falls short of the best single's 54, and the interval for the difference from the best single crosses zero.

The fixed workflow had a large effect with the mid-tier models on our own problems, while selection among separately completed candidates retained a difference from the best single on the hard public benchmark. Both use the same kind of tests at the end. Had we chosen a method based only on our 60 problems, we would have missed this difference on the public benchmark.

Using past scores to plan the next job

In another experiment, we asked a model to decide who should do what. Using the mid-tier models at temperature 0 on our 60 problems with visible tests, we asked it to write roles and procedures freely. None of the plans for the first 60 problems were executable. We relaxed the format parser, changed the prompt and tried the same 60 problems again. We still got zero executable plans. Even if the model returns an explanation or code, we cannot try the division of work unless the runner can read the roles and their order.

We then asked the same model to choose from predefined procedures. It produced executable plans for 36 of the same 60 problems used for free-form planning. The 36 is not a count of correct code. Choosing a division of work and solving the problem with that division posed separate difficulties.

In another method, we trained a system in advance to choose a division of work from 2,880 records of our past measurements. We used records of procedures, model roles and test results, rather than the full requests or answers. This saves one call to ask a model for a plan for each new job.

On the same 60 problems with the mid-tier models at temperature 0, all plans chosen from the records were executable, and the completed answers solved 14 problems. In the same run, the designated single solved 8 and the workflow with roles fixed by people in advance solved 28. Choosing plans from records let us proceed with execution, but there was room to improve which model we assigned to each role to reach correct answers.

From the outset, we have been interested in whether multiple organizations pooling results measured on their own work could improve the choice of combinations for the next job. Our company alone participated in this experiment, which trained on procedures and test results. We have yet to examine how much we can trust scores from other organizations when making decisions, and whether choices improve as participation grows.

What the results mean for your company’s work

For a company considering multiple models, the first thing to establish is how each candidate performs alone on its current work. If switching to one model meets the required quality, the company can avoid the work of calling all candidates each time. If another candidate covers problems a single model misses, the next question is whether the company can prepare a way to recognize that answer upon receipt.

Developers who provide sample inputs and expected outputs for a coding task can use those examples to choose among the answers. A scorer can hold out other inputs so that the score reflects cases where the selected answer fits only the examples. Tasks such as organizing research findings or writing long documents do not have correctness tests we can run in this way, and these results do not give us grounds to apply the findings directly to them.

The cost of collecting three answers, the time a user waits for a reply and how much of a request can be sent outside the company are also conditions specific to each job. Keeping the cases where only the single model was correct alongside those newly solved by selection lets us examine which failures the extra work reduced. Before adopting the method, we would want to check whether the newly solved problems include work our company needs done.