Skip to main content
QUICK REVIEW

[Paper Review] Representation Learning for Resource Usage Prediction

Florian Schmidt, Mathias Niepert|arXiv (Cornell University)|Feb 2, 2018
Software System Performance and ReliabilityComputer Science11 references7 citations
TL;DR

This paper proposes a representation learning approach that combines system call sequences and resource usage statistics into a unified latent space for predicting future resource usage in computing systems. By using word2vec-style embeddings for system calls and training an LSTM on the combined features, the model achieves improved prediction accuracy over heuristic baselines, especially when leveraging historical context and diverse system events.

ABSTRACT

Creating a model of a computer system that can be used for tasks such as predicting future resource usage and detecting anomalies is a challenging problem. Most current systems rely on heuristics and overly simplistic assumptions about the workloads and system statistics. These heuristics are typically a one-size-fits-all solution so as to be applicable in a wide range of applications and systems environments. With this paper, we present our ongoing work of integrating systems telemetry ranging from standard resource usage statistics to kernel and library calls of applications into a machine learning model. Intuitively, such a ML model approximates, at any point in time, the state of a system and allows us to solve tasks such as resource usage prediction and anomaly detection. To achieve this goal, we leverage readily-available information that does not require any changes to the applications run on the system. We train recurrent neural networks to learn a model of the system under consideration. As a proof of concept, we train models specifically to predict future resource usage of running applications.

Motivation & Objective

  • To develop a generic, data-driven model for predicting future resource usage in computing systems that outperforms heuristic-based approaches.
  • To address the limitations of one-size-fits-all heuristics in process scheduling and resource allocation by learning system-specific behavior from telemetry.
  • To integrate heterogeneous system telemetry—especially system call sequences and resource statistics—into a joint representation for machine learning.
  • To enable accurate, long-term prediction of CPU and I/O usage by capturing temporal dependencies through recurrent neural networks.
  • To demonstrate that representation learning from raw system events can yield better predictive performance than traditional monitoring heuristics.

Proposed method

  • Collect system telemetry, including per-process CPU and memory usage, disk I/O, and network I/O, aggregated over fixed time intervals (e.g., 1-second windows).
  • Capture system call sequences using strace, treating each sequence within a time window as a 'sentence' for representation learning.
  • Apply a skip-gram model (inspired by word2vec) to learn dense vector embeddings for individual system calls, capturing semantic and temporal relationships.
  • Concatenate the fixed-size vector representations of system calls and resource usage statistics into a single input vector for the LSTM.
  • Train a Long Short-Term Memory (LSTM) network to predict future resource usage (e.g., CPU utilization) over a time horizon of i seconds, minimizing RMSE.
  • Optionally train system call embeddings end-to-end within the full model architecture, or pre-train them as a preprocessing step.

Experimental results

Research questions

  • RQ1Can system call sequences be effectively embedded into a low-dimensional space that captures their semantic and temporal relationships for systems modeling?
  • RQ2To what extent does combining system call embeddings with resource usage statistics improve the accuracy of future resource usage prediction compared to using statistics alone?
  • RQ3How does the prediction error vary with the prediction horizon (i.e., how far into the future we predict), and can historical context mitigate this?
  • RQ4Can a single, generic machine learning model trained on diverse system workloads generalize well across different application types and system behaviors?
  • RQ5Does representation learning from raw system events outperform traditional heuristic-based resource prediction methods?

Key findings

  • The proposed model, combining system call embeddings and resource usage statistics, achieves lower root-mean-square error (RMSE) in predicting future CPU usage than baseline heuristic methods.
  • Prediction accuracy improves with increased historical context, as longer sequences of past events help the LSTM model capture temporal dynamics.
  • The model shows reduced error when predicting further into the future when sufficient historical data is used, indicating effective long-term dependency learning.
  • System call embeddings learned via a skip-gram model effectively capture functional patterns (e.g., I/O-heavy vs. CPU-intensive phases), which are predictive of resource usage.
  • The use of strace for system call tracing introduces minimal overhead (a few percent at most), making the approach practical for real-world deployment.
  • The end-to-end training approach with joint embedding and prediction learning shows promise, though pre-training embeddings separately also yields strong performance.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.