A Generative Adversarial Method and System for Cloud Workload Prediction

By using multi-head attention mechanism and convolutional neural network in the GAN model to extract the periodic and fluctuation characteristics of historical load information, the problem of poor load prediction caused by ignoring periodic and fluctuation signals in the existing technology is solved, and a more accurate cloud is achieved Improved workload forecasting and resource utilization.

CN117931426BActive Publication Date: 2024-11-05中电信量子信息科技集团有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311748246.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-18
Publication Date
2024-11-05
Estimated Expiration
2043-12-18

AI Technical Summary

Technical Problem

The existing GANs applied to load prediction methods ignore periodic signals and fluctuations in historical loads, resulting in poor prediction performance.

Method used

The generative adversarial network model is adopted that combines multi-head attention mechanism and convolutional neural network. By extracting global periodic information and local fluctuation information in historical load information, it can enhance the expression ability of the model to achieve more Accurate load prediction.

Benefits of technology

Effectively capture the complex dependencies of historical load information, improve the accuracy of load prediction and the expressive ability of the model, and reduce the waste of computing resources and energy consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117931426B_ABST
    Figure CN117931426B_ABST
Patent Text Reader

Abstract

The present invention discloses a generative adversarial method for cloud workload prediction, comprising the following steps: collecting historical load sequences of cloud data centers; preprocessing the acquired load sequences; constructing a corresponding cloud workload prediction model, including a generator and a discriminator; using the generator to extract the complex dependencies hidden in the sample sequences in the training set, and generating the load information for the next stage; continuously training the model in a generative adversarial manner until the preset conditions or the expected evaluation criteria are met and the training is stopped; using the sample sequences in the test set to test the model, and finally inputting the load sequence of the current cloud data center into the model to obtain the load information for the next stage. The generative adversarial method proposed in the present invention can not only fit the data distribution of the real load, but also achieve strong coupling between the generated load and the historical load sequences, thereby achieving accurate prediction of the cloud server load information, and further enabling the cloud computing system to orderly deploy and migrate virtual machines.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer systems and networks, and in particular to a generative adversarial method for cloud workload prediction. Background Art

[0002] With the rapid development of computer technology and computing power, the computing demand required in industry is increasing, and the number of Internet task request connections is increasing. However, the computing resources and basic service facilities owned by many enterprises and units are difficult to support the surging computing demand. At the same time, if hardware equipment is continuously added to meet the growing computing demand, it will increase resource waste and economic burden. Cloud computing technology makes full use of virtualization mechanisms to allow users to access the computing resources and infrastructure of cloud data centers on demand anytime and anywhere, thereby reducing the hardware maintenance costs of enterprises and units. However, with the long-term operation of cloud data centers, the load information of cloud services usually shows high volatility. In addition, in order to meet the high reliability requirements of cloud services, cloud data centers need to pre-set a large number of redundant computing resources, which may lead to high energy consumption problems.

[0003] Therefore, a large number of researchers have proposed a series of elastic scaling methods to improve the resource utilization of cloud computing systems. At present, elastic scaling methods are mainly divided into two categories: (1) Passive response strategies, which dynamically adjust cloud computing resources by monitoring changes in workloads in real time. However, this method only adjusts resources after detecting changes in load information, which may not be able to provide appropriate resources in time when the workload changes, increasing the response time of user requests. In addition, when dealing with sudden changes in load, passive response strategies will frequently increase or decrease computing resources, resulting in high fluctuations in response time and waste of resources. (2) Load prediction methods, which actively predict the load information of the next stage by mining historical load information sequences. However, due to the high volatility and mutation of workloads, such methods usually show certain limitations in processing fluctuation signals. At the same time, most existing prediction methods use the structure of recurrent neural networks (RNNs) to analyze the dependencies hidden in historical load information. The multiple iterations in such methods will cause huge computational overhead and cannot be applied to scenarios that require real-time prediction.

[0004] In recent years, deep learning has made breakthroughs in many fields. In 2014, Goodfellow et al., inspired by the two-person zero-sum game in game theory, pioneered the Generative Adversarial Network (GAN). The Generative Adversarial Network contains a generative model and a discriminative model. Among them, the generative model is responsible for capturing the distribution of sample data, while the discriminative model is generally a binary classifier that determines whether the input is real data or a generated sample. The optimization process of this model is a "binary minimax game" problem. During training, one of the parties (the discriminative network or the generative network) is fixed, and the parameters of the other model are updated, and the iterations are repeated. Finally, the generative model can estimate the distribution of sample data. The emergence of the Generative Adversarial Network has greatly promoted the research on unsupervised learning and image generation. The Generative Adversarial Network has been expanded from the initial image generation to various fields of computer vision, such as image segmentation, video prediction, style transfer, etc.

