Task management method and related system

By multi-dimensional scoring of the prediction results and confidence of the AI ​​model, unknown tasks are identified, which solves the problem of performance degradation and low recognition rate of the AI ​​model in open domain data, improves the recognition accuracy and provides targeted processing solutions.

CN118656179APending Publication Date: 2024-09-17HUAWEI CLOUD COMPUTING TECHNOLOGIES CO LTD
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202310218421.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-08
Publication Date
2024-09-17

AI Technical Summary

Technical Problem

The performance of existing AI models declines in open domain data, especially the recognition rate of unknown tasks is not high, resulting in recognition errors and limited application value in actual deployment.

Method used

By further mining the prediction results and output layer confidence of the task model output, we can obtain multi-dimensional uncertainty factor scores, identify unknown samples, and solve the problem of low recognition rate caused by the overlapping range of the task model output category scores.

Benefits of technology

It improves the accuracy of unknown task recognition, provides sources of uncertainty for targeted processing, and improves the recognition performance of AI models in open domain data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118656179A
    Figure CN118656179A
Patent Text Reader

Abstract

The invention provides a task management method, which is applied to the field of artificial intelligence (AI) and is executed by a task management system, the task management system is used for identifying unknown tasks or known tasks of which to-be-identified samples are task models, and the method comprises the following steps: receiving the to-be-identified samples input by a user, obtaining a prediction result of the task model for the to-be-identified sample and a confidence coefficient output by an output layer of the task model, and obtaining a score of a multi-dimensional uncertainty factor according to the prediction result and the confidence coefficient, and inputting the score of the multi-dimensional uncertainty factor into the unknown task identification meta-model for reasoning to obtain a reasoning result for identifying the to-be-identified sample as an unknown task or a known task. According to the method, the score of the multi-dimensional uncertainty factor is obtained by further mining the prediction result and the confidence coefficient, and the unknown sample is identified through the score of the multi-dimensional uncertainty factor, so that the identification rate is improved, and the problem of low identification rate caused by repeated score ranges is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of artificial intelligence (AI) technology, and in particular to a task management method, system, computing device cluster, computer-readable storage medium, and computer program product. Background Art

[0002] In recent years, data-driven artificial intelligence (AI) technology has exploded in various fields, but AI models trained with closed-set data often suffer from performance degradation when reasoning about real-world open-domain data. For example, in industrial quality inspection tasks, the detection accuracy of AI models drops by more than 80% due to different working conditions of different steel coils. For another example, in robot inspection tasks, due to the different complexity of training and test data sets, the intersection over union (IoU) of curb segmentation drops by more than 50%.

[0003] Among them, samples in open domain data that cause performance degradation of AI models are called unknown tasks, and samples that do not cause performance degradation of AI models are called known tasks. The problem of unknown tasks causing performance degradation of AI models is a challenge that must be faced in the actual deployment of AI models. At present, the industry usually identifies unknown tasks first, and then performs incremental learning and other processing on unknown tasks to cope with the above challenges.

[0004] Unknown task recognition methods include open set recognition, new class recognition, anomaly detection, out-of-distribution detection, outlier detection, and corner case detection. However, the recognition rates of the above methods are not high and are difficult to meet business needs. Summary of the invention

[0005] The present application provides a task management method, which further mines the prediction results output by the task model and the confidence of different categories output by the output layer of the task model to obtain the scores of multi-dimensional uncertainty factors. The unknown samples are identified by the scores of multi-dimensional uncertainty factors, which can solve the problem that the score ranges of known samples and unknown samples of each output category of the task model have a certain overlap, resulting in a low recognition rate. The present application also provides a task management system, a computing device cluster, a computer-readable storage medium, and a computer program product corresponding to the above method.

[0006] In the first aspect, the present application provides a task management method. The method can be performed by a task management system. The task management system is used to identify unknown tasks or known tasks for which the samples to be identified are task models, and the task model is a data-driven artificial intelligence AI model for processing samples to be identified. The task management system can be a software system, which can be deployed in a computing device cluster, for example, in a cloud computing cluster provided by a cloud service provider, or in an edge computing cluster. The computing device cluster executes the program code of the software system to execute the task management method of the present application. In some possible implementations, the task management system can also be a hardware system, for example, a computing device cluster with task management functions such as unknown task identification. When the hardware system is running, the task management method of the present application is executed.

[0007] Specifically, the task management system can receive the sample to be identified input by the user, obtain the prediction result of the task model for the sample to be identified and the confidence output of the output layer (for example, the last layer) of the task model, and then obtain the score of the multi-dimensional uncertainty factor based on the prediction result and the confidence, and input the score of the multi-dimensional uncertainty factor into the unknown task identification meta-model for reasoning, and obtain the reasoning result for identifying the sample to be identified as an unknown task or a known task.

[0008] This method further mines the prediction results of the task model output and the confidence of different categories of the output layer of the task model to obtain the scores of multi-dimensional uncertainty factors. The unknown samples (unknown tasks) can be identified by the scores of multi-dimensional uncertainty factors, which can solve the problem that the score ranges of known samples and unknown samples of each output category of the task model have a certain overlap, resulting in a low recognition rate. Compared with the solution of identifying unknown samples based on the distribution of scores of known samples and unknown samples, this method improves the recognition rate.

[0009] In some possible implementations, the multi-dimensional uncertainty factors include at least one of distribution uncertainty or data uncertainty and model uncertainty. Distribution uncertainty refers to the uncertainty caused by the different distributions of training data and test data (that is, there is a distribution shift between the training data set and the test data set). Among them, the distribution shift may include covariance shift, semantic shift, and concept shift. Data uncertainty refers to the irreducible uncertainty caused by the natural complexity of data (such as class overlap, label noise, homoscedasticity and heteroscedasticity noise) (for example, training samples in the training data set). Data uncertainty is specifically manifested in that when there is label noise in the training samples in the training data set, or the training samples are distributed on the decision boundary, the task model will give prediction results with similar confidence. Distribution uncertainty is specifically manifested in that the task model has not seen the test data set during the training process, and may give unreliable random prediction results for the test data. Model uncertainty refers to the uncertainty caused by insufficient model training (insufficient training rounds, inappropriate training step size) given a training data set. Specifically, the task model may give two opposite prediction results with high confidence for two very similar samples.

[0010] This method can improve the accuracy of unknown task identification by measuring uncertainty in a fine-grained manner from dimensions such as distribution uncertainty, data uncertainty or model uncertainty.

[0011] In some possible implementations, the uncertainty factor includes model uncertainty, and the score of model uncertainty is obtained based on the prediction results of the task model for the sample to be identified and the prediction results of the task model for the perturbed sample. Perturbed samples refer to samples that are considered similar by the human eye. Specifically, the task management system can obtain perturbed samples, input the perturbed samples into the task model, and obtain the prediction results of the task model for the perturbed samples. The task management system can obtain the score of model uncertainty based on the difference between the prediction results of the task model for the sample to be identified and the prediction results of the task model for the perturbed sample, or based on the degree of performance degradation determined by the prediction results.

[0012] When the task model is not fully trained, it may give two opposite prediction results with high confidence for two very similar samples. Therefore, this method constructs perturbation samples and determines the score of model uncertainty according to the prediction results of the task model for the identified samples and the perturbation samples, so as to achieve accurate measurement of model uncertainty.

[0013] In some possible implementations, the perturbation sample includes a sample obtained by processing the sample to be identified according to a perturbation parameter that obeys a target distribution or an adversarial sample of the sample to be identified. Specifically, the task management system supports generating perturbation samples based on a sensitivity analysis method or an adversarial sample generation method.

[0014] Based on sensitivity analysis: In the Bayesian framework, variational inference and Monte Carlo dropout can be used to measure model uncertainty and obtain a model uncertainty score. Many networks in deterministic deep learning models do not have a dropout module, but Monte Carlo dropout can be generalized to randomly multiply the model parameters by zero or one according to the Bernoulli distribution, and then generalized to multiplicative Gaussian dropout of the parameters. Considering the security of the model, when the user is unwilling to upload the task model to the unknown task recognition meta-model, this application supports migrating the source of this uncertainty from the model parameters to the sample data. Experiments and theories have proved that the uncertainty of sample data can approximately simulate the uncertainty measured by Monte Carlo dropout, thereby completing the uncertainty measurement of the task model. In other words, the task management system can process the identification samples according to the perturbation parameters that obey the target distribution (such as Bernoulli distribution, multiplicative Gaussian distribution) to obtain perturbation samples.

[0015] Adversarial sample generation method: Through black-box adversarial attack or white-box adversarial attack, a tiny amount of perturbation invisible to the human eye is made to the sample to be identified to obtain an adversarial sample, which can be used to attack the task model. The adversarial sample can be used as a perturbation sample. The more the performance of the task model is degraded by the adversarial sample, the greater the model uncertainty of the task model.

[0016] This method can generate perturbation samples for different types of tasks using methods corresponding to the task types to measure model uncertainty, and has high usability.

[0017] In some possible implementations, the uncertainty factor includes distribution uncertainty or data uncertainty. The score of the distribution uncertainty or the score of the data uncertainty is obtained according to the distribution of the confidence. The confidence may be the confidence of multiple output categories of the task model, which may be represented by a vector. The task management system may accurately measure the distribution uncertainty and the data uncertainty based on the distribution of the confidence of multiple output categories of the task model.

[0018] In some possible implementations, the confidence output by the output layer of the task model includes an intra-class score. Compared with the inter-class score, which mainly measures the difference between samples of different classes, the intra-class score is mainly used to measure the difference between samples within a class. For example, the intra-class score may include logits. Since the normalized exponential function (softmax) operation will cause a certain amount of information loss, and the maximum value of the intra-class score, such as maxLogit, can also indicate an unknown task to a certain extent, the task management system can perform a normalized exponential function on the intra-class score to obtain a data uncertainty score, or it can obtain a distribution uncertainty score based on the maximum value of the intra-class score. That is, the score of the data uncertainty is obtained by performing a normalized exponential function on the intra-class score, and the score of the distribution uncertainty is the maximum value of the intra-class score.

[0019] This method takes into account that the softmax operation will cause a certain amount of information loss, and maxLogit can also indicate unknown tasks to a certain extent. Therefore, the above two methods can be combined to comprehensively measure uncertainty and thus ensure the accuracy of unknown task identification.

[0020] In some possible implementations, when the sample to be identified is an unknown task, the task management system can also obtain the source of uncertainty of the unknown task based on the score of the multi-dimensional uncertainty factor. For example, the task management system can compare the score of the multi-dimensional uncertainty factor with the corresponding threshold value to identify the source of uncertainty of the unknown task. The task management system can also present the source of uncertainty to the user. This can help users clarify that the cause of the unknown task is mainly model uncertainty, data uncertainty or distribution uncertainty, so as to facilitate subsequent targeted processing.

[0021] In some possible implementations, the priority of model uncertainty is higher than that of distribution uncertainty or data uncertainty. When identifying the uncertainty source of an unknown task, the task management system may prioritize whether the model uncertainty is a dominant factor.

