mlsanityData to 14 Oct 2026

TerraFormer: Automated Infrastructure-as-Code with LLMs Fine-Tuned via Policy-Guided Verifier Feedback

arXiv 2601.08734 ↗First posted 13 Jan 2026cs.SE cs.AIcited by 5

Not on the map. Why?

Abstract (arXiv)

Automating Infrastructure-as-Code (IaC) is challenging, and large language models (LLMs) often produce incorrect configurations from natural language (NL). We present TerraFormer, a neuro-symbolic framework for IaC generation and mutation that combines supervised fine-tuning with verifier-guided reinforcement learning, using formal verification tools to provide feedback on syntax, deployability, and policy compliance. We curate two large, high-quality NL-to-IaC datasets, TF-Gen (152k instances) and TF-Mutn (52k instances), via multi-stage verification and iterative LLM self-correction. Evaluations against 17 state-of-the-art LLMs, including ~50x larger models like Sonnet 3.7, DeepSeek-R1, and GPT-4.1, show that TerraFormer improves correctness over its base LLM by 15.94% on IaC-Eval, 11.65% on TF-Gen (Test), and 19.60% on TF-Mutn (Test). It outperforms larger models on both TF-Gen (Test) and TF-Mutn (Test), ranks third on IaC-Eval, and achieves top best-practices and security compliance.

Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). Builds on 16 of its 53 references that are in the map. First posted on arXiv 13 Jan 2026.

Builds on

16 of 53 references.

References · 16

  1. 2024The Llama 3 Herd of Modelscited by 14,715
  2. 2023Code Llama: Open Foundation Models for Codecited by 2,139
  3. 2024MMLU-Pro: A More Robust and Challenging Multi-Task Language Understanding Benchmarkcited by 1,848
  4. 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,391
  5. 2024Qwen2.5-Coder Technical Reportcited by 1,203
  6. 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,181
  7. 2023RLTF: Reinforcement Learning from Unit Test Feedbackcited by 114
  8. 2023ChatUniTest: A Framework for LLM-Based Test Generationcited by 96
  9. 2024StepCoder: Improve Code Generation with Reinforcement Learning from Compiler Feedbackcited by 77
  10. 2024SynCode: LLM Generation with Grammar Augmentationcited by 69
  11. 2025ProofBridge: Auto-Formalization of Natural Language Proofs in Lean via Joint Embeddingscited by 18
  12. 2024A Survey of using Large Language Models for Generating Infrastructure as Codecited by 10
4 more
  1. 2023CloudEval-YAML: A Practical Benchmark for Cloud Configuration Generationcited by 8
  2. 2025Abstractions-of-Thought: Intermediate Representations for LLM Reasoning in Hardware Designcited by 6
  3. 2025Large Language Models for Unit Testing: A Systematic Literature Reviewcited by 6
  4. 2024Using a Feedback Loop for LLM-based Infrastructure as Code Generationcited by 5

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 5.

5 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026Verifier-First Evaluation of Agentic LLMs for Infrastructure-as-Code Generation
  2. 2025Multi-Agent Code-Orchestrated Generation for Reliable Infrastructure-as-Code
  3. 2025IaC Generation with LLMs: An Error Taxonomy and A Study on Configuration Knowledge Injection
  4. 2024RLSF: Fine-tuning LLMs via Symbolic Feedback
  5. 2026From Brute Force to Semantic Insight: Performance-Guided Data Transformation Design with LLMs
  6. 2026Neuro-Symbolic Verification on Instruction Following of LLMs
  7. 2025TGPR: Tree-Guided Policy Refinement for Robust Self-Debugging of LLMs
  8. 2025ARPaCCino: An Agentic-RAG for Policy as Code Compliance