Degradation test-based long tail risk assessment method for large model training and device

By adjusting the operating conditions of the computing cluster, obtaining state and performance parameters, and determining the transition probabilities and weights, the problem of evaluating long-tail events in large model training is solved, and the evaluation efficiency and reliability are improved.

CN123178129APending Publication Date: 2026-11-27SHENZHEN SMARTCITY TECH DEV GRP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611674243.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-28
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing technologies struggle to effectively observe and analyze low-probability, high-impact long-tail events during large model training, leading to decreased model training performance or task interruption, and inefficient stress testing methods.

Method used

By adjusting the operating conditions of the computing cluster to put it in a performance degradation state, executing multiple target tasks, obtaining the state parameter sequence and execution performance parameters, determining the transition probability and weight, and performing weighted statistics to assess the probability of anomaly occurrence.

Benefits of technology

Identifying low-probability long-tail failure events within a limited number of trials eliminates human-induced perturbation bias and improves the efficiency of reliability assessment for large model training tasks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123178129A_ABST
    Figure CN123178129A_ABST
Patent Text Reader

Abstract

Embodiments of the present application disclose a long-tail risk evaluation method and device based on degradation test, which can include a risk evaluation device, an electronic device, a computer program product, and a computer-readable storage medium. After adjusting the operating conditions of the computing power cluster, the embodiments of the present application execute a plurality of target tasks in the adjusted operating state to obtain a state parameter sequence and an execution performance parameter. Then, the degradation state corresponding to a plurality of state statistical periods is determined according to the state parameter sequence, and a degradation state sequence of the target task is generated in chronological order. Next, the first transition probability and the second transition probability in the adjusted operating state are determined according to the degradation state sequence. Then, the weight corresponding to the target task is determined. Finally, an abnormality judgment result is generated according to the execution performance parameter, and the abnormality occurrence probability of the computing power cluster in the normal operating state is determined. This scheme can improve the efficiency of risk evaluation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of data analysis technology, specifically to a method and apparatus for long-tail risk assessment of large model training based on degradation experiments. The apparatus may include a long-tail risk assessment device for large model training based on degradation experiments, electronic equipment, computer program products, and computer-readable storage media. Background Technology

[0002] As the scale of model parameters and training data continues to grow, large-scale model training typically relies on computing clusters composed of multiple computing devices. During training, these clusters may be affected by factors such as changes in ambient temperature, hardware differences, power supply fluctuations, and communication load variations, causing fluctuations in the computing or communication performance of the devices. This can lead to a decline in model training performance, or even cause training tasks to be interrupted or fail.

[0003] Among these, long-tail events, such as communication congestion, equipment thermal throttling, and transient communication anomalies, are low-probability but high-impact events that occur infrequently during normal operation but can cause significant performance losses. Existing technologies typically use stress testing to evaluate the performance of computing clusters, but with limited test frequency and duration, it is difficult to effectively observe these long-tail events and obtain corresponding operational data, making it difficult to effectively analyze the performance anomalies caused by these long-tail events. Summary of the Invention

[0004] This application provides a method and apparatus for long-tail risk assessment based on large model training of degradation experiments. The apparatus may include a device for long-tail risk assessment based on large model training of degradation experiments, electronic equipment, computer program products, and computer-readable storage media, which can improve the efficiency of risk assessment.

[0005] A long-tail risk assessment method based on large model training of degradation experiments includes: The operating conditions of the computing cluster are adjusted so that the computing cluster is in an adjusted operating state where the performance degradation is higher than that of the normal operating state; Execute multiple target tasks in the adjusted running state to obtain the state parameter sequence and execution performance parameters of the computing cluster during the execution of the target tasks; For any target task, the degradation states corresponding to multiple state statistical periods are determined based on the state parameter sequence, and the degradation state sequence of the target task is generated in chronological order. Based on the degradation state sequence, the first transition probability between degradation states in normal operation and the second transition probability in adjusted operation are determined respectively for adjacent state statistical periods. The weights corresponding to the target task are determined based on the first transition probability and the second transition probability. Anomaly detection results are generated based on execution performance parameters, and the anomaly detection results are weighted and statistically analyzed according to the weights of multiple target tasks to determine the probability of anomalies occurring in the computing cluster under normal operating conditions.

[0006] Accordingly, embodiments of this application provide a long-tail risk assessment device for large model training based on degradation experiments, comprising: The adjustment unit is used to adjust the operating conditions of the computing power cluster so that the computing power cluster is in an adjusted operating state where the performance degradation is higher than that of the normal operating state. The acquisition unit is used to execute multiple target tasks in the adjusted running state in order to obtain the state parameter sequence and execution performance parameters of the computing cluster during the execution of the target tasks. The generation unit is used to determine the degenerate states corresponding to multiple state statistical periods based on the state parameter sequence for any target task, and generate the degenerate state sequence of the target task in chronological order. The probability determination unit is used to determine, based on the degradation state sequence, the first transition probability between degradation states corresponding to adjacent state statistical periods under normal operating conditions and the second transition probability under adjusted operating conditions. The weight determination unit is used to determine the weight corresponding to the target task based on the first transition probability and the second transition probability. The statistics unit is used to generate anomaly judgment results based on execution performance parameters, and to perform weighted statistics on the anomaly judgment results according to the weights corresponding to multiple target tasks, so as to determine the probability of anomalies occurring in the computing power cluster under normal operating conditions.

[0007] In some embodiments, the acquisition unit may be specifically used to acquire the operation characterization data of the computing power cluster according to a preset acquisition cycle; determine the state parameters of the state statistical cycle corresponding to at least one consecutive acquisition cycle based on the operation characterization data acquired in at least one consecutive acquisition cycle; and combine the state parameters according to the time order of multiple state statistical cycles to obtain a state parameter sequence.

[0008] In some embodiments, the acquisition unit may be specifically used to acquire baseline hardware operating data of the computing cluster under normal operating conditions; compare the hardware operating data acquired within the acquisition period with the baseline hardware operating data to determine the performance degradation parameters of the acquisition period; and determine the hardware performance degradation parameters corresponding to the state statistics period based on the performance degradation parameters corresponding to at least one acquisition period within the state statistics period.

[0009] In some embodiments, the acquisition unit may be specifically used to determine the actual execution time of a computational operation based on computational execution data; acquire the baseline execution time of the computational operation under normal operating conditions; determine the performance degradation parameter corresponding to the computational operation based on the actual execution time and the baseline execution time; and determine the computational performance degradation parameter corresponding to the state statistical period based on the performance degradation parameter corresponding to at least one computational operation within the state statistical period.

[0010] In some embodiments, the acquisition unit may be specifically used to: determine the communication waiting time corresponding to the communication operation based on the communication data; accumulate the communication waiting time within the same training iteration step to obtain the cumulative communication waiting time corresponding to the training iteration step; determine the performance degradation parameter corresponding to the training iteration step based on the proportion of the cumulative communication waiting time in the execution time of the training iteration step; and determine the communication performance degradation parameter corresponding to the state statistics period based on the performance degradation degree corresponding to at least one training iteration step within the state statistics period.

[0011] In some embodiments, the probability determination unit may be specifically used to determine the first transition probability between different degradation states by statistically analyzing the transition between degradation states corresponding to adjacent state statistical periods in multiple historical degradation state sequences obtained by the computing power cluster under normal operating conditions; and to determine the second transition probability between different degradation states by statistically analyzing the transition between degradation states corresponding to adjacent state statistical periods in multiple degradation state sequences obtained by the computing power cluster under adjusted operating conditions.

[0012] In some embodiments, the weight determination unit may be specifically used to calculate the ratio of the first transition probability to the second transition probability of the degenerate state corresponding to the statistical period of adjacent states in the degenerate state sequence; determine the trajectory weight corresponding to the degenerate state sequence based on the ratio; and use the trajectory weight as the weight corresponding to the target task.

[0013] In some embodiments, the adjustment unit may be used to obtain the current state parameters of the computing power cluster; adjust the sampling probabilities corresponding to different tasks under normal operating conditions according to the current state parameters and the impact of different tasks on the performance degradation of the computing power cluster, so as to obtain the adjusted task distribution; and sample the task to be executed according to the adjusted task distribution to determine the target task to be executed under the adjusted operating conditions.

[0014] In some embodiments, the adjustment unit may be used to adjust the computing load or power consumption limit of the computing chip; adjust the relationship between computing operations and data transmission operations on the occupancy of shared hardware resources; and adjust the transmission timing or communication load of multiple communication tasks.

[0015] In some embodiments, the statistical unit may be used to compare the execution performance parameters with preset abnormal conditions to generate an anomaly judgment result corresponding to the target task; to weight the anomaly judgment result according to the weight corresponding to the target task to obtain a weighted anomaly result corresponding to the target task; and to count the weighted anomaly results corresponding to multiple target tasks to determine the probability of anomaly occurrence when the computing power cluster executes the target task under normal operating conditions.

[0016] In some embodiments, the long-tail risk assessment device for large model training based on degradation experiments can be specifically used to determine the performance loss corresponding to a target task based on the execution performance parameters corresponding to multiple target tasks; determine the weighted distribution of the performance loss based on the performance loss and the weight of the target task, and determine the performance loss threshold based on the weighted distribution; and select risky tasks whose performance loss exceeds the performance loss threshold from multiple target tasks based on the comparison result between the performance loss corresponding to the target task and the performance loss threshold.