[0022] Traditional methods are usually not able to measure model uncertainty because the trained deterministic task model cannot be changed. This method not only measures model uncertainty when identifying unknown tasks, but also considers the dependency between model uncertainty and data uncertainty and distribution uncertainty, and gives priority to measuring model uncertainty. This fine-grained way of measuring uncertainty replaces the overall way of measuring uncertainty, which can more accurately identify unknown tasks and achieve better performance.

[0023] In some possible implementations, the task management system can also provide an uncertainty resolution strategy corresponding to the uncertainty source based on the uncertainty source. When model uncertainty is the dominant factor, that is, when the model uncertainty of the task model is strong, the uncertainty resolution strategy can be to fully train the task model (for example, to increase the number of training rounds) to improve the robustness of the task model on the training data set. When distribution uncertainty is the dominant factor, the uncertainty resolution strategy can be to add the test data in the test data set to the training data set to expand the distribution range of the training data set. When data uncertainty is the dominant factor, the uncertainty resolution strategy can be to reduce sample noise.

[0024] In some possible implementations, when the sample to be identified is an unknown task, if the sample to be identified is partially related to a known task, the task management system can also process the sample to be identified in combination with the knowledge corresponding to the known task; if the sample to be identified is not related to the known task, the task management system can also process the sample to be identified through a mechanism model.

[0025] The method can obtain better task processing results by adopting an appropriate task processing method to process the task based on the relationship between the sample to be identified and the known task, such as partial correlation or irrelevance.

[0026] In some possible implementations, when the task model changes, the task management system can also update the unknown task identification metamodel. Specifically, the task management system can determine to update the unknown task identification metamodel when the degree of change in the network structure, network parameters, and samples reaches a preset degree, or the degree of change in performance reaches a preset degree. The unknown task identification metamodel can adapt to multiple task models. In this way, the unknown task identification function is pluggable.

[0027] In some possible implementations, the unknown task identification metamodel is trained in the following manner: obtaining the prediction results of the task model for the training samples and the confidence of the output layer output of the task model; obtaining the scores of multi-dimensional uncertainty factors according to the prediction results of the task model for the training samples and the confidence of the output layer output of the task model, and obtaining the true value of the unknown task identification metamodel for the training samples according to the prediction results of the task model for the training samples and the true value of the task model for the training samples; using the scores of the multi-dimensional uncertainty factors as input and the true value of the unknown task identification metamodel for the training samples as a supervisory signal, and using supervised learning to train the unknown task identification metamodel.

[0028] This method trains an unknown task recognition meta-model through supervised learning. The unknown task recognition meta-model has good learning ability and can learn the relationship between features in samples to provide a basis for subsequent unknown task recognition.

[0029] In some possible implementations, the task management system includes a training subsystem and an unknown task identification subsystem, the training subsystem is deployed in a cloud environment, and the unknown task identification subsystem is deployed in an edge environment. This method can fully utilize the massive resources of the cloud environment for training and the low latency characteristics of the edge environment for reasoning through edge-cloud integration to ensure overall performance.

[0030] In a second aspect, the present application provides a task management system. The task management system is used to identify unknown tasks or known tasks for which the samples to be identified are task models, wherein the task model is a data-driven artificial intelligence AI model for processing samples to be identified, and the system includes:

[0031] An interactive module, used to receive samples to be identified input by a user;

[0032] An unknown task identification module is used to obtain the prediction result of the task model for the sample to be identified and the confidence output of the output layer of the task model, obtain the score of the multi-dimensional uncertainty factor according to the prediction result and the confidence, input the score of the multi-dimensional uncertainty factor into the unknown task identification meta-model for reasoning to obtain an inference result, and the inference result is used to identify the sample to be identified as an unknown task or a known task.

[0033] In some possible implementations, the multi-dimensional uncertainty factors include at least one of distribution uncertainty or data uncertainty and model uncertainty.

[0034] In some possible implementations, the uncertainty factor includes model uncertainty, and the score of the model uncertainty is obtained according to the prediction result of the task model for the sample to be identified and the prediction result of the task model for the disturbed sample.

[0035] In some possible implementations, the perturbed sample includes a sample obtained by processing the sample to be identified according to a perturbation parameter that obeys a target distribution or an adversarial sample of the sample to be identified.

[0036] In some possible implementations, the uncertainty factor includes distribution uncertainty or data uncertainty, and a score of the distribution uncertainty or a score of the data uncertainty is obtained according to the distribution of the confidence level.

[0037] In some possible implementations, the confidence output by the output layer of the task model includes an in-class score, the score of the data uncertainty is obtained by performing a normalized exponential function on the in-class score, and the score of the distribution uncertainty is the maximum value of the in-class score.

[0038] In some possible implementations, when the sample to be identified is an unknown task, the system further includes:

[0039] The module for determining the cause of the unknown task is used to obtain the uncertainty source of the unknown task according to the scores of the multi-dimensional uncertainty factors and present the uncertainty source to the user.

[0040] In some possible implementations, the unknown task occurrence cause determination module is further configured to:

[0041] According to the uncertainty source, an uncertainty resolution strategy corresponding to the uncertainty source is provided.

[0042] In some possible implementations, when the sample to be identified is an unknown task, the system further includes:

[0043] The unknown task processing module is used to process the sample to be identified if it is partially related to the known task, combining the knowledge corresponding to the known task; if the sample to be identified is not related to the known task, processing the sample to be identified through a mechanism model.

[0044] In some possible implementations, the unknown task identification module is further used to:

[0045] When the task model is changed, the unknown task identification meta-model is updated.

[0046] In some possible implementations, the system further includes:

[0047] A training module is used to obtain the prediction results of the task model for the training samples and the confidence of the output layer output of the task model, obtain the scores of multi-dimensional uncertainty factors according to the prediction results of the task model for the training samples and the confidence of the output layer output of the task model, and obtain the true value of the unknown task recognition metamodel for the training samples according to the prediction results of the task model for the training samples and the true value of the task model for the training samples, and use supervised learning to train the unknown task recognition metamodel with the scores of the multi-dimensional uncertainty factors as input and the true value of the unknown task recognition metamodel for the training samples as a supervisory signal.

[0048] In some possible implementations, the system includes a training subsystem and an unknown task identification subsystem, the unknown task identification subsystem includes the unknown task identification module, the training subsystem includes the training module, the training subsystem is deployed in a cloud environment, and the unknown task identification subsystem is deployed in an edge environment.

[0049] In a third aspect, the present application provides a computing device cluster. The computing device cluster includes at least one computing device, and the at least one computing device includes at least one processor and at least one memory. The at least one processor and the at least one memory communicate with each other. The at least one processor is used to execute instructions stored in the at least one memory, so that the computing device or the computing device cluster executes the task management method described in the first aspect or any implementation of the first aspect.

[0050] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores instructions, wherein the instructions instruct a computing device or a computing device cluster to execute the task management method described in the first aspect or any one of the implementations of the first aspect.

[0051] In a fifth aspect, the present application provides a computer program product comprising instructions, which, when executed on a computing device or a computing device cluster, enables the computing device or the computing device cluster to execute the task management method described in the first aspect or any one of the implementations of the first aspect.

[0052] Based on the implementations provided in the above aspects, this application can also be further combined to provide more implementations. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] In order to more clearly illustrate the technical method of the embodiments of the present application, the drawings required for use in the embodiments are briefly introduced below.

[0054] Figure 1 A schematic diagram of the architecture of a task management system provided in an embodiment of the present application;

[0055] Figure 2 A schematic diagram of a deployment form of a task management system provided in an embodiment of the present application;

[0056] Figure 3 A flowchart of a task management method provided in an embodiment of the present application;

[0057] Figure 4 A data flow diagram of a task management method provided in an embodiment of the present application;

[0058] Figure 5A schematic diagram of the deployment form of a task management system in a robot inspection scenario provided in an embodiment of the present application;

[0059] Figure 6 A data flow diagram of a task management method in a robot inspection scenario provided in an embodiment of the present application;

[0060] Figure 7 A data flow diagram of a task management method in a face matching scenario provided in an embodiment of the present application;

[0061] Figure 8 A schematic diagram of the structure of a computing device provided in an embodiment of the present application;

[0062] Fig. 9 A schematic diagram of the structure of a computing device cluster provided in an embodiment of the present application;

[0063] Fig.10 A schematic diagram of the structure of another computing device cluster provided in an embodiment of the present application;

[0064] Fig.11 A schematic diagram of the structure of another computing device cluster provided in an embodiment of the present application. DETAILED DESCRIPTION

[0065] The terms "first" and "second" in the embodiments of the present application are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features.

[0066] First, some technical terms involved in the embodiments of the present application are introduced.

[0067] In the field of artificial intelligence (AI), unknown tasks refer to samples in open domain data that cause performance degradation of the task model (usually an AI model built based on an AI algorithm and used to process tasks), and known tasks refer to samples in open domain data that do not cause performance degradation of the task model. Therefore, unknown tasks can also be called Out-of-Distribution (OoD) samples, and known tasks can also be called In-Distribution (ID) samples.

[0068] Open domain data is a concept opposite to closed set data. Among them, closed set data can be a training sample set used to train the task model, and closed set data usually includes a finite number of samples, while open domain data can be samples to be inferred in the real world, and the number of samples in open domain data can be infinite. Taking the image classification model whose task model is to identify cats and dogs as an example, the image of a bird input into the image classification model may cause the performance of the image classification model to deteriorate (for example, the recognition accuracy decreases). Therefore, the image of the bird belongs to an out-of-distribution sample, that is, an unknown task. The image of the cat will not cause the performance of the image classification model to deteriorate, and belongs to an in-distribution sample, that is, a known task.

[0069] Unknown task identification refers to identifying samples as unknown tasks or known tasks before processing them through the task model. Accordingly, when processing tasks, different processing methods can be used for known tasks and unknown tasks. For example, known tasks can be processed through task models, and unknown tasks can be processed through other methods. This can solve the problem of potential security risks in the actual deployment of AI models due to performance degradation and ensure the application value of AI models.

[0070] Among them, unknown task recognition can include sample-level unknown task recognition, target-level unknown task recognition or pixel-level unknown task recognition. For computer vision tasks, sample-level unknown task recognition is also called image-level unknown task recognition, which is used to identify whether an image is an unknown task, target-level unknown task recognition is used to identify whether the target in the image is an unknown task, and pixel-level unknown task recognition is used to identify whether a pixel is an unknown task.

[0071] The industry provides a variety of unknown task recognition methods, including but not limited to open set recognition, new class recognition, anomaly detection, out-of-distribution detection, outlier detection, and corner case detection. These methods have a wide range of applications, including industrial quality inspection, image classification, autonomous driving, face recognition, medical imaging, etc. The above methods can be classified into score-based unknown task recognition methods, feature-based unknown task recognition methods, and data-based unknown task recognition methods according to the input. Among them, the method widely used in the industry is the score-based unknown task recognition method.

