Chapter 10
Benchmarking with simulated users
This chapter compares the strategies, protocols and evaluator configurations of the package in seven factorial experiments with simulated users, whose known taste gives every run a ground truth: strategies on four synthetic landscapes (B1), strategies under seven user models (B2), protocols (B3), engineering problems (B4), hybrid escalation (B5), verbal steering (B6) and surrogate assistance (B7). It states what was measured, what was found and where the findings stop. All numbers are produced by tools/benchmark.py.
10.1 Design of the experiments
Every experiment runs every combination of its factors with ten seeds (six in B4); the seed fixes the random state of the strategy and of the simulated user. Effort is counted in shown items unless stated otherwise, the classical IEC measure; the effect of the counting rule is discussed below. Performance is the best ground-truth utility among the shown items after a given effort, read off the anytime curve of the run. The synthetic landscapes of SyntheticPreference are defined in the five-dimensional unit cube around a hidden optimum: a sphere, an ill-conditioned ellipsoid, a multimodal landscape with a global peak and decoys of 80 % height, and a plateau that quantizes the utility into six levels, as coarse human judgements do. Unless varied, the simulated user is Thurstonian with noise on the utility scale. Tables report means and standard deviations over seeds; for formal comparisons the package offers the Friedman test with the Nemenyi critical difference [82, 83], Vargha and Delaney’s [84] and Holm’s correction [85] (section 10.9).
10.2 B1: strategies on synthetic landscapes
Table 10.1 and fig. 10.1 compare eleven strategies. Four findings stand out.
- Model-based and covariance-adapting strategies are the most frugal. After 90 items the surrogate-screened GA leads on every landscape, followed by preferential BO, CMA-ES, EASY-IEC and the sequential gallery, whose order varies with the landscape. After 180 items most strategies are within a few hundredths of the optimum, and the differences that matter in practice — an evaluator’s first hundred judgements — are the early ones.
- Self-adaptation pays early. EASY-IEC is ahead of the plain GA after 45 items on every landscape and after 90 items on all but the sphere, most clearly on the ill-conditioned ellipsoid, where per-gene step sizes help.
- Greedy schemes stall on deception. The Watchmaker is competitive on the unimodal landscapes but falls behind on the multimodal one, where its single-parent lineage is easily trapped by a decoy.
- Counting items penalizes duels. Pairwise DE looks no better than random search per item, because each duel shows two candidates for one decision; per elementary decision its curve is twice as steep. The sequential line search, whose slider shows seven samples for one decision, is penalized in the same way. Which effort to count is a modelling choice that should match the application: looking at images or making decisions.
10.3 B2: strategies under seven user models
Table 10.2 repeats four strategies — the GA, CMA-ES, pairwise DE and sequential line search — with seven simulated users on the sphere: an ideal user, two noise levels, a tiring user whose noise triples after twenty queries, a user who lapses into random answers 20 % of the time, a position-biased user, and a user who attends only to the first four images. CMA-ES is the most robust: its utility after 180 items varies by less than 0.03 across the user models, because it uses only the order of the candidates and averages over the whole gallery. Line search is the most sensitive, because one slider answer determines the next line: lapses and high noise cost it more than 0.07 after 180 items. The GA degrades gracefully. For the design of experiments with people, the lesson is that conclusions drawn with an ideal simulated user may not survive realistic ones; B2 is a cheap way to check.
10.4 B3: protocols
Table 10.3 runs the same GA for 20 queries with five protocols. Selection and ranking reach the highest utility; ranking needs almost three times as many elementary decisions. Best–worst scaling needs only two decisions per query and reaches a utility comparable to rating with less than a quarter of the decisions. The information bound is a poor predictor of usefulness: rating carries the most bits but loses to selection, since the GA uses only the order and the top of the gallery. Protocols should therefore be chosen for the strategy that consumes them and for the evaluator’s effort, not for the nominal information content.
10.5 B4: engineering problems
Table 10.4 runs six strategies on six engineering problems for twelve generations with a simulated engineer whose taste is the problem’s own utility (chapter 8). The problems differ more than the strategies, and no strategy wins everywhere.
- Reference-point NSGA-II is the strongest on PID tuning (0.99), path planning (0.75, against at most 0.53 for the others) and segmentation (0.91), where the utility is a smooth function of the objectives its silent phases optimize. On the beer fermentation it is the weakest, below random search: the utility there is dominated by penalties beyond specification limits, a narrow trade-off that the silent Pareto search over five objectives does not find and that a few reference points cannot convey.
- CMA-ES is the best on the beer profile and the reactor with PID control and close to the best elsewhere — the most consistent strategy of the experiment.
- EASY-IEC lags on PID tuning (0.63, below random search). It starts, as the MATLAB toolbox did, from one initial chromosome — here the centre of the cube — with a small spread, so its first galleries do not reach the region of good tunings; the toolbox expected the engineer to supply a sensible initial chromosome, which the init_chrom argument still allows.
- On the reactor with DMC every strategy, random search included, scores between 0.76 and 0.78: the stabilizing inner loop makes most DMC tunings acceptable, and there is little left to optimize in twelve generations.
For an application the lesson is to use the computable objectives when they exist (NSGA-II, or a hybrid with a metric), to prefer a robust default (CMA-ES) when they do not, and to give initial-point methods a good starting point.
10.6 B5: hybrid escalation
B5 measures the escalation policies of section 5.6 with three mock AI judges of different quality on pairwise DE, ten seeds each (table 10.5 and fig. 10.2). The calibrated risk policy adapts the human share to the AI’s quality — about a third of the queries for the good AI, two thirds for the medium one, almost all for the weak one — and keeps the disagreement of the AI-only answers near 0.2 for the good and the medium AI, under the tolerance of 0.3. The weak AI answered alone in only one of the ten runs: three of thirty queries in the second half of the session, after the labels gathered there had briefly admitted a threshold of 0.25, with a disagreement of 0.48. This is the kind of failure the confidence level admits, and it also reflects that the duels of a converging search grow harder as the session proceeds, so earlier labels are not exchangeable with later queries. The rate policy holds its target share of 32–35 % regardless of quality and lets the weak AI’s errors through (disagreement 0.33). The fixed threshold lies between the two. Note that even the good AI, answering every query alone, disagrees with the careful person on more than a fifth of the duels: many duels late in a search are between near-equal candidates, on which any two evaluators disagree. The best utility found hardly differs between the configurations on this easy landscape, which shows that IEC is robust to moderate evaluator noise; the hybrid’s value lies in what it guarantees about the AI’s answers and in the human effort it saves.
10.7 B6: verbal steering
In photo enhancement with galleries of four (table 10.6), a simulated user who comments on every query reaches a mean best utility of 0.88 after five generations against 0.82 without comments, and 0.94 against 0.88 after ten; commenting on half of the queries gives intermediate results. The comments are hedged phrases from the problem’s vocabulary (“much warmer”, “lift the shadows a lot”), parsed lexically. Real comments are less tidy, and the language-model path of the steering module exists for them; B6 measures the mechanism, not people’s vocabulary.
10.8 B7: surrogate assistance
B7 asks whether a surrogate helps on harder, eight-dimensional landscapes (table 10.7). The answer is nuanced. Pre-selection — every offspring competing with three of its mutants — never hurts noticeably and helps early on the sphere and the multimodal landscape. Screening six of 27 offspring helps most on the sphere and early on the multimodal landscape, but it hurts on the ill-conditioned ellipsoid, where the random-feature model, fitted to a few dozen comparisons, ranks the pool poorly and the evaluator never sees the offspring that would have taught it otherwise. Together with B1, where screening nine of 27 was the best strategy in five dimensions, the results suggest that surrogate screening is valuable in low dimensions and on well-conditioned landscapes, and that pre-selection is the safer default.
10.9 Statistical comparison
For formal claims, run_benchmark returns the summary table of every run, and friedman and nemenyi_cd compare strategies over blocks (problem–seed combinations) by their average ranks: two strategies whose average ranks differ by less than the critical difference are not significantly different at level [83]. The critical-difference diagram of fig. 10.3, from the gallery example of six strategies on three landscapes, groups CMA-ES, EASY-IEC and the GA, which are not distinguishable at this budget, ahead of the interactive PSO and of DE and random search. compare_groups adds bootstrap confidence intervals, effect sizes and Holm-adjusted -values against a reference.
10.10 Limits
The benchmark measures algorithms against hypotheses about evaluators. Simulated users perceive utilities with independent noise, while people are influenced by context, by the previous gallery and by their own changing taste; the drift, fatigue, lapse, attention and position-bias options cover some of this, not all. Engineering utilities are reasonable but not authoritative definitions of good practice. And mock AI judges have known, stationary errors, while real models have structured ones — which is why chapter 11 repeats the key measurements with Claude.
| strategy | sphere @90 | ellipsoid @90 | multimodal @90 | plateau @90 | sphere @180 | ellipsoid @180 | multimodal @180 |
| GA + surrogate | 0.99 0.01 | 0.97 0.03 | 0.98 0.01 | 0.83 0.00 | 0.99 0.00 | 0.99 0.02 | 0.99 0.00 |
| PBO | 0.96 0.02 | 0.94 0.04 | 0.97 0.01 | 0.83 0.00 | 0.99 0.00 | 0.98 0.01 | 0.99 0.01 |
| CMA-ES | 0.94 0.03 | 0.96 0.03 | 0.95 0.03 | 0.83 0.00 | 0.99 0.01 | 0.99 0.00 | 0.99 0.01 |
| EASY-IEC ES | 0.92 0.06 | 0.95 0.03 | 0.95 0.02 | 0.83 0.00 | 0.96 0.03 | 0.97 0.03 | 0.98 0.01 |
| Gallery | 0.94 0.05 | 0.93 0.05 | 0.94 0.04 | 0.82 0.05 | 0.97 0.01 | 0.97 0.02 | 0.98 0.01 |
| GA | 0.95 0.04 | 0.91 0.07 | 0.93 0.08 | 0.82 0.05 | 0.98 0.01 | 0.97 0.03 | 0.97 0.01 |
| IPSO | 0.89 0.08 | 0.91 0.06 | 0.91 0.06 | 0.80 0.07 | 0.95 0.03 | 0.96 0.02 | 0.96 0.02 |
| Watchmaker | 0.91 0.05 | 0.93 0.03 | 0.87 0.12 | 0.75 0.09 | 0.98 0.01 | 0.98 0.01 | 0.94 0.08 |
| SLS | 0.91 0.06 | 0.84 0.18 | 0.88 0.07 | 0.75 0.14 | 0.96 0.03 | 0.94 0.08 | 0.94 0.06 |
| Random | 0.74 0.11 | 0.79 0.09 | 0.74 0.11 | 0.65 0.12 | 0.78 0.09 | 0.84 0.07 | 0.78 0.09 |
| DE (pairs) | 0.76 0.18 | 0.77 0.14 | 0.70 0.14 | 0.63 0.17 | 0.86 0.12 | 0.93 0.07 | 0.86 0.11 |
The plateau landscape quantizes the utility into steps of 1/6, as coarse human judgements do; the top level requires hitting the optimum exactly, so 0.833 is the practical maximum.
| simulated user | GA @90 | CMA-ES @90 | DE (pairs) @90 | SLS @90 | GA @180 | CMA-ES @180 | DE (pairs) @180 | SLS @180 |
| ideal | 0.96 0.02 | 0.96 0.02 | 0.79 0.11 | 0.87 0.14 | 0.99 0.01 | 1.00 0.00 | 0.89 0.04 | 0.99 0.01 |
| noise 0.05 | 0.95 0.04 | 0.94 0.03 | 0.76 0.18 | 0.91 0.06 | 0.98 0.01 | 0.99 0.01 | 0.86 0.12 | 0.96 0.03 |
| noise 0.15 | 0.90 0.08 | 0.93 0.04 | 0.69 0.17 | 0.79 0.19 | 0.96 0.03 | 0.97 0.02 | 0.87 0.07 | 0.92 0.07 |
| fatigue (3x at 20 q.) | 0.91 0.08 | 0.93 0.04 | 0.76 0.18 | 0.85 0.15 | 0.97 0.01 | 0.99 0.01 | 0.87 0.13 | 0.94 0.05 |
| lapses 20 % | 0.88 0.08 | 0.94 0.02 | 0.73 0.16 | 0.74 0.15 | 0.97 0.01 | 0.99 0.01 | 0.85 0.10 | 0.92 0.06 |
| position bias 0.1 | 0.92 0.09 | 0.94 0.03 | 0.75 0.19 | 0.86 0.11 | 0.98 0.01 | 0.99 0.00 | 0.87 0.08 | 0.95 0.05 |
| attention 4 | 0.91 0.05 | 0.93 0.03 | 0.74 0.16 | 0.80 0.15 | 0.97 0.02 | 0.99 0.01 | 0.87 0.09 | 0.92 0.06 |
| protocol | best utility | decisions | information bound (bits) | utility per 100 decisions |
| select | 0.982 0.011 | 180 | 180 | 0.55 |
| rank | 0.979 0.007 | 520 | 369 | 0.19 |
| rate | 0.933 0.035 | 180 | 598 | 0.52 |
| best_worst | 0.950 0.034 | 40 | 123 | 2.37 |
| pairs | 0.943 0.033 | 80 | 127 | 1.18 |
| problem | GA | EASY-IEC ES | CMA-ES | IPSO | NSGA-II (ref. point) | Random |
| PID | 0.98 0.01 | 0.63 0.39 | 0.90 0.09 | 0.90 0.11 | 0.99 0.01 | 0.75 0.21 |
| CSTR (PID) | 0.64 0.03 | 0.66 0.02 | 0.66 0.01 | 0.64 0.03 | 0.61 0.14 | 0.59 0.11 |
| CSTR (DMC) | 0.78 0.01 | 0.78 0.02 | 0.77 0.01 | 0.78 0.01 | 0.78 0.02 | 0.76 0.02 |
| beer | 0.66 0.05 | 0.69 0.09 | 0.73 0.08 | 0.69 0.06 | 0.52 0.17 | 0.57 0.05 |
| path | 0.48 0.11 | 0.29 0.09 | 0.28 0.11 | 0.52 0.12 | 0.75 0.01 | 0.43 0.09 |
| segmentation | 0.77 0.11 | 0.82 0.08 | 0.84 0.09 | 0.79 0.06 | 0.91 0.01 | 0.70 0.16 |
| AI noise | configuration | human share | AI-only disagreement | best utility |
| 0.05 | AI only | 0.00 0.00 | 0.23 0.03 | 0.960 0.054 |
| 0.05 | threshold =0.3 | 0.38 0.13 | 0.17 0.03 | 0.970 0.031 |
| 0.05 | rate =0.25 | 0.32 0.03 | 0.20 0.04 | 0.976 0.019 |
| 0.05 | risk =0.3 | 0.31 0.25 | 0.21 0.06 | 0.956 0.050 |
| 0.05 | person only | 1.00 0.00 | — | 0.965 0.061 |
| 0.10 | AI only | 0.00 0.00 | 0.26 0.03 | 0.952 0.032 |
| 0.10 | threshold =0.3 | 0.53 0.10 | 0.22 0.04 | 0.978 0.019 |
| 0.10 | rate =0.25 | 0.35 0.03 | 0.28 0.03 | 0.962 0.044 |
| 0.10 | risk =0.3 | 0.69 0.24 | 0.20 0.08 | 0.956 0.060 |
| 0.10 | person only | 1.00 0.00 | — | 0.965 0.061 |
| 0.20 | AI only | 0.00 0.00 | 0.31 0.02 | 0.937 0.042 |
| 0.20 | threshold =0.3 | 0.70 0.10 | 0.29 0.05 | 0.978 0.017 |
| 0.20 | rate =0.25 | 0.34 0.03 | 0.33 0.05 | 0.957 0.059 |
| 0.20 | risk =0.3 | 0.99 0.03 | 0.48 | 0.968 0.061 |
| 0.20 | person only | 1.00 0.00 | — | 0.965 0.061 |
| budget | comments p = 0 | comments p = 0.5 | comments p = 1 |
| 5 generations | 0.822 0.159 | 0.829 0.161 | 0.884 0.108 |
| 10 generations | 0.877 0.129 | 0.913 0.105 | 0.942 0.076 |
| landscape | strategy | @90 | @180 | @270 | reached 0.9 | items to 0.9 (median) |
| sphere | GA | 0.831 0.065 | 0.947 0.024 | 0.969 0.014 | 100 % | 126 |
| sphere | GA + screening (6 of 27) | 0.867 0.106 | 0.971 0.024 | 0.978 0.024 | 100 % | 93 |
| sphere | GA + pre-selection (best of 4) | 0.868 0.062 | 0.961 0.017 | 0.979 0.005 | 100 % | 104 |
| sphere | CMA-ES | 0.836 0.047 | 0.960 0.018 | 0.980 0.005 | 100 % | 122 |
| sphere | CMA-ES + pre-selection (best of 4) | 0.862 0.041 | 0.964 0.015 | 0.986 0.007 | 100 % | 112 |
| ellipsoid | GA | 0.887 0.055 | 0.961 0.017 | 0.973 0.012 | 100 % | 99 |
| ellipsoid | GA + screening (6 of 27) | 0.787 0.190 | 0.884 0.147 | 0.915 0.112 | 80 % | 135 |
| ellipsoid | GA + pre-selection (best of 4) | 0.890 0.056 | 0.950 0.019 | 0.974 0.015 | 100 % | 90 |
| ellipsoid | CMA-ES | 0.865 0.040 | 0.958 0.025 | 0.976 0.014 | 100 % | 104 |
| ellipsoid | CMA-ES + pre-selection (best of 4) | 0.869 0.072 | 0.946 0.037 | 0.980 0.012 | 100 % | 112 |
| multimodal | GA | 0.837 0.064 | 0.951 0.024 | 0.968 0.017 | 100 % | 122 |
| multimodal | GA + screening (6 of 27) | 0.882 0.085 | 0.960 0.062 | 0.966 0.064 | 90 % | 90 |
| multimodal | GA + pre-selection (best of 4) | 0.862 0.061 | 0.945 0.063 | 0.958 0.065 | 90 % | 99 |
| multimodal | CMA-ES | 0.834 0.045 | 0.961 0.018 | 0.981 0.003 | 100 % | 122 |
| multimodal | CMA-ES + pre-selection (best of 4) | 0.840 0.069 | 0.963 0.016 | 0.985 0.006 | 100 % | 108 |
In a nutshell: Benchmarking with simulated users
- Model-based strategies, CMA-ES and EASY-IEC are the most frugal in the first hundred items on synthetic landscapes; greedy schemes stall on deceptive ones.
- CMA-ES is robust to user noise, fatigue, lapses and bias and the most consistent on engineering problems; reference-point NSGA-II excels where the utility follows the computable objectives.
- Selection is the most efficient protocol for a GA; best–worst scaling is the cheapest per decision.
- The calibrated risk policy adapts the human share to the AI’s quality and keeps AI-only disagreement under the tolerance, with the occasional failure that its confidence level admits.
- Verbal steering helps when galleries are small; surrogate screening helps in low dimensions, pre-selection is the safer default.