NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

CloudFormer: An Attention-Based Performance Prediction for Public Clouds with Unknown Workload

Amirhossein Shahbazinia, Darong Huang, Luis Costero, David Atienza

TL;DR

CloudFormer introduces a dual-branch Transformer architecture designed to predict virtual machine (VM) performance degradation in public clouds without any knowledge of the underlying workloads. By decoupling temporal dynamics from system-level metric interactions, it achieves a mean absolute error (MAE) of just 7.8%, outperforming state-of-the-art baselines by at least 28%.

What Problem Does This Paper Address?

In multi-tenant public cloud environments, providers consolidate multiple virtual machines onto shared physical servers to maximize hardware utilization. While modern virtualization guarantees strict isolation for CPU cores and memory capacity, VMs still compete for unmanaged shared resources like the last-level cache (LLC), memory bandwidth, and network interfaces. This competition creates the "noisy neighbor" effect, causing unpredictable performance degradation.

Predicting this degradation is incredibly difficult for two main reasons:

  1. The Black-Box Constraint: Due to strict privacy policies, cloud providers cannot inspect a user's application code or internal runtime metrics. They can only observe host-level hardware counters.
  2. Dynamic Workloads: Real-world workloads fluctuate constantly, making it hard to distinguish between intrinsic workload changes and external resource interference.

Existing solutions typically rely on scenario-specific configurations (e.g., assuming a workload is purely CPU-intensive) or lack the fine-grained temporal resolution needed to catch transient spikes.

Overview of the performance degradation prediction problem in multi-tenant cloud environments.

Methods

The authors propose CloudFormer, a unified deep-learning model that treats performance prediction as a dual-domain problem. Instead of forcing a single network to learn both time-series trends and complex hardware interactions simultaneously, CloudFormer splits the task into two specialized branches:

  • Temporal Branch (Left): This branch captures how workloads evolve over time (e.g., sudden I/O bursts). It processes second-by-second metrics using sinusoidal positional encodings and Masked Multi-Head Self-Attention (MHA) to handle variable-length execution traces.
  • System Branch (Right): This branch focuses entirely on cross-metric dependencies (e.g., how LLC occupancy impacts cache misses). Crucially, it applies mean-pooling over the time dimension first, completely removing temporal order. It then treats the 206 system metrics as an unordered set, using standard MHA to map global resource contention profiles.

The outputs of both branches are aggregated via learnable class tokens ([CLS]), concatenated, and fed into a multi-layer perceptron (MLP) prediction head with a sigmoid activation function to output a continuous performance degradation index ($P$).

Overview of the CloudFormer architecture illustrating dual branches for temporal and system-level modeling.

Datasets

To train and validate CloudFormer, the authors introduced CloudPerfTrace, a highly detailed dataset collected over two months.

  • Scale: It contains 317 days of cumulative recording duration across 11 diverse cloud applications (including Redis, HBase, Web Search, and Graph Analytics).
  • Granularity: Features are captured at an unprecedented 1-second resolution.
  • Features: It tracks 206 distinct system metrics (103 from the target VM and 103 aggregated from neighboring VMs), spanning Linux perf counters, hypervisor stats, and Intel Top-Down Analysis metrics.
  • Scenarios: It covers both static workloads and four dynamic workload patterns: static, monotonic, periodic, and random.

Key Insights and Ideas

  • The Power of Decoupling: Separating time-series modeling from hardware feature interaction prevents the model from overfitting to temporal noise.
  • Asymmetric Capacity: The temporal branch requires the bulk of the model's capacity (~222k parameters) to track sequence dependencies. In contrast, the system branch is incredibly compact (~6k parameters) yet highly effective because it only needs to learn static relationships between hardware counters.
  • Host-Level Sufficiency: The paper proves that internal application telemetry isn't necessary to quantify performance drops; external hypervisor and CPU architecture metrics contain a clean enough signal to deduce black-box degradation.

Key Results

CloudFormer was evaluated using a rigorous leave-some-applications-out cross-validation setup to test its ability to generalize to entirely unknown workloads.

  • Predictive Accuracy: CloudFormer achieved a Mean Absolute Error (MAE) of 7.80%, outperforming the best machine learning baseline (Random Forests at 10.78% MAE) by 28% and traditional linear regression methods by a massive margin.
  • Error Distribution: As shown in the paper's error analysis, CloudFormer has the highest concentration of predictions falling within the ultra-accurate $<5\%$ and $<10\%$ error bands, while minimizing catastrophic large-error predictions ($>25\%$).

Limitations and Future Work

While CloudFormer marks a significant step forward, the authors note a few limitations that pave the way for future research:

  • Single-Node Focus: The current framework operates within a single physical server socket. Real-world cloud architectures will require extending this approach to multi-node distributed settings.
  • Static Training: The model is trained offline. Integrating online adaptation mechanisms would allow CloudFormer to continuously learn from shifting cloud environments in real-time.
  • Energy Objectives: Future iterations could benefit from co-optimizing performance prediction alongside data center energy-efficiency metrics.

Summary updated

BibTeX
@inproceedings{shahbazinia2026cloudformer,
  author = {Amirhossein Shahbazinia and Darong Huang and Luis Costero and David Atienza},
  title = {{CloudFormer: An Attention-Based Performance Prediction for Public Clouds with Unknown Workload}},
  booktitle = {CCGrid},
  year = {2026},
  doi = {10.1109/ccgrid68966.2026.00069},
}
Figure