[0072] The score-based unknown task recognition method refers to inputting a set of scores output by the last layer of the task model, such as logits and softmax probability, into the unknown task recognition model to recognize the unknown task. Since the unknown task recognition model is a model that grasps the capabilities of the task model, it is also called the unknown task recognition meta-model. For example, when identifying whether the segmentation result of a semantic segmentation model is accurate, the semantic segmentation model is the task model, and the model that determines whether the segmentation result is accurate is the unknown task recognition meta-model.

[0073] In the above method, different scores in a set of scores can represent the confidence of different output categories, and the largest score corresponds to the final predicted category. The task model can output more evenly distributed scores for samples with no confidence or unknown samples. Therefore, the score-based unknown task recognition method can use the various scores output by the task model for statistical analysis to find the score distribution of known samples and unknown samples. On this basis, a suitable threshold can be selected to determine whether a sample belongs to a known category or an unknown category, that is, whether the sample is a known task or an unknown task.

[0074] However, the score ranges of known samples and unknown samples in each output category of the task model have a certain overlap, which results in the task model being able to identify real known samples as unknown samples or real unknown samples as known samples when it is not fully trained. As a result, the recognition rate of the above-mentioned unknown task recognition method based on scores is low, which is difficult to meet business needs.

[0075] In view of this, the present application provides a task management method. The method can be executed by a task management system. The task management system is used to identify unknown tasks or known tasks for which the samples to be identified are task models. Among them, the task model is a data-driven AI model for processing samples to be identified. The task management system can be a software system, which can be deployed in a computing device cluster, for example, in a cloud computing cluster provided by a cloud service provider, or in an edge computing cluster. The computing device cluster executes the program code of the software system to execute the task management method of the present application. In some possible implementations, the task management system can also be a hardware system, for example, a computing device cluster with task management functions such as unknown task identification. When the hardware system is running, the task management method of the present application is executed.

[0076] Specifically, the task management system can receive the sample to be identified input by the user, obtain the prediction result of the task model for the sample to be identified and the confidence output of the output layer (for example, the last layer) of the task model, and then obtain the score of the multi-dimensional uncertainty factor based on the prediction result and the confidence, and input the score of the multi-dimensional uncertainty factor into the unknown task identification meta-model for reasoning, and obtain the reasoning result for identifying the sample to be identified as an unknown task or a known task.

[0077] This method further mines the prediction results of the task model output and the confidence of different categories of the output layer of the task model to obtain the scores of multi-dimensional uncertainty factors. The unknown samples (unknown tasks) can be identified by the scores of multi-dimensional uncertainty factors, which can solve the problem that the score ranges of known samples and unknown samples of each output category of the task model have a certain overlap, resulting in low recognition rate. Compared with the scheme of identifying unknown samples based on the score distribution of known samples and unknown samples, this method improves the recognition rate. In addition, this method can provide the source of uncertainty (the cause of the occurrence of unknown tasks) based on the scores of multi-dimensional uncertainty factors, and then provide corresponding uncertainty elimination strategies to improve system performance.

[0078] In order to make the technical solution of the present application clearer and easier to understand, the system architecture of the present application is introduced below with reference to the accompanying drawings.

[0079] See also Figure 1 The task management system 10 includes an interaction module ( Figure 1 The task management system 10 may further include an unknown task occurrence cause judgment module 104. The above modules are functional modules. The functional module may be a software module. For example, when the task management system is an integrated software system, the interactive module is a module that provides interaction, which may generally be a front-end module, such as a user interface (UI) module. The unknown task identification module 102 and the unknown task occurrence cause judgment module 104 may be code blocks that can implement corresponding business logics. For another example, when the task management system is a distributed software system, the interactive module, the unknown task identification module 102, and the unknown task occurrence cause judgment module 104 may be microservices that can implement corresponding functions. The functional module may also be a hardware module, such as a processor in a computing device, or a computing device (such as a server) in a computing device cluster.

[0080] The interactive module is used to receive the sample to be identified input by the user. Specifically, the interactive module can provide an interactive interface to the user. The interactive interface can be a graphical user interface (GUI) or a command user interface (CUI). The user can input the sample to be identified through an interactive interface such as a GUI or a CUI. For example, the user can input the path of the sample to be identified in the interactive interface, and the interactive module can obtain the sample to be identified according to the path input by the user.

[0081] The unknown task identification module 102 is used to implement unknown task identification through the unknown task identification metamodel. Specifically, the unknown task identification module 102 is used to obtain the prediction result of the task model for the sample to be identified and the confidence of the output layer output of the task model, and then obtain the score of the multi-dimensional uncertainty factor according to the prediction result and the confidence, and then input the score of the multi-dimensional uncertainty factor into the unknown task identification metamodel for reasoning to obtain the reasoning result. The reasoning result is used to identify the sample to be identified as an unknown task or a known task.

[0082] Among them, the uncertainty factor may include distribution uncertainty, data uncertainty or model uncertainty. The uncertainty factors of different dimensions are explained below.

[0083] Distribution uncertainty refers to the uncertainty caused by the different distributions of training data and test data (that is, there is a distribution shift between the training data set and the test data set). Among them, distribution shift can include covariance shift, semantic shift, and concept shift. Distribution uncertainty is specifically manifested in that the task model has not seen the test data set during the training process and may give unreliable random prediction results for the test data. In the experimental design of academia, two data sets with distribution shift are often used as training data sets and test data sets, such as using CIFAR10 as the training data set and CIFAR100 as the test data set.

[0084] Data uncertainty refers to the irreducible uncertainty caused by the natural complexity of data (such as training samples in a training dataset), such as class overlap, label noise, homoscedasticity, and heteroscedasticity. Data uncertainty is specifically manifested in that when there is label noise in the training samples in the training dataset, or the training samples are distributed on the decision boundary, the task model will give prediction results with similar confidence levels.

[0085] Model uncertainty refers to the uncertainty caused by insufficient model training (insufficient training rounds, inappropriate training step size) when a given training data set is used. Specifically, the task model may give two opposite prediction results with high confidence for two very similar samples.

[0086] like Figure 1As shown, uncertainty information such as the scores of multi-dimensional uncertainty factors can be extracted by the uncertainty information extractor. Among them, the input of the uncertainty information extractor may include samples (such as samples to be identified), prediction results of the task model for the samples, and confidence. After the samples in the database (such as samples to be identified) are input into the task model, the task model can output the prediction results of the task model for the samples to be identified. In addition, the output layer of the task model can also output confidence. The confidence can be the confidence of each output category of the task model, which can usually be a set of scores, such as a set of logits scores. The above prediction results and confidence can be the multi-round prediction results and confidence of the task model. After the prediction results and confidence are input into the uncertainty information extractor, the uncertainty information extractor can process the above input data. The output of the uncertainty information extractor can be the scores of multi-dimensional uncertainty factors, such as the scores of model uncertainty, the scores of distribution uncertainty, and the scores of data uncertainty.

[0087] In some possible implementations, under the Bayesian framework, uncertainty can be modeled as the above distribution uncertainty, data uncertainty and model uncertainty. Accordingly, the total uncertainty can be expressed as:

[0088] P(ω c |x * ,D)=∫P(ω c |μ)P(μ|x * ,θ)P9θ|D)dθ (1)

[0089] Where D is the training data set, x * is the test sample, θ is the network parameter, μ is the confidence (probability) output by the output layer (e.g. the last layer) of the task model, ω c is the target category; P(ω c |x * , D) represents the total uncertainty of the data predicted by the task model as a certain category; P(θ|D) represents the model uncertainty, which is the uncertainty caused by the task model not being fully trained due to long-tail distribution or insufficient rounds of learning; P(μ|x * ,θ) represents the distribution uncertainty, which is the uncertainty caused by the different distributions of training data and test data; P(ω c |μ) describes data uncertainty, specifically the uncertainty caused by random noise due to the fuzziness of the data itself or the boundaries within the distribution.

[0090] Given a training data set, when the task model is not fully trained, the task model may give two opposite prediction results with high confidence for two very similar samples. In this case, the confidence output of the task model is unreliable, so it is necessary to consider the case where the model uncertainty is strong. On the other hand, through formula (1), it can be found that the measurement result of model uncertainty will affect the measurement results of data uncertainty and distribution uncertainty, so it is necessary to measure the model uncertainty first.

[0091] Specifically, the uncertainty extractor can generate perturbation samples, which refer to samples that are considered similar by the human eye, and then obtain a score of model uncertainty based on the prediction results of the task model for the perturbation samples and the prediction results of the task model for the samples to be identified. For example, the uncertainty extractor can determine the degree of performance degradation of the task model caused by the perturbation samples based on the prediction results of the task model for the perturbation samples and the prediction results of the task model for the samples to be identified, and obtain a score of model uncertainty based on the degree of performance degradation.

[0092] Among them, the uncertainty extractor provides multiple ways to generate perturbation samples, which can be based on sensitivity analysis or adversarial sample generation. The following is a detailed description of the perturbation sample generation method.

[0093] The first method: sensitivity analysis. In the Bayesian framework, variational inference and Monte Carlo dropout can be used to measure model uncertainty and obtain a model uncertainty score. Many networks in deterministic deep learning models do not have a dropout module, but Monte Carlo dropout can be generalized to randomly multiply the model parameters by zero or one according to the Bernoulli distribution, and then generalized to multiplicative Gaussian dropout of the parameters. Considering the security of the model, when the user is unwilling to upload the task model to the unknown task recognition meta-model, this application supports migrating the source of this uncertainty from the model parameters to the training data. Experiments and theories have proved that the uncertainty of sample data can approximately simulate the uncertainty measured by Monte Carlo dropout, thereby completing the uncertainty measurement of the task model. In other words, the uncertainty extractor can process the samples to be identified according to the perturbation parameters that obey the target distribution (such as Bernoulli distribution, multiplicative Gaussian distribution) to obtain perturbed samples.

[0094] The second method is adversarial sample generation. The uncertainty extractor can make a tiny perturbation to the sample to be identified that is invisible to the human eye through a black-box adversarial attack or a white-box adversarial attack to obtain an adversarial sample, which can be used to attack the task model. The adversarial sample can be used as a perturbation sample. The more the performance of the task model is degraded by the adversarial sample, the greater the model uncertainty of the task model.

[0095] Next, we will introduce the measurement methods of data uncertainty and distribution uncertainty.

[0096] Based on the above formula (1), the uncertainty information extractor can measure the distribution uncertainty through the confidence μ output by the output layer (e.g., the last layer) of the task model. The confidence μ can be represented by a vector. When the maximum probability value of the vector μ is close to the second largest probability value, ω is likely to occur. c , this situation belongs to data uncertainty. For example, the first largest pixel value and the second largest pixel value of the pixel at the boundary of the two output categories of the semantic segmentation task are often close. The embodiment of the present application can measure the distribution uncertainty and data uncertainty by the distribution of μ. In other words, the uncertainty information extractor can obtain the score of the distribution uncertainty or the score of the data uncertainty according to the distribution of the confidence μ.