[0005] In recent years, some scholars have studied the application of generative adversarial networks to time series generation in various fields. For example, the patent document with publication number CN112835709A discloses a cloud load time series data generation method, system and medium based on generative adversarial networks, including the following steps: obtaining load time series data in a real cloud environment; preprocessing the obtained load data; constructing a generative adversarial network according to the complexity of the data, wherein the generative adversarial network includes two parts, a generator and a discriminator, and the preprocessed load time series data is used to train the constructed generative adversarial network, and the generative network in the generative adversarial network is randomly sampled from the Gaussian distribution as input to generate simulation data as a substitute or supplement for the real data. The generator uses an improved temporal convolutional network (TCN). Compared with the method using a long short-term memory neural network (LSTM), the model training of the present invention has a faster convergence speed and performs better in long time series.

[0006] However, there are still many shortcomings in current applications:

[0007] (1) Cloud workload refers to the resource utilization or number of tasks that have arrived in a cloud data center over a period of time in the past. Due to the long-term operation of the cloud platform, cloud workloads are usually volatile and mutated, which makes the load data of the next stage show a complex dependency relationship with the global periodicity and local volatility inherent in the historical load information. Currently, most algorithms that apply GAN to load prediction usually use LSTM or TCN as generators to extract the feature information hidden in the historical load data, but ignore the complex dependency of the periodic signals and fluctuation signals inherent in the historical load on the load of the next stage. Unlike other time series data, when processing cloud workload prediction data, it is necessary to extract the periodic signals and fluctuation signals of the historical load information in order to effectively model the cloud workload. Therefore, existing methods have certain limitations when dealing with highly variable cloud workloads.

[0008] (2) During the training process of the generative adversarial network, the network expression ability of the generator and the discriminator needs to be continuously and steadily improved to improve the stability of the generator and the discriminator in the game process, thereby generating more accurate workload data. However, when dealing with the problem of cloud workload prediction, existing related studies usually only consider the difference between the real load and the generated load in the next stage as the loss function in the training process, while ignoring the complex dependency between the historical load and the generated load, which makes the expression ability of the model still insufficient. Summary of the invention

[0009] The problem to be solved by the present invention is that the existing method of applying GAN to load forecasting ignores the periodic signals and fluctuation signals in the historical load sequence, resulting in poor forecasting performance.

[0010] In order to solve the above problems, the present invention adopts the following technical means:

[0011] The present invention provides a generative adversarial method for cloud workload prediction, comprising the following steps:

[0012] Step 1: Use a load information collector to collect the load data of the cloud data center over a period of time;

[0013] Step 2: Normalize the collected load data and divide it into a training set and a test set. Then, set the input window and output window sizes respectively, and serialize the load data in the training set and the test set in a sliding window manner to form a sample sequence and a label sequence respectively.

[0014] Step 3: Establish a generative adversarial model for cloud workload prediction, which includes a load generation module and a load discrimination module. The load generation module is mainly composed of a multi-head attention mechanism and a three-layer convolutional neural network.

[0015] Step 4: Use the sample sequences in the training set to train the model, and use the sample sequences in the test set to test the model;

[0016] Step 5: Input the load sequence of the current cloud data center into the trained load generation module to generate the load information for the next stage.

[0017] The present invention mainly uses convolutional neural networks and multi-head attention mechanisms as generators in generative adversarial networks. The multi-head attention mechanism and convolutional neural networks respectively extract features of the global periodic information and local fluctuation information hidden in the historical load sequences, so as to deeply analyze the complex dependencies in the historical load sequences, thereby achieving accurate representation of cloud workloads.

[0018] As a further optimized technical solution, in step 3, the load discrimination module is mainly composed of four fully connected layers.

[0019] As a further optimized technical solution, the step 4 uses the sample sequence in the training set to train the model, specifically including: first, for the load generation module, the sample sequence is simultaneously input into the multi-head attention layer and the convolutional neural network layer to obtain the generated global period information and local fluctuation information respectively; secondly, the obtained period information and fluctuation information are added as the load information of the next stage of the model; then the generated load information and the real label sequence are simultaneously input into the load discrimination module; finally, the generator loss function and the discriminator loss function are respectively calculated according to the generated load information and the label sequence, and the model parameters are back-propagated and updated using the gradient descent method until the preset number of iterations is reached or the loss function is minimized and converged, and the load information generated by the load generation module for the last time is taken as the final result.

