CWD: A Machine Learning based Approach to Detect Unknown Cloud Workloads

Mohammad Hossain, Derssie Mebratu, Niranjan Hasabnis, Jun Jin, Gaurav Chaudhary, Noah ShenarXiv 2022 · DOI

Introduction

In the contemporary cloud computing landscape, hardware vendors such as Intel and AMD face a significant visibility challenge. While they engineer specialized CPU features to optimize specific computational tasks—ranging from cryptographic acceleration to AI inference—they often lack insight into the actual workloads running on their silicon once deployed in third-party data centers. Privacy and security boundaries create a "black box" environment where vendors can only observe raw hardware telemetry rather than the software stack itself.

This lack of visibility hinders the ability to evaluate feature efficacy or provide tailored optimization recommendations. To bridge this gap, researchers have developed Cloud Workload Detection (CWD), a machine learning framework designed to identify unknown workloads by treating hardware performance signatures as unique "fingerprints."

The CWD Methodology

The CWD framework employs a multi-stage pipeline to transform noisy, high-dimensional hardware data into searchable signatures. The process is divided into pre-deployment and deployment phases to handle both known and unseen workloads.

The CWD framework consists of pre-deployment fingerprinting of known workloads and a deployment phase for identifying unknown workloads.

The pipeline consists of four primary steps:

  1. Telemetry Collection: The system monitors 72 distinct hardware and software counters, including L1/LLC cache misses, iTLB misses, and CPU utilization, sampled at one-second intervals.
  2. Bayesian Change Point Detection (BCPD): Recognizing that workloads are dynamic, CWD uses BCPD to segment time-series data into distinct execution "phases" (e.g., initialization, active processing, and idle states).
  3. Workload Fingerprinting: For each detected phase, statistical summaries (mean, median, variance) are calculated to form a representative matrix or "fingerprint."
  4. Classification and Similarity Analysis: Known workloads are classified using a Gradient Boosting Tree (GBT) model. For unknown workloads, the system utilizes Euclidean Distance (ED) and Dynamic Time Warping (DTW) to measure similarity against a library of established fingerprints.

Experimental Evaluation

The researchers validated CWD using a Kubernetes (K8s) cluster of 14 worker nodes equipped with Intel Xeon Scalable (SkyLake) processors. Six representative cloud workloads were selected for the study:

  • Databases: MongoDB-ycsb and MySQL8.
  • Web Services: WordPress-5MT.
  • Analytics/AI: Bayesian inference and AI-benchmark.
  • In-memory Store: Redis-6.0.9.

Each workload was executed multiple times to ensure the dataset captured inherent variance and remained robust against transient system noise.

Results and Semantic Similarity

The GBT-based classification model achieved a high degree of precision, reaching 93% accuracy in identifying known workloads. Beyond simple classification, the framework demonstrated a sophisticated ability to map "unknown" workloads to semantically similar known categories.

Vector embedding space showing the clustering of different workload phases using Principal Component Analysis (PCA).

As shown in the vector embedding space (Figure 5), workloads with similar underlying computational patterns cluster together. For instance, the system identified Bayesian inference as having 100% similarity to the AI-benchmark, reflecting their shared reliance on Python-based mathematical frameworks. Similarly, MongoDB was found to be 67% similar to WordPress and 33% similar to MySQL. This result is highly intuitive, as WordPress utilizes MariaDB (a MySQL derivative), and all three workloads exhibit comparable database-centric hardware interaction patterns.

Conclusion and Future Directions

CWD demonstrates that hardware telemetry can serve as an effective proxy for software behavior, allowing for workload identification without compromising user privacy. By segmenting execution into phases, the model captures the "behavioral rhythm" of applications, enabling vendors to identify "proxy" workloads for optimization purposes.

Future work will focus on expanding the diversity of the workload library and transitioning the framework toward real-time detection in production environments. Additionally, researchers aim to address potential challenges posed by highly non-deterministic workloads to further refine the system's fingerprinting accuracy.

Summary updated

BibTeX
@misc{hossain2022cwd,
  author = {Mohammad Hossain and Derssie Mebratu and Niranjan Hasabnis and Jun Jin and Gaurav Chaudhary and Noah Shen},
  title = {{CWD: A Machine Learning based Approach to Detect Unknown Cloud Workloads}},
  year = {2022},
  eprint = {2211.15739},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2211.15739},
}
Figure