Preprint
Article

This version is not peer-reviewed.

Deep Learning Framework for Change-Point Detection in Cloud-Native Kubernetes Node Metrics Using Transformer Architecture

Submitted:

14 December 2025

Posted:

16 December 2025

You are already at the latest version

Abstract

This study proposes a Transformer-based change-point detection method for modeling and anomaly detection of multidimensional time-series metrics in Kubernetes nodes. The research first analyzes the complexity and dynamics of node operating states in cloud-native environments and points out the limitations of traditional single-threshold or statistical methods when dealing with high-dimensional and non-stationary data. To address this, an input representation mechanism combining linear embedding and positional encoding is designed to preserve both multidimensional metric features and temporal order information. In the modeling stage, a multi-head self-attention mechanism is introduced to effectively capture global dependencies and cross-dimensional interactions. This enhances the model's sensitivity to complex patterns and potential change points. In the output stage, a differentiated scoring function and a normalized smoothing method are applied to evaluate the time series step by step. A change-point decision function based on intensity scores is then constructed, which significantly improves the ability to identify abnormal state transitions. Through validation on large-scale distributed system metric data, the proposed method outperforms existing approaches in AUC, ACC, F1-Score, and Recall. It demonstrates higher accuracy, robustness, and stability. Overall, the framework not only extends attention-based time-series modeling at the theoretical level but also provides strong support for intelligent monitoring and resource optimization in cloud-native environments at the practical level.

Keywords: 
;  ;  ;  

I. Introduction

In modern cloud-native architecture, Kubernetes has become the core platform for application deployment and resource scheduling [1,2]. With the increasing scale and complexity of containerized applications, the operational states and performance metrics at the node level show strong multidimensional and temporal characteristics. Metrics such as CPU utilization, memory consumption, disk I/O, and network throughput are not only correlated but also change dynamically over time. Detecting anomalies or abrupt shifts in such massive, multidimensional, and dynamic metric streams has become a key challenge for ensuring service reliability and system stability. Change-point detection, as a technique to identify turning points in system states, provides an effective means to understand performance evolution, prevent potential failures, and assist in elastic scaling [3].
In complex distributed environments, traditional monitoring and alert mechanisms often rely on static thresholds or single-dimensional metrics, which are insufficient for handling the dynamic and uncertain nature of microservice architectures across nodes and dimensions. The inherent properties of multidimensional time-series data mean that abnormal states usually emerge as complex joint variations, rather than isolated spikes in single metrics. Without effective change-point detection, systems may suffer from delayed recognition or misjudgments, leading to imbalanced resource scheduling, degraded application performance, or even service outages. Therefore, exploring advanced modeling approaches to capture subtle transitions in multidimensional time-series metrics has significant practical value [4].
In recent years, deep learning has opened new possibilities for time-series modeling [5]. Transformer architectures, especially those based on attention mechanisms, have shown strong advantages in capturing long-term dependencies and feature interactions [6,7,8]. Unlike traditional methods, Transformers do not depend on strict sequential assumptions and can model global correlations among metrics. This capability makes them well-suited for the complex and high-dimensional metric streams of Kubernetes nodes, and it helps improve both the accuracy and robustness of change-point detection.
In cloud-native application scenarios, change-point detection is not only about model innovation but also closely related to system operation and resource optimization. By accurately identifying state shifts at the node level, operators can locate potential risks at early stages and take preventive measures such as repair or scaling. Automated change-point detection also enables intelligent resource scheduling, keeping clusters stable and efficient under high load and sudden fluctuations. This improves system availability and service quality, while also bringing tangible benefits to enterprises in reducing operation costs, enhancing user experience, and strengthening competitiveness [9].
In summary, research on Transformer-based change-point detection for multidimensional time-series metrics in Kubernetes nodes addresses the real demand for efficient anomaly discovery in distributed systems, while also advancing the application of artificial intelligence in operations and resource management. This direction not only enhances system robustness and adaptability but also provides theoretical support and practical pathways for future intelligent operations. With the continuous expansion and increasing complexity of the cloud-native ecosystem, building frameworks that can accurately capture multidimensional temporal dynamics will play an increasingly important role in both academic research and industrial practice.

III. Proposed Approach