[0097] Specifically, the confidence output by the output layer of the task model includes the intra-class score. The uncertainty information extractor can perform a normalized exponential function on the intra-class score to obtain a score for data uncertainty, or it can obtain a score for distribution uncertainty based on the maximum value of the intra-class score. For ease of understanding, this application uses the intra-class score as an example of the logits score. Since the softmax operation will cause a certain amount of information loss, and maxLogit can also indicate unknown tasks to a certain extent, the uncertainty information extractor can perform a softmax on the logits score to obtain a score for data uncertainty, determine maxLogit from the logits, and obtain a score for distribution uncertainty.

[0098] In the reasoning stage of the unknown task recognition metamodel, the scores of the above-mentioned multi-dimensional uncertainty factors, such as the score of model uncertainty, the score of data uncertainty, and the score of distribution uncertainty, are input into the unknown task recognition metamodel for reasoning. The unknown task recognition metamodel can first output a preliminary unknown task recognition result, such as a pixel-level unknown task recognition result, and then perform unknown task recognition post-processing based on the preliminary unknown task recognition result to obtain the final unknown task recognition result, such as a sample-level unknown task recognition. Among them, data identified as unknown samples (unknown tasks) can be assigned to the unknown task group of the unknown task reasoning dataset, and data identified as known samples can be assigned to the known task group of the known task reasoning dataset.

[0099] Taking the computer vision task as an example, the sample to be identified can be an image, so further post-processing is required to obtain the unknown task recognition result at the sample level. Taking the task model corresponding to the semantic segmentation task as an example, the task model outputs the semantic segmentation map, and the unknown task recognition meta-model outputs the binary unknown task recognition map (0 represents unknown pixels, 1 represents known pixels). When performing post-processing, the unknown task recognition meta-model can determine whether the current sample to be identified is an unknown sample based on the proportion of unknown pixels.

[0100] Furthermore, considering that the confidence given by the task model with greater model uncertainty (expressed as a high score), a set of logits scores is less credible, which causes the result of unknown task recognition to shift toward the unknown task. Therefore, during post-processing, the threshold for unknown task judgment can be adaptively adjusted according to the score of model uncertainty.

[0101] In the embodiment of the present application, the task model can provide the prediction results of the task model for the sample and the confidence of the output layer output, so that the uncertainty information extractor can obtain the score of the multidimensional uncertainty factor according to the above prediction results and confidence. Accordingly, the unknown task identification metamodel takes the score of the multidimensional uncertainty factor extracted by the uncertainty information extractor as input, without inputting the network structure or parameters of the task model. The unknown task identification metamodel does not need to access the network structure, parameters and intermediate layer features of the task model to complete the function of unknown task identification. In this way, the decoupling of the unknown task identification metamodel and the task model is achieved.

[0102] Since the task model and the unknown task identification metamodel are decoupled, the unknown task identification module 102 does not need to configure a dedicated unknown task identification metamodel for each task model. In other words, the unknown task identification metamodel can adapt to multiple task models. This makes the unknown task identification function pluggable. The unknown task identification module 102 can be applied to various task models, has wide generalization, and has higher implementation value in industry.

[0103] In some possible implementations, the unknown task identification module 102 may also include a task model change detector. The task model change detector can detect whether a task model change occurs. Among them, the task model change may include: changing the network parameters of the task model, such as changing the parameters of different training rounds; changing the network structure of the task model, such as changing the semantic segmentation task from deeplabv3+ to segformer network; changing the task, specifically changing the data set and the task model. Among them, the input of the task model change detector can be a task model, a sample (training sample or reasoning sample, the reasoning sample is also the sample to be identified as described above). The task model change detector can determine whether to update the unknown task identification metamodel when the task model change is detected. For example, the task model change detector can determine to update the unknown task identification metamodel when the degree of change in the network structure, network parameters, and samples reaches a preset degree, or the degree of change in performance reaches a preset degree. Among them, the task model change detector can output a signal indicating the update of the task identification metamodel. The unknown task identification metamodel receives the signal and triggers the update of the unknown task identification metamodel.

[0104] The module 104 for judging the cause of the unknown task is used to obtain the source of uncertainty of the sample to be identified according to the score of the multi-dimensional uncertainty factor when the sample to be identified is an unknown task. The module 104 for judging the cause of the unknown task can output the source of uncertainty, for example, presenting the source of uncertainty to the user. In this way, it can help users to clarify that the cause of the unknown task is mainly model uncertainty, data uncertainty or distribution uncertainty, so as to facilitate subsequent targeted processing. Furthermore, the module 104 for judging the cause of the unknown task can also provide an uncertainty resolution strategy corresponding to the source of uncertainty based on the source of uncertainty. This can provide a reference for subsequent processing.

[0105] Specifically, the unknown task occurrence cause judgment module 104 can realize the unknown task occurrence cause judgment through the unknown task occurrence cause decision device. The input of the unknown task occurrence cause decision device can be the score of the multi-dimensional uncertainty factor, that is, the input of the unknown task occurrence cause decision device can be the output of the uncertainty information extractor. The output of the unknown task occurrence cause decision device can be the uncertainty source, that is, the main factor causing the unknown task to occur, for example, it can be model uncertainty, distribution uncertainty or data uncertainty.

[0106] Among them, the judgment of model uncertainty can have a higher priority. In other words, the decision maker of the cause of the unknown task can give priority to judging whether the model uncertainty is the dominant factor, and if not, further judge whether the distribution uncertainty or data uncertainty is the dominant factor.

[0107] When model uncertainty is the dominant factor, that is, when the model uncertainty of the task model is strong, the uncertainty elimination strategy can be to fully train the task model (for example, increase the number of training rounds) to improve the robustness of the task model on the training data set. When distribution uncertainty is the dominant factor, the uncertainty elimination strategy can be to add the test data in the test data set to the training data set to expand the distribution range of the training data set. When data uncertainty is the dominant factor, the uncertainty elimination strategy can be to reduce sample noise.

[0108] Traditional methods are trapped by the fact that the trained deterministic task model cannot be changed, and usually do not measure model uncertainty. The embodiments of the present application not only measure model uncertainty when identifying unknown tasks, but also consider the dependency between model uncertainty and data uncertainty and distribution uncertainty, and give priority to measuring model uncertainty. By measuring uncertainty in this fine-grained way, instead of measuring uncertainty as a whole, it is possible to more accurately identify unknown tasks with better performance. Moreover, the method supports determining the cause of an unknown task (for example, the above-mentioned source of uncertainty) based on the measurement results of fine-grained uncertainty (such as scoring), and performs targeted processing of unknown tasks based on the cause of the unknown task.

[0109] Figure 1 The architecture of the task management system of the embodiment of the present application is introduced. The deployment form of the task management system is illustrated below.

[0110] See also Figure 2 The schematic diagram of the deployment form of the task management system shown in FIG. Figure 2 As shown, the task management system can be deployed in an edge-cloud collaborative manner. The task management system may include an unknown task identification subsystem, which may include Figure 1 The unknown task identification module 102 shown, further, the unknown task identification subsystem may also include an unknown task occurrence cause determination module 104. The above unknown task identification subsystem usually uses an unknown task identification metamodel when performing unknown task identification, and the unknown task identification metamodel may be pre-trained or trained by a task management system. Figure 2 Take the above unknown task recognition meta-model as an example of training by the task management system. Figure 2 As shown, the task management system also includes a training subsystem, which is used to train the unknown task recognition meta-model. Further, the training subsystem can also be used to train other models or components, for example, the training subsystem can also be used to train the task model.

[0111] The above training subsystem can be deployed in a cloud environment (also referred to as the cloud), which refers to a cloud computing cluster built by a cloud service provider to provide computing, storage, and network resources. The above unknown task identification subsystem can be deployed in an edge environment (also referred to as the edge), which refers to an edge computing cluster that provides computing, storage, and network resources close to data input or users. In this way, the massive resources of the cloud environment can be used for training to improve training efficiency, and the resources of the edge environment can be used for reasoning to shorten latency and improve response efficiency.

[0112] It should be noted that when deploying a task management system, you can directly use deployment tools such as Sedna to achieve end-cloud collaboration. Sedna is based on the edge-cloud collaboration capabilities provided by KubeEdge to achieve cross-edge-cloud collaborative training and collaborative reasoning capabilities of AI. For example, Sedna supports seamless sinking of AI applications to the edge, and quickly realizes lifelong learning (lifelong learning), federated learning, collaborative reasoning and other capabilities across edge clouds, ultimately reducing service construction and deployment costs, improving model performance, and protecting data privacy. Among them, lifelong learning (lifelong learning) is also called incremental learning (Incremental Learning) and continuous learning (Continuous Learning). Specifically, it is based on the continuous development of complex environments and behaviors, and builds more complex skills on top of the skills that have been learned, so as to achieve the goal of expanding the model's adaptability, enabling the model to learn knowledge of different tasks at different times, while not forgetting the characteristics of previous tasks.

[0113] Sedna's lifelong learning feature supports edge-side data and cloud-side computing power, gradually realizing highly reliable automated artificial intelligence that adapts to edge-side business and model heterogeneity. In the Sedna edge-cloud collaborative lifelong learning architecture, jobs can be divided into three stages: training, evaluation, and deployment, and a globally available knowledge base is maintained to serve each lifelong learning task.

[0114] In the training phase, the training subsystem can use the computing power of the cloud to train the unknown task recognition metamodel. Specifically, the training subsystem can be deployed in the cloud environment, for example, on a training node in the cloud environment, and the training node can be a worker node for lifelong training, denoted as a lifelong training worker.

[0115] The cloud environment also includes a global manager, which is used to implement model management and data set management. Furthermore, the global manager is also used to implement lifelong learning control logic through a lifelong learning controller, such as controlling a lifelong training worker to train an unknown task recognition metamodel, or controlling an inference node such as a lifelong inference worker to infer that a sample to be recognized is an unknown task or a known task through an unknown task recognition metamodel. Among them, the cloud environment or edge environment includes a local controller, and the global manager can control the nodes in the corresponding environment through the local controller in different environments to perform the corresponding training or inference process. The global manager is connected to a lifelong learning cloud server, which has a knowledge base management function for managing the knowledge base. Specifically, the lifelong learning cloud server can receive the annotation data sent by the annotation system, generate knowledge based on the annotation data and record it in the knowledge base. Among them, the knowledge base can use a shared storage service (i.e., a shared storage service). Application developers can set training data sets and test data sets through the global manager, and the above data sets can include open source data sets, or be generated based on knowledge in the knowledge base.

[0116] When a training task is pulled up on a training node such as a lifelong training worker, the training node can obtain a training data set from a shared storage service. The training data set includes multiple training samples. The training node can obtain the prediction results of the task model for the training samples and the confidence of the output layer output of the task model, and then obtain the scores of multi-dimensional uncertainty factors based on the prediction results of the task model for the training samples and the confidence of the output layer output of the task model, and obtain the true value of the unknown task recognition metamodel for the training samples based on the prediction results of the task model for the training samples and the true value (ground truth, GT) of the task model for the training samples. Among them, the true value of the task model for the training samples can be obtained by annotation. The training subsystem takes the scores of multi-dimensional uncertainty factors as input, the true value of the unknown task recognition metamodel for the training samples as the supervisory signal, and uses supervised learning to train the unknown task recognition metamodel. For example, the training subsystem can input the Max Logit, Softmax Distance and model uncertainty scores into the binary classification unknown task recognition metamodel under the supervision of the ground truth signal of the unknown task recognition metamodel to complete the training of the pixel-level binary classification metamodel (i.e., the binary classification unknown task recognition metamodel).

