LLMs for Cloud Incident Management and Root Cause Analysis

microsoft · Tech · 2023 · source Agentic: yes · promotional bias: low · source-backed · extracted with prompt 0.5.6 (schema v2)

Generated from extraction.json — do not edit by hand. Every claim cites verbatim source evidence; stated means the quote directly asserts the claim, implied means it supports it indirectly.

Problem

Domain: Cloud incident management and root-cause analysis

Microsoft wanted to reduce the manual effort required to diagnose production cloud incidents and recommend mitigations across hyperscale services such as Microsoft 365 and Teams.

Constraints:

Architecture

Microsoft evaluated a GPT-3.x incident recommendation pipeline. Incident tickets provide title and summary fields, fine-tuned GPT-3/GPT-3.5 models generate root-cause and mitigation recommendations, and automated lexical/semantic metrics plus on-call engineer ratings compare the generated text to incident-management ground truth. The next architecture direction adds retrieval over historical incidents, troubleshooting guides, logs, metrics, and dependency graphs for a conversational incident-diagnosis assistant.

Diagram confidence: reconstructed (reconstructed from prose).

flowchart LR
  Ticket_fields["Incident ticket fields"] --> GPT_model["GPT-3.x recommendation model"]
  Fine_tuning["Fine-tuning dataset"] --> GPT_model
  GPT_model --> Root_cause["Root-cause recommendation"]
  GPT_model --> Mitigation["Mitigation recommendation"]
  Root_cause --> Mitigation
  Root_cause --> Engineer_review["On-call engineer review"]
  Mitigation --> Engineer_review
  Ground_truth["Incident management ground truth"] --> Fine_tuning
  Ground_truth --> Evaluation["Offline evaluation harness"]
  GPT_model --> Evaluation
  Retrieval_corpus["Retrieval corpus"] --> Conversational_assistant["Conversational diagnosis assistant"]
  Conversational_assistant --> Engineer_review
Drag to pan · scroll or use +/− to zoom · reconstructed from the source's described component topology

Components

Component Role Interacts with
Incident ticket fields Title and summary text containing error messages, anomalous behavior, and diagnostic details. GPT-3.x recommendation model
GPT-3.x recommendation model Fine-tuned or zero-shot LLM that generates root-cause and mitigation recommendations. Incident ticket fields, Root-cause recommendation, Mitigation recommendation, Offline evaluation harness
Root-cause recommendation Generated explanation of the likely production incident cause. GPT-3.x recommendation model, Mitigation recommendation, On-call engineer review
Mitigation recommendation Generated candidate remediation steps, optionally conditioned on root-cause input. GPT-3.x recommendation model, Root-cause recommendation, On-call engineer review
Offline evaluation harness Lexical and semantic metrics comparing generated recommendations to IcM ground truth. GPT-3.x recommendation model, Incident management ground truth
Incident management ground truth Historical root-cause and mitigation data from the incident management portal. Offline evaluation harness, Fine-tuning dataset
Fine-tuning dataset Historical incident data used to adapt GPT-3/GPT-3.5 models to cloud incident language. GPT-3.x recommendation model, Incident management ground truth
On-call engineer review Human evaluation of whether recommendations are useful in real-time production settings. Root-cause recommendation, Mitigation recommendation
Retrieval corpus Planned context source covering historical incidents, troubleshooting guides, documents, logs, metrics, and dependency graphs. Conversational diagnosis assistant
Conversational diagnosis assistant Forward-looking ChatGPT-style incident discussion interface grounded by retrieved operational evidence. Retrieval corpus, On-call engineer review

Data flow

An incident author enters a ticket title and summary with diagnostic details. Those fields become LLM input for root-cause and mitigation generation. Historical incident data supports fine-tuning and offline metric evaluation, while on-call engineers provide human usefulness ratings. The proposed RAG extension retrieves incident context from documents and logs before the model participates in the incident discussion.

