CloudEval-YAML: A Practical Benchmark for Cloud Configuration Generation
Yifei Xu, Yuning Chen, Xumiao Zhang, Xianshang Lin, Pan Hu, Yunfei Ma, Songwu Lu, Wan Du, Zhuoqing Mao, Ennan Zhai, Dennis Cai
TL;DR
CloudEval-YAML introduces a hand-written, YAML-centric benchmark and an end-to-end evaluation platform for cloud configuration generation, addressing the fragmentation of cloud-native tooling. The approach pairs 1011 practical problems with unit tests and augmented prompts to enable scalable, YAML-aware evaluation across 12 LLMs, revealing that proprietary models markedly outperform open-source ones and that multi-sample generation can reduce cost while few-shot prompting offers limited gains. The platform combines text-level, YAML-aware, and unit-test metrics, delivering actionable insights into model strengths, failure modes, and cost-performance trade-offs for cloud-native code generation. This work provides a practical, scalable benchmark that can guide model development and evaluation for cloud-configuration tasks with direct implications for real-world deployment and tooling improvements.
Abstract
Among the thriving ecosystem of cloud computing and the proliferation of Large Language Model (LLM)-based code generation tools, there is a lack of benchmarking for code generation in cloud-native applications. In response to this need, we present CloudEval-YAML, a practical benchmark for cloud configuration generation. CloudEval-YAML tackles the diversity challenge by focusing on YAML, the de facto standard of numerous cloud-native tools. We develop the CloudEval-YAML benchmark with practicality in mind: the dataset consists of hand-written problems with unit tests targeting practical scenarios. We further enhanced the dataset to meet practical needs by rephrasing questions in a concise, abbreviated, and bilingual manner. The dataset consists of 1011 problems that take more than 1200 human hours to complete. To improve practicality during evaluation, we build a scalable evaluation platform for CloudEval-YAML that achieves a 20 times speedup over a single machine. To the best of our knowledge, the CloudEval-YAML dataset is the first hand-written dataset targeting cloud-native applications. We present an in-depth evaluation of 12 LLMs, leading to a deeper understanding of the problems and LLMs, as well as effective methods to improve task performance and reduce cost.