In terms of method design, we first need to represent the multi-dimensional time series metrics of Kubernetes nodes as a formalized input sequence. Let the observation vector of each node at time step t be x t ∈ R d , where d represents the dimension of the metric. The entire time series can be represented as X = { x 1 , x 2 , ... , x T } , where T is the time length. Following the approach advocated by Zhou [22] for robust cross-domain optimization, we apply a linear embedding to each metric vector, enabling the model to map raw observations into a feature space that facilitates downstream learning. To further support temporal reasoning, we introduce positional encoding to each embedded vector, in line with the strategies used by Liu et al. [23] to enhance sequential pattern modeling in cloud-scale distributed systems. This combination preserves both metric diversity and temporal structure, laying a solid foundation for subsequent Transformer-based modeling. The input preprocessing can be formally defined as:
z t = W e x t + p t
Among them, W e ∈ R d ′ × d is the learnable embedding matrix, p t is the position encoding vector, and z t ∈ R d ′ is the embedded representation. This operation ensures that the model can capture both indicator features and time sequence information. The overall model architecture is shown in Figure 1.
Based on the embedding space, a multi-head self-attention mechanism is introduced to model the global dependencies between multi-dimensional time series. For any set of input vectors Z ∈ R T × d ′ , the query, key, and value matrices are first obtained through linear transformation:
Q = Z W Q , K = Z W K , V = Z W V
Among them, W Q , W K , W V ∈ R d ′ × d k is a trainable parameter. Then calculate the attention weight:
A t t e n t i o n ( Q , K , V ) = softmax ( Q K T d k ) V
This mechanism can capture complex dependencies in the time dimension and indicator dimension, and achieve multi-level feature aggregation through a multi-head mechanism.
To further improve the model's sensitivity to change points, a change point scoring function is introduced based on the representation of the Transformer encoder output. Let the encoder output be H = { h 1 , h 2 , ... , h T } , then the difference between adjacent time steps can be defined as:
s t = | | h t − h t − 1 | | 2 2
Where s t represents the change point intensity score at time step t. When the score at certain moments is significantly higher than the background level, it can be considered that a change point may exist. To suppress the influence of noise, the sequence can be normalized and smoothed:
s ˜ t = s t − μ σ
Where μ and σ are the mean and standard deviation of the entire series, respectively.
Finally, to detect global change points, the smoothed score sequence is combined with the threshold mechanism. Let the detection threshold be θ , then the decision function can be expressed as:
y t = 1 , s t ≥ θ 0 , s t < θ
Here, y t = 1 represents the change point detected at time step t, and y t = 0 represents the normal state. This end-to-end Transformer-based framework enables the model to capture complex dependency patterns and key turning points in multi-dimensional time series metric streams, providing theoretical support and technical implementation for status monitoring and intelligent O&M of Kubernetes nodes.

IV. Performance Evaluation

A. Dataset

The dataset used in this study comes from the Google Cluster Trace. It is a publicly available large-scale dataset of distributed system operations that covers node-level and task-level metrics from real production environments. The dataset records resource usage of thousands of machines over a long time window, including CPU, memory, disk, and network indicators. It also contains detailed information on job scheduling, task execution, and node state changes. Its large scale and rich dimensions provide an authentic reflection of the dynamic features and complexity of nodes in cloud computing environments.
The dataset is characterized by its high dimensionality and long time-series nature, which creates sufficient scenarios for change-point detection tasks. Resource utilization at the node level shows significant non-stationarity and volatility over time. Different indicators across dimensions present potential correlations and coupling effects. This poses real challenges for models in capturing cross-dimensional dependencies and abrupt changes. At the same time, the dataset includes events such as node failures, resource anomalies, and scheduling fluctuations. These provide abundant samples for evaluating the effectiveness and robustness of change-point detection methods.
In the preprocessing stage, this study extracts core node-level metric sequences, including CPU utilization, memory usage, disk I/O, and network throughput. The raw records are processed with time alignment, normalization, and missing-value imputation. This transforms the data into standardized time-series inputs suitable for model training and inference. The procedure preserves the multidimensional dynamic features of the original data while ensuring effectiveness and stability in modeling. It provides a solid data foundation for change-point detection on multidimensional time-series metrics in Kubernetes nodes.

B. Experimental Results

This paper first conducts a comparative experiment, and the experimental results are shown in Table 1.
From the overall results, the proposed method outperforms all comparison models across all evaluation metrics, with clear advantages in AUC and ACC. This indicates that the Transformer-based change-point detection framework has stronger discriminative power in multidimensional time-series modeling. It can effectively capture complex dependencies and cross-dimensional dynamics, thereby improving accuracy and robustness in anomaly detection. Compared with traditional graph-based methods or simple sequence models, the proposed method demonstrates more stable and comprehensive performance. Further comparisons show that although GAT has certain advantages in modeling relationships between nodes, it is still insufficient in capturing long-range dependencies of multidimensional metrics. This limitation results in overall performance lower than other deep time-series models. Mamba and Swin-Transformer achieve relatively strong results in AUC and Recall, indicating their ability in feature extraction and sequence dependency modeling. However, they still show limitations in accuracy and balance, and fail to fully address information interactions in cross-dimensional time-series modeling. In conclusion, the proposed Transformer-based change-point detection framework effectively compensates for the shortcomings of existing methods in multidimensional time-series modeling. It not only achieves overall superiority across metrics but also excels in recall and discriminative ability, confirming its practical value in complex distributed system environments. These results show that the method can provide more intelligent and fine-grained support for cloud-native operations, thereby playing an important role in ensuring service continuity and efficient resource utilization.
This paper also presents a sensitivity experimental analysis of the change point score smoothing coefficient, and the experimental results are shown in Figure 2.
As the smoothing coefficient varies, the model maintains high and stable AUC, ACC, F1-score, and Recall, indicating strong robustness to this parameter. AUC peaks at a smoothing coefficient of 0.5, while changes in either direction cause only minor performance fluctuations. F1-score and Recall remain consistently high, suggesting that smoothing effectively suppresses noise and enhances true change-point detection. Overall, a moderate smoothing level optimizes discrimination while preserving stability, which is crucial for reliable change-point detection on noisy Kubernetes node metrics.