[0017] In some embodiments, the large-scale model training long-tail risk assessment device based on degradation experiments can be specifically used to acquire state parameters corresponding to multiple risk tasks, determine the performance degradation degree of risk tasks under different degradation factors based on the difference between the state parameters and the baseline state parameters, perform weighted statistics on the performance degradation degree under different degradation factors based on the weights corresponding to the risk tasks, determine the degradation sensitivity corresponding to the degradation factors, and generate a degradation sensitivity heatmap of the computing cluster based on the degradation sensitivity corresponding to the degradation factors and their corresponding computing nodes.

[0018] Furthermore, embodiments of this application also provide an electronic device, including a processor and a memory, wherein the memory stores a computer program, and the processor is used to run the computer program in the memory to execute the long-tail risk assessment method for large model training based on degradation experiments provided in embodiments of this application.

[0019] Furthermore, embodiments of this application also provide a computer-readable storage medium storing a computer program adapted for loading by a processor to execute steps in any of the long-tail risk assessment methods for large model training based on degradation experiments provided in embodiments of this application.

[0020] Furthermore, embodiments of this application also provide a computer program product, including a computer program that, when executed by a processor, implements the steps in the long-tail risk assessment method for large model training based on degradation experiments provided in embodiments of this application.

[0021] This application adjusts the operating conditions of the computing cluster to a state where the performance degradation is higher than the normal operating state. Then, multiple target tasks are executed in the adjusted operating state to obtain the state parameter sequence and execution performance parameters of the computing cluster during the execution of the target tasks. Next, for any target task, the degradation states corresponding to multiple state statistical periods are determined based on the state parameter sequence, and a degradation state sequence for the target task is generated in chronological order. Then, based on the degradation state sequence, the first transition probability between degradation states corresponding to adjacent state statistical periods in the normal operating state and the second transition probability in the adjusted operating state are determined. Then, the weights corresponding to the target tasks are determined based on the first and second transition probabilities. Finally, anomaly judgment results are generated based on the execution performance parameters, and the anomaly judgment results are weighted statistically according to the weights corresponding to multiple target tasks to determine the probability of anomalies occurring in the computing cluster under normal operating conditions. Because this scheme adjusts the operating conditions of the computing cluster, causing unfavorable operating conditions that are low-probability to occur during normal training to occur earlier, and combines a probability correction method to restore the probability of anomalies under normal operating conditions, it achieves the assessment of the reliability of large model training tasks. Therefore, low-probability long-tail failure event samples can be obtained within a limited number of trials, and statistical biases caused by artificial enhancement perturbations can be eliminated through probability correction, thereby achieving an effective evaluation of the hardware reliability of large model training computing power clusters and the success rate of training tasks. Attached Figure Description

[0022] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0023] Figure 1 This is a schematic diagram of a scenario for a long-tail risk assessment method based on a large model training method for degradation experiments, provided in an embodiment of this application. Figure 2 This is a flowchart illustrating the long-tail risk assessment method for large model training based on degradation experiments provided in this application embodiment; Figure 3 This is a schematic diagram of probability density reconstruction provided in an embodiment of this application; Figure 4 This application provides a schematic diagram of the structure of a long-tail risk assessment device for large model training based on degradation experiments, as provided in the embodiments of this application. Figure 5 The present application provides a schematic diagram of the structure of an electronic device. Detailed Implementation

[0024] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0025] This application provides a method and apparatus for long-tail risk assessment of large model training based on degradation experiments. The apparatus may include a long-tail risk assessment device for large model training based on degradation experiments, an electronic device, a computer program product, and a computer-readable storage medium. The long-tail risk assessment device for large model training based on degradation experiments can be integrated into an electronic device, which may be a server or a terminal, etc.

[0026] The server can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery network (CDN), and big data and artificial intelligence platforms. The terminal can be a smartphone, tablet, laptop, desktop computer, smart speaker, smartwatch, smart TV, smart glasses, smart home device, or other smart terminal, but is not limited to these. The terminal and server can be connected directly or indirectly via wired or wireless communication, which is not limited herein.

[0027] For example, see Figure 1Taking the integration of a long-tail risk assessment device for large-scale model training based on degradation experiments into an electronic device as an example, the electronic device can adjust the operating conditions of the computing cluster to a modified operating state where the performance degradation level is higher than the normal operating state. Then, multiple target tasks are executed in the modified operating state to obtain the state parameter sequence and execution performance parameters of the computing cluster during the execution of the target tasks. Next, for any target task, the degradation states corresponding to multiple state statistical periods are determined based on the state parameter sequence, and a degradation state sequence for the target task is generated in chronological order. Then, based on the degradation state sequence, the first transition probability between degradation states corresponding to adjacent state statistical periods in the normal operating state and the second transition probability in the modified operating state are determined. Then, the weights corresponding to the target tasks are determined based on the first and second transition probabilities. Finally, anomaly judgment results are generated based on the execution performance parameters, and the anomaly judgment results are weighted statistically according to the weights corresponding to multiple target tasks to determine the probability of anomalies occurring in the computing cluster under normal operating conditions, thereby improving the efficiency of risk assessment.

[0028] It is understood that, in the specific embodiments of this application, data such as the state parameter sequence and execution performance parameters of the computing power cluster are involved. When the following embodiments of this application are applied to specific products or technologies, permission or consent is required, and the collection, use and processing of related data must comply with the relevant laws, regulations and standards of the relevant countries and regions.

[0029] The following sections provide detailed descriptions of each example. It should be noted that the order in which the embodiments are described is not intended to limit the preferred order of the embodiments.

[0030] This embodiment will be described from the perspective of a long-tail risk assessment device for large model training based on degradation experiments. Specifically, the long-tail risk assessment device for large model training based on degradation experiments can be integrated into an electronic device, which can be a server or a terminal, etc. The terminal can include tablet computers, laptops, personal computers (PCs), wearable devices, virtual reality devices, or other smart devices that can perform data processing.

[0031] like Figure 2 As shown, Figure 2 This is a schematic diagram of an optional flowchart of a long-tail risk assessment method for large model training based on degradation experiments provided in this disclosure. This method can be executed by a server or terminal alone, or by a terminal and server in cooperation. The specific flow of this method is as follows: 101. Adjust the operating conditions of the computing cluster so that the computing cluster is in an adjusted operating state where the performance degradation is higher than the normal operating state.

[0032] Among them, a computing cluster refers to a computing system consisting of multiple computing nodes connected through a high-speed communication network, used to perform artificial intelligence model training, inference, or other large-scale computing tasks.

[0033] The adjusted operating state refers to the operating state of the computing cluster, which is achieved by actively adjusting the operating conditions, task execution conditions, or resource usage conditions to induce the expected performance degradation characteristics. The adjusted operating state is used to obtain samples of performance degradation processes and abnormal events that occur with low probability under normal operating conditions within a limited number of tests.

[0034] The normal operating state refers to the operating state of the computing cluster when it executes the target task according to the preset operating conditions. For example, the operating conditions include task load, resource scheduling method, hardware operating parameters and communication conditions, and the computing cluster is not affected by artificial enhancement or degradation factors.

[0035] The specific methods for adjusting the operating conditions of the computing cluster can be as follows: For example, adjusting the computing load or power consumption limits of the computing chip; adjusting the relationship between computing operations and data transmission operations on shared hardware resources; adjusting at least one of the following: the transmission timing or communication load of multiple communication tasks.

[0036] For example, the computing task load can be adjusted to put the computing chip under high load; power consumption limits, heat dissipation conditions or other hardware operating conditions can be adjusted to cause the computing chip to degrade in performance; the resource access relationship between computing tasks and data transmission tasks can be adjusted to cause resource competition between computing resources and storage resources; the sending method or timing of communication tasks can be adjusted to increase the communication load or cause communication waiting.

[0037] In traditional testing, tasks and loads are typically generated randomly. However, this approach may result in tasks with significant system impacts not being executed frequently, while many less impactful and stable tasks may be repeatedly executed. Therefore, this embodiment aims to increase the probability of tasks with substantial impacts on the performance of the computing cluster during degradation testing. The task distribution under normal operating conditions can be adjusted based on the current operating status of the computing cluster, and the target tasks to be executed can be determined based on the adjusted task distribution.

[0038] The specific methods for adjusting the operating status of the computing cluster can be as follows: For example, obtain the current state parameters of the computing cluster; based on the current state parameters and the impact of different tasks on the performance degradation of the computing cluster, adjust the sampling probabilities corresponding to different tasks under normal operating conditions to obtain the adjusted task distribution; sample the tasks to be executed based on the adjusted task distribution to determine the target task to be executed under the adjusted operating conditions.

[0039] The current state parameters and the state parameters obtained during the execution of the target task use the same or corresponding parameter dimensions to characterize the performance degradation of the computing cluster at different times. The current state parameters are obtained before the target task is determined and characterize the current operating status of the computing cluster before executing the target task. The state parameter sequence is obtained by determining state parameters according to multiple state statistical periods during the execution of the target task and arranging them in chronological order. For example, the current state parameters and the state parameters in the state parameter sequence can include hardware performance degradation parameters, computing performance degradation parameters, and communication performance degradation parameters. The current state parameters are used to adjust task distribution or operating conditions, and the state parameter sequence is used to determine the degradation state change process of the computing cluster during the execution of the target task. The specific state parameter acquisition method in this embodiment is described in step 102.

