Towards Generalizable Context-aware Anomaly Detection: A Large-scale Benchmark in Cloud Environments

Xinkai Zou, Xuan Jiang, Ruikai Huang, Haoze He, Parv kapoor, Hongrui Wu, Yibo Wang, Jian Sha, Xiongbo Shi, Zixun Huang, Jinhua Zhao · Submission to ICLR 2026 · Rejected

TL;DR

This paper introduces CloudAnoBench, a large-scale multimodal benchmark that combines metrics and logs to challenge anomaly detection systems with complex, "deceptive" scenarios. To tackle this benchmark, the authors propose CloudAnoAgent, an LLM-based multi-agent system that uses a "Fast and Slow" reasoning approach paired with symbolic verification to significantly outperform traditional machine learning and vanilla LLM methods.

What Problem Does This Paper Address?

In the world of cloud computing, staying online is everything. When things go wrong, engineers rely on two main data sources: metrics (numbers like CPU usage) and logs (textual records of system events).

However, current anomaly detection research has two major blind spots:

  1. Single-Modality Focus: Most benchmarks look at either logs or metrics, but rarely both. In reality, a CPU spike (metric) might be a "point anomaly" that is perfectly normal if a scheduled backup is running (log).
  2. Contextual Complexity: Existing datasets often miss "contextual anomalies"—scenarios where data looks normal in isolation but is anomalous when you consider the broader system state.

Furthermore, creating these datasets is hard. You can't just break a production server to see what happens, and generating synthetic data that keeps logs and metrics "in sync" is a massive technical hurdle.

Methods

The authors propose a two-part solution: a new benchmark and a new detection architecture.

1. CloudAnoBench (The Benchmark)

They built a dataset using an LLM-assisted pipeline (Gemini-2.5-Pro) to generate synchronized metrics and logs. Crucially, they included deceptive normal scenarios: cases where metrics look like an anomaly (e.g., a massive CPU spike) but logs provide a benign explanation (e.g., a routine database compaction).

2. CloudAnoAgent (The Method)

To navigate these complexities, they designed a multi-agent framework:

  • Fast and Slow Detection:
    • Fast: A Metrics Agent monitors real-time signals for abrupt changes.
  • Slow: If the Metrics Agent flags something, a Log Agent and an Integrated Agent perform deeper reasoning, correlating the metrics with log events to determine if the "anomaly" is actually a legitimate system process.
  • Symbolic Verifier: To combat the "hallucinations" or stochastic errors common in LLMs, they added a layer of rule-based symbolic checks. This module uses regex for logs and statistical signatures for metrics to act as a "critic," validating the agent's final decision.

Datasets

The study evaluates its methods across several key datasets:

  • CloudAnoBench (New): 1,252 labeled cases, 28 anomalous scenarios, and 16 deceptive normal scenarios.
  • Log-only Baselines: BGL, Thunderbird, and HDFS v1 (standard industry benchmarks).
  • RS-Anomic: Used for an "alignment study" to prove that their synthetic CloudAnoBench data behaves like real-world production data.

Key Insights and Ideas

  • The "Deceptive Normal" is the Real Test: Traditional ML models and vanilla LLM prompts fail miserably on deceptive cases, often flagging every spike as an error. The "aha moment" is that logs are the context that gives metrics meaning.
  • Fast/Slow Reasoning Mimics Human Troubleshooting: By separating "alerting" (Fast) from "investigating" (Slow), the system manages the trade-off between responsiveness and accuracy.
  • Symbolic Guardrails are Essential: The authors found that even powerful LLMs make category-level mistakes. The Symbolic Verifier provides a "stable layer of constraint" that prevents the agent from making nonsensical claims.

Key Results

  • Superior Accuracy: CloudAnoAgent achieved an average F1-score of 91.3% on CloudAnoBench, outperforming vanilla LLM prompting (72.8%) and traditional ML (61.95%).
  • Lower False Alarms: The system reduced the False Positive Rate (FPR) to 12.9%, compared to a staggering 62.6% for vanilla LLM prompting.
  • Generalization: Despite being designed for multimodal data, CloudAnoAgent proved highly competitive on log-only datasets like HDFS and BGL, showing it can adapt to different environments with minimal tuning.
  • Scenario Identification: The agent doesn't just say "something is wrong"; it identifies the type of error (e.g., "Cryptomining Malware" vs. "Memory Leak") with much higher accuracy than baselines.

Limitations and Future Work

  • Latency: Because it relies on multiple LLM calls, CloudAnoAgent is slower than "classical" ML models (seconds vs. milliseconds). This makes it better for complex root-cause analysis than for millisecond-level automated circuit breaking.
  • LLM Determinism: The authors note that performance can vary slightly based on prompt wording or model versions.
  • Future Directions: The team plans to explore post-training strategies to further improve scenario identification and optimize the architecture to reduce end-to-end latency for real-world production deployments.

Summary updated

BibTeX
@misc{zou2025towards,
  author = {Xinkai Zou and Xuan Jiang and Ruikai Huang and Haoze He and Parv kapoor and Hongrui Wu and Yibo Wang and Jian Sha and Xiongbo Shi and Zixun Huang and Jinhua Zhao},
  title = {{Towards Generalizable Context-aware Anomaly Detection: A Large-scale Benchmark in Cloud Environments}},
  year = {2025},
  eprint = {2508.01844},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.01844},
}
Figure