3 supporting quotes
“When an incident ticket is created, the author specifies a title for each incident created and describes any relevant details, such as error messages, anomalous behavior, and other details which might help with resolution.”article, stated
“We used the title and the summary of a given incident as the input for LLMs and generated root cause and mitigation steps, as shown in Figure 1.”article, stated
“By collecting evidence from available documents and logs, the model can generate coherent, contextual, natural-sounding responses to inquiries and offer corresponding suggestions”article, stated

Why this architecture

The study chose incident-ticket-to-recommendation generation because titles and summaries are already present in the incident workflow, and historical incident records provide both fine-tuning data and evaluation references. Fine-tuning was necessary because generic zero-shot models underperformed on specialized cloud-operations language.

3 supporting quotes
“Given the complexities of incident management, we sought to evaluate the effectiveness of LLMs in analyzing the root cause of production incidents and generating mitigation steps.”article, stated
“We find that fine-tuning the GPT-3 and GPT-3.5 models significantly improves the effectiveness of LLMs for incident data.”article, stated
“LLMs performed better on machine reported incidents (MRIs) as opposed to customer reported incidents (CRIs), due to the repetitive nature of the MRIs.”article, stated

Models used: GPT-3 · GPT-3.5 · Davinci-002 · Curie · Codex · Davinci · RoBERTa · CodeBERT · ChatGPT

Scale

Alternatives considered (roads not taken)

Zero-shot inference on pretrained GPT models

Rejected because: Fine-tuning on incident data produced much stronger lexical and semantic performance for root-cause and mitigation tasks.

“Fine-tuning LLMs with incident data improved performance significantly. A fine-tuned GPT-3.5 model improved the average lexical similarity score by 45.5% for root cause generation and 131.3% for mitigation generation tasks over zero-shot”article, stated

Use only incident title and summary without richer operational context

Rejected because: The researchers identified discussion entries, logs, metrics, and dependency graphs as needed future context for better diagnosis.

“how can we incorporate additional context about the incident, such as discussion entries, logs, service metrics, and even dependency graphs of the impacted services to improve the diagnosis?”article, stated

Rely only on automated lexical and semantic metrics

Rejected because: The study also interviewed incident owners because real production usefulness cannot be fully captured by text similarity alone.

“In addition to analysis with semantic and lexical metrics, we also interviewed the incident owners to evaluate the effectiveness of the generated recommendations.”article, stated

Patterns

fine-tuning-adaptation (modeling)

Microsoft fine-tuned GPT-3 and GPT-3.5 on historical incident data to adapt general LLMs to cloud incident root-cause and mitigation language.

“We find that fine-tuning the GPT-3 and GPT-3.5 models significantly improves the effectiveness of LLMs for incident data.”article, stated

eval-driven-development (evaluation)

The model comparison used multiple lexical and semantic metrics plus human incident-owner evaluation before claiming production usefulness.

“With a rigorous study on real production incidents and analysis of several LLMs in different settings using semantic and lexical metrics as well as human evaluation”article, stated

human-in-the-loop-gate (operations)

On-call engineers evaluated recommendation usefulness, keeping production applicability anchored in practitioner judgment.

“we also interviewed the incident owners to evaluate the effectiveness of the generated recommendations.”article, stated
“More than 70% of on-call engineers gave a rating of 3 out of 5 or better for the usefulness of recommendations in a real-time production setting.”article, stated

rag-retrieval (retrieval)

The forward-looking design adds retrieval augmentation over incident records, troubleshooting guides, logs, metrics, and dependency graphs before LLM diagnosis.

“we are working on leveraging the latest LLMs combined with retrieval augmented approaches to improve incident diagnosis via a conversational interface”article, stated
“This approach including a retriever and corpus to retrieve relevant information from historical incidents, troubleshooting guides, and engineering hub, to add context into LLMs.”article, stated

Tradeoffs

Fine-tune incident models

Chose fine-tuned GPT-3/GPT-3.5 on incident data over zero-shot use of pretrained models.

Rationale: Domain fine-tuning substantially improved root-cause and mitigation similarity metrics.

“Fine-tuning LLMs with incident data improved performance significantly. A fine-tuned GPT-3.5 model improved the average lexical similarity score by 45.5% for root cause generation and 131.3% for mitigation generation tasks over zero-shot”article, stated