[0040] For example, before executing the target task, the current state parameters of the computing cluster can be obtained. These parameters characterize the current performance degradation of the computing cluster. Furthermore, a degradation sensitivity function can be pre-set. This function determines the impact of different tasks on the performance degradation of the computing cluster based on the current state parameters and the characteristics of the task to be executed. This impact characterizes the degree to which the computing cluster approaches a preset failure state after the task is executed.

[0041] After determining the impact of different tasks on the performance degradation of the computing cluster, the sampling probabilities of different tasks under normal operating conditions are adjusted to obtain an adjusted task distribution. Specifically, an exponential skew approach can be used to reweight the task distribution under normal operating conditions based on the degradation sensitivity of different tasks, and then normalize the results to obtain the adjusted task distribution. Thus, different tasks in the adjusted task distribution have sampling probabilities corresponding to their degradation impact, ensuring that tasks with low probability of occurrence under normal operating conditions but significant impact on computing cluster performance degradation can be sampled in the degradation experiment.

[0042] Specifically, we can first define the degradation sensitivity function. The stress vector is used to characterize the degree to which the current system state is close to a collapse state. The degradation sensitivity function is used to assess the degree to which the current system state is close to a collapse state; the value of the degradation sensitivity function reflects the degree of degradation of the corresponding system state. For a normalized degraded state, the stress vector is defined as... .in, , and These correspond to hardware performance degradation parameters, computational performance degradation parameters, and communication performance degradation parameters, respectively, and are used to control the acceleration degree of the corresponding degradation factors. Furthermore, the joint probability density is distorted using an exponential skew method to reconstruct the probability density of the proposal distribution, resulting in:

[0043] in, Indicates the proposed distribution. Represents the original distribution. This represents the normalization function used to ensure the sum of probabilities equals 1. The original degradation sensitivity function is normalized according to the proposed distribution. To distort, to make The probability of occurrence of events with significant impact is amplified exponentially, thereby increasing the probability of the corresponding degradation state appearing during the experiment.

[0044] refer to Figure 3 The graph shows the relationship between the degradation state correspondence function, the degradation sensitivity function, and the function after exponential tilting. The horizontal axis represents x; as x increases, the graph shows the relationship between the degradation state correspondence function and the degradation sensitivity function. Gradually decrease, while the degradation sensitivity function The gradual increase indicates that the degree of degradation and its sensitivity differ across different states. Region S1 in the figure represents the distribution area within a smaller range of x values, while region S2 represents the distribution area obtained after probability density reconstruction as x increases. As can be seen from the figure, the degradation sensitivity function... As the exponential tilt increases, the exponential tilt effect is correspondingly enhanced, increasing the probability of events corresponding to higher degradation sensitivity in the original distribution occurring in the proposed distribution.

[0045] Furthermore, the tasks to be executed are resampled according to the adjusted task distribution. Specifically, a resampling module can be set up between the task scheduling module and the task execution module of the training framework, so that the tasks to be executed pass through the resampling module before actual execution. The resampling module determines the sampling result corresponding to the task to be executed based on the adjusted task distribution, and determines whether to execute the corresponding task based on the sampling result.

[0046] For example, the Metropolis-Hastings sampling method can be used to determine the corresponding acceptance probability based on the current task to be executed and the adjusted task distribution; if the current task to be executed is accepted, the task to be executed is identified as the target task and submitted for execution; if the current task to be executed is not accepted, the task to be executed is resampled until the target task for execution is determined.

[0047] After determining the target tasks based on the adjusted task distribution, in order to obtain operational characterization data under different performance degradation conditions, the operating conditions of the computing cluster can be actively adjusted during the execution of the target tasks. Depending on the operational characteristics of different levels of the computing cluster, the adjustment of operating conditions may include at least one of the following: hardware operating condition adjustment, computing resource condition adjustment, and communication condition adjustment.

[0048] First, to address the performance degradation of computing chips due to temperature, heat dissipation, or power consumption limitations, the computing chip's computational load and power consumption limits can be adjusted to induce a hardware performance degradation state. Specifically, computationally intensive operations can be continuously scheduled, and some memory access operations can be reduced or postponed to maintain a high computational load for a preset period. Simultaneously, the power consumption limit can be adjusted through the computing chip's corresponding hardware management interface, subjecting the chip to power consumption limitations under high computational load conditions. As the computing chip continues to operate under high load, its temperature rises accordingly. When the chip temperature reaches a preset temperature limit, or when the operating power consumption is limited by the aforementioned power consumption limit, the computing chip can trigger an adjustment in its operating frequency, causing the actual operating frequency to decrease, thereby resulting in hardware performance degradation.

[0049] Then, to address the increased execution time of computational operations due to contention for shared hardware resources within the node, the execution relationship between computational and data transfer operations can be adjusted. This allows different operations to overlap in time, increasing competition for shared hardware resources. Specifically, data transfer operations can be performed simultaneously with computational operations accessing weighted data or intermediate computational data, enabling both operations to access memory bandwidth, shared cache, or internal interconnect resources concurrently. Furthermore, the storage allocation can be adjusted to distribute the data to be accessed across multiple storage areas, increasing the likelihood of non-contiguous data access or cache misses during computational operations. Under these operating conditions, when multiple operations simultaneously occupy limited memory bandwidth, shared cache, or internal interconnect resources, the data acquisition time for computational operations increases, leading to an increase in the actual execution time of computational operations relative to the baseline execution time under normal operating conditions, thus resulting in performance degradation.

[0050] Next, to address communication contention among multiple computing nodes in distributed computing, the transmission paths, sending sequences, or communication loads of communication tasks can be adjusted to concentrate the execution of multiple communication tasks within a preset time range, thus creating a state of communication performance degradation. Specifically, the communication paths corresponding to different communication flows can be adjusted so that multiple communication flows pass through the same or partially overlapping network links; the sending sequence of different computing nodes during aggregated communication can also be adjusted so that multiple computing nodes that have met the data sending conditions delay sending and concentrate their data sending operations at a preset time point or within a preset time window. When multiple communication tasks are executed concurrently, the communication traffic carried by the corresponding network links increases in a short period of time, which may lead to data queuing in the network links or switching equipment, prolonging the completion time of aggregated communication and further increasing the waiting time for computing nodes to complete communication, thereby causing communication performance degradation.

[0051] 102. Execute multiple target tasks in the adjusted running state to obtain the state parameter sequence and execution performance parameters of the computing cluster during the execution of the target tasks.

[0052] The target task refers to the computational task actually executed by the computing cluster for performance degradation analysis under the adjusted operating state. For example, the target task may include artificial intelligence model training tasks, model inference tasks, data processing tasks, and other tasks that require access to the computing resources of the computing cluster.

[0053] The state parameter sequence refers to a data sequence composed of multiple state parameters, acquired continuously according to a preset state statistical period during the execution of the target task, arranged in chronological order to characterize the operating state of the computing power cluster. The state parameter sequence can characterize the change in the performance state of the computing power cluster over time during the execution of the target task.

[0054] Execution performance parameters refer to parameters used to characterize the execution efficiency and completion status of the target task. For example, execution performance parameters may include at least one of the following: target task execution time, training iteration time, model inference response time, task completion status, performance loss during task execution, etc. Execution performance parameters are used to determine whether an anomaly has occurred in the target task, and, in conjunction with the weights corresponding to the target task, to calculate the probability of an anomaly occurring in the computing cluster under normal operating conditions.

[0055] The specific method for executing the target task in the adjusted running state to obtain the state parameter sequence of the computing cluster and the execution performance parameters of the target task during the execution process can be as follows: For example, the operation characterization data of the computing cluster is acquired according to a preset acquisition cycle; based on the operation characterization data acquired in at least one consecutive acquisition cycle, the state parameters of the state statistical cycle corresponding to at least one consecutive acquisition cycle are determined; the state parameters are combined according to the time order of multiple state statistical cycles to obtain a state parameter sequence.

[0056] The data collection period refers to the time interval during which operational characterization data of the computing cluster is periodically collected during the execution of the target task. Within each collection period, operational characterization data corresponding to the computing cluster is acquired. A status statistics period may include one or more collection periods, and the status parameters corresponding to the status statistics period are determined based on the operational characterization data acquired within that period. The collection period can be set according to the operational characteristics of the computing cluster and data collection requirements.

[0057] Operational characterization data refers to data collected during the execution of the target task, used to characterize the operational status of the computing cluster. For example, operational characterization data may include at least one of hardware operation data, computation execution data, and communication data. Operational characterization data is used to determine the degree of performance degradation of the computing cluster within a corresponding statistical period and further generate corresponding state parameters.

[0058] For example, during the execution of the target task, the acquisition period can be set to 100ms, and the operational performance data of the computing cluster can be continuously acquired according to the acquisition period. Taking five consecutive acquisition periods as a state statistics period as an example, for the first state statistics period, the operational performance data corresponding to the first to fifth acquisition periods are acquired, and statistical processing is performed on the acquired operational performance data to obtain the state parameters corresponding to the first state statistics period. For the second state statistics period, the operational performance data corresponding to the sixth to tenth acquisition periods are acquired, and the state parameters corresponding to the second state statistics period are obtained in the same way, and so on. The state parameters can include hardware performance degradation parameters, computing performance degradation parameters, and communication performance degradation parameters. If the state parameters corresponding to the first state statistical period are (0.05, 0.10, 0.08), the state parameters corresponding to the second state statistical period are (0.08, 0.15, 0.12), and the state parameters corresponding to the third state statistical period are (0.12, 0.22, 0.18), then by combining them according to the time sequence of each state statistical period, we can obtain the state parameter sequence: (0.05, 0.10, 0.08) → (0.08, 0.15, 0.12) → (0.12, 0.22, 0.18).

