Spark-LLM-Eval: A Distributed Framework for Statistically Rigorous Large Language Model Evaluation

Mitra, Subhadip

–arXiv.org Artificial Intelligence 

The rapid deployment of large language models in production systems has created an urgent need for scalable evaluation infrastructure. A model serving millions of users encounters edge cases, domain-specific queries, and failure modes that simply do not appear in standard benchmark datasets of a few thousand examples. To understand how a model actually behaves, practitioners need to evaluate on samples that reflect real-world query distributions, and these distributions are large. Current evaluation tools were not designed for this scale. Frameworks like lm-evaluationharness [Gao et al., 2023], RAGAS [Es et al., 2023], and DeepEval [AI, 2024] execute on a single machine, processing examples sequentially or with limited local parallelism. This works fine for academic benchmarks, where a few thousand examples suffice to establish relative model rankings. But when the goal shifts to understanding model behavior in deployment (tracking performance across customer segments, measuring regression on rare but important query types, or validating behavior on synthetic adversarial examples), the evaluation dataset grows by orders of magnitude, and single-machine execution becomes impractical.