[0117] It should be noted that the input of the unknown task recognition metamodel in the training phase can be represented as a dictionary, which is a data structure that stores mapping relationships, usually key-value pairs (key value, KV). Based on this, the input of the unknown task recognition metamodel in the training phase can include the scoring of multi-dimensional uncertainty factors in the form of KV. Among them, the input of the unknown task recognition metamodel in the training phase can also include training samples in the form of KV, multiple prediction results and confidence of the task model. The output of the unknown task recognition metamodel in the training phase can include the classification of unknown samples (i.e., unknown tasks) and known samples (i.e., known tasks). In some possible implementations, the output of the unknown task recognition metamodel at the training node can also include intermediate results. For example, for semantic segmentation tasks, the intermediate results can include pixel-level recognition results, including scores for each pixel as known or unknown, and sample-level recognition results can be obtained based on the intermediate results.

[0118] During the evaluation phase, the training subsystem can evaluate the performance of the trained unknown task recognition metamodel. For example, the training subsystem can obtain a test data set from a shared storage service, input the test samples in the test data set into the unknown task recognition metamodel for recognition, and obtain the performance of the unknown task recognition metamodel based on the recognition results. In some examples, the performance can be characterized by a recognition rate. When the performance of the unknown task recognition metamodel does not meet the requirements, for example, the performance of the unknown task recognition metamodel is less than a preset value, the training subsystem can continue to train the unknown task recognition metamodel. When the performance of the unknown task recognition metamodel meets the requirements, for example, the performance of the unknown task recognition metamodel is greater than or equal to the preset value, the unknown task recognition metamodel can be stored, including the structure and weights of the unknown task recognition metamodel, so as to facilitate the subsequent deployment of the unknown task recognition metamodel.

[0119] During the deployment phase, the global manager can deploy the trained unknown task recognition metamodel in the edge environment through the local controller of the edge environment. Specifically, the edge environment includes an inference node, which can be a worker node for lifelong inference, that is, the lifelong inference worker mentioned above. The lifelong inference worker can obtain the structure of the unknown task recognition metamodel from the shared storage service based on the instructions of the local controller, and load the parameters such as the weight of the unknown task recognition metamodel, thereby realizing the deployment of the unknown task recognition metamodel.

[0120] After the deployment is completed, the edge data and cloud computing power can be combined to complete the identification of unknown tasks. Furthermore, the edge data and cloud computing power can also be combined to complete the processing of unknown tasks. Among them, the identification and processing of unknown tasks are divided into the following stages: identification, processing, and knowledge organization and transfer. The entire process can be carried out under the Sedna edge-cloud collaborative framework, thereby improving deployability. For ease of understanding, each stage is described in detail below.

[0121] Unknown task identification stage: After the application service obtains the tasks and samples to be identified from the edge devices and terminals, it passes them to the lifelong inference worker. The lifelong inference worker uses the task model to infer the samples to be identified, and provides the inference results and confidence to the unknown task identification subsystem. The unknown task identification subsystem can extract the scores of multi-dimensional uncertainty factors through the uncertainty information extractor, such as the scores of model uncertainty, data uncertainty, and distribution uncertainty, and input the above scores into the unknown task identification metamodel for inference. The unknown task identification metamodel infers whether the current task is an unknown task. If the current task is a known task, the edge reasoning is performed directly, specifically through the edge task model. If the current task is an unknown task, the unknown sample can be passed to the Lifelong Learning Cloud Server and processed by the unknown task processing subsystem in the Lifelong Learning Cloud Server. In addition, since the data of unknown tasks is small, it can also be passed to the cloud-side knowledge base management module to generate training samples for updating the unknown task identification metamodel.

[0122] Unknown task processing stage: The unknown task processing subsystem in Lifelong Learning Cloud Server can process unknown tasks in different ways according to the correlation between the unknown tasks and the known tasks. Specifically, if the current unknown task is partially related to the known tasks, the unknown task processing subsystem in the task management system can process the unknown tasks (samples to be identified) in combination with the knowledge corresponding to the known tasks (such as the characteristics and results of the known tasks). For example, for the target detection task in computer vision tasks, the unknown task processing subsystem can process the unknown task through the target detection algorithm based on domain adaptation. If the current unknown task is not related to the known task, the task processing subsystem can process the unknown task through mechanism learning. Mechanism learning refers to learning the relationship between the formation elements and the formation elements, which can usually be achieved by modeling mechanism models. The mechanism model can be a white box model, which can be a precise mathematical model established according to the internal mechanism of the object, the production process, or the transfer mechanism of the material flow. For example, the mechanism model can be a mathematical model of the object or process obtained based on the mass balance equation, the energy balance equation, the momentum balance equation, the phase balance equation, and certain physical property equations, chemical reaction laws, basic circuit laws, etc.

[0123] Knowledge organization and transfer stage: After completing the processing of unknown tasks, Lifelong LearningController can integrate tasks and data, update the knowledge base, perform cloud-side training, and send the trained unknown task recognition metamodel to the edge.

[0124] The above introduces the architecture and deployment form of the task management system 10. Next, the task management method implemented by the above task management system will be introduced.

[0125] See also Figure 3 The task management method shown in the figure comprises the following steps:

[0126] S301: The task management system 10 receives a sample to be identified input by a user.

[0127] S302: The task management system 10 obtains the prediction result of the task model for the sample to be identified and the confidence of the output layer output of the task model.

[0128] The task model is a data-driven AI model used to process samples to be identified. For example, the task model can be a semantic segmentation model for semantic segmentation of road images in an autonomous driving scenario. Another example is a target detection model for target detection of inspection area images in a robot inspection scenario.

[0129] The samples to be identified refer to the samples to be inferred as unknown tasks or known tasks, also known as inference samples. Figure 4 As shown, the samples input by the user can be stored in the inference database, and the task management system 10 can obtain the samples to be identified from the inference database for inference. The samples to be identified can be samples generated in the real world. For example, in an autonomous driving scenario, the samples to be identified can be road images taken by a vehicle camera; for another example, in a robot inspection scenario, the samples to be identified can be images of the inspection area.

[0130] The task management system 10 can input the sample to be identified into the task model, perform reasoning through the task model, and obtain the prediction result of the task model for the sample to be identified. In addition, the task management system 10 can also obtain the output layer of the task model, such as the confidence output by the last layer. Figure 4 As shown, the task management system 10 can obtain the output result of the task model for the sample to be identified and the logits of the last layer output of the task model.

[0131] S304: The task management system 10 obtains scores of multi-dimensional uncertainty factors according to the prediction results and confidence levels.

[0132] The multi-dimensional uncertainty factor may include at least one of distribution uncertainty or data uncertainty and model uncertainty. The following describes in detail how the task management system 10 measures model uncertainty, distribution uncertainty, and data uncertainty to obtain a score for model uncertainty, a score for distribution uncertainty, and a score for data uncertainty.

[0133] like Figure 4 As shown, for model uncertainty, the task management system 10 can obtain disturbance samples, and then obtain a score of model uncertainty based on the prediction results of the task model for the disturbance samples and the prediction results of the task model for the samples to be identified.

[0134] Among them, the task management system 10 can generate perturbation samples through sensitivity analysis, or obtain perturbation samples by generating adversarial samples. When performing sensitivity analysis, the uncertainty of the training data can be approximately simulated by the uncertainty of the Monte Carlo dropout measurement, thereby completing the uncertainty measurement of the task model. Therefore, the task management system 10 can process the samples to be identified according to the perturbation parameters that obey the target distribution (such as Bernoulli distribution, multiplicative Gaussian distribution) to obtain perturbation samples. In some examples, the task management system 10 can also make a tiny perturbation invisible to the human eye to the sample to be identified through a black box adversarial attack or a white box adversarial attack to obtain an adversarial sample, and the adversarial sample can be used to attack the task model. The adversarial sample can be used as a perturbation sample.

[0135] The task management system 10 can input the perturbation sample into the task model for reasoning, and obtain the prediction result of the task model for the perturbation sample. The task management system 10 can obtain the model uncertainty score according to the degree of difference between the prediction result of the task model for the perturbation sample and the prediction result of the task model for the sample to be identified. The task management system 10 can determine the degree of performance degradation according to the prediction result of the task model for the perturbation sample and the prediction result of the task model for the sample to be identified, and obtain the model uncertainty score according to the degree of performance degradation.

[0136] Still see Figure 4 For distribution uncertainty or data uncertainty, the task management system 10 can obtain a score for the distribution uncertainty or a score for the data uncertainty based on the distribution of the confidence. The confidence can be an intra-class score, such as logits. The task management system 10 can perform softmax processing on logits to obtain softmaxdistance, where softmax distance can be a score for data uncertainty. The task management system 10 can also determine the maximum value of the intra-class score, such as maxLogit, where maxLogit can be a score for distribution uncertainty.

[0137] It should be noted that Figure 4 This is merely an example of how the task management system 10 in the embodiment of the present application obtains the scores of the multi-dimensional uncertainty factors based on the prediction results and the confidence levels. In other possible implementations of the embodiment of the present application, the task management system 10 may obtain the scores of the multi-dimensional uncertainty factors in other ways.

[0138] S306: The task management system 10 inputs the scores of the multi-dimensional uncertainty factors into the unknown task recognition meta-model for reasoning to obtain a reasoning result.

[0139] Specifically, the unknown task recognition metamodel can model the mapping relationship between the scores of uncertainty factors and known / unknown category labels through supervised learning during the training phase. Accordingly, during the reasoning phase, the task management system 10 can input the scores of multi-dimensional uncertainty factors into the unknown task recognition metamodel, and perform reasoning through the mapping relationship learned during the training phase to obtain the reasoning result. The reasoning result is used to identify the sample to be recognized as an unknown task or a known task.

[0140] The task management system 10 can be divided into two stages for reasoning through the unknown task recognition meta-model. Figure 4 As shown, in the first stage, the unknown task recognition meta-model can obtain preliminary unknown task recognition results (also referred to as preliminary results) based on the scoring reasoning of multi-dimensional uncertainty factors, and then perform unknown task recognition post-processing based on the preliminary results to obtain the final unknown task recognition results.

[0141] In some possible implementations, when the sample to be identified is an unknown task, the task management system 10 can also obtain the source of uncertainty of the unknown task based on the scores of the uncertainty factors in multiple dimensions. For example, the task management system 10 can set a corresponding threshold for the uncertainty factor in at least one dimension, for example, setting the above threshold based on an empirical value. Then the task management system 10 can compare the score of the uncertainty factor in at least one dimension with the threshold, so as to obtain the source of uncertainty of the unknown task. Specifically, when the score of the uncertainty factor in one dimension is greater than the corresponding threshold, the task management system 10 can determine the uncertainty factor of the dimension as the source of uncertainty of the unknown task.