[0059] Taking the target task of training an artificial intelligence model as an example, during the training process, the computing chip is usually under high load. When the heat dissipation capacity is insufficient, the chip temperature is too high, or the power supply reaches its limit, the chip will automatically reduce its operating frequency or limit its power consumption, resulting in a decrease in actual computing power. Therefore, this embodiment of the application can quantify the decrease in computing power caused by physical environmental factors such as heat dissipation and power supply by monitoring information such as the actual operating frequency and power consumption of the chip, so as to obtain the degree of hardware performance degradation.

[0060] The operational characterization data may include hardware operational data, and the status parameters may include hardware performance degradation parameters. The specific method for determining these hardware performance degradation parameters can be as follows: For example, acquire baseline hardware operating data of the computing cluster under normal operating conditions; compare the hardware operating data acquired within the acquisition period with the baseline hardware operating data to determine the performance degradation parameters of the acquisition period; and determine the hardware performance degradation parameters corresponding to the status statistics period based on the performance degradation parameters corresponding to at least one acquisition period within the status statistics period.

[0061] For example, to avoid significant impacts of the monitoring process on AI training tasks, an out-of-band monitoring method independent of the training task can be adopted. First, independent hardware monitoring programs can be set up on each computing node of the computing cluster. These hardware monitoring programs are independent of the computing programs executing the AI ​​training tasks and directly call the hardware management interfaces provided by the computing chip manufacturers to obtain operational status information. For instance, for computing chips, relevant hardware operating parameters can be obtained through the interface; for other types of computing chips, they can be obtained through the hardware management interfaces provided by the corresponding manufacturers. Since the hardware monitoring program does not rely on the AI ​​training framework for data collection, it can continuously obtain the operational status information of the computing chips even when the training task is under high load, thereby reducing the impact of the training task on the monitoring process.

[0062] Then, the hardware monitoring program can periodically collect hardware operation data of the computing chip according to a preset sampling period. The sampling period can be set according to actual needs, such as 50ms, 75ms, or 100ms. Each sampling acquires at least the following hardware operation data: current chip temperature, reflecting the thermal operating status of the computing chip; current operating frequency, reflecting the actual computing power currently provided by the computing chip; and current power consumption, reflecting the current power supply and power consumption status of the computing chip. Simultaneously, it acquires the power consumption limit, reflecting the maximum allowable power consumption of the computing chip, and obtains the corresponding maximum operating frequency of the computing chip from pre-configured chip parameters. The maximum power consumption and maximum operating frequency are used as baseline hardware operation data under normal operating conditions of the computing chip.

[0063] After obtaining the aforementioned baseline hardware operating data and hardware operating data, the current operating frequency is compared with the maximum operating frequency to calculate the degree of frequency degradation caused by factors such as temperature, thus obtaining the frequency loss rate. The calculation formula is as follows:

[0064] in, This indicates the maximum operating frequency of the computing chip. This indicates the current operating frequency of the computing chip. A higher frequency dropout rate means a more significant decrease in the current operating frequency relative to the maximum operating frequency, indicating a greater impact of physical environmental factors such as heat dissipation on the chip's operation.

[0065] Furthermore, the current power consumption is compared with the maximum power consumption to calculate the power loss rate caused by factors such as power supply limitations. :

[0066] in, This indicates the maximum power consumption of the computing chip. This indicates the current power consumption of the computing chip.

[0067] Finally, to comprehensively reflect the impact of physical environmental factors such as temperature, heat dissipation, and power supply on the performance of the computing chip, the larger value between power consumption degradation rate and frequency degradation rate was selected as the hardware performance degradation parameter. :

[0068] The above method allows us to convert the frequency degradation and power consumption limitations of computing chips into percentage-based hardware performance degradation parameters. When the computing chip is operating normally, the hardware performance degradation parameter is close to 0; when the chip's actual performance deteriorates due to physical environmental factors such as insufficient heat dissipation, excessive temperature, or power supply limitations, the hardware performance degradation parameter increases accordingly.

[0069] During the training or inference of large models, a computational operator may be affected by other tasks simultaneously. For example, while the computational task is being executed, the system may also perform other tasks such as weight reading, data prefetching, or internal node communication. These tasks all use hardware resources such as video memory, cache, and internal communication channels. Since the capacity and bandwidth of these hardware resources are limited, resource preemption or resource contention may occur when multiple tasks use the same hardware resources simultaneously. Therefore, embodiments of this application can determine the degree of computational performance degradation caused by hardware resource contention by recording the actual execution time of the computational operator.

[0070] The runtime characterization data may include computation execution data, and the status parameters may include computation performance degradation parameters. The specific method for determining these computation performance degradation parameters can be as follows: For example, based on the computation execution data, determine the actual execution time of the computation operation; obtain the baseline execution time of the computation operation under normal operating conditions; determine the performance degradation parameters corresponding to the computation operation based on the actual execution time and the baseline execution time; and determine the computation performance degradation parameters corresponding to the state statistical period based on the performance degradation parameters corresponding to at least one computation operation within the state statistical period.

[0071] For example, the hardware resources that can be monitored in this application embodiment include the HBM / GDDR memory controller L2 / L3 shared cache, as well as internal communication resources such as PCIe, NVLink, and HCCS. To avoid the influence of CPU scheduling, operating system scheduling, and other factors on the measurement results, this application embodiment does not directly use CPU time to measure the execution time of the computation operator, but instead uses hardware events provided by the GPU / NPU itself for timing.

[0072] First, the stable execution time of the computation operator can be measured in advance, assuming no other tasks are heavily using video memory, cache, and communication resources, and this time can be saved as a baseline execution time. .

[0073] Then, when starting a large model training or inference program, a pre-compiled interceptor is loaded. This interceptor can temporarily take over the computation process when computation operators are submitted to the GPU / NPU. For example, when the program calls cudaLaunchKernel to start a computation operator, the interceptor can first obtain this call, and then add timing operations before and after the computation operator without changing the original computation process. In this way, the execution time of each computation operator can be automatically obtained without modifying the original program or the large model code.

[0074] Next, before the computation operator begins execution, a start event is recorded in the GPU / NPU execution flow. Then, the original computation operator is allowed to execute normally, and an end event is recorded after the computation operator completes. Since the start and end events are in the same hardware execution flow as the computation operator, the actual execution time of the computation operator on the GPU / NPU can be obtained by the time difference between the start and end events. .

[0075] Then, based on the actual execution time and benchmark execution time The calculation determines how much the actual execution time has increased compared to the baseline execution time, thus obtaining the computational performance degradation parameter. The formula is as follows:

[0076] The larger the computational performance degradation parameter, the more significantly the computational operator slows down compared to the normal state. It also indicates that there may be significant memory bandwidth contention, shared cache contention, or communication resource contention within the current node.

[0077] In the distributed training of large models, frequent ensemble communication is required between different computing nodes. When a network link experiences a short-term congestion, data from some nodes may not arrive in time, requiring other nodes to wait, thus prolonging the entire training process. Therefore, this embodiment of the application does not directly analyze the underlying network packets, but instead records the actual waiting time for communication to complete at the ensemble communication layer, thereby generating communication performance degradation parameters.

[0078] The operational characterization data may include communication data, and the status parameters may include communication performance degradation parameters. The specific method for determining these communication performance degradation parameters can be as follows: For example, based on communication data, determine the communication waiting time corresponding to the communication operation; accumulate the communication waiting time within the same training iteration step to obtain the cumulative communication waiting time corresponding to the training iteration step; determine the performance degradation parameter corresponding to the training iteration step based on the proportion of the cumulative communication waiting time in the execution time of the training iteration step; and determine the communication performance degradation parameter corresponding to the state statistics period based on the performance degradation degree corresponding to at least one training iteration step within the state statistics period.

[0079] For example, monitoring points can be set at key synchronization locations in collective communication libraries such as NCCL and HCCL. These points could include intercepting functions related to communication synchronization or completion waiting, such as ncclGroupEnd and ncclWait. When a node completes data transmission and begins waiting for other nodes, the communication waiting time is recorded. Recording stops when communication is complete and the program resumes execution. This allows for direct determination of whether a training task is experiencing waiting due to communication without parsing the underlying RoCE v2 messages.

[0080] While a node is waiting for communication to complete, it obtains the start time using a high-precision clock such as `clock_gettime(CLOCK_MONOTONIC)`. Once communication is complete and the waiting period ends, it obtains the end time. (Start Time) and end time The difference is the waiting time for this communication. :

[0081] Since computation and communication may occur simultaneously during the training of large models, using only the waiting time of a single communication session cannot accurately reflect the network's impact on the entire training process. Therefore, the total time taken for a complete training iteration step is further recorded during the training process. For example, hooks can be set at key locations such as `optimizer.step()` in the PyTorch training process to determine the time range of training iteration steps. Simultaneously, the communication wait times recorded within each iteration step are accumulated to calculate communication performance degradation parameters. :