[0020] The loss function used by the load generation module and the load discrimination module of the present invention not only takes into account the difference between the actual load and the generated load in the next stage, but also takes into account the complex dependency between the historical load and the generated load, so that the expressive ability of the model is continuously improved in a generative adversarial manner, further ensuring the prediction accuracy in the cloud workload environment.

[0021] As a further optimized technical solution, the step 4 of testing the model with the sample sequence in the test set specifically includes: firstly inputting the sample sequence into the load generation module to obtain the load information of the next stage, then inputting the generated load and the real label load into the load discrimination module at the same time, and finally using the mean absolute value loss as the evaluation index.

[0022] The present invention also provides a generative adversarial system for cloud workload prediction, comprising the following modules:

[0023] Load information collection module: configured to collect the load data of the cloud data center over a period of time;

[0024] Data preprocessing module: configured to normalize the collected load data and divide it into a training set and a test set, and then set the input window and output window sizes respectively, and serialize the load data in the training set and the test set in a sliding window manner to form a sample sequence and a label sequence respectively;

[0025] Adversarial model generator: configured to build a generative adversarial model for cloud workload prediction, the model includes a load generation module and a load discrimination module, wherein the load generation module is mainly composed of a multi-head attention mechanism and a three-layer convolutional neural network;

[0026] Training module: configured to train the model using sample sequences in the training set and test the model using sample sequences in the test set;

[0027] Load information generation module: is configured to input the load sequence of the current cloud data center into the trained load generation module, that is, to generate the load information of the next stage.

[0028] As a further optimized technical solution, in the adversarial model generator, the load discrimination module is mainly composed of four fully connected layers.

[0029] As a further optimized technical solution, the training module uses the sample sequence in the test set to test the model, specifically including: first, for the load generation module, the sample sequence is simultaneously input into the multi-head attention layer and the convolutional neural network layer to obtain the generated global period information and local fluctuation information respectively; secondly, the obtained period information and fluctuation information are added as the load information of the next stage of the model; then the generated load information and the real label sequence are simultaneously input into the load discrimination module; finally, the generator loss function and the discriminator loss function are respectively calculated according to the generated load information and the label sequence, and the model parameters are back-propagated and updated using the gradient descent method until the preset number of iterations is reached or the loss function is minimized and converged, and the load information generated by the load generation module for the last time is taken as the final result.

[0030] As a further optimized technical solution, the training module uses the sample sequence in the test set to test the model, specifically including: firstly, inputting the sample sequence into the load generation module to obtain the load information of the next stage, then inputting the generated load and the real label load into the load discrimination module at the same time, and finally using the mean absolute value loss as the evaluation index.

[0031] The advantages of the present invention are:

[0032] The generator designed by the present invention can deeply parse out the periodic information and residual information hidden in the historical load information and perform feature representation respectively, effectively capturing the global periodicity and local volatility, thereby achieving accurate prediction of cloud workload. In addition, the present invention uses the correlation between the historical load and the generated load and the difference between the real load and the generated load as the loss function in the model training process, so that the expression ability of the model can be continuously improved in a generative adversarial manner. Through the accurate prediction of cloud server load information, the cloud computing system can orderly deploy and migrate virtual machines, so that the resource utilization of the cloud computing system can be effectively improved while ensuring the service quality, thereby further reducing the energy consumption of the cloud data center. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 It is a flow chart of the cloud workload prediction model constructed in an embodiment of the present invention.

[0034] Figure 2 It is an architectural diagram of a generative adversarial method for cloud workload prediction designed in an embodiment of the present invention. DETAILED DESCRIPTION

[0035] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in combination with the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0036] Embodiment 1

[0037] The present invention provides a generative adversarial method for cloud workload prediction, comprising the following steps:

[0038] Step 1: Use a load information collector to collect the load data of the cloud data center over a period of time.

[0039] Step 2: Normalize the collected load information and divide it into training set and test set. Then set the input window and output window sizes respectively, and serialize the load data in the training set and test set in a sliding window manner to form a sample sequence and a label sequence respectively.

