arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2310.09690cs.SEcs.AIcs.OS
收藏

使用大型语言模型进行配置验证

Configuration Validation with Large Language Models

University of Illinois at Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);Meta Platforms, Inc.(元平台公司)

Xinyu Lian, Yinfang Chen, Runxiang Cheng, Jie Huang, Parth Thakkar, Minjia Zhang, Tianyin Xu

AI总结:

本文首次系统分析大型语言模型用于配置验证的可行性与有效性,提出通用框架Ciri,通过提示工程和少样本学习缓解幻觉与非确定性问题,并在多个LLMs和开源系统上验证其效果与挑战。

摘要:

配置错误是软件故障的主要原因。现有实践依赖开发者编写的规则或测试用例来验证配置,成本高昂。用于配置验证的机器学习(ML)被认为是一个有前景的方向,但一直面临诸如需要大规模现场数据和系统特定模型等挑战。大型语言模型(LLMs)的最新进展显示出解决基于ML的配置验证中一些长期局限性的潜力。我们首次分析了使用LLMs进行配置验证的可行性和有效性。通过开发一个名为Ciri的通用基于LLM的配置验证框架,我们实证评估了LLMs作为配置验证器的表现。Ciri采用有效的提示工程,并基于有效配置和错误配置数据进行少样本学习。Ciri在生成结果时检查LLMs的输出,以解决LLMs的幻觉和非确定性问题。我们使用十个广泛部署的开源系统的配置数据,在八个流行的LLMs上评估了Ciri的验证有效性。我们的分析(1)确认了使用LLMs进行配置验证的潜力,(2)探索了像Ciri这样的基于LLM的验证器的设计空间,(3)揭示了开放性挑战,例如在检测某些类型的配置错误方面效果不佳,以及对流行配置参数的偏向。

英文摘要:

Misconfigurations are major causes of software failures. Existing practices rely on developer-written rules or test cases to validate configurations, which are expensive. Machine learning (ML) for configuration validation is considered a promising direction, but has been facing challenges such as the need of large-scale field data and system-specific models. Recent advances in Large Language Models (LLMs) show promise in addressing some of the long-lasting limitations of ML-based configuration validation. We present a first analysis on the feasibility and effectiveness of using LLMs for configuration validation. We empirically evaluate LLMs as configuration validators by developing a generic LLM-based configuration validation framework, named Ciri. Ciri employs effective prompt engineering with few-shot learning based on both valid configuration and misconfiguration data. Ciri checks outputs from LLMs when producing results, addressing hallucination and nondeterminism of LLMs. We evaluate Ciri's validation effectiveness on eight popular LLMs using configuration data of ten widely deployed open-source systems. Our analysis (1) confirms the potential of using LLMs for configuration validation, (2) explores design space of LLMbased validators like Ciri, and (3) reveals open challenges such as ineffectiveness in detecting certain types of misconfigurations and biases towards popular configuration parameters.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