[0082] in, Indicates the cumulative communication waiting time. This represents the total training iteration time. The larger the communication performance degradation parameter, the more time is spent waiting for network communication during training, and the more significant the impact of network communication on training efficiency; the smaller the communication performance degradation parameter, the smaller the impact of network communication.

[0083] 103. For any target task, determine the degradation state corresponding to multiple state statistical periods based on the state parameter sequence, and generate the degradation state sequence of the target task in chronological order.

[0084] In this context, "degradation state" refers to the operational state category obtained by classifying the performance degradation of a computing cluster based on the state parameters corresponding to a state statistical period. For example, multiple degradation states and corresponding state conditions can be pre-set. The state parameters corresponding to the state statistical period are then matched with the state conditions to determine the degradation state for that period. For instance, based on the degree of performance degradation from low to high, degradation states can be divided into normal state S0, warning state S1, degradation state S2, and failure state S3. The normal state indicates low system latency and normal operation; the warning state indicates slight heat accumulation or local network fluctuations; the degradation state indicates a significant increase in operator execution time or fluctuations in operating frequency; and the failure state indicates a failure boundary triggering long-tail events. The specific number of degradation states and the corresponding state conditions for each degradation state can be set according to the actual application scenario.

[0085] For example, after obtaining hardware performance degradation parameters, computational performance degradation parameters, and communication performance degradation parameters, a state parameter vector can be obtained. ,in, Indicates parameters related to hardware performance degradation. Indicates computational performance degradation parameters, This represents the communication performance degradation parameter. It should be noted that the collapse of a computing cluster is usually not caused by a catastrophic failure of a single physical layer, but rather by the interaction and cascading effects of multiple sub-optimal states at different levels, leading to a severe decline in the overall performance of the computing cluster. Based on the above, this application embodiment can define a joint failure condition E for the computing cluster. When the state parameter vector satisfies the joint failure condition E, the computing cluster is determined to be in a failure state, and further, it is determined that the system will be interrupted due to the failure, as shown in the following formula:

[0086] in, The pre-defined limit tolerance threshold for the physical environment layer. The pre-defined tolerance threshold for the microarchitecture layer, This refers to the pre-defined tolerance threshold for the communication network layer. Specifically, it refers to the parameter when hardware performance degrades. Exceeding the corresponding limit tolerance threshold When the system determines that the hardware has experienced a performance degradation exceeding the tolerance range; or, when the calculation performance degradation parameters... Exceeding the corresponding threshold Meanwhile, communication performance degradation parameters Exceeding the corresponding threshold When this occurs, the system determines that operator competition expansion and network synchronization blocking simultaneously exceed the tolerance range, thus forming a vicious joint resonance. Furthermore, for state parameters that do not meet the aforementioned joint failure condition, they can be further determined as normal, warning, or degraded states based on other preset state conditions.

[0087] 104. Based on the degraded state sequence, determine the first transition probability of the degraded states in normal operation and the second transition probability in the adjusted operation state between adjacent state statistical periods.

[0088] The transition probability refers to the probability that a computing cluster will transition from one degraded state to another between adjacent state statistical periods. It characterizes the likelihood that the degraded state of the computing cluster will change over time. Specifically, after obtaining the degraded state sequence, the state transitions between different degraded states can be statistically analyzed. For any degraded state, the number of times it is in a different degraded state in the next state statistical period when it is the degraded state corresponding to the previous state statistical period is counted, and the transition probability of the degraded state to different degraded states is determined based on the number of transitions.

[0089] For example, the transition probability obtained by statistically analyzing multiple historical degradation state sequences acquired under normal operating conditions of the computing cluster is called the first transition probability. The first transition probability is used to characterize the probability of a transition between different degradation states under normal operating conditions. The transition probability obtained by statistically analyzing multiple degradation state sequences acquired under adjusted operating conditions of the computing cluster is called the second transition probability. The second transition probability is used to characterize the probability of a transition between different degradation states after the operating conditions have been adjusted.

[0090] The specific method for determining the first transition probability under normal operating conditions and the second transition probability under adjusted operating conditions between adjacent state statistical periods, based on the degradation state sequence, can be as follows: For example, based on multiple historical degradation state sequences obtained by the computing power cluster under normal operating conditions, the transition between degradation states corresponding to adjacent state statistical periods in multiple historical degradation state sequences is statistically analyzed to determine the first transition probability between different degradation states; based on multiple degradation state sequences obtained by the computing power cluster under adjusted operating conditions, the transition between degradation states corresponding to adjacent state statistical periods in multiple degradation state sequences is statistically analyzed to determine the second transition probability between different degradation states.

[0091] For example, when conducting accelerated degradation experiments, the changes in the state of the computing cluster over time can be recorded to form a time series trajectory. .in, Let t represent the degradation state at time point t, where T represents the end time of this experiment, i.e., the time point when long-tail failure is triggered or the maximum number of test steps is reached.

[0092] To mitigate the impact of accelerated testing, it is necessary to obtain the state transition probabilities under both normal operating conditions and accelerated testing conditions. First, the first transition probability under normal operating conditions can be obtained based on the historical degradation state sequence of the computing cluster. Then, a state sequence is formed according to the actual order in which the states occur, and the number of transitions between different states is counted to obtain a counting matrix C. Wherein, Let represent the number of times state i transitions to state j. Therefore, the probability of state i transitioning to state j is as follows:

[0093] This allows us to obtain the state transition probability matrix P under normal operating conditions. Simultaneously, based on the degradation state sequence of the current accelerated degradation test, we obtain the second transition probability under the test conditions. The second transition probability represents the probability that the system will transition from state 1 to state 2 under the adjusted operating state. Transition to state The probability of.

[0094] 105. Determine the weights corresponding to the target task based on the first transition probability and the second transition probability.

[0095] Because the degradation test employs an accelerated approach, failure events occurring during the test are more frequent than under normal operating conditions. Therefore, the data obtained from the test cannot be directly used to assess the risk of long-tail events in actual operation. To address this, embodiments of this application weight the test data, converting the results of the accelerated test into risk results under normal operating conditions.

[0096] The weights corresponding to the target task are determined based on the first transition probability and the second transition probability. The specific method is as follows: For example, calculate the ratio of the first transition probability to the second transition probability of the degraded state corresponding to the statistical period of adjacent states in the degraded state sequence; determine the trajectory weight corresponding to the degraded state sequence based on the ratio; and use the trajectory weight as the weight corresponding to the target task.

[0097] For example, since accelerated testing alters the probability of different states occurring, it is necessary to weight each test trajectory based on the probability differences between normal operating conditions and accelerated testing conditions. For each time series trajectory... As the trial period increases, the cumulative weights are calculated progressively. :

[0098] in, This represents the first transition probability under normal operating conditions. This represents the second transition probability under accelerated testing conditions. In this way, the weight corresponding to each accelerated testing trajectory can be obtained, and this weight can be used to correct subsequent risk calculations, making the data obtained from the accelerated testing closer to the actual situation when the computing cluster is running normally.

[0099] 106. Generate anomaly judgment results based on execution performance parameters, and perform weighted statistics on the anomaly judgment results according to the weights corresponding to multiple target tasks to determine the probability of anomalies occurring in the computing power cluster under normal operating conditions.

[0100] The anomaly detection result is used to characterize whether the execution performance of the target task meets the preset anomaly conditions.

[0101] Among them, the probability of an anomaly occurrence is used to characterize the likelihood of a preset abnormal event occurring when the computing power cluster is executing the target task under normal operating conditions.

[0102] Specifically, anomaly detection results are generated based on execution performance parameters, and these results are weighted and statistically analyzed according to the weights of multiple target tasks to determine the probability of anomalies occurring during normal operation of the computing cluster. The specific method is as follows: For example, performance parameters are compared with abnormal conditions to generate anomaly judgment results for the target task; the anomaly judgment results are weighted according to the weights corresponding to the target task to obtain weighted anomaly results for the target task; and the weighted anomaly results for multiple target tasks are statistically analyzed to determine the probability of anomalies occurring when the computing cluster executes the target task under normal operating conditions.

[0103] For example, after the target task is completed, the execution performance parameters can be compared with preset exception conditions. When the execution performance parameters meet the preset exception conditions, the exception judgment result of the target task is determined to be that an exception has occurred; when the execution performance parameters do not meet the preset exception conditions, the exception judgment result is determined to be that no exception has occurred.

[0104] Specifically, the anomaly detection result can be represented as a preset value: when an anomaly occurs in the target task, the anomaly detection result is 1; when no anomaly occurs in the target task, the anomaly detection result is 0. The anomaly detection result is then combined with the weight corresponding to the target task to obtain the weighted anomaly result for that target task.

[0105] Furthermore, the weighted anomaly results corresponding to multiple target tasks are statistically analyzed to determine the probability of anomalies occurring under normal operating conditions of the computing cluster. In one implementation, when the weights corresponding to multiple target tasks have been normalized, the weighted anomaly results corresponding to multiple target tasks can be accumulated, and the accumulated result can be determined as the probability of anomalies occurring. In another implementation, when the weights have not been normalized, the sum of the weighted anomaly results corresponding to multiple target tasks can be calculated, and the sum of the weighted anomaly results can be normalized according to the sum of the weights corresponding to multiple target tasks to obtain the probability of anomalies occurring.

