Task processing methods and apparatus, electronic devices and storage media

By modulating the network to select target nodes and similarity constraints in the task network, the problem of low parameter utilization efficiency of neural networks in continuous learning is solved, and efficient network parameter reuse and training efficiency are improved.

CN112328398BActive Publication Date: 2024-09-27TSINGHUA UNIVERSITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011261159.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-12
Publication Date
2024-09-27
Estimated Expiration
2040-11-12

AI Technical Summary

Technical Problem

Existing neural networks are prone to catastrophic forgetting during the continuous learning process, and fail to effectively utilize task correlation to reuse network parameters, resulting in low parameter utilization efficiency.

Method used

The target network nodes in the task network are selected through the modulation information generated by the modulation network to reduce mutual interference between parameters, and the similarity constraint information is used to improve the reuse rate of network nodes in similar tasks and improve the utilization efficiency of network parameters.

Benefits of technology

It alleviates catastrophic forgetting, improves the training and execution efficiency of neural networks, reduces parameter interference between different tasks, and improves the utilization efficiency of network parameters.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112328398B
    Figure CN112328398B
Patent Text Reader

Abstract

The present disclosure relates to a task processing method and device, an electronic device and a storage medium, the method comprising: inputting the to-be-processed information of the target task into a modulation network to obtain modulation information corresponding to the target task; according to the modulation information, determining the target network node for processing the to-be-processed information from multiple network nodes of the task network; processing the to-be-processed information by the target network node to obtain the processing result of the target task. According to the task processing method of an embodiment of the present disclosure, the network node for processing the task in the task network can be selected by the modulation information generated by the modulation network, which can reduce mutual interference between parameters, alleviate catastrophic forgetting, and can improve the reuse rate of network nodes in similar tasks through the modulation information, improve the utilization efficiency of network parameters, and improve the training efficiency of neural networks.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] The present disclosure relates to the field of computer technology, and in particular to a task processing method and device, an electronic device, and a storage medium. Background Art

[0002] Continuous learning refers to an AI model or system (e.g., a neural network) sequentially learning a series of tasks, and cannot use data from previously learned tasks when learning new tasks. This learning paradigm is suitable for practical application scenarios where data is continuously input, and is a basic requirement for general artificial intelligence. The key to achieving continuous learning is that new knowledge cannot overwrite old knowledge, thereby avoiding catastrophic forgetting.

[0003] In the related art, as far as the continuous learning algorithm of the neural network is concerned, one method is to constrain the parameters of the network through a certain regularization term so that the neural network can maintain good performance on the learned task while learning the task. The elastic weight consolidation algorithm is a representative of this method, which overcomes catastrophic forgetting by selectively reducing the learning rate of the weights that are important to the learned task. Another method is to dynamically assign different parameters to different tasks through a certain mechanism to reduce the coupling of the parameters of different tasks, thereby avoiding important parameters from being covered during learning. The context-dependent gating algorithm is a representative of this method, which alleviates the interference of network parameters when learning new tasks and slows down forgetting by randomly masking some neurons when processing different tasks. The context-dependent gating algorithm assigns a random binary masking vector to different tasks to control the activation state of the hidden layer neurons. When learning a specific task, some neurons of the network will be turned off according to the masking vector corresponding to the task, thereby avoiding the modification of the parameters related to it when learning the task. This is equivalent to using disjoint parameter sets to process different tasks, reduce mutual interference between parameters, and alleviate catastrophic forgetting. However, this method only alleviates the parameter interference between unrelated tasks, and does not utilize task correlation to reuse network parameters to improve the utilization efficiency of network parameters. Summary of the invention

[0004] The present disclosure proposes a task processing method and device, an electronic device and a storage medium.

[0005] According to one aspect of the present disclosure, a task processing method is provided, including: inputting information to be processed of a target task into a modulation network to obtain modulation information corresponding to the target task, wherein the target task is any one of a plurality of preset tasks; according to the modulation information, determining a target network node for processing the information to be processed from a plurality of network nodes of a task network; processing the information to be processed by the target network node to obtain a processing result of the target task.

[0006] In a possible implementation, the preset task includes a first task and a second task, and information similarity between modulation information corresponding to the first task and modulation information corresponding to the second task is positively correlated with task similarity between the first task and the second task.

[0007] In a possible implementation, the preset task includes a first task and a second task, and the information similarity between the modulation information corresponding to the first task and the modulation information corresponding to the second task is positively correlated with the repetition rate of the network nodes in the first network node and the second network node in the task network, wherein the first network node is the target network node in the task network for processing the information to be processed of the first task, and the second network node is the target network node in the task network for processing the information to be processed of the second task.

[0008] In a possible implementation, the modulation network includes any one of an artificial neural network and a spiking neural network, and the task network includes any one of a spiking neural network and an artificial neural network.

[0009] In a possible implementation, the method further includes: inputting a training sample of a training task into the modulation network to obtain first training modulation information of the training sample, wherein the training task is any one of a plurality of tasks; obtaining second training modulation information of the training task based on the first training modulation information of the plurality of training samples of the training task; and training the modulation network based on the first training modulation information and the second training modulation information.

[0010] In a possible implementation, obtaining second training modulation information of the training task based on first training modulation information of multiple training samples of the training task includes: obtaining average training modulation information of the first training modulation information of the multiple training samples; and performing thresholding processing on the average training modulation information to obtain the second training modulation information.

[0011] In a possible implementation, the modulation network is trained according to the first training modulation information and the second training modulation information, including: obtaining similarity constraint information according to the first training modulation information and the second training modulation information; obtaining regularization information according to the second training modulation information; determining a first network loss of the modulation network according to the similarity constraint information and the regularization information; and training the modulation network according to the first network loss.

[0012] In a possible implementation, the method further includes: obtaining third training modulation information of the training task based on the training samples of the training task and a trained modulation network, wherein the training task is any one of multiple tasks; determining a target network node in the task network for processing the training samples of the training task based on the third training modulation information; processing the training samples of the training task through the target network node to obtain a training result; determining a second network loss of the task network based on the training result and the labeling information of the training samples; and training the task network based on the second network loss.

