Cer-Eval: Certifiable and Cost-Efficient Evaluation Framework for LLMs

Ganghua Wang, Zhaorun Chen, Bo Li, Haifeng Xu · DOI

Abstract

Evaluating Large Language Models (LLMs) on massive benchmarks is computationally expensive and often lacks statistical guarantees. We present Cer-Eval, a framework for certifiable and cost-efficient LLM evaluation. Cer-Eval employs an adaptive sampling strategy that partitions the evaluation dataset into groups based on embedding similarity and targets samples from high-variance groups to minimize estimation error. Our method provides a rigorous mathematical guarantee that the estimated performance falls within a user-defined confidence interval. Experiments on benchmarks like MMLU, AlpacaEval, and MATH demonstrate that Cer-Eval reduces the required sample size by 20% to 40% compared to standard static evaluation while maintaining zero empirical failure rates.

Introduction

The current paradigm for evaluating Large Language Models (LLMs) relies on "static evaluation"—running a model against an entire benchmark, such as MMLU, and reporting an average score. This "brute force" approach faces two critical challenges. First, it is inefficient; as models and benchmarks scale, the cost of full evaluation becomes prohibitive. Second, it lacks reliability; simple averages do not provide formal guidance on the confidence of the result, making it difficult to distinguish between models with similar scores. Cer-Eval addresses these issues by asking: what is the minimum number of test points required to reach a confident conclusion, and how can they be strategically selected?

Methodology: Adaptive Partitioning and Targeted Sampling

Cer-Eval is an online evaluation framework that sequentially selects test points until a user-defined error bound ($\epsilon$) and confidence level ($1-\delta$) are satisfied. The core mechanism is Adaptive Partitioning.

Overview of the Cer-Eval framework showing the mapping to embedding space, adaptive partitioning, and targeted sampling process.

The process begins by using an embedding model (e.g., BERT) to map test questions into a vector space, which is then partitioned into groups. Rather than sampling uniformly, Cer-Eval identifies groups with high variance—where model performance is most inconsistent—or high weight in the final score. By targeting these high-uncertainty groups, the algorithm narrows the confidence interval more rapidly than random sampling. To ensure statistical rigor, Cer-Eval utilizes Bernstein-type concentration inequalities to provide a "certifiable" guarantee that the true model performance lies within the reported interval.

Experimental Evaluation

The framework was validated using synthetic simulations and three major real-world benchmarks:

  • MMLU (Massive Multitask Language Understanding): 57 subjects covering STEM, humanities, and more.
  • AlpacaEval: A simulator for evaluating how often an LLM's response is preferred over a reference model.
  • MATH: A dataset of difficult multi-step mathematics problems.

These benchmarks were tested against several state-of-the-art models, including GPT-4o, Llama3 8B, Mistral 7B, and Qwen2 7B.

Results and Key Insights

Cer-Eval demonstrates significant efficiency gains, achieving the same accuracy as full-dataset baselines while using only 60% to 80% of the data. In controlled simulations, savings reached up to 70% in scenarios where model performance was easier to distinguish.

Comparison of saving ratios across different estimation error levels for various benchmarks, demonstrating Cer-Eval's efficiency relative to sequential and baseline methods.

A key discovery is the "Test Scaling Law": unlike training, where larger datasets are generally better, evaluation complexity is driven by model performance. Models with accuracy near 50% exhibit the highest statistical variance and are the hardest to evaluate. As models approach superhuman performance (near 100% accuracy), they require fewer test points for reliable evaluation. Furthermore, the framework maintained a zero empirical failure rate across all experiments, confirming its reliability.

Conclusion

Cer-Eval provides a mathematically grounded approach to reducing the cost of LLM evaluation without sacrificing reliability. While its efficiency depends on the quality of the initial partitioning, it offers a clear path toward more sustainable model assessment. Future work includes extending the framework to certified ranking tasks and exploring its robustness under out-of-distribution data scenarios.

Summary updated

BibTeX
@misc{wang2025cer,
  author = {Ganghua Wang and Zhaorun Chen and Bo Li and Haifeng Xu},
  title = {{Cer-Eval: Certifiable and Cost-Efficient Evaluation Framework for LLMs}},
  year = {2025},
  eprint = {2505.03814},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.03814},
}
Figure