[0106] In this embodiment of the application, in order to reduce the impact of changes in sampling distribution on performance evaluation results during accelerated degradation testing, the performance loss obtained from accelerated degradation testing can be weighted and statistically analyzed based on the bias reduction weights corresponding to each target task, so as to reconstruct the performance loss under normal operating conditions and further determine the probability that the performance loss exceeds the SLA threshold.

[0107] The specific method for calculating performance loss can be as follows: For example, based on the execution performance parameters corresponding to multiple target tasks, determine the performance loss corresponding to the target task; based on the performance loss corresponding to the target task and the weight corresponding to the target task, determine the weighted distribution of the performance loss, and determine the performance loss threshold based on the weighted distribution; based on the comparison result between the performance loss corresponding to the target task and the performance loss threshold, select risky tasks whose performance loss exceeds the performance loss threshold from multiple target tasks.

[0108] Performance loss characterizes the degree of performance degradation of the computing system during the execution of the target task. The performance loss is determined based on the execution performance parameters corresponding to the target task; a larger performance loss indicates a higher degree of performance degradation during the execution of the target task. The weighted distribution of performance loss characterizes the distribution of each performance loss value and its probability of occurrence after considering the weights corresponding to different target tasks.

[0109] The performance loss threshold is used to distinguish between normal performance loss states and risky performance loss states. The performance loss threshold is determined based on the performance loss and its weights for multiple target tasks.

[0110] Among them, risk tasks refer to target tasks whose performance loss meets preset risk conditions. Risk tasks are used to characterize the task samples corresponding to the computing system in a state of high performance loss, and are used for subsequent analysis of the relationship between different degradation factors and performance risk.

[0111] For example, for the i-th accelerated degradation test trajectory Obtain the performance loss corresponding to this trajectory. A trajectory refers to a set of data recording the execution of the target task and the system's operational status in chronological order during an accelerated degradation test. Performance loss. This represents the actual time taken for a single-step large model to run from start to finish. A longer actual time indicates a greater performance loss. Since the occurrence of different trajectories during accelerated degradation testing differs from that under normal operating conditions, the bias weights corresponding to each trajectory are used... Performance loss for each trajectory The correction is made, and the performance loss corresponding to the N trajectories is averaged to obtain the average performance loss under normal operating conditions. The calculation formula is:

[0112] in, This represents the actual performance loss measured for the i-th trajectory. Let represent the bias reduction weight corresponding to the i-th trajectory, and N represent the total number of trajectories. By using the bias reduction weight to correct the performance loss obtained in the accelerated degradation test, the average performance loss corresponding to normal operation can be obtained.

[0113] Furthermore, obtain the preset SLA threshold. SLA threshold This is used to characterize the maximum allowed runtime. For example, the maximum allowed runtime for a single-step large model can be set to 300ms. Performance loss is then applied to each trajectory. Determine the performance loss Does it exceed the SLA threshold? When performance is lost Exceeding the SLA threshold When, it is determined that the corresponding trajectory has defaulted on the SLA; when performance loss occurs... Not exceeding the SLA threshold At that time, it was determined that no SLA default occurred on the corresponding trajectory. Based on the number of trajectories with SLA defaults and the total number of trajectories, the SLA default probability was determined. The calculation formula is:

[0114] in, The indicative function represents the performance loss corresponding to the i-th trajectory. Exceeding the SLA threshold When the condition is met, the indicator function takes the value of 1; otherwise, the indicator function takes the value of 0.

[0115] To determine the risk of system crashes under different operating conditions and the impact of different computing nodes on system crashes, we can screen for high-risk extreme operating conditions from the system operating data and conduct risk analysis and degradation sensitivity analysis based on these extreme operating conditions.

[0116] The specific methods for determining degradation sensitivity can be as follows: For example, obtain the state parameters corresponding to multiple risk tasks, determine the performance degradation degree of risk tasks under different degradation factors based on the difference between the state parameters and the baseline state parameters; perform weighted statistics on the performance degradation degree under different degradation factors based on the weights corresponding to the risk tasks to determine the degradation sensitivity corresponding to the degradation factors; and generate a degradation sensitivity heatmap of the computing cluster based on the degradation sensitivity corresponding to the degradation factors and their corresponding computing nodes.

[0117] For example, system operation data can be weighted, and the value at risk can be determined based on the resulting data distribution. Value at Risk This is used to characterize the boundary point where the system enters an extreme risk state. Furthermore, data exceeding the risk value is filtered from the system's operational data. The data was used to calculate a weighted average of the selected data, resulting in the conditional value at risk. The calculation formula is as follows:

[0118] In this formula, performance loss represents the performance loss during system operation, and the weight corresponding to the operating condition represents the weight associated with that operating condition. This is achieved through conditional value of risk. To determine the level of risk when the system is in an extreme operating state.

[0119] Furthermore, based on value at risk The corresponding extreme operating data is identified, and reverse analysis is performed on this data to determine the degradation factors that lead to increased system risk. Specifically, system degradation factors are divided into three aspects: hardware, computing operation, and communication, as follows:

[0120] Hardware, computational operation, and communication are used to characterize the system's degradation in their respective aspects. Furthermore, the degree of impact of these three aspects on system risk is obtained as follows:

[0121] After determining the impact of each degradation factor on system risk, the impact level is correlated with the corresponding computing nodes to determine the degradation sensitivity of each computing node. The computing node with a greater impact level has a higher degradation sensitivity, and the computing node with a smaller impact level has a lower degradation sensitivity. A degradation sensitivity heatmap of the computing cluster is generated based on the degradation sensitivity of each computing node. In this heatmap, the degree of degradation impact on different computing nodes and their impact on system crashes are represented by the level of degradation sensitivity. Therefore, the degradation sensitivity heatmap can identify computing nodes that are significantly affected by degradation and those that have a significant impact on system crashes, providing a basis for fault location and node maintenance of the computing cluster.

[0122] As described above, this application adjusts the operating conditions of the computing cluster to achieve a degraded performance state where the cluster's performance is worse than normal. Multiple target tasks are then executed in this adjusted state to obtain the state parameter sequence and execution performance parameters of the computing cluster during task execution. Next, for any target task, the degraded states corresponding to multiple state statistical periods are determined based on the state parameter sequence, and a degraded state sequence for the target task is generated in chronological order. Then, based on the degraded state sequence, the first transition probability between adjacent state statistical periods in normal operation and the second transition probability in the adjusted state are determined. The weights corresponding to the target tasks are then determined based on the first and second transition probabilities. Finally, anomaly judgment results are generated based on the execution performance parameters, and the anomaly judgment results are weighted and statistically analyzed based on the weights of multiple target tasks to determine the probability of anomalies occurring in the computing cluster under normal operation. Because this scheme adjusts the operating conditions of the computing cluster, causing low-probability adverse operating conditions to occur earlier during normal training, and combines this with probability correction methods to restore the probability of anomalies under normal operating conditions, it achieves an assessment of the reliability of large model training tasks. Therefore, low-probability long-tail failure event samples can be obtained within a limited number of trials, and statistical biases caused by artificial enhancement perturbations can be eliminated through probability correction, thereby achieving an effective evaluation of the hardware reliability of large model training computing power clusters and the success rate of training tasks.

[0123] To better implement the above methods, this application also provides a long-tail risk assessment device for large model training based on degradation experiments. This long-tail risk assessment device for large model training based on degradation experiments can be integrated into electronic devices, such as servers or terminals. The terminal may include tablet computers, laptops, and / or personal computers.

[0124] For example, such as Figure 4 As shown, the long-tail risk assessment device for large model training based on degradation experiments may include an adjustment unit 301, an acquisition unit 302, a generation unit 303, a probability determination unit 304, a weight determination unit 305, and a statistics unit 306, as follows: (1) Adjustment unit 301; The adjustment unit 301 is used to adjust the operating conditions of the computing power cluster so that the computing power cluster is in an adjusted operating state where the performance degradation is higher than that of the normal operating state.

[0125] In some embodiments, the adjustment unit 301 can be specifically used to obtain the current state parameters of the computing power cluster; adjust the sampling probability corresponding to different tasks under normal operation based on the current state parameters and the impact of different tasks on the performance degradation of the computing power cluster, so as to obtain the adjusted task distribution; and sample the task to be executed based on the adjusted task distribution to determine the target task to be executed under the adjusted operating state.

[0126] In some embodiments, the adjustment unit 301 can be specifically used to adjust the computing load or power consumption limit of the computing chip; adjust the relationship between computing operations and data transmission operations on the occupation of shared hardware resources; and adjust the sending timing or communication load of multiple communication tasks.

[0127] (2) Obtain unit 302; The acquisition unit 302 is used to execute multiple target tasks in the adjusted running state to obtain the state parameter sequence and execution performance parameters of the computing power cluster during the execution of the target tasks.

[0128] In some embodiments, the acquisition unit may be specifically used to acquire the operation characterization data of the computing power cluster according to a preset acquisition cycle; determine the state parameters of the state statistical cycle corresponding to at least one consecutive acquisition cycle based on the operation characterization data acquired in at least one consecutive acquisition cycle; and combine the state parameters according to the time order of multiple state statistical cycles to obtain a state parameter sequence.

[0129] In some embodiments, the acquisition unit may be specifically used to acquire baseline hardware operating data of the computing cluster under normal operating conditions; compare the hardware operating data acquired within the acquisition period with the baseline hardware operating data to determine the performance degradation parameters of the acquisition period; and determine the hardware performance degradation parameters corresponding to the state statistics period based on the performance degradation parameters corresponding to at least one acquisition period within the state statistics period.