[0013] In one possible implementation, third training modulation information of the training task is obtained based on the training samples of the training task and the trained modulation network, including: when the task network is a single hidden layer neural network, the third training modulation information of the current training task is determined based on the fourth training modulation information of the current training task obtained from the modulation network and the fifth training modulation information of the trained historical training tasks.

[0014] In a possible implementation, the multiple preset tasks include at least one of an image processing task, a voice processing task, a text processing task, and a vector processing task, and the information to be processed includes at least one of image information, voice information, text information, and vector information.

[0015] According to one aspect of the present disclosure, a task processing device is provided, including: a modulation information module, used to input the information to be processed of the target task into a modulation network to obtain modulation information corresponding to the target task, wherein the target task is any one of a plurality of preset tasks; a target node module, used to determine, according to the modulation information, a target network node for processing the information to be processed from a plurality of network nodes of the task network; and a processing module, used to process the information to be processed through the target network node to obtain a processing result of the target task.

[0016] In a possible implementation, the preset task includes a first task and a second task, and information similarity between modulation information corresponding to the first task and modulation information corresponding to the second task is positively correlated with task similarity between the first task and the second task.

[0017] In a possible implementation, the preset task includes a first task and a second task, and the information similarity between the modulation information corresponding to the first task and the modulation information corresponding to the second task is positively correlated with the repetition rate of the network nodes in the first network node and the second network node in the task network, wherein the first network node is the target network node in the task network for processing the information to be processed of the first task, and the second network node is the target network node in the task network for processing the information to be processed of the second task.

[0018] In a possible implementation, the modulation network includes any one of an artificial neural network and a spiking neural network, and the task network includes any one of a spiking neural network and an artificial neural network.

[0019] In a possible implementation, the device also includes a modulation network training module, which is used to: input a training sample of a training task into the modulation network to obtain first training modulation information of the training sample, where the training task is any one of multiple tasks; obtain second training modulation information of the training task based on the first training modulation information of multiple training samples of the training task; and train the modulation network based on the first training modulation information and the second training modulation information.

[0020] In a possible implementation, the modulation network training module is further used to: obtain average training modulation information of first training modulation information of the multiple training samples; and perform thresholding processing on the average training modulation information to obtain the second training modulation information.

[0021] In a possible implementation, the modulation network training module is further used to: obtain similarity constraint information based on the first training modulation information and the second training modulation information; obtain regularization information based on the second training modulation information; determine the first network loss of the modulation network based on the similarity constraint information and the regularization information; and train the modulation network based on the first network loss.

[0022] In a possible implementation, the device also includes a task network training module, which is used to: obtain third training modulation information of the training task based on the training samples of the training task and a trained modulation network, where the training task is any one of multiple tasks; determine a target network node in the task network for processing the training samples of the training task based on the third training modulation information; process the training samples of the training task through the target network node to obtain a training result; determine a second network loss of the task network based on the training result and the labeling information of the training samples; and train the task network based on the second network loss.

[0023] In one possible implementation, the task network training module is further used to: when the task network is a single hidden layer neural network, determine the third training modulation information of the current training task based on the fourth training modulation information of the current training task obtained by the modulation network and the fifth training modulation information of the trained historical training tasks.

[0024] In a possible implementation, the multiple preset tasks include at least one of an image processing task, a voice processing task, a text processing task, and a vector processing task, and the information to be processed includes at least one of image information, voice information, text information, and vector information.

[0025] According to one aspect of the present disclosure, an electronic device is provided, comprising: a processor; and a memory for storing processor-executable instructions; wherein the processor is configured to: execute the above-mentioned task processing method.

[0026] According to one aspect of the present disclosure, a computer-readable storage medium is provided, on which computer program instructions are stored, and when the computer program instructions are executed by a processor, the above-mentioned task processing method is implemented.

[0027] According to the task processing method of the embodiment of the present disclosure, the modulation information generated by the modulation network can be used to select the network nodes used to process the task in the task network, which can reduce the mutual interference between parameters, alleviate catastrophic forgetting, and improve the reuse rate of network nodes in similar tasks through the modulation information, thereby improving the utilization efficiency of network parameters. In addition, the pulse neural network can be used as a task network to process complex sequential tasks, so that the pulse neural network can be trained or execute multiple tasks continuously under the action of the modulation signal, thereby improving the training and execution efficiency of the neural network. Further, in the process of training the modulation network, the modulation information output by the modulation network for the same task can be made to have a higher similarity and be more concentrated in the feature space through the similarity constraint information, and the modulation information output by the modulation network for different tasks can be made to have a lower similarity and be far away from each other in the feature space. When the task network selects the target network node through the modulation information output by the modulation network, the repetition rate of the target network node selected for similar tasks is higher, and the repetition rate of the target network node selected for dissimilar tasks is lower, thereby improving the utilization efficiency of network parameters, improving the training efficiency of the task network, and reducing the parameter interference between different tasks.

[0028] It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.

[0029] Further features and aspects of the present disclosure will become apparent from the following detailed description of exemplary embodiments with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present disclosure and are used to illustrate the technical solutions of the present disclosure together with the specification.

[0031] Figure 1 A flowchart showing a task processing method according to an embodiment of the present disclosure;

[0032] Figure 2 A schematic diagram showing an application of a task processing method according to an embodiment of the present disclosure;

[0033] Figure 3 A block diagram showing a task processing device according to an embodiment of the present disclosure;

[0034] Figure 4 A block diagram showing a task processing device according to an embodiment of the present disclosure;

[0035] Figure 5 A block diagram of a task processing device according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0036] Various exemplary embodiments, features and aspects of the present disclosure will be described in detail below with reference to the accompanying drawings. The same reference numerals in the accompanying drawings represent elements with the same or similar functions. Although various aspects of the embodiments are shown in the accompanying drawings, the drawings are not necessarily drawn to scale unless otherwise specified.