[0142] Furthermore, considering that the size of model uncertainty will also affect the reliability of the score of distribution uncertainty and the score of data uncertainty, the task management system 10 can give priority to comparing the score of model uncertainty and the corresponding threshold. If the score of model uncertainty is greater than the corresponding threshold, the task management system 10 can skip the subsequent comparison process and determine the model uncertainty as the source of uncertainty for the unknown task. If the score of model uncertainty is less than the corresponding threshold, the task management system 10 can continue to compare the score of distribution uncertainty and the corresponding threshold, or compare the score of data uncertainty and the corresponding threshold, thereby determining the distribution uncertainty or data uncertainty as the source of uncertainty for the unknown task.

[0143] The task management system 10 can also present the uncertainty source to the user, which can help the user to clearly understand whether the cause of the unknown task is mainly model uncertainty, data uncertainty or distribution uncertainty, so as to facilitate subsequent targeted processing.

[0144] Among them, the task management system 10 can also provide an uncertainty resolution strategy corresponding to the source of uncertainty based on the source of uncertainty, so that the user can perform targeted processing. In some examples, when providing the uncertainty resolution strategy, the task management system 10 can provide a corresponding uncertainty resolution strategy in combination with the knowledge in the knowledge base. Specifically, when the source of uncertainty is model uncertainty, it indicates that the model uncertainty of the task model is strong. The uncertainty resolution strategy can be to fully train the task model (for example, to increase the number of training rounds) to improve the robustness of the task model on the training data set. When the source of uncertainty is distribution uncertainty, the uncertainty resolution strategy can be to add the test data in the test data set to the training data set to expand the distribution range of the training data set. When data uncertainty is the dominant factor, the uncertainty resolution strategy can be to reduce sample noise.

[0145] In this embodiment, the task management system 10 can assign samples to be identified as unknown tasks to an unknown task group of an unknown task reasoning data set, and assign samples to be identified as known samples to a known task group of a known task reasoning data set. The task management system 10 can perform unknown task processing on the unknown task group of the unknown task reasoning data set. Among them, the task management system 10 can process unknown tasks in different ways according to the degree of correlation between unknown tasks and known tasks in the unknown task group of the unknown task reasoning data set. For example, the unknown task is partially related to the known task, and the task management system 10 can process the unknown task in combination with the knowledge corresponding to the known task (such as features or results). For another example, the unknown task is completely unrelated to the known task, and the task management system 10 can process the unknown task through a mechanism model.

[0146] In some possible implementations, the task management system 10 can train an unknown task identification metamodel for unknown task identification in the following manner. Specifically, the task management system 10 can obtain a score of a multi-dimensional uncertainty factor based on the prediction result of the task model for the training sample and the confidence of the output layer output of the task model, and obtain the true value of the unknown task identification metamodel for the training sample based on the prediction result of the task model for the training sample and the true value of the task model for the training sample, and then use the score of the multi-dimensional uncertainty factor as input and the true value of the unknown task identification metamodel for the training sample as a supervisory signal to train the unknown task identification metamodel using supervised learning.

[0147] For ease of understanding, Figure 4 The training process is illustrated with examples. Figure 4 As shown, the task management system 10 can obtain training samples from the training database, and input the training samples into the task model to obtain the prediction results of the task model for the training samples. The task management system 10 can obtain the true value of the task model for the training samples (also called task GT) from the training database, and then obtain the true value of the unknown task identification metamodel for the training samples (also called unknown task identification GT) based on the prediction results of the task model for the training samples and the true value of the task model for the training samples. For example, if the prediction result is consistent with the task GT, the unknown task identification GT can be a known sample; if the prediction result is inconsistent with the task GT, the unknown task identification GT can be an unknown sample.

[0148] The task management system 10 can also generate perturbation samples, for example, generating perturbation samples based on training samples in the training database, and inputting the perturbation samples into the task model to obtain the prediction results of the task model for the perturbation samples. The task management system 10 can obtain uncertainty information based on the prediction results and confidence of the task model for the training samples, and the prediction results of the task model for the perturbation samples, specifically the score of model uncertainty, the score of distribution uncertainty, and the score of data uncertainty. The task management system 10 uses the unknown task recognition GT as a supervisory signal, and uses the score of model uncertainty, the score of distribution uncertainty, and the score of data uncertainty as inputs to train the unknown task recognition meta-model through supervised learning.

[0149] Based on the above description, the embodiment of the present application provides a task management method. The method further mines the prediction results output by the task model and the confidence of different categories output by the output layer of the task model to obtain the scores of multi-dimensional uncertainty factors. The unknown samples are identified by the scores of multi-dimensional uncertainty factors, which can solve the problem that the score ranges of known samples and unknown samples of each output category of the task model have a certain overlap, resulting in a low recognition rate.

[0150] The task management method of the embodiment of the present application will be described below in combination with different application scenarios.

[0151] The first scenario may be a robot inspection scenario. The task management method of an embodiment of the present application can identify samples in the semantic segmentation task of the robot inspection scenario where the task model fails to recognize the samples due to different distributions of training data and actual test data or insufficient training of the model.

[0152] Figure 5 The schematic diagram of the robot inspection task under the edge-cloud collaborative lifelong learning framework is shown. Unknown task identification and prediction of robot inspection tasks can be performed on the edge, and unknown task identification and training of robot inspection tasks can be performed on the cloud. Among them, the edge and cloud sides can transfer knowledge, such as model transfer. Specifically, when the edge performs the robot inspection task, it first collects the image, and then predicts the pixel-level classification through the semantic segmentation model (task model of the robot inspection task), which mainly includes categories such as roads, curbs, buildings, and the sky. The edge can also perform unknown task identification, so as to judge whether the image collected by the robot belongs to an unknown task. If it is judged to be an unknown task, the cause of the unknown task is given simultaneously. If it is judged to be a known task, semantic segmentation is performed to identify the road area, curb area, building area, and sky area in the image.

[0153] Figure 6 The process of the task management method in the robot inspection scenario is shown, wherein the task management method may include a training method of an unknown task recognition metamodel and an unknown task recognition method (which may be a method for reasoning using the trained unknown task recognition metamodel). Figure 6 The solid lines represent the training flow, and the dashed lines represent the inference flow.

[0154] like Figure 6As shown, during the training phase, the task management system 10 can obtain training samples, input the training samples into the semantic segmentation model, obtain the prediction results of the semantic segmentation model for the training samples, and process the training samples according to the perturbation parameters that obey the multiplicative Gaussian distribution, specifically, adding multiplicative Gaussian noise to the training samples to obtain perturbation samples, input the perturbation samples into the semantic segmentation model, and obtain the prediction results of the semantic segmentation model for the perturbation samples.

[0155] The task management system 10 can calculate the difference between the prediction results of the semantic segmentation model for the perturbation sample and the prediction results of the semantic segmentation model for the training sample, and map the above-mentioned difference degree to the score of model uncertainty through a mapping function (which can be set according to experience, for example, a certain monotonic function can be used). In addition, the task management system 10 also obtains the N-dimensional logits output by the last layer of the semantic segmentation model when the semantic segmentation model performs forward reasoning, where N represents the number of output categories of the semantic segmentation model. The task management system 10 can obtain maxLogit (a score representing distribution uncertainty) and softmax distance (a score representing data uncertainty) based on the N-dimensional logits.

[0156] The task management system 10 also obtains the task GT corresponding to the training sample from the training database, and obtains the unknown task identification GT by comparing the prediction result of the semantic segmentation model with the task GT. When the prediction result of the semantic segmentation model is equal to the task GT, the unknown task identification GT is set to 1, indicating a known sample; when the prediction result of the semantic segmentation model is not equal to the task GT, the unknown task identification GT is set to 0, indicating an unknown sample.

[0157] The task management system 10 can train a binary unknown task recognition meta-model under the supervision of the above unknown task recognition GT signal, taking maxLogit, softmaxdistance and the score of model uncertainty as input. When the training end condition is met, for example, the number of training rounds reaches the set number of rounds, or the loss function of the unknown task recognition meta-model is in a convergence state, the task management system 10 can stop training.

[0158] In the reasoning stage, the task management system 10 can obtain the sample to be identified from the reasoning database, specifically the image taken by the robot, and then input the image taken by the robot into the semantic segmentation model to obtain the prediction result of the semantic segmentation model for the image, and obtain the logits of the last layer output of the semantic segmentation model. The task management system 10 can calculate the score of model uncertainty in a similar manner to the training stage, and obtain maxLogit and softmaxdistance according to logits, and input the score of model uncertainty, maxLogit and softmax distance into the unknown task recognition metamodel to obtain preliminary results, specifically pixel-level unknown task recognition results. The pixel-level unknown task recognition result may include a pixel-level unknown task recognition score. The task management system 10 can calculate the sample-level unknown task recognition score based on the pixel-level unknown task recognition score, and then compare the sample-level unknown task recognition score and the corresponding classification threshold to obtain the sample-level unknown task recognition result. The sample-level unknown task recognition result is used to indicate that the image is an in-distribution sample (known sample) or an out-of-distribution sample (unknown sample). Among them, out-of-distribution samples can interact with the "unknown" interface in the Sedna lifelong learning framework to realize unknown sample processing, and in-distribution samples can interact with the "known" interface in the Sedna lifelong learning framework to realize known sample processing.

[0159] In this scenario, the task management system 10 can also measure the sources of uncertainty of unknown tasks. For example, when the score of model uncertainty is higher than the corresponding threshold, the task management system 10 can determine that the source of uncertainty of the above unknown task is model uncertainty, and the task management system 10 can suggest that the user fully train the semantic segmentation model. For another example, when the score of distribution uncertainty is higher than the corresponding threshold, the task management system 10 determines that the source of uncertainty of the above unknown task is distribution uncertainty, and the task management system 10 can suggest that the user add more data of the distribution to which the sample belongs to the training data set to train the semantic segmentation model. It should be noted that for semantic segmentation tasks, the data uncertainty often occurs at the segmentation boundary, and this influence can be removed in the unknown task identification post-processing module, so the task management system 10 does not need to consider data uncertainty.

[0160] The second scenario may be a face matching scenario. The task management method of an embodiment of the present application may identify samples in a face matching task in which the task model fails to recognize the samples due to different distributions of training data and actual test data, insufficient model training, or high noise in the actual test data.

[0161] Figure 7The process of the task management method in the face matching scenario is shown, wherein the task management method may include a training method of an unknown task recognition metamodel and an unknown task recognition method (which may be a method for reasoning using a trained unknown task recognition metamodel). Figure 7 The solid lines represent the training flow, and the dashed lines represent the inference flow.

