IaC Generation with LLMs: An Error Taxonomy and A Study on Configuration Knowledge Injection
ACM Transactions on Software Engineering and Methodology · 25.05.2026
DOI: 10.1145/3817608 ↗Kurz gefasst
Fachartikel in der Zeitschrift ACM Transactions on Software Engineering and Methodology, online erschienen am 25.05.2026. Verfasst von Roman Nekrasov und 4 weiteren Autor:innen. Die Arbeit wurde bisher 7-mal zitiert (Crossref) und nennt 74 Literaturangaben.
Abstract (Originalsprache)
Large Language Models (LLMs) currently exhibit low success rates in generating correct and intent-aligned Infrastructure as Code (IaC). This research investigated methods to improve LLM-based IaC generation for Terraform by systematically injecting structured configuration knowledge. To facilitate this, an existing IaC-Eval benchmark was significantly enhanced by incorporating cloud emulation and automated error analysis. Additionally, a novel error taxonomy for LLM-assisted IaC code generation was developed. A series of knowledge injection techniques was implemented and evaluated, progressing from Naive Retrieval-Augmented Generation (RAG) to more sophisticated Graph RAG approaches. These included the semantic enrichment of graph components and the modeling of inter-resource dependencies. Experimental results showed that while baseline LLM performance was poor (27.1% overall success), injecting structured configuration knowledge increased technical validation success to 75.3% and overall success to 62.7%. Despite these gains in technical correctness, intent alignment plateaued, revealing a ”Correctness-Congruence Gap” where LLMs can become proficient ”coders” but remain limited ”architects” in fulfilling nuanced user intent.
Zitieren
APA
Nekrasov, R., Fossati, S., Kumara, I., Tamburri, D. A., & Heuvel, W. V. D. (2026). IaC Generation with LLMs: An Error Taxonomy and A Study on Configuration Knowledge Injection. ACM Transactions on Software Engineering and Methodology. https://doi.org/10.1145/3817608
Vancouver
Nekrasov R, Fossati S, Kumara I, Tamburri DA, Heuvel WVD. IaC Generation with LLMs: An Error Taxonomy and A Study on Configuration Knowledge Injection. ACM Transactions on Software Engineering and Methodology. 2026. doi:10.1145/3817608
BibTeX
@article{Nekrasov2026,
author = {Nekrasov, Roman and Fossati, Stefano and Kumara, Indika and Tamburri, Damian Andrew and Heuvel, Willem-Jan van den},
title = {IaC Generation with LLMs: An Error Taxonomy and A Study on Configuration Knowledge Injection},
journal = {ACM Transactions on Software Engineering and Methodology},
year = {2026},
doi = {10.1145/3817608}
}
EUVIMED