[0040] Step 3: Establish a generative adversarial model for cloud workload prediction. The model includes a load generation module and a load discrimination module, wherein the load generation module mainly uses a multi-head attention mechanism and a three-layer convolutional neural network, and the load discrimination module mainly consists of four fully connected layers.

[0041] Step 4: Use the sample sequence in the training set to train the model. First, for the load generation module, the sample sequence is simultaneously input into the multi-head attention layer and the convolutional neural network layer to obtain the generated global period information and local fluctuation information respectively; secondly, the obtained period information and fluctuation information are summed as the load information of the next stage of the model; then the generated load information and the real label sequence are simultaneously input into the load discrimination module; finally, the generator loss function and the discriminator loss function are calculated according to the generated load information and the label sequence, and the model parameters are back-propagated and updated using the gradient descent method until the preset number of iterations is reached or the loss function is minimized and converged, and the load information generated by the load generation module for the last time is taken as the final result.

[0042] The model is tested using the sample sequence in the test set. As described in step 4, the sample sequence is first input into the load generation module to obtain the load information for the next stage, and then the generated load and the real label load are simultaneously input into the load discrimination module, and finally the mean absolute value loss is used as the evaluation indicator.

[0043] Step 5: Input the load sequence of the current cloud data center into the trained load generation module to generate the load information for the next stage.

[0044] This embodiment uses the load information of the Alibaba Cloud platform as the input of the model to generate the corresponding cloud workload information. The generative adversarial method for cloud workload prediction involved in the present invention includes the following steps:

[0045] Step 1: Use the load information collector to collect the number of tasks arriving every 1 minute on the Alibaba Cloud platform over the past period of time as a load sequence. Assume that the sequence length is n and the number of tasks arriving at time t is x. t .

[0046] Step 2: First, normalize the collected load information to obtain the required load sequence. The normalized expression is: Here x min is the minimum value of the collected load data, and x max is the maximum value of the collected load data. Then the load sequence is divided into the training set Tr and the test set Te in a ratio of 7:3, and then the input window L and the output window H are set respectively, and the training set and the test set are serialized in a sliding window manner to form the sample sequence x t-L:t ={x t-L , …, x t-1} and label sequence x t:t+H ={x t , …, x t+H}.

[0047] Step 3: Establish a generative adversarial model for cloud workload prediction. The model includes a load generation module G and a load discrimination module D. The objective function of the generative adversarial method can be formalized as: Where P r is the data distribution, P g It is the model distribution implicitly defined by the latent variables x~G(z).

[0048] Step 4: Use the sample sequences in the training set to train the model. First, for the load generation module, the sample sequence x t-L:t At the same time, it is input into the multi-head attention layer and the convolutional neural network layer to obtain the generated global periodic information u t:t+H and local fluctuation information v t:t+H ; Secondly, the obtained period information and fluctuation information are added as the load information of the next stage of the model The generated load information is then and the true label sequence x t:t+H At the same time, the load discrimination module is input; finally, the generator loss function and the discriminator loss function are calculated according to the generated results and the label sequence, and the model parameters are back-propagated and updated using the gradient descent method until the preset number of iterations is reached or the loss function is minimized and converged, and the load information generated by the load generation module for the last time is taken as the final result. Among them, the generator loss function is Here N represents the number of model input load data, represents the connection of two load sequences; and the discriminator loss function is The loss function designed here aims to minimize the difference between the real load data distribution and the generated load data distribution, while achieving strong coupling between the historical load information and the generated load data as much as possible, so as to continuously improve the expressive power of the generator and the discriminator in an adversarial way.

[0049] Use the sample sequence x in the test set Te t-L:t Test the model. As described in the previous method, input the sample sequence into the load generation module to obtain the load information of the next stage, then input the generated load and the real label load into the load discrimination module at the same time, and finally use the average absolute value loss as the evaluation index. Among them, the absolute value loss function is

[0050] Step 5: Input the current Alibaba Cloud platform load sequence into the trained load generation module to generate the load information for the next stage.

[0051] The present invention provides a generative adversarial method for cloud workload prediction. The generator designed by the method uses a multi-head attention mechanism and a convolutional neural network to deeply parse out the global periodicity and local volatility contained in the historical load information, which can solve the problem of complex dependence of the historical load on the load data of the next stage, thereby realizing accurate prediction of the load information of the next stage. In addition, the loss function used in model training not only minimizes the difference between the distribution of the real load data and the distribution of the generated load data, but also makes the historical load information and the generated load as strongly coupled as possible, and continuously optimizes the expression ability of the model in a generative adversarial way, thereby showing excellent results in a highly variable cloud workload environment. Through accurate prediction of load information, cloud resource configuration can be dynamically adjusted in a timely manner to further avoid insufficient computing resources and waste of resources.