[0162] like Figure 7 As shown, during the training phase, the task management system 10 can obtain training samples, input the training samples into the face matching model, and obtain the prediction results of the face matching model for the training samples. Different from the way of generating perturbation samples in the robot inspection scenario, in the face matching scenario, the task management system 10 can use white box or black box attack technology to obtain perturbation samples. The higher the model uncertainty of the face matching model, the more its performance will degrade after being attacked by adversarial attacks. Therefore, the task management system 10 can calculate the degree of performance degradation of the face matching model and map the degree of performance degradation of the face matching model obtained in the previous step to a score of model uncertainty.

[0163] Similar to the robot inspection scenario, the task management system 10 also obtains the N-dimensional logits output by the last layer of the face matching model for forward reasoning. Based on the N-dimensional logits, maxLogit (a score indicating distribution uncertainty) and normalized softmax distance (a score indicating data uncertainty) are obtained. The task management system 10 also obtains the task GT corresponding to the training sample from the training database, and obtains the unknown task recognition GT by comparing the prediction result of the face matching model with the task GT. Among them, when the prediction result of the face matching model is equal to the task GT, the unknown task recognition GT is set to 1, indicating a known sample; when the prediction result of the face matching model is not equal to the task GT, the unknown task recognition GT is set to 0, indicating an unknown sample.

[0164] The task management system 10 can train a binary unknown task recognition meta-model under the supervision of the above unknown task recognition GT signal, taking maxLogit, softmaxdistance and the score of model uncertainty as input. When the training end condition is met, for example, the number of training rounds reaches the set number of rounds, or the loss function of the unknown task recognition meta-model is in a convergence state, the task management system 10 can stop training.

[0165] In the inference stage, the task management system 10 can obtain samples to be identified from the inference database, such as images actually taken, and then input the images into the face matching model to obtain the prediction results of the face matching model for the image, and obtain the logits of the last layer output of the face matching model. The task management system 10 can calculate the score of model uncertainty in a similar manner to the training stage, and obtain maxLogit and softmax distance based on logits, and input the score of model uncertainty, maxLogit and softmax distance into the unknown task recognition meta-model to obtain the unknown task recognition result.

[0166] For images identified as unknown tasks, the task management system 10 can also measure the sources of uncertainty of the unknown tasks. For example, when the score of model uncertainty is higher than the corresponding threshold, the task management system 10 can determine that the source of uncertainty of the above unknown task is model uncertainty, and the task management system 10 can suggest that the user fully train the face matching model. For another example, when the score of distribution uncertainty is higher than the corresponding threshold, the task management system 10 determines that the source of uncertainty of the above unknown task is distribution uncertainty, and the task management system 10 can suggest that the user add more data of the distribution to which the sample belongs to the training data set to train the face matching model. For another example, when the score of data uncertainty is higher than the corresponding threshold, the task management system 10 can determine that the source of uncertainty of the unknown task is data uncertainty, and the task management system 10 can suggest providing higher quality images, such as denoised images.

[0167] The present application also provides a task management system 10, which is used to identify unknown tasks or known tasks for which samples to be identified are task models, wherein the task model is a data-driven AI model for processing samples to be identified.

[0168] See also Figure 1 The task management system 10 shown in FIG. 1 includes:

[0169] Interaction Module( Figure 1 (not shown), for receiving a sample to be identified input by a user;

[0170] The unknown task identification module 102 is used to obtain the prediction result of the task model for the sample to be identified and the confidence of the output layer output of the task model, obtain the score of the multi-dimensional uncertainty factor according to the prediction result and the confidence, input the score of the multi-dimensional uncertainty factor into the unknown task identification meta-model for reasoning to obtain the reasoning result, and the reasoning result is used to identify the sample to be identified as an unknown task or a known task.

[0171] Exemplarily, the above-mentioned interaction module and unknown task identification module 102 may be implemented by hardware or software. The unknown task identification module 102 is used for illustration below.

[0172] When implemented by software, the unknown task identification module 102 may be an application running on a computing device, such as a computing engine. Among them, considering scalability and portability, the application can also be virtualized through a virtualization service. Virtualization services may include virtual machine (VM) services, bare metal server (BMS) services, and container services. Among them, the VM service may be a service that uses virtualization technology to virtualize a virtual machine (VM) resource pool on multiple physical hosts to provide users with VMs on demand for use. The BMS service is a service that virtualizes a BMS resource pool on multiple physical hosts to provide users with BMS on demand for use. The container service is a service that virtualizes a container resource pool on multiple physical hosts to provide users with containers on demand for use. VM is a simulated virtual computer, that is, a logical computer. BMS is a high-performance computing service that can be elastically scalable, and its computing performance is no different from that of a traditional physical machine, and it has the characteristics of secure physical isolation. Containers are a kernel virtualization technology that can provide lightweight virtualization to achieve the purpose of isolating user space, processes, and resources. It should be understood that the VM service, BMS service and container service in the above-mentioned virtualization services are only specific examples. In actual applications, virtualization services can also be other lightweight or heavyweight virtualization services, which are not specifically limited here.

[0173] When implemented by hardware, the unknown task identification module 102 may include at least one computing device, such as a server, etc. Alternatively, the unknown task identification module 102 may also be a device implemented by an application-specific integrated circuit (ASIC) or a programmable logic device (PLD). The PLD may be a complex programmable logical device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.

[0174] In some possible implementations, the multi-dimensional uncertainty factor includes at least one of distribution uncertainty or data uncertainty and model uncertainty.

[0175] In some possible implementations, the uncertainty factor includes model uncertainty, and the score of the model uncertainty is obtained according to the prediction result of the task model for the sample to be identified and the prediction result of the task model for the disturbed sample.

[0176] In some possible implementations, the perturbed sample includes a sample obtained by processing the sample to be identified according to a perturbation parameter that obeys a target distribution or an adversarial sample of the sample to be identified.

[0177] In some possible implementations, the uncertainty factor includes distribution uncertainty or data uncertainty, and a score of the distribution uncertainty or a score of the data uncertainty is obtained according to the distribution of the confidence level.

[0178] In some possible implementations, the confidence output by the output layer of the task model includes an in-class score, the score of the data uncertainty is obtained by performing a normalized exponential function on the in-class score, and the score of the distribution uncertainty is the maximum value of the in-class score.

[0179] In some possible implementations, when the sample to be identified is an unknown task, the system 10 further includes:

[0180] The unknown task occurrence cause judgment module 104 is used to obtain the uncertainty source of the unknown task according to the scores of the multi-dimensional uncertainty factors and present the uncertainty source to the user. When the unknown task occurrence cause judgment module 104 presents the uncertainty source to the user, the uncertainty source can be presented to the user through the interactive module.

[0181] Similar to the unknown task identification module 102 , the unknown task occurrence cause determination module 104 may be implemented by hardware or software.

[0182] When implemented by software, the unknown task occurrence cause determination module 104 may be an application program running on a computing device, such as a computing engine, etc. In particular, considering scalability and portability, the unknown task occurrence cause determination module 104 may also be virtualized through a virtualization service.

[0183] When implemented by hardware, the unknown task occurrence cause determination module 104 may include at least one computing device, such as a server, etc. Alternatively, the unknown task occurrence cause determination module 104 may also be a device implemented by an application specific integrated circuit ASIC, or a programmable logic device PLD, etc.

[0184] In some possible implementations, the unknown task occurrence cause determination module 104 is further configured to:

[0185] According to the uncertainty source, an uncertainty resolution strategy corresponding to the uncertainty source is provided.

[0186] In some possible implementations, when the sample to be identified is an unknown task, the system 10 further includes:

[0187] Unknown task processing module ( Figure 1 (not shown in the figure) is used to process the sample to be identified by combining the knowledge corresponding to the known task if the sample to be identified is partially related to the known task; if the sample to be identified is not related to the known task, the sample to be identified is processed by a mechanism model.

[0188] The unknown task processing module may be implemented by hardware, or may be implemented by software.

[0189] When implemented by software, the unknown task processing module may be an application program running on a computing device, such as a computing engine, etc. In particular, considering scalability and portability, the unknown task processing module may also be virtualized through a virtualization service.

[0190] When implemented by hardware, the unknown task processing module may include at least one computing device, such as a server, etc. Alternatively, the unknown task processing module may also be a device implemented by an application specific integrated circuit ASIC, or a programmable logic device PLD, etc.

[0191] In some possible implementations, the unknown task identification module 102 is further configured to:

[0192] When the task model is changed, the unknown task identification meta-model is updated.

[0193] In some possible implementations, the system 10 further includes:

[0194] Training Module( Figure 1), used to obtain the prediction results of the task model for the training samples and the confidence of the output layer output of the task model, obtain the scores of multi-dimensional uncertainty factors according to the prediction results of the task model for the training samples and the confidence of the output layer output of the task model, and obtain the true value of the unknown task recognition meta-model for the training samples according to the prediction results of the task model for the training samples and the true value of the task model for the training samples, take the scores of the multi-dimensional uncertainty factors as input, take the true value of the unknown task recognition meta-model for the training samples as the supervision signal, and adopt supervised learning to train the unknown task recognition meta-model.

[0195] The training module may be implemented by hardware, or may be implemented by software.

[0196] When implemented by software, the training module may be an application program running on a computing device, such as a computing engine, etc. In particular, considering scalability and portability, the unknown task processing module may also be virtualized through a virtualization service.

[0197] When implemented by hardware, the training module may include at least one computing device, such as a server, etc. Alternatively, the training module may also be a device implemented by using an application specific integrated circuit ASIC, or a programmable logic device PLD, etc.

[0198] In some possible implementations, the system includes a training subsystem and an unknown task identification subsystem, the unknown task identification subsystem includes the unknown task identification module, the training subsystem includes the training module, the training subsystem is deployed in a cloud environment, and the unknown task identification subsystem is deployed in an edge environment.

[0199] The present application also provides a computing device 800. Figure 8 As shown, the computing device 800 includes: a bus 802, a processor 804, a memory 806, and a communication interface 808. The processor 804, the memory 806, and the communication interface 808 communicate through the bus 802. The computing device 800 can be a server or a terminal device. It should be understood that the present application does not limit the number of processors and memories in the computing device 800.

[0200] The bus 802 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 8The bus 802 is represented by only one line, but it does not mean that there is only one bus or one type of bus. The bus 802 may include a path for transmitting information between various components of the computing device 800 (eg, the memory 806, the processor 804, and the communication interface 808).

[0201] The processor 804 may include any one or more of a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP).

[0202] The memory 806 may include a volatile memory, such as a random access memory (RAM). The processor 804 may also include a non-volatile memory, such as a read-only memory (ROM), a flash memory, a hard disk drive (HDD) or a solid state drive (SSD). The memory 806 stores executable program code, and the processor 804 executes the executable program code to implement the aforementioned task management method. Specifically, the memory 806 stores instructions for the task management system 10 to execute the task management method.

[0203] The communication interface 808 uses a transceiver module such as, but not limited to, a network interface card or a transceiver to implement communication between the computing device 800 and other devices or communication networks.

[0204] The embodiment of the present application also provides a computing device cluster. The computing device cluster includes at least one computing device. The computing device can be a server, such as a central server, an edge server, or a local server in a local data center. In some embodiments, the computing device can also be a terminal device such as a desktop computer, a laptop computer, or a smart phone.

[0205] like Fig. 9 As shown, the computing device cluster includes at least one computing device 800. The memory 806 in one or more computing devices 800 in the computing device cluster may store the same task management system 10 for executing instructions of the task management method.

[0206] In some possible implementations, one or more computing devices 800 in the computing device cluster may also be used to execute some instructions of the task management system 10 for executing the task management method. In other words, a combination of one or more computing devices 800 may jointly execute instructions of the task management system 10 for executing the task management method.

[0207] It should be noted that the memory 806 in different computing devices 800 in the computing device cluster may store different instructions for executing partial functions of the task management system 10 .

[0208] Fig.10 A possible implementation is shown. Fig.10 As shown, two computing devices 800A and 800B are connected via a communication interface 808. The memory in the computing device 800A stores instructions for executing the functions of the unknown task identification module 102. The memory in the computing device 800B stores instructions for executing the functions of the unknown task occurrence cause determination module 104. In other words, the memories 806 of the computing devices 800A and 800B jointly store instructions for the task management system 10 to execute the task management method.

[0209] Fig.10 The connection mode between the computing device clusters shown may be considered to be that the task management method provided by the present application requires a lot of computing power for reasoning. Therefore, it is considered to hand over the functions implemented by the unknown task occurrence cause determination module 104 to the computing device 800B for execution.

[0210] It should be understood that Fig.10 The functions of the computing device 800A shown in FIG. 8 may also be completed by multiple computing devices 800. Similarly, the functions of the computing device 800B may also be completed by multiple computing devices 800.

[0211] In some possible implementations, one or more computing devices in the computing device cluster may be connected via a network, which may be a wide area network or a local area network. Fig.11 A possible implementation is shown. Fig.11 As shown, two computing devices 800C and 800D are connected via a network. Specifically, the network is connected via a communication interface in each computing device. In this type of possible implementation, the memory 806 in the computing device 800C stores instructions for executing the functions of the unknown task identification module 102. At the same time, the memory 806 in the computing device 800D stores instructions for executing the functions of the unknown task occurrence cause determination module 104.

[0212] Fig.11The connection method between the computing device clusters shown can be considered to be that the task management method provided in this application requires a lot of computing power for reasoning, so it is considered to hand over the functions implemented by the unknown task cause judgment module 104 to the computing device 800D for execution.

[0213] It should be understood that Figure 6 The functions of the computing device 800C shown in FIG. 800A may also be completed by multiple computing devices 800. Similarly, the functions of the computing device 800D may also be completed by multiple computing devices 800.

[0214] The embodiment of the present application also provides a computer-readable storage medium. The computer-readable storage medium can be any available medium that can be stored by the computing device or a data storage device such as a data center containing one or more available media. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk). The computer-readable storage medium includes instructions that instruct the computing device to execute the above-mentioned task management system 10 for executing the task management method.