V. Conclusion

This study focuses on the modeling and analysis of multidimensional time-series metrics in Kubernetes nodes and proposes a Transformer-based change-point detection method. Starting from the complexity and temporal characteristics of multidimensional metrics, the framework is designed with input embedding, global dependency modeling, and change-point scoring mechanisms. It effectively addresses the performance limitations of traditional methods under high-dimensional and non-stationary scenarios. By fully leveraging the attention mechanism and a differentiated scoring function during modeling, the method can more accurately capture sudden changes in node operating states and provide new insights for intelligent monitoring of distributed systems.
The experimental results show that the proposed method achieves excellent performance in key metrics such as AUC, ACC, F1-Score, and Recall. It demonstrates clear advantages in multidimensional time-series modeling and anomaly detection. The model not only achieves high accuracy but also exhibits strong robustness and stability. It maintains reliable performance under different parameter settings and environmental disturbances. These advantages enable the method to handle dynamic variations and complex fluctuations of resource usage in cloud-native environments, meeting the practical needs of efficient and stable detection mechanisms in operations.
The significance of this study lies not only in algorithmic improvement but also in its contribution to real-world applications. By enabling precise change-point detection at the node level in Kubernetes, operators can identify potential risks earlier and take timely scheduling and repair measures. This greatly reduces the probability of system failures and service interruptions. Such a mechanism directly contributes to improving cluster availability and service quality, optimizing resource allocation, and reducing operational costs. It also provides enterprises with strong technical support in a competitive environment.
Future research can proceed in several directions. One direction is to further explore multi-source metric fusion across clusters and system layers, allowing change-point detection to go beyond single nodes and capture the dynamic evolution of the entire cloud-native system. Another direction is to integrate the method with automated operations platforms, enabling seamless linkage between detection results, elastic scaling, and fault recovery strategies. With the continuous growth of cloud computing and containerized applications, the proposed method will show broader application potential in larger-scale and more complex scenarios.