[0037] The word “exemplary” is used exclusively herein to mean “serving as an example, example, or illustration.” Any embodiment described herein as “exemplary” is not necessarily to be construed as preferred or advantageous over other embodiments.

[0038] The term "and / or" herein is only a description of the association relationship of the associated objects, indicating that there may be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the term "at least one" herein represents any combination of at least two of any one or more of a plurality of. For example, including at least one of A, B, and C can represent including any one or more elements selected from the set consisting of A, B, and C.

[0039] In addition, in order to better illustrate the present disclosure, numerous specific details are given in the following specific embodiments. It should be understood by those skilled in the art that the present disclosure can also be implemented without certain specific details. In some examples, methods, means, components and circuits well known to those skilled in the art are not described in detail in order to highlight the subject matter of the present disclosure.

[0040] Figure 1 A flowchart of a task processing method according to an embodiment of the present disclosure is shown. Figure 1 As shown, the method includes:

[0041] In step S11, the information to be processed of the target task is input into the modulation network to obtain modulation information corresponding to the target task, where the target task is any one of a plurality of preset tasks;

[0042] In step S12, according to the modulation information, a target network node for processing the information to be processed is determined from a plurality of network nodes of the task network;

[0043] In step S13, the information to be processed is processed by the target network node to obtain a processing result of the target task.

[0044] According to the task processing method of the embodiment of the present disclosure, the network nodes used to process tasks in the task network can be selected through the modulation information generated by the modulation network, which can reduce mutual interference between parameters and alleviate catastrophic forgetting. In addition, the modulation information can be used to increase the reuse rate of network nodes in similar tasks, improve the utilization efficiency of network parameters, and improve the training efficiency of neural networks.

[0045] In a possible implementation, the task processing method may be executed by a terminal device or other processing device, wherein the terminal device may be a user equipment (UE), a mobile device, a user terminal, a terminal, a cellular phone, a cordless phone, a personal digital assistant (PDA), a handheld device, a computing device, a vehicle-mounted device, a wearable device, etc. Other processing devices may be a server or a cloud server, etc. In some possible implementations, the task processing method may be implemented by a processor calling a computer-readable instruction stored in a memory.

[0046] In a possible implementation, usually, a neural network can achieve specific functions through specific training. For example, a neural network can be trained through sample images with position annotations to enable the neural network to acquire the ability to determine the position of a target object in an image, or a neural network can be trained through sample images with contour annotations to enable the neural network to acquire the ability to recognize the contour of a target object in an image. In more complex scenarios, neural networks are required to have multiple capabilities and perform multiple tasks at the same time. For example, in a monitoring scenario, a neural network not only needs to detect the position of a target object in a monitoring video, but also needs to identify the identity of the target object. Storing the architecture and parameters of two or more neural networks in a processor may cause problems such as waste of storage resources and low processing efficiency. Therefore, a neural network may be required to be able to perform multiple tasks.

[0047] In a possible implementation, in the related art, a part of the network nodes may be randomly shielded when the neural network performs different tasks or performs training for different tasks, that is, the parameters of the shielded network nodes will not be updated during training, and the shielded network nodes will not be used when performing tasks. In this way, the neural network can perform different tasks through different nodes, or be trained for different tasks. For example, for task A, a part of the nodes may be randomly shielded, and a group of unshielded network nodes (such as node group A) may be used to train or perform task A. For task B, a part of the network nodes may be randomly shielded, and a group of unshielded network nodes (such as node group B) may be used to train or perform task B. However, since the shielded network nodes are randomly selected, during the training of the neural network, different network nodes may be selected for training and execution for similar tasks, resulting in low training efficiency and low parameter utilization efficiency of the network nodes.

[0048] In a possible implementation, in order to solve the above problem, a modulation signal can be generated according to the characteristics of the task through a modulation network, and some network nodes in the task network can be shielded through the modulation signal, and the unshielded network nodes can be used for training and execution. Since the modulation signal is generated according to the characteristics of the task, for similar tasks, the similarity of the modulation signal is high, and the repetition rate of the network nodes selected for training or executing tasks based on the modulation signal is also high. Therefore, for similar tasks, the training efficiency of the neural network and the parameter utilization rate of the network nodes can be improved.

[0049] In a possible implementation, the multiple preset tasks include at least one of an image processing task, a speech processing task, a text processing task, and a vector processing task, and the information to be processed includes at least one of image information, speech information, text information, and vector information. In the example, the task may be an image processing task, such as a task for identifying the position of an object in an image, and the information to be processed may be image information. For another example, the task may be a text processing task, such as recognizing the semantics of text, and the information to be processed may be text information (e.g., words, phrases, sentences, text paragraphs, etc.). The present disclosure does not limit the categories of preset tasks and information to be processed.

[0050] In a possible implementation, in step S11, the target task may be any one of a plurality of preset tasks, and the information to be processed may be information corresponding to the target task. For example, if the target task is an image processing task, the information to be processed may be image information. The information to be processed of the target task may be input into the modulation network, and the modulation network may output modulation information corresponding to the target task. The modulation information is used to shield some network nodes in the task network.

[0051] In the example, the target task may be a task of detecting the position of a target object in an image, the information to be processed may be image information, and the modulation network may generate modulation information for the task based on the input image information. For another example, the target task may be a task of recognizing the semantics of text, the information to be processed may be text information, and the modulation network may generate modulation information for the task based on the input text information. Different target tasks generate different modulation information.

[0052] In a possible implementation, the preset task includes a first task and a second task, and information similarity between modulation information corresponding to the first task and modulation information corresponding to the second task is positively correlated with task similarity between the first task and the second task.

[0053] In the example, since the modulation information is generated based on the target task, if the two target tasks have a high similarity, the generated modulation information has a high similarity. Conversely, if the two target tasks have a low similarity, the generated modulation information has a low similarity. For example, the first task and the second task are both image processing tasks, the first task is a task for identifying the position of a target object in an image, and the second task is a task for identifying the contour of a target object in an image. The similarity between the first task and the second task is high, and the modulation information corresponding to the first task and the modulation information corresponding to the second task have a high similarity. For another example, the first task is a task for identifying the position of a target object in an image, and the second task is a task for identifying the semantics of text. The similarity between the first task and the second task is low, and the modulation information corresponding to the first task and the modulation information corresponding to the second task have a low similarity.