[0215] The embodiment of the present application also provides a computer program product including instructions. The computer program product may be software or a program product including instructions that can be run on a computing device or stored in any available medium. When the computer program product is run on at least one computing device, the at least one computing device executes the above-mentioned task management method.

[0216] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the protection scope of the technical solutions of the embodiments of the present invention.

Claims

1. A task management method, It is characterized in that The method is performed by a task management system, the task management system is used to identify unknown tasks or known tasks for which the sample to be identified is a task model, the task model is a data-driven artificial intelligence AI model for processing the sample to be identified, and the method includes: Receive a sample to be identified input by a user; Obtaining the prediction result of the task model for the sample to be identified and the confidence of the output layer output of the task model; Obtaining scores of multi-dimensional uncertainty factors according to the prediction results and the confidence levels; The scores of the multi-dimensional uncertainty factors are input into the unknown task recognition meta-model for reasoning to obtain a reasoning result, and the reasoning result is used to identify the sample to be recognized as an unknown task or a known task.

2. The method according to claim 1, It is characterized in that The multi-dimensional uncertainty factors include at least one of distribution uncertainty or data uncertainty and model uncertainty.

3. The method according to claim 1 or 2, It is characterized in that The uncertainty factor includes model uncertainty, and the score of the model uncertainty is obtained according to the prediction result of the task model for the sample to be identified and the prediction result of the task model for the disturbed sample.

4. The method according to claim 3, It is characterized in that The perturbation sample includes a sample obtained by processing the sample to be identified according to a perturbation parameter that obeys a target distribution or an adversarial sample of the sample to be identified.

5. The method according to claim 1 or 2, It is characterized in that The uncertainty factor includes distribution uncertainty or data uncertainty, and the score of the distribution uncertainty or the score of the data uncertainty is obtained according to the distribution of the confidence level.

6. The method according to claim 5, It is characterized in that The confidence output by the output layer of the task model includes an intra-class score, the score of the data uncertainty is obtained by performing a normalized exponential function on the intra-class score, and the score of the distribution uncertainty is the maximum value of the intra-class score.

7. The method according to any one of claims 1 to 6, It is characterized in that When the sample to be identified is an unknown task, the method further includes: Obtaining the uncertainty source of the unknown task according to the scores of the multi-dimensional uncertainty factors; The sources of uncertainty are presented to a user.

8. The method according to claim 4, It is characterized in that The method further comprises: According to the uncertainty source, an uncertainty resolution strategy corresponding to the uncertainty source is provided.

9. The method according to any one of claims 1 to 8, It is characterized in that When the sample to be identified is an unknown task, the method further includes: If the sample to be identified is partially related to a known task, the sample to be identified is processed in combination with knowledge corresponding to the known task; If the sample to be identified is not related to the known task, the sample to be identified is processed by a mechanism model.

10. The method according to any one of claims 1 to 9, It is characterized in that The method further comprises: When the task model is changed, the unknown task identification meta-model is updated.

11. The method according to any one of claims 1 to 10, It is characterized in that The unknown task recognition meta-model is trained in the following way: Obtaining the prediction result of the task model for the training sample and the confidence of the output layer output of the task model; Obtaining a score of a multi-dimensional uncertainty factor according to the prediction result of the task model for the training sample and the confidence of the output layer output of the task model, and obtaining a true value of the unknown task recognition meta-model for the training sample according to the prediction result of the task model for the training sample and the true value of the task model for the training sample; The scores of the multi-dimensional uncertainty factors are used as inputs, and the true values ​​of the unknown task identification meta-model for the training samples are used as supervisory signals, and supervised learning is adopted to train the unknown task identification meta-model.

12. The method according to claim 11, It is characterized in that The task management system includes a training subsystem and an unknown task identification subsystem, wherein the training subsystem is deployed in a cloud environment, and the unknown task identification subsystem is deployed in an edge environment.

13. A task management system, It is characterized in that The task management system is used to identify unknown tasks or known tasks for which the samples to be identified are task models, wherein the task model is a data-driven artificial intelligence (AI) model for processing samples to be identified, and the system includes: An interactive module, used to receive samples to be identified input by a user; An unknown task identification module is used to obtain the prediction result of the task model for the sample to be identified and the confidence output of the output layer of the task model, obtain the score of the multi-dimensional uncertainty factor according to the prediction result and the confidence, input the score of the multi-dimensional uncertainty factor into the unknown task identification meta-model for reasoning to obtain an inference result, and the inference result is used to identify the sample to be identified as an unknown task or a known task.

14. The system according to claim 13, It is characterized in that The multi-dimensional uncertainty factors include at least one of distribution uncertainty or data uncertainty and model uncertainty.

15. A system according to claim 13 or 14, It is characterized in that The uncertainty factor includes model uncertainty, and the score of the model uncertainty is obtained according to the prediction result of the task model for the sample to be identified and the prediction result of the task model for the disturbed sample.

16. The system according to claim 15, It is characterized in that The perturbation sample includes a sample obtained by processing the sample to be identified according to a perturbation parameter that obeys a target distribution or an adversarial sample of the sample to be identified.

17. The system according to claim 13 or 14, It is characterized in that The uncertainty factor includes distribution uncertainty or data uncertainty, and the score of the distribution uncertainty or the score of the data uncertainty is obtained according to the distribution of the confidence level.

18. The system according to claim 17, It is characterized in that The confidence output by the output layer of the task model includes an intra-class score, the score of the data uncertainty is obtained by performing a normalized exponential function on the intra-class score, and the score of the distribution uncertainty is the maximum value of the intra-class score.

19. A system according to any one of claims 13 to 18, It is characterized in that When the sample to be identified is an unknown task, the system further includes: The module for determining the cause of the unknown task is used to obtain the uncertainty source of the unknown task according to the scores of the multi-dimensional uncertainty factors and present the uncertainty source to the user.

20. The system according to claim 19, It is characterized in that The unknown task occurrence cause judgment module is also used for: According to the uncertainty source, an uncertainty resolution strategy corresponding to the uncertainty source is provided.

21. A system according to any one of claims 13 to 20, It is characterized in that When the sample to be identified is an unknown task, the system further includes: The unknown task processing module is used to process the sample to be identified if it is partially related to the known task, combining the knowledge corresponding to the known task; if the sample to be identified is not related to the known task, processing the sample to be identified through a mechanism model.

22. A system according to any one of claims 13 to 21, It is characterized in that The unknown task identification module is also used for: When the task model is changed, the unknown task identification meta-model is updated.

23. A system according to any one of claims 13 to 22, It is characterized in that The system further comprises: A training module is used to obtain the prediction results of the task model for the training samples and the confidence of the output layer output of the task model, obtain the scores of multi-dimensional uncertainty factors according to the prediction results of the task model for the training samples and the confidence of the output layer output of the task model, and obtain the true value of the unknown task recognition metamodel for the training samples according to the prediction results of the task model for the training samples and the true value of the task model for the training samples, and use supervised learning to train the unknown task recognition metamodel with the scores of the multi-dimensional uncertainty factors as input and the true value of the unknown task recognition metamodel for the training samples as a supervisory signal.

24. The system according to claim 23, It is characterized in that The system includes a training subsystem and an unknown task identification subsystem, the unknown task identification subsystem includes the unknown task identification module, the training subsystem includes the training module, the training subsystem is deployed in a cloud environment, and the unknown task identification subsystem is deployed in an edge environment.

25. A computing device cluster, It is characterized in that The computing device cluster includes at least one computing device, and the at least one computing device includes at least one processor and at least one memory, wherein the at least one memory stores computer-readable instructions; the at least one processor executes the computer-readable instructions so that the computing device cluster executes the method as described in any one of claims 1 to 12.

26. A computer-readable storage medium, It is characterized in that The method comprises computer-readable instructions; the computer-readable instructions are used to implement the method according to any one of claims 1 to 12.

27. A computer program product, It is characterized in that The method comprises computer-readable instructions; the computer-readable instructions are used to implement the method according to any one of claims 1 to 12.

Citation Information

Cited By

  • Multi-level large model scheduling and knowledge base adaptive optimization method and system

    CN120216149A

  • A multi-level large model scheduling and knowledge base adaptive optimization method and system

    CN120216149B

  • Method and device for executing task chain, equipment, medium and program product

    CN121349775A