[0130] In some embodiments, the acquisition unit may be specifically used to determine the actual execution time of a computational operation based on computational execution data; acquire the baseline execution time of the computational operation under normal operating conditions; determine the performance degradation parameter corresponding to the computational operation based on the actual execution time and the baseline execution time; and determine the computational performance degradation parameter corresponding to the state statistical period based on the performance degradation parameter corresponding to at least one computational operation within the state statistical period.

[0131] In some embodiments, the acquisition unit may be specifically used to: determine the communication waiting time corresponding to the communication operation based on the communication data; accumulate the communication waiting time within the same training iteration step to obtain the cumulative communication waiting time corresponding to the training iteration step; determine the performance degradation parameter corresponding to the training iteration step based on the proportion of the cumulative communication waiting time in the execution time of the training iteration step; and determine the communication performance degradation parameter corresponding to the state statistics period based on the performance degradation degree corresponding to at least one training iteration step within the state statistics period.

[0132] (3) Generation unit 303; The generation unit 303 is used to determine the degradation states corresponding to multiple state statistical periods based on the state parameter sequence for any target task, and generate the degradation state sequence of the target task in chronological order.

[0133] (4) Probability determination unit 304; The probability determination unit 304 is used to determine, based on the degradation state sequence, the first transition probability between degradation states corresponding to adjacent state statistical periods under normal operating conditions and the second transition probability under adjusted operating conditions.

[0134] In some embodiments, the probability determination unit 304 may be specifically used to determine the first transition probability between different degradation states by statistically analyzing the transition between degradation states corresponding to adjacent state statistical periods in multiple historical degradation state sequences obtained by the computing power cluster under normal operating conditions; and to determine the second transition probability between different degradation states by statistically analyzing the transition between degradation states corresponding to adjacent state statistical periods in multiple degradation state sequences obtained by the computing power cluster under adjusted operating conditions.

[0135] (5) Weight determination unit 305; The weight determination unit 305 is used to determine the weight corresponding to the target task based on the first transition probability and the second transition probability.

[0136] In some embodiments, the weight determination unit 305 may be specifically used to calculate the ratio of the first transition probability to the second transition probability of the degenerate state corresponding to the statistical period of adjacent states in the degenerate state sequence; determine the trajectory weight corresponding to the degenerate state sequence based on the ratio; and use the trajectory weight as the weight corresponding to the target task.

[0137] (6) Statistical Unit 306; The statistics unit 306 is used to generate anomaly judgment results based on execution performance parameters, and to perform weighted statistics on the anomaly judgment results according to the weights corresponding to multiple target tasks, so as to determine the probability of anomalies occurring in the computing power cluster under normal operating conditions.

[0138] In some embodiments, the statistics unit 306 may be specifically used to compare the execution performance parameters with preset abnormal conditions to generate an abnormal judgment result corresponding to the target task; to weight the abnormal judgment result according to the weight corresponding to the target task to obtain a weighted abnormal result corresponding to the target task; and to count the weighted abnormal results corresponding to multiple target tasks to determine the probability of anomaly occurrence when the computing power cluster executes the target task under normal operating conditions.

[0139] In some embodiments, the long-tail risk assessment device for large model training based on degradation experiments can be specifically used to determine the performance loss corresponding to a target task based on the execution performance parameters corresponding to multiple target tasks; determine the weighted distribution of the performance loss based on the performance loss and the weight of the target task, and determine the performance loss threshold based on the weighted distribution; and select risky tasks whose performance loss exceeds the performance loss threshold from multiple target tasks based on the comparison result between the performance loss corresponding to the target task and the performance loss threshold.

[0140] In some embodiments, the large-scale model training long-tail risk assessment device based on degradation experiments can be specifically used to acquire state parameters corresponding to multiple risk tasks, determine the performance degradation degree of risk tasks under different degradation factors based on the difference between the state parameters and the baseline state parameters, perform weighted statistics on the performance degradation degree under different degradation factors based on the weights corresponding to the risk tasks, determine the degradation sensitivity corresponding to the degradation factors, and generate a degradation sensitivity heatmap of the computing cluster based on the degradation sensitivity corresponding to the degradation factors and their corresponding computing nodes.

[0141] In practice, each of the above units can be implemented as an independent entity or can be arbitrarily combined to be implemented as the same or several entities. For the specific implementation of each of the above units, please refer to the previous method embodiments, which will not be repeated here.

[0142] As described above, this application adjusts the operating conditions of the computing cluster to achieve a degraded performance state where the cluster's performance is worse than normal. Multiple target tasks are then executed in this adjusted state to obtain the state parameter sequence and execution performance parameters of the computing cluster during task execution. Next, for any target task, the degraded states corresponding to multiple state statistical periods are determined based on the state parameter sequence, and a degraded state sequence for the target task is generated in chronological order. Then, based on the degraded state sequence, the first transition probability between adjacent state statistical periods in normal operation and the second transition probability in the adjusted state are determined. The weights corresponding to the target tasks are then determined based on the first and second transition probabilities. Finally, anomaly judgment results are generated based on the execution performance parameters, and the anomaly judgment results are weighted and statistically analyzed based on the weights of multiple target tasks to determine the probability of anomalies occurring in the computing cluster under normal operation. Because this scheme adjusts the operating conditions of the computing cluster, causing low-probability adverse operating conditions to occur earlier during normal training, and combines this with probability correction methods to restore the probability of anomalies under normal operating conditions, it achieves an assessment of the reliability of large model training tasks. Therefore, low-probability long-tail failure event samples can be obtained within a limited number of trials, and statistical biases caused by artificial enhancement perturbations can be eliminated through probability correction, thereby achieving an effective evaluation of the hardware reliability of large model training computing power clusters and the success rate of training tasks.

[0143] This application also provides an electronic device, such as... Figure 5 As shown, it illustrates a structural schematic diagram of the electronic device involved in the embodiments of this application, specifically: The electronic device may include components such as a processor 401 with one or more processing cores, a memory 402 with one or more computer-readable storage media, a power supply 403, and an input unit 404. Those skilled in the art will understand that... Figure 5 The structure of the electronic device does not constitute a limitation on the electronic device and may include more or fewer components than shown in the diagram, or combine certain components, or have different component arrangements. Wherein: The processor 401 is the control center of the electronic device, connecting various parts of the device via various interfaces and lines. It executes software programs and / or modules stored in the memory 402, and calls data stored in the memory 402, to perform various functions and process data. Optionally, the processor 401 may include one or more processing cores; preferably, the processor 401 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and applications, and the modem processor mainly handles wireless communication. It is understood that the modem processor may not be integrated into the processor 401.

[0144] The memory 402 can be used to store software programs and modules. The processor 401 executes various functional applications and data processing by running the software programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area. The program storage area may store the operating system, application programs required for at least one function (such as sound playback function, image playback function, etc.), etc.; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 402 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 with access to the memory 402.

[0145] The electronic device also includes a power supply 403 that supplies power to the various components. Preferably, the power supply 403 can be logically connected to the processor 401 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system. The power supply 403 may also include one or more DC or AC power supplies, recharging systems, power fault detection circuits, power converters or inverters, power status indicators, and other arbitrary components.

[0146] The electronic device may also include an input unit 404, which can be used to receive input digital or character information, and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.

[0147] Although not shown, the electronic device may also include a display unit, etc., which will not be described in detail here. Specifically, in this embodiment, the processor 401 in the electronic device loads the executable files corresponding to the processes of one or more computer programs into the memory 402 according to the following instructions, and the processor 401 runs the computer programs stored in the memory 402 to realize various functions.

[0148] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.

[0149] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be performed by instructions, or by instructions controlling related hardware. These instructions can be stored in a computer-readable storage medium and loaded and executed by a processor.

[0150] Therefore, embodiments of this application provide a computer-readable storage medium storing a computer program that can be loaded by a processor to execute steps in any of the long-tail risk assessment methods for large model training based on degradation experiments provided in embodiments of this application.

[0151] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.

[0152] The computer-readable storage medium may include: read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.

[0153] Since the computer program stored in the computer-readable storage medium can execute the steps in any of the long-tail risk assessment methods for large model training based on degradation experiments provided in the embodiments of this application, the beneficial effects that any of the long-tail risk assessment methods for large model training based on degradation experiments provided in the embodiments of this application can achieve can be realized, as detailed in the preceding embodiments, and will not be repeated here.

[0154] According to one aspect of this application, a computer program product or computer program is provided, comprising computer instructions stored in a computer-readable storage medium. A processor of an electronic device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the electronic device to perform the methods provided in the various alternative implementations of the data processing described above.

[0155] The foregoing has provided a detailed description of the long-tail risk assessment method and apparatus for large model training based on degradation experiments provided in the embodiments of this application. The related apparatus may include a long-tail risk assessment device for large model training based on degradation experiments, electronic equipment, computer program products, and computer-readable storage media. Specific examples have been used to illustrate the principles and implementation methods of the present invention. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of the present invention. Furthermore, those skilled in the art will recognize that, based on the ideas of the present invention, there will be changes in the specific implementation methods and application scope. Therefore, the content of this specification should not be construed as a limitation of the present invention.

Claims