Evaluate with both metrics and practitioners

Chose semantic/lexical metrics plus incident-owner interviews over offline metric-only validation.

Rationale: The system had to show both similarity to historical ground truth and usefulness to on-call engineers.

“we compared the performance of GPT-3.5 against three GPT-3 models by computing several semantic and lexical metrics”article, stated
“we also interviewed the incident owners to evaluate the effectiveness of the generated recommendations.”article, stated

Move toward retrieval-augmented conversational diagnosis

Chose retrieved documents/logs plus ChatGPT-style incident discussion over standalone generation from title and summary alone.

Rationale: The researchers identified richer context as necessary for improving diagnosis beyond the initial ticket fields.

“how can we incorporate additional context about the incident, such as discussion entries, logs, service metrics, and even dependency graphs of the impacted services to improve the diagnosis?”article, stated
“ChatGPT can be actively integrated into the “discussion” of the incident diagnosis.”article, stated

Gotchas (what bit them)

Incident models can go stale as services and incident distributions change.

Root cause: Cloud services continuously evolve, so historical incident training data may stop representing current operational reality.

Resolution: Plan for frequent retraining with latest incident data and retrieval-augmented context from live operational sources.

“Another challenge is staleness since the models would need to be frequently retrained with the latest incident data.”article, stated
“we are working on leveraging the latest LLMs combined with retrieval augmented approaches to improve incident diagnosis via a conversational interface”article, stated

Machine-reported and customer-reported incidents do not behave the same for LLM recommendation quality.

Root cause: Machine-reported incidents are more repetitive and structured than customer-reported incidents.

Resolution: Treat incident category as a deployment consideration rather than assuming one model quality profile across all incidents.

“LLMs performed better on machine reported incidents (MRIs) as opposed to customer reported incidents (CRIs), due to the repetitive nature of the MRIs.”article, stated

Text-similarity metrics alone may not prove operational usefulness.

Root cause: A recommendation can be lexically or semantically close to historical text while still not helping an on-call engineer resolve a live incident.

Resolution: Pair automated metrics with human evaluation from incident owners in real-time production context.

“In addition to analysis with semantic and lexical metrics, we also interviewed the incident owners to evaluate the effectiveness of the generated recommendations.”article, stated
“More than 70% of on-call engineers gave a rating of 3 out of 5 or better for the usefulness of recommendations in a real-time production setting.”article, stated

Evaluation

The study compared several GPT-3, GPT-3.5, and encoder baselines on real incident data using lexical and semantic metrics, top-1/top-5 settings, zero-shot/fine-tuned/multi-task variants, and human usefulness ratings from incident owners.

Metrics: BLEU-4 · ROUGE-L · METEOR · BERTScore · BLEURT · NUBIA · Top-1 and Top-5 recommendations · on-call engineer usefulness rating

3 supporting quotes
“we compared the performance of GPT-3.5 against three GPT-3 models by computing several semantic and lexical metrics (which measures the text similarity) between the generated recommendations and the ground truth”article, stated
“We did a rigorous study on more than 40,000 incidents generated from more than 1000 services and compared several LLMs in zero-shot, fine-tuned, and multi-task settings.”article, stated
“More than 70% of on-call engineers gave a rating of 3 out of 5 or better for the usefulness of recommendations in a real-time production setting.”article, stated

Outcomes

The evidence comes from Microsoft Research's evaluation over more than 40,000 real production incidents from more than 1,000 services; the article positions this as promising incident-management assistance rather than full autonomous remediation.

3 supporting quotes
“Davinci-002 (GPT-3.5) provided at least 15.38% and 11.9% gains over all the GPT-3 models”article, stated
“A fine-tuned GPT-3.5 model improved the average lexical similarity score by 45.5% for root cause generation and 131.3% for mitigation generation tasks over zero-shot”article, stated
“More than 70% of on-call engineers gave a rating of 3 out of 5 or better for the usefulness of recommendations in a real-time production setting.”article, stated