Toward Online Evaluation of LLMs
Jinglong Zhao ⋅ Zijie Zhou
Abstract
This paper studies online evaluation of large language models (LLMs). In such problems, each arriving query must be routed immediately to one model and only the assigned model's outcome is observed. Because the models receive different queries, it is important to balance the queries across the two LLMs. We use observed characteristics of each query as covariates to guide routing decisions, and we assume that the covariates are independent and identically distributed samples from a known distribution. We measure balance using the size of a minimum weight perfect matching between the queries routed to one LLM and the other queries routed to the other LLM. In the single-dimensional case, we propose a dyadic design with expected matching discrepancy $O(\log^3 T)$ over $T$ queries. The design balances queries across dyadic intervals of different sizes, and our analysis translates interval imbalance into matching discrepancy. In the multi-dimensional case with $d \geq 2$ covariates, we establish an $\Omega(T^{\frac{d-1}{d}})$ lower bound under uniform arrivals for any design. We study the pigeonhole design and dyadic design using a simulation environment created through AlpacaEval and WildBench. We show that, relative to the completely randomized design, both the dyadic design and the pigeonhole design consistently reduce both the matching discrepancy and the variance of the estimator on AlpacaEval and WildBench.
Successful Page Load