[0054] In the example, the modulation information may be information in the form of a vector (e.g., a modulation vector). When the task similarity between the first task and the second task is high, the similarity between the modulation vector corresponding to the first task and the modulation vector corresponding to the second task is high, for example, the cosine similarity is high. Conversely, when the task similarity between the first task and the second task is low, the similarity between the modulation vector corresponding to the first task and the modulation vector corresponding to the second task is low, for example, the cosine similarity is low. The present disclosure does not limit the data type of the modulation information.

[0055] In a possible implementation, the modulation network includes any one of an artificial neural network and a pulse neural network, and the task network includes any one of a pulse neural network and an artificial neural network. In the example, the artificial neural network is characterized by time discreteness and continuous output, and is suitable for high-precision numerical approximation tasks. The pulse neural network is characterized by time continuity and discrete output, and is suitable for complex time series information processing tasks. The artificial neural network and the pulse neural network can be combined into a heterogeneous neural network, and can collaboratively complete continuous learning and execution tasks.

[0056] In the example, an artificial neural network with strong fitting ability can be used as a modulation network to generate modulation information based on the similarity of the task, and a pulse neural network suitable for complex time series information processing tasks can be used as a task network to train multiple tasks or execute multiple tasks under the modulation information of the modulation network. The present disclosure does not limit the types of modulation networks and task networks. For example, the modulation network can be a pulse neural network, and the task network can be an artificial neural network. Alternatively, both the modulation network and the task network can be pulse neural networks, or, both the modulation network and the task network can be artificial neural networks.

[0057] In this way, complex timing tasks can be processed by the pulse neural network, and the pulse neural network can be trained or execute multiple tasks continuously under the action of the modulated signal, thereby improving the training and execution efficiency of the neural network.

[0058] In one possible implementation, in step S12, the modulation information may act on the task network, control the task network to shield specific network nodes, and process the information to be processed through unshielded network nodes, that is, use the unshielded network nodes as target network nodes for processing the information to be processed.

[0059] In a possible implementation, the preset task includes a first task and a second task, and the information similarity between the modulation information corresponding to the first task and the modulation information corresponding to the second task is positively correlated with the repetition rate of the network nodes in the first network node and the second network node in the task network, wherein the first network node is the target network node in the task network for processing the information to be processed of the first task, and the second network node is the target network node in the task network for processing the information to be processed of the second task.

[0060] In a possible implementation, if the task similarity between the first task and the second task is high, the information similarity between the modulation information corresponding to the first task and the modulation information corresponding to the second task is also high, and further, the repetition rate of the network nodes selected by the modulation information with high similarity is high. That is, when the task similarity is high, when executing tasks or training, a part of the network nodes and the parameters of these network nodes can be used to improve the training efficiency and parameter utilization. For example, the first task and the second task are both image processing tasks, the first task is a task for identifying the position of the target object in the image, and the second task is a task for identifying the outline of the target object in the image. The similarity between the first task and the second task is high, then the repetition rate of the first network node and the second network node is high, that is, among the network nodes used to execute the first task and the second task, the number of repeated network nodes is large, which can improve the parameter utilization of the network nodes.

[0061] For another example, the first task is to identify the position of a target object in an image, and the second task is to identify the semantics of text. If the similarity between the first task and the second task is low, then the repetition rate of the first network node and the second network node is low, that is, among the network nodes used to execute the first task and the second task, the number of repeated network nodes is small, which can reduce parameter interference between different tasks.

[0062] In a possible implementation, in step S13, the information to be processed may be processed by the target network node to obtain the processing result of the target task. For example, the information to be processed of the first task may be processed by the first network node to obtain the processing result of the first task, and the information to be processed of the second task may be processed by the second network node to obtain the processing result of the second task. That is, the target network node corresponding to each task may be selected by the modulation information of multiple tasks, and the target network node corresponding to each task may be used to process the information to be processed of each task, thereby obtaining the processing result of each task.

[0063] In the example, task A is an image processing task, and the information to be processed is image information; task B is a text processing task, and the information to be processed is text information; task C is a voice processing task, and the information to be processed is voice information. The modulation network can generate modulation information A for task A for image information, modulation information B for task B for text information, and modulation information C for task C for voice information. When executing tasks, the task network can determine the network node group A for executing task A according to the modulation information A, and process the image information through the network node group A to obtain the processing result of task A, and can determine the network node group B for executing task B according to the modulation information B, and process the text information through the network node group B to obtain the processing result of task B, and can determine the network node group C for executing task C according to the modulation information C, and process the voice information through the network node group C to obtain the processing result of task C.

[0064] In a possible implementation, the task network and the modulation network may be trained so that the modulation network acquires the ability to obtain modulation information corresponding to a preset task based on information to be processed of the preset task, and the task network acquires the ability to process tasks.

[0065] In one possible implementation, the modulation network may be trained first, and modulation information may be generated through the trained modulation network to select a target network node in the task network for performing a specific task based on the modulation information, and then the sample information of the specific task may be used to train the network parameters of the target network node in the task network.

[0066] In a possible implementation, the step of training the modulation network may include: inputting a training sample of a training task into the modulation network to obtain first training modulation information of the training sample, where the training task is any one of multiple tasks; obtaining second training modulation information of the training task based on the first training modulation information of multiple training samples of the training task; and training the modulation network based on the first training modulation information and the second training modulation information.

[0067] In one possible implementation, the training task can be any type of task, for example, an image processing task, a speech processing task, a text processing task, a vector processing task, etc. The training sample of the training task can be image information, speech information, text information, vector information, etc. The present disclosure does not limit the training tasks and training samples.

[0068] In a possible implementation, the modulation network may output first training modulation information according to the input training sample. In an example, the first training modulation information may be output information in a vector form, and the vector may include multiple elements. The elements in the vector may be used to determine the shielded network nodes in the task network. The present disclosure does not limit the data type of the first training modulation information.