[0052] It should be noted that the logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be specifically implemented in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection portion with one or more wirings (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.

[0053] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A generative adversarial method for cloud workload prediction, characterized by: The following steps are involved: Step 1: Use a load information collector to collect the load data of the cloud data center over a period of time; Step 2: Normalize the collected load data and divide it into a training set and a test set. Then, set the input window and output window sizes respectively, and serialize the load data in the training set and the test set in a sliding window manner to form a sample sequence and a label sequence respectively. Step 3: Establish a generative adversarial model for cloud workload prediction, which includes a load generation module and a load discrimination module. The load generation module is mainly composed of a multi-head attention mechanism and a three-layer convolutional neural network. Step 4: Use the sample sequence in the training set to train the model, and use the sample sequence in the test set to test the model. The training of the model using the sample sequence in the training set specifically includes: first, for the load generation module, the sample sequence is simultaneously input into the multi-head attention layer and the convolutional neural network layer to obtain the generated global period information and local fluctuation information respectively; secondly, the obtained period information and fluctuation information are added as the load information of the next stage of the model; then the generated load information and the real label sequence are simultaneously input into the load discrimination module; finally, the generator loss function and the discriminator loss function are respectively calculated according to the generated load information and the label sequence, and the model parameters are back-propagated and updated using the gradient descent method until the preset number of iterations is reached or the loss function is minimized and converged, and the load information generated by the load generation module for the last time is taken as the final result; Step 5: Input the load sequence of the current cloud data center into the trained load generation module to generate the load information for the next stage.

2. The generative adversarial method for cloud workload prediction according to claim 1, characterized in that: In step 3, the load discrimination module is mainly composed of four fully connected layers.

3. The generative adversarial method for cloud workload prediction of claim 1, wherein: The step 4 of testing the model using the sample sequence in the test set specifically includes: firstly inputting the sample sequence into the load generation module to obtain the load information of the next stage, then inputting the generated load and the real label load into the load discrimination module at the same time, and finally using the mean absolute value loss as the evaluation index.

4. The generative adversarial method for cloud workload prediction according to claim 1, characterized in that: The specific steps include: Step 1: Use the load information collector to collect the number of tasks arriving every 1 minute in the past period of time on the platform as the load sequence. Assume that the sequence length is n and the number of tasks arriving at time t is x. t ; Step 2: First, normalize the collected load information to obtain the required load sequence. The normalized expression is: Here x min is the minimum value of the collected load data, and x max is the maximum value of the collected load data. Then the load sequence is divided into the training set Tr and the test set Te in a ratio of 7:

3. Then the input window L and the output window H are set respectively, and the training set and the test set are serialized in a sliding window manner to form the sample sequence x t-L:t ={x t-L ,…,x t-1 } and label sequence x t:t+H ={x t ,…,x t+H }; Step 3: Establish a generative adversarial model for cloud workload prediction. The model includes a load generation module G and a load discrimination module D. The objective function of the generative adversarial method is formalized as: Where P r is the data distribution, P g It is the model distribution implicitly defined by the latent variables x~G(z); Step 4: Use the sample sequences in the training set to train the model. First, for the load generation module, the sample sequence x t-L:t At the same time, it is input into the multi-head attention layer and the convolutional neural network layer to obtain the generated global periodic information u t:t+H and local fluctuation information v t:t+H ; Secondly, the obtained period information and fluctuation information are added as the load information of the next stage of the model The generated load information is then and the true label sequence x t:t+H At the same time, the load discrimination module is input; finally, the generator loss function and the discriminator loss function are calculated according to the generated results and the label sequence, and the model parameters are back-propagated and updated using the gradient descent method until the preset number of iterations is reached or the loss function is minimized and converged. The load information generated by the load generation module for the last time is taken as the final result, where the generator loss function is Here N represents the number of model input load data, represents the connection of two load sequences; and the discriminator loss function is Use the sample sequence x in the test set Te t-L:t To test the model, the sample sequence is input into the load generation module to obtain the load information of the next stage. Then the generated load and the real label load are simultaneously input into the load discrimination module. Finally, the average absolute value loss is used as the evaluation index. The absolute value loss function is: Step 5: Input the load sequence of the current platform into the trained load generation module to generate the load information for the next stage.

5. A generative adversarial system for cloud workload prediction, comprising the following modules: Load information collection module: configured to collect the load data of the cloud data center over a period of time; Data preprocessing module: configured to normalize the collected load data and divide it into a training set and a test set, and then set the input window and output window sizes respectively, and serialize the load data in the training set and the test set in a sliding window manner to form a sample sequence and a label sequence respectively; Adversarial model generator: configured to build a generative adversarial model for cloud workload prediction, the model includes a load generation module and a load discrimination module, wherein the load generation module is mainly composed of a multi-head attention mechanism and a three-layer convolutional neural network; Training module: configured to train the model using the sample sequence in the training set and test the model using the sample sequence in the test set, wherein the training of the model using the sample sequence in the training set specifically includes: first, for the load generation module, the sample sequence is simultaneously input into the multi-head attention layer and the convolutional neural network layer to obtain the generated global period information and local fluctuation information respectively; secondly, the obtained period information and fluctuation information are summed up as the load information of the next stage of the model; then, the generated load information and the real label sequence are simultaneously input into the load discrimination module; finally, the generator loss function and the discriminator loss function are respectively calculated according to the generated load information and the label sequence, and the model parameters are back-propagated and updated using the gradient descent method until the preset number of iterations is reached or the loss function is minimized and converged, and the load information generated by the load generation module for the last time is taken as the final result; Load information generation module: configured to input the load sequence of the current cloud data center into the trained load generation module, that is, to generate the load information of the next stage.

6. The generative adversarial system for cloud workload prediction of claim 5, wherein: In the adversarial model generator, the load discrimination module is mainly composed of four fully connected layers.

7. The generative adversarial system for cloud workload prediction of claim 5, wherein: The training module uses the sample sequence in the test set to test the model, specifically including: firstly inputting the sample sequence into the load generation module to obtain the load information of the next stage, then inputting the generated load and the real label load into the load discrimination module at the same time, and finally using the mean absolute value loss as the evaluation index.

8. The generative adversarial system for cloud workload prediction of claim 5, wherein: Specifically, it includes the following modules: Load information collection module: It is configured to collect the number of tasks arriving every 1 minute in the past period of time as the load sequence. Assuming the sequence length is n, the number of tasks arriving at time t is x. t ; Data preprocessing module: It is configured to first normalize the collected load information to obtain the required load sequence. The normalization expression is: Here x min is the minimum value of the collected load data, and x max is the maximum value of the collected load data. Then the load sequence is divided into the training set Tr and the test set Te in a ratio of 7:

3. Then the input window L and the output window H are set respectively, and the training set and the test set are serialized in a sliding window manner to form the sample sequence x t-L:t ={x t-L ,…,x t-1 } and label sequence x t:t+H ={x t ,…,x t+H }; Adversarial model generator: configured to establish a generative adversarial model for cloud workload prediction, wherein the model includes a load generation module G and a load discrimination module D. The objective function of the generative adversarial method is formalized as: Where P r is the data distribution, P g It is the model distribution implicitly defined by the latent variables x~G(z); Training module: Use the sample sequences in the training set to train the model. First, for the load generation module, the sample sequence x t-L:t At the same time, it is input into the multi-head attention layer and the convolutional neural network layer to obtain the generated global periodic information u t:t+H and local fluctuation information v t:t+H ; Secondly, the obtained period information and fluctuation information are added as the load information of the next stage of the model The generated load information is then and the true label sequence x t:t+H At the same time, the load discrimination module is input; finally, the generator loss function and the discriminator loss function are calculated according to the generated results and the label sequence, and the model parameters are back-propagated and updated using the gradient descent method until the preset number of iterations is reached or the loss function is minimized and converged. The load information generated by the load generation module for the last time is taken as the final result, where the generator loss function is Here N represents the number of model input load data, represents the connection of two load sequences; and the discriminator loss function is Use the sample sequence x in the test set Te t-L:t To test the model, the sample sequence is input into the load generation module to obtain the load information of the next stage. Then the generated load and the real label load are simultaneously input into the load discrimination module. Finally, the average absolute value loss is used as the evaluation index. The absolute value loss function is: Load information generation module: Input the load sequence of the current platform into the trained load generation module to generate the load information for the next stage.