Attention-based workload prediction and dynamic resource allocation for heterogeneous computing environments

Shijia Shao, Xinyi Ding, Hang Yu, Peiqing YeScientific 2026

Abstract

The rapid proliferation of artificial intelligence applications in modern data centers demands intelligent resource management strategies that can effectively handle diverse workloads across heterogeneous computing infrastructures. This paper proposes an integrated framework that combines multi-head spatial-temporal attention mechanisms for workload prediction with dynamic resource allocation algorithms optimized for heterogeneous environments. The spatial-temporal attention architecture separately models temporal evolution patterns within individual workload streams and spatial correlations across concurrent task types, enabling accurate forecasting of resource demands. The allocation framework formulates resource assignment as a multi-objective optimization problem that jointly considers performance, energy efficiency, and utilization while explicitly accounting for prediction uncertainty. Experimental evaluation on real-world cluster traces demonstrates that our approach achieves 78.4% resource utilization with only 2.3% SLA violations, reduces average task completion time by 25.8%, and decreases energy consumption by 15.1% compared to production-grade baseline methods.

Introduction

Modern data centers have evolved into complex ecosystems of heterogeneous hardware, including CPUs, GPUs, TPUs, and FPGAs, designed to support a diverse array of AI workloads. These workloads range from massive deep learning training jobs to latency-sensitive real-time inference requests. A primary challenge in managing these environments is the bursty and unpredictable nature of resource demands.

Traditional resource schedulers often rely on static rules or simple heuristics, which frequently lead to a "lose-lose" scenario: over-provisioning results in wasted capital and energy, while under-provisioning leads to latency spikes and Service Level Agreement (SLA) violations. While machine learning has been applied to workload prediction, existing solutions often treat workloads in isolation and decouple prediction from the allocation process. This research introduces an end-to-end framework that bridges this gap through spatial-temporal attention and uncertainty-aware scheduling.

Methodology

The proposed framework integrates workload forecasting and resource orchestration into a unified pipeline.

Multi-Head Spatial-Temporal Attention Network

Departing from standard time-series models like LSTMs, the framework utilizes a specialized Transformer architecture featuring two distinct attention mechanisms:

  • Temporal Attention: Analyzes the historical data of individual workloads to identify recurring patterns and trends over time.
  • Spatial Attention: Captures correlations across concurrent workloads. This is critical for identifying dependencies, such as when the completion of a batch training job consistently precedes a surge in inference requests.
  • Uncertainty Modeling: The model employs Quantile Regression within its loss function, allowing it to output confidence intervals rather than single-point estimates. This enables the scheduler to assess the risk associated with specific allocation decisions.

Dynamic Resource Allocation

The system treats scheduling as a multi-objective optimization problem, balancing task completion time, energy efficiency, and hardware utilization. It clusters workloads based on their computational profiles and maps them to the most suitable hardware accelerators. To maintain robustness, the framework includes adaptive mechanisms for preemption and migration, alongside online learning to adjust to shifting workload patterns in real-time.

Experimental Evaluation

Datasets and Setup

The system was evaluated on a 20-node heterogeneous testbed using four primary data sources:

  1. Google Cluster Trace 2019: A month-long dataset focused on CPU-intensive batch and service workloads.
  2. Alibaba Cluster Trace 2020: Detailed GPU utilization patterns for AI training and inference.
  3. Proprietary Academic Research Cluster: A 6-week dataset featuring variable workloads like LLM training and Neural Architecture Search.
  4. Synthetic Workloads: Designed to stress-test the system's resilience to sudden demand bursts.

Key Results

The framework significantly outperformed production-grade systems like the Kubernetes default scheduler and various RL-based approaches:

  • Utilization and Reliability: The system achieved 78.4% resource utilization—a substantial improvement over Kubernetes' 62.1%—while maintaining a low 2.3% SLA violation rate.
  • Performance and Efficiency: Average task completion times were reduced by 25.8%, and total energy consumption decreased by 15.1% due to more efficient resource packing and the ability to power down idle nodes.
  • Prediction Accuracy: The spatial-temporal model achieved a 23.7% reduction in Mean Absolute Error (MAE) compared to standard LSTM models on the Alibaba dataset.

Discussion and Insights

A core finding of this research is that "cross-workload chatter" is a vital signal for prediction; workloads in a shared environment do not exist in a vacuum, and their spatial correlations are as informative as their temporal histories. Furthermore, treating uncertainty as a first-class citizen allows the scheduler to be aggressive when confidence is high and conservative when forecasts are volatile, preventing cascading failures.

Despite these gains, the model faces limitations regarding completely unprecedented workload shifts, which require a few hours of online learning to accommodate. Additionally, the quadratic complexity of the attention mechanism presents a challenge for extremely long-term historical analysis.

Conclusion

By tightly coupling spatial-temporal workload forecasting with uncertainty-aware resource allocation, this framework provides a path toward more efficient and reliable heterogeneous computing environments. Future work will explore workload phase detection and self-supervised learning to further refine prediction accuracy and cross-organizational applicability.

Summary updated

BibTeX
@inproceedings{shao2026attention,
  author = {Shijia Shao and Xinyi Ding and Hang Yu and Peiqing Ye},
  title = {{Attention-based workload prediction and dynamic resource allocation for heterogeneous computing environments}},
  booktitle = {Scientific},
  year = {2026},
  doi = {10.1038/s41598-026-38622-4},
}
Figure