Cer-Eval: Certifiable and Cost-Efficient Evaluation Framework for LLMs
Ganghua Wang, Zhaorun Chen, Bo Li, Haifeng Xu
TL;DR
The paper tackles the challenge of reliable and cost-efficient evaluation of large language models by introducing a certifiable online evaluation framework. It defines test sample complexity and develops Cer-Eval, a partition-based adaptive algorithm that sequentially selects informative test points to achieve a user-specified estimation error $ε$ with confidence $1-δ$, while providing finite-sample guarantees. Theoretical results establish upper and lower bounds on the required test data and show how variance-aware partitioning can dramatically reduce sample needs under benign partitions. Empirical results on simulations and real benchmarks demonstrate substantial data-efficiency gains (typically 30–40% savings) with robust confidence guarantees, and reveal a connection between model accuracy and evaluation-efficiency. The framework offers a practical, scalable approach to certifiable LLM evaluation and paves the way for tasks such as certified ranking, OOD assessment, and multi-task comparisons.
Abstract
As foundation models continue to scale, the size of trained models grows exponentially, presenting significant challenges for their evaluation. Current evaluation practices involve curating increasingly large datasets to assess the performance of large language models (LLMs). However, there is a lack of systematic analysis and guidance on determining the sufficiency of test data or selecting informative samples for evaluation. This paper introduces a certifiable and cost-efficient evaluation framework for LLMs. Our framework adapts to different evaluation objectives and outputs confidence intervals that contain true values with high probability. We use ``test sample complexity'' to quantify the number of test points needed for a certifiable evaluation and derive tight bounds on test sample complexity. Based on the developed theory, we develop a partition-based algorithm, named Cer-Eval, that adaptively selects test points to minimize the cost of LLM evaluation. Real-world experiments demonstrate that Cer-Eval can save 20% to 40% test points across various benchmarks, while maintaining an estimation error level comparable to the current evaluation process and providing a 95% confidence guarantee.