1. A long-tail risk assessment method for large model training based on degradation experiments, characterized in that, include: The operating conditions of the computing power cluster are adjusted so that the computing power cluster is in an adjusted operating state where the performance degradation is higher than that of the normal operating state; In the adjusted operating state, multiple target tasks are executed to obtain the state parameter sequence and execution performance parameters of the computing power cluster during the execution of the target tasks; For any of the target tasks, the degradation states corresponding to multiple state statistical periods are determined based on the state parameter sequence, and the degradation state sequence of the target task is generated in chronological order. Based on the degradation state sequence, the first transition probability between degradation states corresponding to adjacent state statistical periods under the normal operating state and the second transition probability under the adjusted operating state are determined respectively. The weight corresponding to the target task is determined based on the first transition probability and the second transition probability; Anomaly judgment results are generated based on the execution performance parameters, and the anomaly judgment results are weighted and statistically analyzed according to the weights corresponding to the multiple target tasks to determine the probability of anomalies occurring in the computing power cluster under normal operating conditions.

2. The method for assessing the long-tail risk of large model training based on degradation experiments according to claim 1, characterized in that, The process involves executing multiple target tasks in the adjusted operating state to obtain a sequence of state parameters and execution performance parameters of the computing cluster during the execution of the target tasks, including: The operational performance data of the computing cluster is acquired according to a preset acquisition cycle; Based on the operational characterization data acquired within at least one consecutive acquisition cycle, determine the state parameters of the state statistics cycle corresponding to the at least one consecutive acquisition cycle. The state parameters are combined according to the time sequence of multiple state statistical periods to obtain the state parameter sequence.

3. The method for assessing the long-tail risk of large model training based on degradation experiments according to claim 2, characterized in that, The operational characterization data includes hardware operational data, and the status parameters include hardware performance degradation parameters. Determining the status parameters for the status statistical period corresponding to the at least one consecutive acquisition cycle based on the operational characterization data acquired within at least one consecutive acquisition cycle includes: Obtain the baseline hardware operation data of the computing cluster under the normal operating state; The hardware operating data acquired during the acquisition period is compared with the benchmark hardware operating data to determine the performance degradation parameters of the acquisition period. The hardware performance degradation parameter corresponding to the state statistics period is determined based on the performance degradation parameter corresponding to at least one acquisition period within the state statistics period.

4. The method for assessing the long-tail risk of large model training based on degradation experiments according to claim 2, characterized in that, The operational characterization data includes computational execution data, and the status parameters include computational performance degradation parameters. The step of determining the status parameters for the status statistical period corresponding to the at least one consecutive acquisition period based on the operational characterization data acquired within at least one consecutive acquisition period includes: Based on the computation execution data, determine the actual execution time of the computation operation; Obtain the baseline execution time of the computation operation under the normal operating conditions; Based on the actual execution time and the baseline execution time, determine the performance degradation parameters corresponding to the computation operation; The computational performance degradation parameter corresponding to the state statistical period is determined based on the performance degradation parameter corresponding to at least one computational operation within the state statistical period.

5. The method for assessing the long-tail risk of large model training based on degradation experiments according to claim 2, characterized in that, The operational characterization data includes communication data, and the status parameters include communication performance degradation parameters. Determining the status parameters for the status statistics period corresponding to the at least one consecutive acquisition period based on the operational characterization data acquired within at least one consecutive acquisition period includes: Based on the communication data, determine the communication waiting time corresponding to the communication operation; The communication waiting time within the same training iteration step is accumulated to obtain the cumulative communication waiting time corresponding to the training iteration step; The performance degradation parameter corresponding to the training iteration step is determined based on the proportion of the cumulative communication waiting time in the execution time of the training iteration step. Based on the degree of performance degradation corresponding to at least one training iteration step within the state statistics period, the communication performance degradation parameter corresponding to the state statistics period is determined.

6. The method for assessing the long-tail risk of large model training based on degradation experiments according to claim 1, characterized in that, The step of determining, based on the degradation state sequence, the first transition probability between degradation states corresponding to adjacent state statistical periods under the normal operating state and the second transition probability under the adjusted operating state includes: Based on multiple historical degradation state sequences obtained by the computing power cluster under normal operating conditions, the transition between degradation states corresponding to adjacent state statistical periods in the multiple historical degradation state sequences is statistically analyzed to determine the first transition probability between different degradation states. Based on multiple degraded state sequences obtained by the computing power cluster under the adjusted operating state, the transition between degraded states corresponding to adjacent state statistical periods in the multiple degraded state sequences is statistically analyzed to determine the second transition probability between different degraded states.

7. The method for assessing the long-tail risk of large model training based on degradation experiments according to claim 1, characterized in that, Determining the weight corresponding to the target task based on the first transition probability and the second transition probability includes: Calculate the ratio of the first transition probability to the second transition probability of the degenerate state corresponding to the statistical period of adjacent states in the degenerate state sequence; Based on the ratio, determine the trajectory weights corresponding to the degraded state sequence; The trajectory weights are used as the weights corresponding to the target task.

8. The method for assessing the long-tail risk of large model training based on degradation experiments according to claim 1, characterized in that, The adjustment of the operating conditions of the computing cluster includes: Obtain the current status parameters of the computing cluster; Based on the current state parameters and the impact of different tasks on the performance degradation of the computing cluster, the sampling probabilities corresponding to different tasks under normal operating conditions are adjusted to obtain the adjusted task distribution; The tasks to be executed are sampled according to the adjusted task distribution to determine the target tasks to be executed in the adjusted running state.

9. The method for assessing the long-tail risk of large model training based on degradation experiments according to claim 1, characterized in that, The adjustment of the operating conditions of the computing power cluster also includes at least one of the following: Adjust the computing load or power consumption limits of the computing chip; Adjust the relationship between computing operations and data transmission operations on shared hardware resources; Adjust the sending timing or communication load of multiple communication tasks.

10. The method for assessing the long-tail risk of large model training based on degradation experiments according to claim 1, characterized in that, The step of generating an anomaly judgment result for the target task based on the execution performance parameters, and performing weighted statistics on the anomaly judgment result according to the weights corresponding to multiple target tasks, to determine the probability of an anomaly occurring when the computing power cluster executes the target task under the normal operating state, includes: The execution performance parameters are compared with preset exception conditions to generate an exception judgment result corresponding to the target task; The anomaly judgment result is weighted according to the weight corresponding to the target task to obtain the weighted anomaly result corresponding to the target task; The weighted anomaly results corresponding to the multiple target tasks are statistically analyzed to determine the probability of anomalies occurring when the computing power cluster executes the target tasks under normal operating conditions.

11. The method for assessing the long-tail risk of large model training based on degradation experiments according to claim 1, characterized in that, The method further includes: Based on the execution performance parameters corresponding to the multiple target tasks, determine the performance loss corresponding to each target task; Based on the performance loss corresponding to the target task and the weight corresponding to the target task, a weighted distribution of the performance loss is determined, and a performance loss threshold is determined based on the weighted distribution. Based on the comparison between the performance loss corresponding to the target task and the performance loss threshold, risky tasks whose performance loss exceeds the performance loss threshold are selected from the plurality of target tasks.

12. The method for assessing the long-tail risk of large model training based on degradation experiments according to claim 11, characterized in that, The method further includes: Obtain the state parameters corresponding to multiple risk tasks, and determine the performance degradation degree of the risk tasks under different degradation factors based on the difference between the state parameters and the baseline state parameters. Based on the weights corresponding to the risk tasks, the performance degradation degree under different degradation factors is statistically weighted to determine the degradation sensitivity corresponding to the degradation factors. Based on the degradation sensitivity corresponding to the degradation factors and their corresponding computing nodes, a degradation sensitivity heatmap of the computing cluster is generated.

13. A long-tail risk assessment device for large-scale model training based on degradation experiments, characterized in that, include: The adjustment unit is used to adjust the operating conditions of the computing power cluster so that the computing power cluster is in an adjusted operating state where the performance degradation is higher than that of the normal operating state. The acquisition unit is used to execute multiple target tasks in the adjusted operating state to acquire the state parameter sequence and execution performance parameters of the computing power cluster during the execution of the target tasks. The generation unit is configured to, for any one of the target tasks, determine the degradation states corresponding to multiple state statistical periods based on the state parameter sequence, and generate a degradation state sequence of the target task in chronological order. The probability determination unit is used to determine, based on the degradation state sequence, the first transition probability between degradation states corresponding to adjacent state statistical periods under the normal operating state and the second transition probability under the adjusted operating state. The weight determination unit is used to determine the weight corresponding to the target task based on the first transition probability and the second transition probability; The statistics unit is used to generate anomaly judgment results based on the execution performance parameters, and to perform weighted statistics on the anomaly judgment results based on the weights corresponding to the multiple target tasks, so as to determine the probability of anomaly occurrence of the computing power cluster under the normal operation state.

14. An electronic device, characterized in that, It includes a processor and a memory, the memory storing a computer program, and the processor running the computer program in the memory to perform the steps in the long-tail risk assessment method for large model training based on degradation experiments as described in any one of claims 1 to 12.

15. A computer program product, comprising a computer program, characterized in that, When executed by a processor, the computer program implements the steps in the long-tail risk assessment method for large model training based on degradation experiments as described in any one of claims 1 to 12.

16. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program adapted for loading by a processor to perform the steps of the long-tail risk assessment method for large model training based on degradation experiments as described in any one of claims 1 to 12.