[0069] In a possible implementation, each training task may include multiple training samples, and the second training modulation information of the training task may be determined according to the first training modulation information of the multiple training samples of the training task output by the modulation network. For example, the first training modulation information of the multiple training samples may be weighted averaged, or the maximum value of the corresponding elements in each first training modulation information may be taken, etc. The present disclosure does not limit the method of obtaining the second training modulation information of the training task according to the first training modulation information.

[0070] In a possible implementation, obtaining second training modulation information of the training task based on first training modulation information of multiple training samples of the training task includes: obtaining average training modulation information of the first training modulation information of the multiple training samples; and performing thresholding processing on the average training modulation information to obtain the second training modulation information.

[0071] In a possible implementation, weighted averaging may be performed on the first training modulation information of the plurality of training samples to obtain average training modulation information. In the example, weighted averaging may be performed on corresponding elements in the plurality of first training modulation information, for example, weighted averaging may be performed on the i-th (i is a positive integer) element in each first training modulation information (for example, the weights of each first training modulation information are equal) element to obtain the i-th element in the average training modulation information. In this way, each element in the average training modulation information may be determined, that is, the average training modulation information may be obtained.

[0072] In one possible implementation, each element in the average training modulation information may be thresholded. For example, each element may be compared with a threshold value (e.g., 0). If the element is greater than 0, the element is retained. If the element is less than 0, the element is replaced with 0. In this way, each element of the second training modulation information is obtained, that is, the second training modulation information is obtained. In another example, 1 / 2 may be used as a threshold. For example, the ith element of the average training modulation information may be subtracted from 1 / 2 and then compared with 0. If the ith element is still greater than 0 after subtracting 1 / 2, the element may be retained. Otherwise, the element is replaced with 0. In this way, each element of the second training modulation information is obtained, that is, the second training modulation information is obtained. The present disclosure does not limit the threshold value for comparison.

[0073] In a possible implementation, the modulation network may be trained according to the second training modulation information of the training task and the first training modulation information of the multiple training samples of the training task. For example, if the tasks corresponding to the multiple training samples are the same training task, the first training modulation information corresponding to the training samples should be the same. In the example, a similarity constraint may be imposed on each first training modulation information, for example, so that each first training modulation information output by the modulation network is similar to the second training modulation information of the training task. For example, each first training modulation information may be trained to approximate the second training modulation information, so that the modulation information (i.e., the first training modulation information) output by the modulation network for multiple training samples of the same training task is the same.

[0074] In a possible implementation, the modulation network is trained according to the first training modulation information and the second training modulation information, including: obtaining similarity constraint information according to the first training modulation information and the second training modulation information; obtaining regularization information according to the second training modulation information; determining a first network loss of the modulation network according to the similarity constraint information and the regularization information; and training the modulation network according to the first network loss.

[0075] In a possible implementation, similarity constraint information is obtained based on the first training modulation information and the second training modulation information, that is, the similarity of each first training modulation information is constrained by making each first training modulation information approach the second training modulation information of the training task. In an example, the similarity constraint information may include a second norm of a vector obtained by combining the first training modulation information and the second training modulation information, and the second norm is minimized through training, so that the first training modulation information of each training sample output by the modulation network approaches the second training modulation information of the training task.

[0076] In a possible implementation, similarity constraint information can be used to make the modulation information of the same or similar tasks output by the modulation network have a high similarity, and the modulation information of different tasks output by the modulation network is not constrained. This makes the modulation information of the same task output by the modulation network have a high similarity and more concentrated in the feature space, and makes the modulation information of different tasks output by the modulation network have a low similarity and are far away from each other in the feature space.

[0077] In a possible implementation, the network loss of the modulation network can be made positive through regularization information, so that the modulation network can be trained multiple times to avoid gradient disappearance and other conditions. In the example, the regularization information can be determined by a norm of the second training modulation information of the training task. The present disclosure does not limit the specific form of the regularization information, and it is only necessary to make the network loss of the modulation network positive.

[0078] In one possible implementation, the first network loss of the modulation network can be determined based on the similarity constraint information and the regularization information. For example, the similarity constraint information and the regularization information can be added to obtain the first network loss. Furthermore, the modulation network can be trained by the first network loss. For example, the first network loss can be back-propagated, and the network parameters of the modulation network can be adjusted by the gradient descent method. Multiple training samples of multiple training tasks can be input to iteratively execute the above training steps until the training conditions of the modulation network are met, for example, the number of training times reaches a predetermined number of times, the first network loss is less than a preset threshold or converges to a preset interval, etc. The present disclosure does not limit the training conditions of the modulation network.

[0079] In this way, through similarity constraint information, the modulation information of the same task output by the modulation network can be made to have a high similarity and be more concentrated in the feature space, and the modulation information of different tasks output by the modulation network can be made to have a low similarity and be far away from each other in the feature space. When the task network selects the target network node through the modulation information output by the modulation network, the repetition rate of the target network nodes selected for similar tasks is high, and the repetition rate of the target network nodes selected for dissimilar tasks is low, which can improve the utilization efficiency of network parameters, improve the training efficiency of the task network, and reduce parameter interference between different tasks.

[0080] In a possible implementation, after the training of the modulation network is completed, the trained modulation network can be used to generate modulation information to train the task network. For example, the modulation information can be used to select the target network node and adjust the network parameters of the target network node. The task network can be trained for multiple training tasks to obtain the trained task network. The step of training the task network may include: obtaining the third training modulation information of the training task according to the training sample of the training task and the trained modulation network, and the training task is any one of the multiple tasks; determining the target network node in the task network for processing the training sample of the training task according to the third training modulation information; processing the training sample of the training task through the target network node to obtain the training result; determining the second network loss of the task network according to the training result and the labeling information of the training sample; and training the task network according to the second network loss.

[0081] In a possible implementation, the training samples of the training task can be input into the trained modulation network to obtain the third training modulation information. In the example, if the task network has more network levels and more network nodes, the selection space for selecting the target network node is larger, and the possibility of parameter interference between different tasks is smaller, and the modulation information output by the trained modulation network can be directly determined as the third training modulation information.

