Repository navigation
Description
Summary
A run passes the quality gate when its MMLU-Pro accuracy on 500 seeded questions, divided by the PyTorch reference accuracy, is at least 0.95 (quality_gate.py L142, 500 questions at L57, concurrency 4 at runner.py L994). PR #3 refactors this code but keeps one read against the point estimate.
Read once, that ratio moves by about 3 to 4 correct answers from one launch of an identical server to the next, at temperature 0. For a server whose true ratio is 0.98, about one read in eight fails. A 12 run submission therefore expects about one gate failure by chance, and each failure costs about 8% to 10% of the four scenario aggregate. That is larger than the gap between the leaderboard's top agent and the matched budget search (12.08x against 11.53x, 4.8%).
How i measured it
One H100 80GB SXM, vLLM 0.32.0, Mistral-7B-Instruct-v0.3, harness at 24cdf88 through its own gate code. Two server configurations, every held out pair of the four scenarios (seeds 428, 1337, 777), so 24 cells. Each cell: the official scored read plus 5 more gate reads, each from a fresh launch of the same server script (a second read on a running server would answer from its prefix cache, unlike the official read). Same 500 questions per seed, concurrency 4, temperature 0. 120 extra reads in total; speed runs were skipped.
Results
Pooled standard deviation of the number of correct answers out of 500, per scenario (24 degrees of freedom each): A 3.04, B 3.50, C 4.05, D 3.80. That is 0.6 to 0.8 accuracy points, or about 0.02 to 0.03 in the gate ratio (the ratio's spread depends on the seed's reference accuracy: 0.318 on seed 428, 0.298 on 1337, 0.232 on 777).
A fresh launch of the same server changes about 100 of the 500 answer letters against the previous launch, at temperature 0. The cause is batch dependent numerics: with 4 questions in flight the batch makeup differs between launches, so logits differ in the last bits and near ties flip in the chain of thought. One server read 0.948 to 1.026 across 6 launches on seed 777.
Per cell: passes in 5 fresh reads with their mean ratio, the official read, and the pass probability of one read from a normal model with the pooled SD.
Configuration 1:
| Pair | Fresh passes, mean | Official | Pass probability |
|---|---|---|---|
| A 248/428 | 5/5, 1.005 | 1.006 | 1.00 |
| A 21/1337 | 5/5, 1.024 | 0.980 | 1.00 |
| A 999/777 | 4/5, 0.990 | 0.983 | 0.92 |
| B 248/428 | 2/5, 0.941 | 0.9497, fail | 0.29 |
| B 21/1337 | 5/5, 1.004 | 1.000 | 0.99 |
| B 999/777 | 5/5, 1.031 | 1.034 | 1.00 |
| C 248/428 | 5/5, 0.996 | 1.013 | 0.96 |
| C 21/1337 | 4/5, 0.981 | 0.940, fail | 0.88 |
| C 999/777 | 5/5, 1.076 | 1.034 | 1.00 |
| D 248/428 | 5/5, 1.013 | 1.038 | 0.99 |
| D 21/1337 | 5/5, 1.038 | 1.027 | 1.00 |
| D 999/777 | 5/5, 0.997 | 1.009 | 0.91 |
Configuration 2:
| Pair | Fresh passes, mean | Official | Pass probability |
|---|---|---|---|
| A 248/428 | 5/5, 1.003 | 0.981 | 1.00 |
| A 21/1337 | 5/5, 1.027 | 1.020 | 1.00 |
| A 999/777 | 5/5, 1.043 | 0.991 | 1.00 |
| B 248/428 | 2/5, 0.952 | 0.962 | 0.49 |
| B 21/1337 | 5/5, 0.999 | 1.034 | 0.98 |
| B 999/777 | 5/5, 1.028 | 1.043 | 0.99 |
| C 248/428 | 1/5, 0.931 | 0.943, fail | 0.19 |
| C 21/1337 | 5/5, 0.983 | 0.993 | 0.89 |
| C 999/777 | 5/5, 1.071 | 1.069 | 1.00 |
| D 248/428 | 5/5, 0.990 | 1.025 | 0.94 |
| D 21/1337 | 5/5, 1.021 | 1.007 | 1.00 |
| D 999/777 | 5/5, 1.045 | 1.000 | 1.00 |
What the single official read decided:
- Configuration 1, C 21/1337 failed officially at 0.940 (140 correct, 142 needed) but passed 4 of 5 fresh reads with a mean of 0.981: bad luck.
- Configuration 2, C 248/428 failed officially and passed 1 of 5 fresh reads with a mean of 0.931: a real quality loss, which the gate should catch.
- Configuration 2, B 248/428 passed officially at 0.962 with a pass probability of 0.49: good luck.
- Expected failures in 12 runs, from the probabilities above: 1.1 for configuration 1, 1.5 for configuration 2.
Effect on the aggregate (geometric mean over scenarios of the mean over three pairs, a failed run counted 1x): deciding each pair's gate on the mean of its 6 reads instead of the official read raises configuration 1's aggregate by 10.7% and leaves configuration 2's unchanged. The gap between the two configurations is 18% on the official reads, 31% on the mean of 6 reads and 38% on expected scores (speedup times pass probability plus 1x times the rest). The ranking holds, but the size of the gap depends heavily on which reads happened.
Not measured: the PyTorch reference accuracy is itself one read per seed, so every submission on a seed shares whatever luck that read had. Its spread is presumably of the same size.
Suggested fixes, any one of which helps
- More questions: 2,000 per gate halves the spread; the gate takes minutes, not hours.
- Gate on a confidence bound instead of the point estimate: fail only when the one sided 95% upper bound of the ratio is below 0.95, or test per question agreement with the reference (a paired test is far more sensitive than comparing two accuracies).
- Average over launches: the mean of 3 fresh launches cuts the spread by about 1.7x.
- Remove the launch to launch flips at the source: run the gate at concurrency 1, or with vLLM's batch invariant mode, so a server reads the same answers every time.
- Read the reference several times and report its spread.
- Report each run's gate ratio with its interval in the results, so a reader can see a near miss.
Per read data (every fresh read, its ratio and answers) is available on request.
Activity