References

  1. H. Du and Z. Duan, "Finder: A novel approach of change point detection for multivariate time series," Applied Intelligence, vol. 52, no. 3, pp. 2496-2509, 2022. [CrossRef]
  2. Z. Duan, H. Du and Y. Zheng, "Trident: change point detection for multivariate time series via dual-level attention learning," Proceedings of the Asian Conference on Intelligent Information and Database Systems, Springer International Publishing, pp. 799-810, 2021.
  3. G. Zerveas, S. Jayaraman, D. Patel et al., "A transformer-based framework for multivariate time series representation learning," Proceedings of the 27th ACM SIGKDD Conference on Knowledge Discovery & Data Mining, pp. 2114-2124, 2021.
  4. L. Deng, X. Chen, Y. Zhao et al., "HIFI: Anomaly detection for multivariate time series with high-order feature interactions," Proceedings of the International Conference on Database Systems for Advanced Applications, Springer International Publishing, pp. 641-649, 2021.
  5. R. Liu, Y. Zhuang and R. Zhang, "Adaptive Human-Computer Interaction Strategies Through Reinforcement Learning in Complex," arXiv preprint arXiv:2510.27058, 2025.
  6. P. Xue and Y. Yi, "Integrating Context Compression and Structural Representation in Large Language Models for Financial Text Generation," Journal of Computer Technology and Software, vol. 4, no. 9, 2025.
  7. X. Song, Y. Liu, Y. Luan, J. Guo and X. Guo, "Controllable Abstraction in Summary Generation for Large Language Models via Prompt Engineering," arXiv preprint arXiv:2510.15436, 2025.
  8. H. Feng, Y. Wang, R. Fang, A. Xie and Y. Wang, "Federated Risk Discrimination with Siamese Networks for Financial Transaction Anomaly Detection," 2025.
  9. T. Tayeh, S. Aburakhia, R. Myers et al., "An attention-based ConvLSTM autoencoder with dynamic thresholding for unsupervised anomaly detection in multivariate time series," Machine Learning and Knowledge Extraction, vol. 4, no. 2, pp. 350-370, 2022. [CrossRef]
  10. M. Gupta, R. Wadhvani and A. Rasool, "Real-time change-point detection: A deep neural network-based adaptive approach for detecting changes in multivariate time series data," Expert Systems with Applications, vol. 209, Article 118260, 2022.
  11. X. Yan, Y. Jiang, W. Liu, D. Yi and J. Wei, "Transforming Multidimensional Time Series into Interpretable Event Sequences for Advanced Data Mining," 2024 5th International Conference on Intelligent Computing and Human-Computer Interaction (ICHCI), pp. 126-130, 2024.
  12. Z. Xu, J. Xia, Y. Yi, M. Chang and Z. Liu, "Discrimination of Financial Fraud in Transaction Data via Improved Mamba-Based Sequence Modeling," 2025.
  13. S. Wang, "Temporal Contrastive Representation Learning for Unsupervised Anomaly Detection in High-Dimensional Cloud Environments," Journal of Computer Technology and Software, vol. 3, no. 5, 2024.
  14. S. Han, "AI-Driven Predictive Modeling for System Performance and Resource Management in Microservice Architectures," Journal of Computer Technology and Software, vol. 4, no. 10, 2025.
  15. G. Yao, "Collaborative Dual-Branch Contrastive Learning for Resource Usage Prediction in Microservice Systems," Transactions on Computational and Scientific Methods, vol. 4, no. 5, 2024.
  16. R. Hao, W. C. Chang, J. Hu and M. Gao, "Federated Learning-Driven Health Risk Prediction on Electronic Health Records Under Privacy Constraints," 2025.
  17. Y. Li, "Differential Privacy-Enhanced Federated Learning for Robust AI Systems," Journal of Computer Technology and Software, vol. 3, no. 4, 2024.
  18. R. Meng, H. Wang, Y. Sun, Q. Wu, L. Lian and R. Zhang, "Behavioral Anomaly Detection in Distributed Systems via Federated Contrastive Learning," arXiv preprint arXiv:2506.19246, 2025.
  19. X. Yan, J. Du, L. Wang, Y. Liang, J. Hu and B. Wang, "The Synergistic Role of Deep Learning and Neural Architecture Search in Advancing Artificial Intelligence", Proceedings of the 2024 International Conference on Electronics and Devices, Computational Science (ICEDCS), pp. 452-456, Sep. 2024.
  20. S. Lyu, M. Wang, H. Zhang, J. Zheng, J. Lin and X. Sun, "Integrating Structure-Aware Attention and Knowledge Graphs in Explainable Recommendation Systems," arXiv preprint arXiv:2510.10109, 2025.
  21. J. Zheng, Y. Chen, Z. Zhou, C. Peng, H. Deng and S. Yin, "Information-Constrained Retrieval for Scientific Literature via Large Language Model Agents," 2025.
  22. Y. Zhou, "Self-Supervised Transfer Learning with Shared Encoders for Cross-Domain Cloud Optimization," 2025.
  23. H. Liu, Y. Kang and Y. Liu, "Privacy-Preserving and Communication-Efficient Federated Learning for Cloud-Scale Distributed Intelligence," 2025.
  24. Y. Jeong, E. Yang, J. H. Ryu et al., "Anomalybert: Self-supervised transformer for time series anomaly detection using data degradation scheme," arXiv preprint arXiv:2305.04468, 2023.
  25. Z. Liu, X. Huang, J. Zhang et al., "Multivariate time-series anomaly detection based on enhancing graph attention networks with topological analysis," Proceedings of the 33rd ACM International Conference on Information and Knowledge Management, pp. 1555-1564, 2024.
  26. J. Liu, Q. Li, S. An et al., "EdgeConvFormer: Dynamic Graph CNN and Transformer based Anomaly Detection in Multivariate Time Series," arXiv preprint arXiv:2312.01729, 2023.
  27. W. Zhang and C. Luo, "Decomposition-based multi-scale transformer framework for time series anomaly detection," Neural Networks, vol. 187, Article 107399, 2025. [CrossRef]
Figure 1. Overall model architecture.
Figure 1. Overall model architecture.
Preprints 189667 g001
Figure 2. Sensitivity Experimental Analysis of Change Point Score Smoothing Coefficient.
Figure 2. Sensitivity Experimental Analysis of Change Point Score Smoothing Coefficient.
Preprints 189667 g002
Table 1. Comparative experimental results.
Table 1. Comparative experimental results.
Method AUC ACC F1-Score Recall
Transformer [24] 0.921 0.894 0.876 0.861
GAT [25] 0.908 0.882 0.864 0.847
Mamba [26] 0.932 0.901 0.883 0.872
Swin-Transformer [27] 0.939 0.907 0.889 0.878
Ours 0.957 0.923 0.905 0.894
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.