Skip to main content
QUICK REVIEW

[Paper Review] CloudEval-YAML: A Practical Benchmark for Cloud Configuration Generation

Yifei Xu, Yuning Chen|arXiv (Cornell University)|Nov 10, 2023
Software Engineering ResearchComputer Science4 citations
TL;DR

CloudEval-YAML introduces the first hand-written benchmark for cloud configuration generation, focusing on YAML files used in cloud-native applications. It includes 1,011 realistic problems with natural language prompts, reference YAMLs, and automated unit tests, enabling scalable, functional evaluation of LLMs; key findings show proprietary models outperform open-source ones significantly, and unit test prediction via XGBoost offers rough ranking accuracy with up to 80% relative error.

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.

Motivation & Objective

  • To address the lack of practical benchmarks for LLM-based code generation in cloud-native applications.
  • To create a realistic, hand-written dataset of 1,011 YAML configuration problems derived from real-world cloud scenarios.
  • To design a scalable, automated evaluation platform that enables efficient, functional correctness testing of LLM-generated YAMLs.
  • To evaluate the performance of 12 LLMs across diverse cloud application categories and identify key performance factors.
  • To explore cost-effective alternatives to full unit testing by predicting test outcomes using text-level and YAML-aware metrics.

Proposed method

  • The dataset is constructed from real-world cloud configuration tasks, with hand-written problem descriptions, reference YAMLs, and bash unit test scripts for functional validation.
  • Data augmentation includes concise, abbreviated, and bilingual (e.g., Chinese-English) rephrasing of prompts using GPT-4, followed by manual quality review.
  • A distributed evaluation platform with 64 4-core 8GB VMs and shared Docker image caching enables 20x speedup over single-machine evaluation.
  • Unit test results are used as the gold standard for evaluating LLM-generated YAMLs, ensuring functional correctness.
  • An XGBoost classifier is trained to predict unit test outcomes using text-level (e.g., BLEU, edit distance) and YAML-aware (e.g., key-value wildcard match) features.
  • SHAP analysis is applied to interpret feature importance in the prediction model, identifying key predictors of test success.

Experimental results

Research questions

  • RQ1How do different LLMs perform on realistic, hand-written cloud configuration generation tasks in YAML format?
  • RQ2What factors—such as model type, length of output, or application category—most significantly affect LLM performance on this task?
  • RQ3Can we accurately predict unit test outcomes for LLM-generated YAMLs without running the full test suite?
  • RQ4How effective are data augmentation techniques (e.g., simplification, translation) in improving model generalization and practical usability?
  • RQ5To what extent do dedicated code generation models outperform general-purpose LLMs in cloud configuration generation?

Key findings

  • Proprietary models like GPT-4 and PaLM-2 outperform open-source models such as Llama2 and CodeLlama by a large margin in functional correctness and accuracy.
  • Even the best-performing model makes simple, avoidable mistakes in YAML syntax and structure, indicating room for improvement.
  • The length of the generated YAML and the application category (e.g., Kubernetes, CI/CD) are major factors influencing model performance.
  • The XGBoost-based classifier can predict unit test outcomes with a relative error of up to 80%, but maintains reasonable ranking order for most models.
  • Key-value wildcard match is the most important and accurate feature for predicting test success, while BLEU and edit distance are useful but noisy.
  • Multi-sample generation and few-shot prompting improve performance, suggesting practical strategies to enhance LLM output quality.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.