LADs: Leveraging LLMs for AI-Driven DevOps

Ahmad Faraz Khan, Azal Ahmad Khan, Anas Mohamed, Haider Ali, Suchithra Moolinti, Sabaat Haroon, Usman Tahir, Mattia Fazzini, Ali Raza Butt, Ali AnwararXiv 2025

Abstract

Automating cloud configuration and deployment remains a critical challenge due to evolving infrastructures, heterogeneous hardware, and fluctuating workloads. Existing solutions lack adaptability and require extensive manual tuning, leading to inefficiencies and misconfigurations. We introduce LADs, the first LLM-driven framework designed to tackle these challenges by ensuring robustness, adaptability, and efficiency in automated cloud management. Instead of merely applying existing techniques, LADs provides a principled approach to configuration optimization through in-depth analysis of what optimization works under which conditions. By leveraging Retrieval-Augmented Generation, Few-Shot Learning, Chain-of-Thought, and Feedback-Based Prompt Chaining, LADs generates accurate configurations and learns from deployment failures to iteratively refine system settings. Our findings reveal key insights into the trade-offs between performance, cost, and scalability, helping practitioners determine the right strategies for different deployment scenarios. Through extensive evaluations, LADs reduces manual effort, optimizes resource utilization, and improves system reliability. By open-sourcing LADs, we aim to drive further innovation in AI-powered DevOps automation.

Introduction

Modern cloud infrastructure offers immense power but introduces significant complexity, requiring the management of hundreds of hyper-parameters across diverse hardware and workloads. For example, tuning a database like RocksDB involves over 100 parameters. Misconfigurations are a primary cause of production incidents, yet many organizations struggle to optimize their setups or understand cloud spending. Existing automation tools are often system-specific and fail to generalize, necessitating manual intervention when workloads change. LADs addresses this by providing an intelligent, adaptable system capable of reasoning through configuration requirements and learning from deployment failures.

The LADs Framework

LADs employs a multi-layered agentic strategy to automate configuration and deployment. The framework categorizes context into unstructured data (e.g., manuals) and structured data (e.g., schemas). It utilizes a hybrid optimization approach: Retrieval-Augmented Generation (RAG) extracts technical details from manuals, while Few-Shot Learning (FSL) provides concrete examples of valid configuration schemas.

The LADs framework architecture, incorporating RAG, Few-Shot Learning, and feedback loops.

A key component is Feedback-Based Prompt Chaining, a self-healing mechanism. If a deployment fails, LADs captures error logs and failure points, feeding them back into the LLM to generate a refined configuration. To ensure syntactic correctness, strict inference-phase controls are applied, keeping randomness (temperature and top_p) below 0.1.

Evaluation

We evaluated LADs using a first-of-its-kind human-curated benchmark for static and dynamic DevOps validation, covering Dask, Redis, and Ray. The benchmark includes 180 data points across six difficulty levels. Validation involved Python-based static checks and real-world performance testing on Kubernetes to ensure intent alignment.

Results and Insights

Our evaluation yielded several critical insights into the efficacy of LLM-driven DevOps:

  • Structure vs. Retrieval: Few-Shot Learning (FSL) proved more effective than RAG for configuration accuracy. While RAG provides facts, FSL helps maintain the structural integrity of configuration files. Providing a few "shots" of actual code helps the LLM maintain schema coherence.
  • Model Performance: Modern, smaller models like Llama 3.1 8B and Qwen 2.5 7B often outperformed larger, older models like CodeLlama 13B, suggesting that training data quality is vital for specialized DevOps tasks.
  • Accuracy Improvements: The LADs framework significantly improves accuracy across various models compared to standard instruction prompting or RAG alone. For instance, with Qwen 2.5 14B on Dask, LADs achieved 68.34% accuracy.
Comparison of accuracy across different LLMs and prompting strategies for Dask, Redis, and Ray.
  • Error Resolution: The feedback loop is highly effective, resolving approximately 94% of configuration errors by the third attempt using the prompt chaining technique.
  • Intent Alignment: Dynamic testing confirmed that LADs successfully tailors deployments to user intent, such as prioritizing "Low Cost" or "High Scalability," with generation latencies typically between 4 to 11 seconds.

Conclusion

LADs demonstrates that LLMs can significantly reduce the manual effort and cost associated with cloud DevOps. While initial setup for new systems requires some manual effort to design example shots, future work will focus on autonomous agents capable of generating these examples from web-based documentation and source code directly.

Summary updated

BibTeX
@misc{khan2025lads,
  author = {Ahmad Faraz Khan and Azal Ahmad Khan and Anas Mohamed and Haider Ali and Suchithra Moolinti and Sabaat Haroon and Usman Tahir and Mattia Fazzini and Ali Raza Butt and Ali Anwar},
  title = {{LADs: Leveraging LLMs for AI-Driven DevOps}},
  year = {2025},
  eprint = {2502.20825},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.20825},
}
Figure