AidAI: Automated Incident Diagnosis for AI Workloads in the Cloud

Yitao Yang, Yangtao Deng, Yifan Xiong, Baochun Li, Hong Xu, Peng Cheng · DOI

Abstract

Training large-scale AI models involves complex, synchronized hardware and software stacks where a single failure can lead to significant financial losses. Traditional incident management is provider-centric, often resulting in long resolution times due to a "knowledge gap" between cloud users and providers. This paper introduces AidAI, a customer-centric diagnostic system that leverages Large Language Models (LLMs) and an agentic reasoning framework to automate root cause analysis. By combining historical data retrieval, hierarchical taxonomy search, and automated environment verification, AidAI achieves a Micro F1 score of 0.854, significantly reducing the time-to-mitigate for AI workloads.

Introduction: The Knowledge Gap in AI Incident Management

Training state-of-the-art models like Llama 3 requires thousands of GPUs running in parallel. In such environments, hardware failures or misconfigurations are frequent and costly. Currently, incident reporting follows a provider-centric workflow: customers report vague symptoms, and providers investigate with limited visibility into the user's software stack. This disconnect leads to a median time-to-mitigate (TTM) of 52.5 hours.

Comparison of provider-centric vs. customer-centric incident reporting workflows.

AidAI proposes a shift to a customer-centric model. By deploying an automated diagnostic tool on the user's side, the system can bridge the knowledge gap, accessing both user logs and infrastructure diagnostic tools to identify root causes immediately.

Characteristics of AI Workload Incidents

Analysis of production data from Microsoft reveals that AI workloads differ significantly from traditional cloud services. While traditional services often fail due to code or dependency issues, over 50% of AI incidents are hardware-related, specifically involving GPUs (e.g., ECC errors, NVLink failures). Furthermore, these errors are often "non-indicative"—a generic network timeout might actually stem from a specific GPU memory fault. Standard "one-shot" LLM predictions struggle with these complexities, typically achieving only 48-62% accuracy.

The AidAI System Architecture

AidAI moves beyond simple prompting by employing an iterative, agent-based reasoning loop. The system architecture is divided into an offline knowledge-building phase and an online tiered diagnostic phase. The offline phase constructs a vectorized database of historical incidents and a hierarchical Incident Taxonomy, alongside a library of verification scripts.

The agent-based architecture of AidAI, featuring Planning, Execution, and Reflection agents interacting with the physical environment.

The online phase utilizes a three-tiered pipeline:

  1. Quick Path (Historical Data Driven): Uses Retrieval-Augmented Generation (RAG) to match current symptoms against a database of past incidents.
  2. Slow Path (Taxonomy Guided): If the quick path fails, a Planning Agent performs a recursive search through a hierarchical Incident Taxonomy. An Execution Agent runs verification scripts (e.g., NCCL tests) in the environment, and a Reflection Agent evaluates the results to confirm or reject hypotheses.
  3. Exploration: For novel issues, the system engages in a feedback loop with the user to gather additional context and generate new diagnostic paths.

Evaluation and Key Results

The system was evaluated using a dataset of 1,300 real-world incident records from Microsoft's GPU clusters. AidAI demonstrated superior performance, achieving a Micro F1 score of 0.854, compared to 0.613 for existing baselines like RCACopilot.

Beyond accuracy, AidAI proved highly efficient and cost-effective. It reduced verification time by approximately 60% compared to exhaustive testing methods, with an average diagnosis time of 304 seconds. The operational cost is remarkably low, averaging just $0.102 per incident when using GPT-4o, a negligible expense compared to the high cost of cluster downtime.

Conclusion and Future Directions

AidAI represents a significant step toward automated, reliable diagnosis for complex AI infrastructure. By grounding LLM reasoning in physical environment verification, it avoids hallucinations and provides grounded, trustworthy results. Future work will focus on extending the system from diagnosis to automated mitigation and refining the taxonomy to better handle rare, complex application-level errors.

Summary updated

BibTeX
@misc{yang2025aidai,
  author = {Yitao Yang and Yangtao Deng and Yifan Xiong and Baochun Li and Hong Xu and Peng Cheng},
  title = {{AidAI: Automated Incident Diagnosis for AI Workloads in the Cloud}},
  year = {2025},
  eprint = {2506.01481},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.01481},
}
Figure