[0082] In one possible implementation, if the task network has fewer network levels, for example, the task network is a single hidden layer neural network, then the selection space for selecting the target network node is smaller, and the possibility of parameter interference between different tasks is greater. The modulation information of the current training task and the modulation information of the historical training tasks can be used to determine the third training modulation information, and then determine the untrained network node as the target network node to reduce parameter interference between different tasks.

[0083] In one possible implementation, third training modulation information of the training task is obtained based on the training samples of the training task and the trained modulation network, including: when the task network is a single hidden layer neural network, the third training modulation information of the current training task is determined based on the fourth training modulation information of the current training task obtained from the modulation network and the fifth training modulation information of the trained historical training tasks.

[0084] In the example, if the current training task is the first training task, there is no historical training task that has been trained, and the target network node can be selected by the modulation information output by the modulation network, and there is no parameter interference between different tasks. If the current training task is not the first training task, the third training modulation information can be determined by the following formula (1) to select a network node different from the network node trained by the historical training task (i.e., an untrained network node) for training, thereby reducing parameter interference between different tasks.

[0085]

[0086] Among them, mask k is the fourth training modulation information output by the modulation network for the current training task (the kth training task), mask i is the fifth training modulation information output by the modulation network for the historical training task (the i-th training task), mask′ k is the third training modulation information.

[0087] In a possible implementation, the task network can shield the network nodes that are not to be trained in the current training task through the third training modulation information, and select the target network nodes to be trained. Further, the training samples can be processed through the target network nodes to obtain the training results, so as to determine the second network loss of the task network according to the error between the training results and the labeled information of the training samples, and the task network can be trained through the second network loss.

[0088] In a possible implementation, the second network loss can be back-propagated, and the network parameters of the target network nodes of the task network can be adjusted by the gradient descent method. Multiple training samples of multiple training tasks can be input to iteratively perform the above training steps until the training conditions of the task network are met, for example, the number of training times reaches a predetermined number of times, the second network loss is less than a preset threshold or converges to a preset interval, all network nodes in the task network have been trained a predetermined number of times, etc. The present disclosure does not limit the training conditions of the task network.

[0089] In a possible implementation, after the modulation network and the task network are trained, the two networks can be tested. If the accuracy of executing the task in the test is higher than the accuracy threshold, the modulation network and the task network can be used to actually execute the task. Otherwise, the two networks can continue to be trained.

[0090] According to the task processing method of the embodiment of the present disclosure, the modulation information generated by the modulation network can be used to select the network nodes used to process the task in the task network, which can reduce the mutual interference between parameters, alleviate catastrophic forgetting, and improve the reuse rate of network nodes in similar tasks through the modulation information, thereby improving the utilization efficiency of network parameters. In addition, the pulse neural network can be used as a task network to process complex sequential tasks, so that the pulse neural network can be trained or execute multiple tasks continuously under the action of the modulation signal, thereby improving the training and execution efficiency of the neural network. Further, in the process of training the modulation network, the modulation information output by the modulation network for the same task can be made to have a higher similarity and be more concentrated in the feature space through the similarity constraint information, and the modulation information output by the modulation network for different tasks can be made to have a lower similarity and be far away from each other in the feature space. When the task network selects the target network node through the modulation information output by the modulation network, the repetition rate of the target network node selected for similar tasks is higher, and the repetition rate of the target network node selected for dissimilar tasks is lower, thereby improving the utilization efficiency of network parameters, improving the training efficiency of the task network, and reducing the parameter interference between different tasks.

[0091] Figure 2 A schematic diagram showing an application of the task processing method according to an embodiment of the present disclosure is shown as follows: Figure 2 As shown, the task network can select different nodes by modulating information to perform three tasks (ie, task 1, task 2, and task 3).

[0092] In one possible implementation, the modulation network can output modulation information of each task with respect to the information to be processed of each task. For example, with respect to the information to be processed of task 1, modulation information 1 of task 1 can be output; with respect to the information to be processed of task 2, modulation information 2 of task 2 can be output; and with respect to the information to be processed of task 3, modulation information 3 of task 3 can be output.

[0093] In a possible implementation, the task network can shield some network nodes according to the modulation information, that is, the shielded network nodes do not participate in the execution of the current task, and the unshielded network nodes are the target network nodes for executing the current task. Figure 2 As shown in FIG. 1 , when executing Task 2, the first and fourth network nodes in the first hidden layer and the second and third network nodes in the second hidden layer can be shielded. That is, the second and third network nodes in the first hidden layer and the first and fourth network nodes in the second hidden layer are the target network nodes for executing Task 2.

[0094] In a possible implementation, the task network can process the information to be processed of task 2 through the target network node to obtain the processing result of task 2. Similarly, the task network can select the target network node of task 1 through modulation information 1, and process the information to be processed of task 1 through the target network node to obtain the processing result of task 1. The target network node of task 3 can also be selected through modulation information 3, and the information to be processed of task 3 can be processed through the target network node to obtain the processing result of task 3.

[0095] In a possible implementation, the task processing method can be used to enable a neural network to process multiple tasks. For example, in the field of monitoring, the location of a target object can be determined and the identity of the target object can be identified. In the field of smart homes, the identity of a user can be identified and the user's voice commands can be recognized. The present disclosure does not limit the application field of the task processing method.

[0096] Figure 3 A block diagram of a task processing device according to an embodiment of the present disclosure is shown as follows: Figure 3 As shown, the device includes: a modulation information module 11, which is used to input the information to be processed of the target task into the modulation network to obtain modulation information corresponding to the target task, and the target task is any one of multiple preset tasks; a target node module 12, which is used to determine the target network node for processing the information to be processed from multiple network nodes of the task network according to the modulation information; and a processing module 13, which is used to process the information to be processed through the target network node to obtain the processing result of the target task.

[0097] In a possible implementation, the preset task includes a first task and a second task, and information similarity between modulation information corresponding to the first task and modulation information corresponding to the second task is positively correlated with task similarity between the first task and the second task.

