Fremer: Lightweight and Effective Frequency Transformer for Workload Forecasting in Cloud Services

Hengyu Ye, Jiadong Chen, Xiao He, Fuxin Jiang, Tieying Zhang, Jianjun Chen, Xiaofeng Gao

Abstract

Accurate workload forecasting is critical for resource management and auto-scaling in large-scale cloud environments. However, existing Transformer-based models often face a trade-off between predictive accuracy and computational efficiency. We introduce Fremer, a novel frequency-domain Transformer designed to address these challenges. By utilizing an encoder-only architecture and a unique Learnable Linear Padding (LLP) technique, Fremer resolves frequency resolution misalignment and captures complex multi-periodic patterns. Experimental results on large-scale cloud datasets demonstrate that Fremer outperforms state-of-the-art models like PatchTST and FEDformer, reducing parameter counts by up to 90% while significantly improving throughput and forecasting accuracy.

1. Introduction

In modern cloud infrastructures, such as those operated by ByteDance, systems must process over 100,000 forecasting tasks per hour to facilitate proactive auto-scaling and resource scheduling. These workloads exhibit complex, multi-periodic patterns (e.g., hourly, daily, and weekly cycles) that are difficult for standard time-series models to capture.

While Transformer-based architectures have shown promise, they suffer from two primary drawbacks in this context:

  1. Computational Complexity: The $O(L^2)$ complexity of standard attention mechanisms is often too expensive for high-throughput cloud environments.
  2. Frequency Misalignment: A subtle technical hurdle occurs when performing a Discrete Fourier Transform (DFT) on an input sequence. The frequency resolution of the input length $L$ often differs from the resolution required for the full sequence (input + forecast horizon), causing the model to lose track of critical periodic components.

2. Methodology

Fremer re-imagines the Transformer as an encoder-only architecture specialized for the frequency domain. The model is built upon four core innovations:

2.1 Learnable Linear Padding (LLP)

To solve the "resolution trap," Fremer introduces Learnable Linear Padding. Instead of using standard zero-padding, the model employs a learnable layer to extend the input series. This ensures that the frequency resolution of the input aligns perfectly with the resolution of the complete series (input + future horizon), allowing the model to track the correct periodicities throughout the forecasting process.

2.2 Frequency Filters

Fremer utilizes specialized filters to decompose the signal. High-Pass Filters (HPF) are used to eliminate high-frequency noise, while Low-Pass Filters (LPF) isolate the underlying trend. To prevent overfitting, the model removes the low-frequency trend from the attention mechanism, processing it separately and adding it back only during the final reconstruction stage.

2.3 Complex-valued Spectrum Attention (CSA)

Unlike standard attention that treats individual time steps as tokens, CSA treats combinations of frequency points as tokens. Since frequency information in cloud workloads is typically concentrated in specific harmonics, this approach allows the model to capture global dependencies much more efficiently. By mapping the spectrum to a smaller number of combinations (typically $L/5$), Fremer reduces attention complexity to approximately 1/200th of a standard Transformer.

2.4 Channel Independence

Fremer treats different metrics (e.g., CPU, RAM, QPS) as independent channels. This design choice improves the model's ability to generalize across autonomous cloud workloads where cross-metric correlations may be spurious or highly dynamic.

3. Experimental Evaluation

3.1 Datasets

The model was evaluated using a combination of proprietary and public benchmarks:

  • ByteDance Cloud Datasets: Four new open-sourced datasets covering FaaS (Function as a Service), IaaS (Infrastructure), PaaS (Platform), and RDS (Relational Database) workloads.
  • Public Benchmarks: The Materna Workload-Traces (MT-1, MT-2, MT-3) and standard datasets from the Time Series Forecasting Benchmark (TFB), including Traffic and Electricity data.

3.2 Key Results

Fremer demonstrated significant improvements across all primary metrics:

  • Accuracy: The model achieved an average improvement of 5.5% in MSE and 8.6% in SMAPE over state-of-the-art baselines.
  • Efficiency: On the RDS dataset, Fremer reduced training time by 81.2% and inference time by 13.1% compared to PatchTST, while utilizing 86.5% fewer parameters.
  • Real-world Impact: In a Kubernetes proactive auto-scaling simulation, Fremer reduced average request latency by 18.78% and cut resource consumption by 2.35% compared to the next best performing model.
  • Zero-Shot Capability: The model exhibited strong cross-dataset transferability, maintaining high accuracy when trained on one service type (e.g., PaaS) and tested on another (e.g., IaaS).

4. Discussion and Conclusion

The success of Fremer highlights the importance of frequency-domain alignment in time-series forecasting. By addressing the resolution trap through LLP and utilizing the sparsity of frequency information via CSA, Fremer provides a lightweight yet powerful solution for cloud resource management.

While Fremer excels at periodic workload forecasting, its reliance on frequency-domain features may limit its effectiveness for purely stochastic or "bursty" series that lack clear periodic structures. Future research will focus on enhancing the model's ability to handle non-periodic anomalies and scaling the architecture for even larger, more heterogeneous cloud ecosystems.

Summary updated

BibTeX
@article{ye2025fremer,
  author = {Hengyu Ye and Jiadong Chen and Xiao He and Fuxin Jiang and Tieying Zhang and Jianjun Chen and Xiaofeng Gao},
  title = {{Fremer: Lightweight and Effective Frequency Transformer for Workload Forecasting in Cloud Services}},
  journal = {Proc. VLDB Endow.},
  year = {2025},
  doi = {10.14778/3749646.3749656},
}
Figure