Large Language Models as Configuration Validators
Authors:
- 26 April 2025
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 1704-1716
Abstract
Misconfigurations are major causes of software failures. Existing practices rely on developer-written rules or test cases to validate configuration values, 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 the 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 LLM-based validators like Ciri, and (3) reveals open challenges such as ineffectiveness in detecting certain types of misconfigurations and biases towards popular configuration parameters.Keywords
Funding Information
- NSF (CNS-2145295)
This publication has 56 references indexed in Scilit:
- ConfTainter: Static Taint Analysis For Configuration Options2023
- Understanding and Detecting On-The-Fly Configuration Bugs2023
- Test Selection for Unified Regression Testing2023
- Learning Patterns in Configuration2021
- An Evolutionary Study of Configuration Design and Implementation in Cloud Systems2021
- The Datacenter as a Computer2019
- Challenges in Validating FLOSS Configuration2017
- Probabilistic Automated Language Learning for Configuration Files2016
- Automated diagnosis of software configuration errors2013
- Persistent-state checkpoint comparison for troubleshooting configuration failures2004