[0098] In a possible implementation, the preset task includes a first task and a second task, and the information similarity between the modulation information corresponding to the first task and the modulation information corresponding to the second task is positively correlated with the repetition rate of the network nodes in the first network node and the second network node in the task network, wherein the first network node is the target network node in the task network for processing the information to be processed of the first task, and the second network node is the target network node in the task network for processing the information to be processed of the second task.

[0099] In a possible implementation, the modulation network includes any one of an artificial neural network and a pulse neural network, and the task network includes any one of a pulse neural network and an artificial neural network. In a possible implementation, the device further includes a modulation network training module, and the modulation network training module is used to: input a training sample of a training task into the modulation network to obtain first training modulation information of the training sample, and the training task is any one of a plurality of tasks; obtain second training modulation information of the training task according to the first training modulation information of the plurality of training samples of the training task; and train the modulation network according to the first training modulation information and the second training modulation information.

[0100] In a possible implementation, the modulation network training module is further used to: obtain average training modulation information of first training modulation information of the multiple training samples; and perform thresholding processing on the average training modulation information to obtain the second training modulation information.

[0101] In a possible implementation, the modulation network training module is further used to: obtain similarity constraint information based on the first training modulation information and the second training modulation information; obtain regularization information based on the second training modulation information; determine the first network loss of the modulation network based on the similarity constraint information and the regularization information; and train the modulation network based on the first network loss.

[0102] In a possible implementation, the device also includes a task network training module, which is used to: obtain third training modulation information of the training task based on the training samples of the training task and a trained modulation network, where the training task is any one of multiple tasks; determine a target network node in the task network for processing the training samples of the training task based on the third training modulation information; process the training samples of the training task through the target network node to obtain a training result; determine a second network loss of the task network based on the training result and the labeling information of the training samples; and train the task network based on the second network loss.

[0103] In one possible implementation, the task network training module is further used to: when the task network is a single hidden layer neural network, determine the third training modulation information of the current training task based on the fourth training modulation information of the current training task obtained by the modulation network and the fifth training modulation information of the trained historical training tasks.

[0104] In a possible implementation, the multiple preset tasks include at least one of an image processing task, a voice processing task, a text processing task, and a vector processing task, and the information to be processed includes at least one of image information, voice information, text information, and vector information.

[0105] It can be understood that the above-mentioned various method embodiments mentioned in the present disclosure can be combined with each other to form a combined embodiment without violating the principle logic. Due to space limitations, the present disclosure will not go into details.

[0106] In addition, the present disclosure also provides a task processing device, an electronic device, a computer-readable storage medium, and a program, all of which can be used to implement any task processing method provided by the present disclosure. The corresponding technical solutions and descriptions are referred to the corresponding records in the method part and will not be repeated here.

[0107] Those skilled in the art will appreciate that, in the above method of specific implementation, the order in which the steps are written does not imply a strict execution order and does not constitute any limitation on the implementation process. The specific execution order of the steps should be determined by their functions and possible internal logic.

[0108] In some embodiments, the functions or modules included in the apparatus provided in the embodiments of the present disclosure may be used to execute the method described in the above method embodiment. The specific implementation thereof may refer to the description of the above method embodiment. For the sake of brevity, it will not be repeated here.

[0109] The embodiment of the present disclosure also provides a computer-readable storage medium, on which computer program instructions are stored, and when the computer program instructions are executed by a processor, the above method is implemented. The computer-readable storage medium may be a non-volatile computer-readable storage medium.

[0110] The embodiment of the present disclosure further proposes an electronic device, comprising: a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured as the above method.

[0111] In the example, the memory may store instructions (e.g., instructions for calling data or information, or processing instructions for a neural network), and may also store information to be processed for multiple tasks. When the processor executes the task processing method, the instructions may be called to execute the steps of the task processing method. For example, an instruction may be called to execute an instruction for inputting the information to be processed into a modulation network, and a processing instruction of the modulation network may be called to obtain modulation information through the modulation network. For example, an instruction may be called to execute an instruction for determining a target network node in a task network through modulation information, and for another example, a processing instruction of a task network may be called to process the information to be processed through the target network node of the task network to obtain a processing result.

[0112] The electronic device may be provided as a terminal, a server, or a device in other forms.

[0113] Figure 4 8 is a block diagram of a task processing device 800 according to an exemplary embodiment. For example, the electronic device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, or the like.

[0114] Reference Figure 4 , the electronic device 800 may include one or more of the following components: a processing component 802 , a memory 804 , a power component 806 , a multimedia component 808 , an audio component 810 , an input / output (I / O) interface 812 , a sensor component 814 , and a communication component 816 .

[0115] The processing component 802 generally controls the overall operation of the electronic device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.

[0116] The memory 804 is configured to store various types of data to support operations on the electronic device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0117] The power supply component 806 provides power to the various components of the electronic device 800. The power supply component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 800.

[0118] The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the electronic device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0119] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC), and when the electronic device 800 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 804 or sent via the communication component 816. In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.

[0120] I / O interface 812 provides an interface between processing component 802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: home button, volume button, start button, and lock button.

[0121] The sensor assembly 814 includes one or more sensors for providing various aspects of status assessment for the electronic device 800. For example, the sensor assembly 814 can detect the open / closed state of the electronic device 800, the relative positioning of the components, such as the display and keypad of the electronic device 800, and the sensor assembly 814 can also detect the position change of the electronic device 800 or a component of the electronic device 800, the presence or absence of contact between the user and the electronic device 800, the orientation or acceleration / deceleration of the electronic device 800, and the temperature change of the electronic device 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0122] The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0123] In an exemplary embodiment, the electronic device 800 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above methods.

[0124] In an exemplary embodiment, a non-volatile computer-readable storage medium is also provided, such as a memory 804 including computer program instructions, which can be executed by a processor 820 of an electronic device 800 to perform the above method.

