Interactive Clarification for Cloud Infrastructure-as-Code Synthesis
ZYZhenning YangKaden GruizengaTongyuan MiaoPKPatrick Tser Jern KonHGHui GuanAndrew Barto
Ang Chen ZYZhenning Yang
Kaden Gruizenga
Tongyuan Miao
PKPatrick Tser Jern Kon
HGHui Guan
Andrew Barto

Ang Chen
+7
This paper addresses ambiguity in Infrastructure-as-Code (IaC) synthesis from natural language by proposing a training-free, multi-level disambiguation framework. It decomposes IaC configurations into three compositional axes (resources, topology, attributes) where higher-level decisions constrain lower-level ones. The framework generates diverse candidate specifications, identifies structural disagreements across axes, ranks them by informativeness, and produces targeted clarification questions. The authors also introduce Ambig-IaC, a benchmark of 300 expert-verified ambiguous IaC tasks, and evaluation metrics based on graph edit distance and exact attribute matching. Experiments show the method outperforms existing interactive clarification baselines, with gains scaling with interaction budget and generalizing across models.

arXiv ·
· April 1, 2026