[0125] Figure 5 1 is a block diagram of a task processing device 1900 according to an exemplary embodiment. For example, the electronic device 1900 may be provided as a server. Figure 5 , the electronic device 1900 includes a processing component 1922, which further includes one or more processors, and a memory resource represented by a memory 1932 for storing instructions executable by the processing component 1922, such as an application. The application stored in the memory 1932 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 1922 is configured to execute instructions to perform the above method.

[0126] The electronic device 1900 may also include a power supply component 1926 configured to perform power management of the electronic device 1900, a wired or wireless network interface 1950 configured to connect the electronic device 1900 to a network, and an input / output (I / O) interface 1958. The electronic device 1900 may operate based on an operating system stored in the memory 1932, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™ or the like.

[0127] In an exemplary embodiment, a non-volatile computer-readable storage medium is also provided, such as a memory 1932 including computer program instructions, which can be executed by the processing component 1922 of the electronic device 1900 to perform the above method.

[0128] The present disclosure may be a system, a method and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the present disclosure.

[0129] A computer-readable storage medium may be a tangible device that can hold and store instructions used by an instruction execution device. A computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the above. More specific examples of computer-readable storage media (a non-exhaustive list) include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a raised structure in a groove on which instructions are stored, and any suitable combination of the above. The computer-readable storage medium here is not to be interpreted as a transient signal itself, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through a wire.

[0130] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.

[0131] The computer program instructions for performing the operation of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions may be executed completely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), may be customized by utilizing the state information of the computer-readable program instructions, and the electronic circuit may execute the computer-readable program instructions, thereby realizing various aspects of the present disclosure.

[0132] Various aspects of the present disclosure are described herein with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer-readable program instructions.

[0133] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processor of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0134] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0135] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to multiple embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a part of a module, program segment or instruction, and a part of the module, program segment or instruction includes one or more executable instructions for realizing the specified logical function. In some alternative implementations, the function marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or action, or can be implemented with a combination of special hardware and computer instructions.

[0136] The embodiments of the present disclosure have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.

Claims

1. A task processing method, It is characterized in that include: Inputting the information to be processed of the target task into the modulation network to obtain modulation information corresponding to the target task, wherein the target task is any one of a plurality of preset tasks, wherein the plurality of preset tasks include an image processing task, and the information to be processed includes image information; According to the modulation information, determining a target network node for processing the information to be processed from a plurality of network nodes of the task network; The information to be processed is processed by the target network node to obtain a processing result of the target task, wherein the processing result of the target task includes the position and identity of the target object in the image information.

2. The method according to claim 1, It is characterized in that The preset task includes a first task and a second task, and information similarity between modulation information corresponding to the first task and modulation information corresponding to the second task is positively correlated with task similarity between the first task and the second task.

3. The method according to claim 1, It is characterized in that The preset tasks include a first task and a second task. The information similarity between the modulation information corresponding to the first task and the modulation information corresponding to the second task is positively correlated with the repetition rate of the network nodes in the first network node and the second network node in the task network, wherein the first network node is the target network node in the task network for processing the information to be processed of the first task, and the second network node is the target network node in the task network for processing the information to be processed of the second task.

4. The method according to claim 1, It is characterized in that The modulation network includes any one of an artificial neural network and a pulse neural network, and the task network includes any one of a pulse neural network and an artificial neural network.

5. The method according to claim 1, It is characterized in that The method further comprises: Inputting a training sample of a training task into the modulation network to obtain first training modulation information of the training sample, wherein the training task is any one of a plurality of tasks; Obtaining second training modulation information of the training task according to first training modulation information of a plurality of training samples of the training task; The modulation network is trained according to the first training modulation information and the second training modulation information.

6. The method according to claim 5, It is characterized in that Obtaining second training modulation information of the training task according to first training modulation information of a plurality of training samples of the training task includes: Obtain average training modulation information of first training modulation information of the plurality of training samples; Thresholding processing is performed on the average training modulation information to obtain the second training modulation information.

7. The method according to claim 5, It is characterized in that Training the modulation network according to the first training modulation information and the second training modulation information includes: Obtaining similarity constraint information according to the first training modulation information and the second training modulation information; Obtaining regularization information according to the second training modulation information; Determining a first network loss of the modulation network according to the similarity constraint information and the regularization information; The modulation network is trained according to the first network loss.

8. The method according to claim 1, It is characterized in that The method further comprises: According to the training samples of the training task and the trained modulation network, obtaining third training modulation information of the training task, wherein the training task is any one of the plurality of tasks; Determine, according to the third training modulation information, a target network node in the task network for processing the training sample of the training task; Processing the training samples of the training task by the target network node to obtain a training result; Determining a second network loss of the task network according to the training result and the labeling information of the training sample; The task network is trained according to the second network loss.

9. The method according to claim 8, It is characterized in that Obtaining third training modulation information of the training task according to the training sample of the training task and the trained modulation network, including: When the task network is a single hidden layer neural network, the third training modulation information of the current training task is determined according to the fourth training modulation information of the current training task obtained by the modulation network and the fifth training modulation information of the trained historical training tasks.

10. The method according to claim 1, It is characterized in that The multiple preset tasks also include at least one of a voice processing task, a text processing task, and a vector processing task, and the information to be processed also includes at least one of voice information, text information, and vector information.

11. A task processing device, It is characterized in that include: A modulation information module, used for inputting the information to be processed of the target task into the modulation network to obtain modulation information corresponding to the target task, wherein the target task is any one of a plurality of preset tasks, wherein the plurality of preset tasks include an image processing task, and the information to be processed includes image information; A target node module, used to determine a target network node for processing the information to be processed from a plurality of network nodes of the task network according to the modulation information; A processing module is used to process the information to be processed through the target network node to obtain a processing result of the target task, wherein the processing result of the target task includes the position and identity of the target object in the image information.

12. A task processing device, It is characterized in that include: processor; a memory for storing processor-executable instructions; Wherein, the processor is configured to: execute the method described in any one of claims 1 to 10.

13. A computer-readable storage medium having computer program instructions stored thereon, It is characterized in that When the computer program instructions are executed by a processor, the method according to any one of claims 1 to 10 is implemented.