Resource processing network training method, resource processing method and device
Through federated learning and meta-distillation learning between participating clients, efficient modeling under unlabeled sample resources is achieved, solving the problems of 'data islands' and unlabeled sample resource processing, and improving the business cold start phase. The modeling efficiency and accuracy meet the data privacy and security requirements.
Patent Information
- Application Number
- CN202310306485.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-27
- Publication Date
- 2024-09-27
AI Technical Summary
Existing technology cannot perform modeling under the condition of unlabeled sample resources, and cannot be directly applied to transfer learning modeling under the condition of 'data island', resulting in business scenarios under strong supervision and strong data privacy compliance requirements such as finance. Unlabeled sample resources cannot be processed efficiently and accurately.
Propose a resource processing network training method, which performs distillation learning by adaptively integrating business networks between participating clients. It uses federated learning and meta-distillation learning technology to train zero-sample networks in unlabeled sample scenarios to ensure data privacy and security. , realize the external migration of sample resources and network capabilities, and improve modeling efficiency and accuracy during the business cold start phase.
It achieves efficient and accurate modeling effects under the condition of unlabeled sample resources in the business cold start phase, meets data privacy and security requirements, solves the problems of 'data islands' and unlabeled sample resource processing, and improves modeling efficiency and Accuracy.
Smart Images

Figure CN118709751A
Abstract
Description
Technical Field
[0001] The present application belongs to the field of computer technology, and specifically relates to a resource processing network training method, a resource processing method and a device. Background Art
[0002] In business scenarios such as financial risk control, medical imaging, and security, the modeling process often faces the problem of model cold start due to the lack of labeled samples due to the long overdue performance cycle of object loans and the high cost of sample labeling. On the other hand, the "data island" problem causes labeled samples to be scattered in different business institutions in small sample states. For example, different medical institutions have medical images of different patients, and different banking institutions have different overdue objects. However, due to data privacy compliance, different institutions cannot directly share data for joint modeling.
[0003] Related technologies usually use transfer learning to solve the small sample problem in machine learning modeling. However, most transfer learning solutions still require a small amount of labeled sample resources and cannot be modeled under the condition of unlabeled sample resources (zero samples). In addition, the transfer learning solutions in related technologies need to bring together the data of the source domain and the target domain for transfer learning modeling. However, under special strong supervision and strong data privacy compliance requirements such as financial scenarios, the data must not leave the local financial institution, resulting in the traditional transfer learning method cannot be directly applied to transfer learning modeling under "data island" conditions. In summary, since the related technology cannot be modeled under the condition of unlabeled sample resources and cannot be directly applied to transfer learning modeling under "data island" conditions, it is impossible to efficiently and accurately process unlabeled sample resources. Summary of the invention
[0004] In order to solve the above technical problems, the present application provides a resource processing network training method, a resource processing method and a device.
[0005] On the one hand, the present application proposes a resource processing network training method, which is applied to each participating client of at least two participating clients, each participating client includes supporting sample resources, querying sample resources, at least two business networks and a first student network, and the method includes:
[0006] Get the teacher network from the server;
[0007] Training the first student network based on at least two business networks, the teacher network and the supporting sample resources, performing resource evaluation processing on the resource feature information of the query sample resources based on the training results, and determining the update gradient of the teacher network according to the resource evaluation processing results;
[0008] Sending update gradients to a server so that the server updates the network parameters of the teacher network based on the update gradients sent by each participating client to obtain a target teacher network; and enabling the server to transmit the target teacher network to a target client, wherein the target client includes at least two business networks and a second student network; and enabling the target client to train the second student network based on at least two business networks, the target teacher network and target unlabeled sample resources under a preset business scenario to obtain a target student network;
[0009] Among them, the target student network is used to determine the resource evaluation information of the input resources according to the input resources; the resources corresponding to the input resources, the supporting sample resources, the query sample resources and the target unlabeled sample resources are at least one of resource transfer associated data and multimedia data; when the resource is resource transfer associated data, the resource feature information of the resource represents the operation information of the object corresponding to the resource transfer associated data, and when the resource is multimedia data, the resource feature information of the resource represents the attribute information of the object corresponding to the multimedia data.
[0010] On the other hand, the present application proposes a resource processing network training method, the method comprising:
[0011] Obtain target unlabeled sample resources under a preset business scenario, and obtain a target teacher network from a server; the target teacher network is obtained by the server updating the network parameters of the teacher network in the server based on the update gradient sent by each participating client; the update gradient sent by each participating client is used to train a first student network for each participating client based on at least two business networks, the teacher network and the supporting sample resources included in each participating client, and resource evaluation processing is performed on the resource feature information of the query sample resources included in each participating client based on the training result, and the result is determined according to the resource evaluation processing result; the teacher network included in each participating client is obtained from the server for each participating client;
[0012] Training a second learning network based on at least two business networks, the target teacher network and the target unlabeled sample resources to obtain a target student network;
[0013] Among them, the target student network is used to determine the resource evaluation information of the input resources according to the input resources; the resources corresponding to the input resources, the supporting sample resources, the query sample resources and the target unlabeled sample resources are at least one of resource transfer associated data and multimedia data; when the resource is resource transfer associated data, the resource feature information of the resource represents the operation information of the object corresponding to the resource transfer associated data, and when the resource is multimedia data, the resource feature information of the resource represents the attribute information of the object corresponding to the multimedia data.
[0014] On the other hand, the present application proposes a resource processing network training method, the method comprising:
[0015] Receive the update gradient sent by each participating client; train a first student network for each participating client based on at least two business networks, a teacher network and supporting sample resources included in each participating client, perform resource evaluation processing on resource feature information of the query sample resources included in each participating client based on the training result, and determine the result according to the resource evaluation processing result; the teacher network included in each participating client is obtained by each participating client from the server;
[0016] Updating the network parameters of the teacher network based on the update gradient determined by each participating client to obtain a target teacher network;
[0017] Transmitting the target teacher network to a target client, the target client including at least two business networks and a second student network; so that the target client trains the second student network based on at least two business networks, the target teacher network and target unlabeled sample resources under a preset business scenario to obtain a target student network;
[0018] Among them, the target student network is used to determine the resource evaluation information of the input resources according to the input resources; the resources corresponding to the input resources, the supporting sample resources, the query sample resources and the target unlabeled sample resources are at least one of resource transfer associated data and multimedia data; when the resource is resource transfer associated data, the resource feature information of the resource represents the operation information of the object corresponding to the resource transfer associated data, and when the resource is multimedia data, the resource feature information of the resource represents the attribute information of the object corresponding to the multimedia data.
[0019] On the other hand, the present application proposes a resource processing method, the method comprising:
[0020] Get the resources to be processed;
[0021] Inputting resource characteristic information of the resource to be processed into the target student network for resource evaluation processing to obtain resource evaluation information of the resource to be processed;
[0022] Wherein, the target student network is trained based on the resource processing network training method described above.
[0023] On the other hand, the present application proposes a resource processing network training device, which is applied to each participating client of at least two participating clients, each participating client includes supporting sample resources, querying sample resources, at least two business networks and a first student network, and the device includes:
[0024] The teacher network acquisition module is used to obtain the teacher network from the server;
[0025] An update gradient determination module, configured to train the first student network based on at least two business networks, the teacher network and the supporting sample resources, perform resource evaluation processing on the resource feature information of the query sample resources based on the training results, and determine the update gradient of the teacher network according to the resource evaluation processing results;
[0026] An update gradient sending module is used to send an update gradient to a server, so that the server updates the network parameters of the teacher network based on the update gradient sent by each participating client to obtain a target teacher network; and to enable the server to transmit the target teacher network to a target client, wherein the target client includes at least two business networks and a second student network; and to enable the target client to train the second student network based on at least two business networks, the target teacher network and target unlabeled sample resources under a preset business scenario to obtain a target student network;
[0027] Among them, the target student network is used to determine the resource evaluation information of the input resources according to the input resources; the resources corresponding to the input resources, the supporting sample resources, the query sample resources and the target unlabeled sample resources are at least one of resource transfer associated data and multimedia data; when the resource is resource transfer associated data, the resource feature information of the resource represents the operation information of the object corresponding to the resource transfer associated data, and when the resource is multimedia data, the resource feature information of the resource represents the attribute information of the object corresponding to the multimedia data.
[0028] On the other hand, the present application proposes a resource processing network training device, the device comprising:
[0029] A resource network acquisition module is used to acquire target unlabeled sample resources under a preset business scenario and acquire a target teacher network from a server; the target teacher network is obtained by the server updating the network parameters of the teacher network in the server based on the update gradient sent by each participating client; the update gradient sent by each participating client is used to train a first student network for each participating client based on at least two business networks, a teacher network and supporting sample resources included in each participating client, and resource evaluation processing is performed on the resource feature information of the query sample resources included in each participating client based on the training results, and the network is determined based on the resource evaluation processing results; the teacher network included in each participating client is obtained from the server for each participating client;
[0030] A target student network training module is used to train a second learning network based on at least two business networks, the target teacher network and the target unlabeled sample resources to obtain a target student network;
[0031] Among them, the target student network is used to determine the resource evaluation information of the input resources according to the input resources; the resources corresponding to the input resources, the supporting sample resources, the query sample resources and the target unlabeled sample resources are at least one of resource transfer associated data and multimedia data; when the resource is resource transfer associated data, the resource feature information of the resource represents the operation information of the object corresponding to the resource transfer associated data, and when the resource is multimedia data, the resource feature information of the resource represents the attribute information of the object corresponding to the multimedia data.
[0032] On the other hand, the present application proposes a resource processing network training device, the device comprising:
[0033] The update gradient receiving module is used to receive the update gradient sent by each participating client; the update gradient sent by each participating client is used to train a first student network for each participating client based on at least two business networks, a teacher network and supporting sample resources included in each participating client, and resource evaluation processing is performed on the resource feature information of the query sample resources included in each participating client based on the training result, and the update gradient is determined according to the resource evaluation processing result; the teacher network included in each participating client is obtained from the local server for each participating client;
[0034] A target teacher network generation module, used to update the network parameters of the teacher network based on the update gradient determined by each participating client to obtain a target teacher network;
[0035] A target teacher network transmission module is used to transmit the target teacher network to a target client, wherein the target client includes at least two business networks and a second student network; so that the target client trains the second student network based on at least two business networks, the target teacher network and target unlabeled sample resources under a preset business scenario to obtain a target student network;
[0036] Among them, the target student network is used to determine the resource evaluation information of the input resources according to the input resources; the resources corresponding to the input resources, the supporting sample resources, the query sample resources and the target unlabeled sample resources are at least one of resource transfer associated data and multimedia data; when the resource is resource transfer associated data, the resource feature information of the resource represents the operation information of the object corresponding to the resource transfer associated data, and when the resource is multimedia data, the resource feature information of the resource represents the attribute information of the object corresponding to the multimedia data.
[0037] On the other hand, the present application proposes a resource processing device, the resource processing device comprising:
[0038] A module for obtaining resources to be processed, used to obtain resources to be processed;
[0039] The resource input module is used to input the resource to be processed into the target student network to perform resource evaluation processing on the resource feature information, and obtain resource evaluation information of the resource to be processed.
[0040] On the other hand, the present application proposes an electronic device for resource processing network training or resource processing, the electronic device comprising a processor and a memory, the memory storing at least one instruction or at least one program, the at least one instruction or at least one program being loaded and executed by the processor to implement the resource processing network training method or resource processing method as described above.
[0041] On the other hand, the present application proposes a computer-readable storage medium, which stores at least one instruction or at least one program, and the at least one instruction or the at least one program is loaded and executed by a processor to implement the resource processing network training method or resource processing method as described above.
[0042] On the other hand, the present application proposes a computer program product, which, when executed by a processor, implements the resource processing network training method or resource processing method as described above.
[0043] The resource processing network training method proposed in the embodiment of the present application, in an unlabeled sample scenario, and under the condition that the labeled samples of each participating client are not out of domain, performs distillation learning by adaptively fusing the business networks of each participating client to train a zero-sample network (i.e., a target student network). On the one hand, meta-distillation learning and training based on federated learning is realized: that is, during the training process of the target teacher network, each joint participating client transmits and shares the teacher network and gradient update parameters, and the gradient update calculation relying on the labeled sample resources is performed locally on each participating client, thereby ensuring that all participating clients can perform joint network training under the condition that the sample resource data does not leave the domain and meets the data privacy and security conditions, and realize the external migration of sample resources and network capabilities; on the other hand, a zero-shot modeling solution based on meta-distillation learning is realized: that is, the business network constructed by using the labeled sample resources from each joint participating client is adaptively learned based on meta-learning technology. The business relevance of each business network and the zero-shot scenario (i.e., the preset business scenario) is learned, and the network training in the zero-shot scenario is guided by distillation learning to obtain the final target student network, thereby realizing the migration of sample resources and network capabilities from each joint participating client to the preset business scenario under the condition of no labeled sample resources in the business cold start phase, so as to improve the modeling effect of the unlabeled sample resources in the preset business scenario, thereby solving the modeling problem of unlabeled samples in the preset business scenario in the business cold start phase, and then improving the modeling efficiency and modeling accuracy of unlabeled sample resources in the preset business scenario.
[0044] The resource processing method proposed in the embodiment of the present application obtains the resources to be processed, inputs the resources to be processed into the trained target student network for resource evaluation processing, obtains resource evaluation information of the resources to be processed, and realizes resource evaluation processing for unlabeled resources to be processed, thereby effectively improving the efficiency and accuracy of processing resources to be processed in the cold start phase of the business. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present application or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0046] Figure 1 It is a schematic diagram of an implementation environment of a resource processing network training method or a resource processing method according to an exemplary embodiment.
[0047] Figure 2 It is a schematic diagram of an implementation process of federated migration modeling based on meta-distillation learning according to an exemplary embodiment.
[0048] Figure 3 The following is a flow chart of a resource processing network training method according to an exemplary embodiment. Figure 1 .
[0049] Figure 4 It is a schematic diagram of a meta-teacher network training process based on federated learning according to an exemplary embodiment.
[0050] Figure 5 The following is a flow chart of a resource processing network training method according to an exemplary embodiment. Figure 2 .
[0051] Figure 6 It is a flowchart of a resource processing method according to an exemplary embodiment.
[0052] Figure 7 The following is a flow chart of a resource processing network training method according to an exemplary embodiment. Figure 3 .
[0053] Figure 8 The following is a flow chart of a resource processing network training method according to an exemplary embodiment. Figure 4 .
[0054] Fig. 9 A frame diagram of a resource processing network training device according to an exemplary embodiment is shown. Figure 1 .
[0055] Fig.10 A frame diagram of a resource processing network training device according to an exemplary embodiment is shown. Figure 2 .
[0056] Fig.11 A hardware structure block diagram of a server provided according to an exemplary embodiment. DETAILED DESCRIPTION
[0057] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0058] It should be noted that the terms "first", "second", etc. in the specification and claims of the embodiments of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product, or server comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products, or devices.
[0059] In order to make the purpose, technical solution and advantages disclosed in the embodiments of the present application more clearly understood, the embodiments of the present application are further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the embodiments of the present application and are not used to limit the embodiments of the present application.
[0060] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this embodiment, unless otherwise specified, "plurality" means two or more.
[0061] It should be noted that in the specific implementation of this application, related data such as user information (for example, the subject's credit score, medical images, voice information) is involved. When the embodiments of this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.
[0062] Figure 1 FIG. 1 is a schematic diagram of an implementation environment of a resource processing network training method or a resource processing method according to an exemplary embodiment. Figure 1 As shown, the implementation environment may include at least a client 01 and a server 02. The client 01 and the server 02 may be directly or indirectly connected via wired or wireless communication, which is not limited in the embodiments of the present application.
[0063] Specifically, the server 02 can be used to receive the update gradient sent by the client 01, train the teacher network based on the update gradient, and obtain the target teacher network. Optionally, the server 02 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms.
[0064] Specifically, the client 01 may include at least two participating clients and a target client, each participating client is used to determine the update gradient of the teacher network based on the local labeled sample resources, and send the update gradient to the server 02. The target client is used to obtain the trained target teacher network from the server, perform resource evaluation processing on the target unlabeled sample resources in the preset business scenario based on at least two business networks and the target teacher network, and obtain the second resource evaluation information; and train the second student network according to the target unlabeled sample resources and the second resource evaluation information to obtain the target student network. Optionally, the client 01 may include but is not limited to mobile phones, computers, intelligent voice interaction devices, smart home appliances, vehicle terminals, aircraft, etc.
[0065] It should be noted that Figure 1 This is just an example. In other scenarios, other implementation environments may also be included.
[0066] In order to facilitate understanding of the technical solutions and technical effects of the embodiments of the present application, the technical terms used in the embodiments of the present application are first explained:
[0067] Federated learning: It is a distributed machine learning training method based on privacy protection. Its goal is to train a high-quality centralized prediction model by combining multi-client data while protecting client data privacy when training data is scattered across multiple clients.
[0068] Meta-learning: also known as learning to learn, refers to learning empirical knowledge (i.e., prior knowledge, meta-knowledge) from known tasks to guide the learning of new tasks, and has the ability to quickly adapt to new tasks. Meta-learning is mainly divided into the training phase (meta-training) and the testing phase (meta-testing). In the meta-training phase, the data is divided into different tasks (i.e., tasks), and meta-knowledge across tasks is learned, such as parameter initial values, optimizer functions, data augmentation functions, etc.; in the meta-testing phase, given a new task (such as identifying new objects), meta-knowledge is used to quickly train a machine learning model with strong generalization under the condition of a small number of samples.
[0069] Distillation learning: Knowledge distillation is a classic method of transfer learning, the core of which is to transfer the knowledge of a complex neural network to another neural network with a relatively simple structure. The complex network to be transferred is called the teacher network, and the compressed network is called the student network.
[0070] Figure 2 FIG. 1 is a schematic diagram showing an implementation process of federated migration modeling based on meta-distillation learning according to an exemplary embodiment. Figure 2 As shown, the implementation process of the federated migration modeling based on meta-distillation learning includes: the training phase of the resource processing network and the resource processing phase. The training phase of the resource processing network can further include: the meta-teacher network training phase based on federated learning (federated training) and the zero-sample network training phase based on distillation learning (local training). The resource processing phase is the online and service phase of the trained target student network in a preset business scenario.
[0071] Figure 3 The following is a flow chart of a resource processing network training method according to an exemplary embodiment. Figure 1 This method can be used for Figure 1 In the implementation environment of the embodiment. This specification provides the method operation steps as described in the embodiment or flowchart, but may include more or fewer operation steps based on routine or non-creative work. The order of steps listed in the embodiment is only one way of executing the steps among many steps, and does not represent the only execution order. When the actual system or server product is executed, it can be executed in the order of the method shown in the embodiment or the figure or in parallel (for example, in a parallel processor or multi-threaded processing environment). Specifically, Figure 3 As shown, the method may include:
[0072] S101. At least two participating clients respectively obtain a teacher network from a server; each participating client includes supporting sample resources, querying sample resources, at least two business networks and a first student network.
[0073] S103. Each participating client trains a first student network based on at least two business networks, a teacher network and supporting sample resources, performs resource evaluation processing on resource feature information of the query sample resources based on the training results, and determines an update gradient of the teacher network according to the resource evaluation processing results.
[0074] S105. Each participating client sends the update gradient determined by each participating client to the server.
[0075] S107. The server updates the network parameters of the teacher network based on the update gradient determined by each participating client to obtain the target teacher network.
[0076] Optionally, the above steps S101-S107 are equivalent to a meta-teacher network training process based on federated learning. Figure 4 is a schematic diagram of a training process of a meta-teacher network based on federated learning according to an exemplary embodiment. Figure 4 As shown, the teacher network training process mainly includes a network initialization stage (including the initialization of the teacher network on the server side and the network initialization of each participating client), a local distillation learning training stage of the teacher network, and a network update stage of the teacher network.
[0077] Exemplarily, for the initialization of the server-side teacher network; the initialization of the server-side teacher network is mainly responsible for randomly initializing the network parameters of the teacher network on the server side.
[0078] Exemplarily, for the network initialization of participating clients: the network initialization of each participating client trains a local model based on labeled sample resources in the local environment of the participating client to obtain a business network, which will be shared with each participating client as an expert model. Eventually, each participating client will collect N business networks (i.e., at least two business networks), denoted as {M1, M2, ..., M N}, where N is a positive integer greater than or equal to 2. It should be noted that at least two business networks can belong to the same business type, that is, they can process the same type of business, or they can belong to multiple business types at the same time to enhance the generalization of the teacher network. Among them, the business types may include: fraud prediction, default prediction, product matching degree prediction, etc.
[0079] For example, continue as Figure 4 As shown, the local distillation learning training stage for the teacher network includes a teacher network downloading stage, a training data preparation stage and a local distillation learning training stage.
[0080] 1) Download the teacher network: Each participating client can download the latest teacher network from the server, denoted as θ T .
[0081] 2) Training data preparation and local distillation learning training: Each participating client contains its own local sample resource set, and b samples can be randomly selected from the local sample resource set as the supporting sample resource set (i.e., supporting sample resources) In this formula, X i Characterize the resource feature information of the i-th supporting sample resource. And randomly select k samples as the query sample resource set (i.e. query sample resource) In this formula, X i Characterizes the characteristic information of the i-th query sample resource, Y i The second label resource evaluation information representing the i-th query sample resource is pre-labeled.
[0082] Among them, the support sample resource set will be used as a "zero sample" to transfer the knowledge related to the participating clients from the teacher network through distillation learning to build a local model (i.e., the first student network), and the query sample set will be used as a verification set to evaluate the effect of the local network after distillation learning. This effect indicator will be used to calculate the update gradient of the teacher network, so that the teacher network can transfer knowledge that is more matched and accurate with the unlabeled sample resources. It should be noted that each participating client will get an update gradient.
[0083] Exemplarily, for the network update of the teacher network: after each participating client obtains the corresponding update gradient, the update gradient determined by each participating client can be sent to the server. The server updates the network parameters of the teacher network based on the update gradient determined by each participating client to obtain the target teacher network.
[0084] Optionally, the resource may be at least one of resource transfer associated data and multimedia data. Exemplarily, the resource transfer associated data may be transaction data, transaction records, etc. The multimedia data may include, but is not limited to: commodity image data, medical image data, posture image data, voice data, translation data, etc. The resource includes the query sample resource and the support sample resource.
[0085] Optionally, when the resource is resource transfer associated data, the resource characteristic information of the resource represents the operation information of the object corresponding to the resource transfer associated data. When the resource is multimedia data, the resource characteristic information of the resource represents the attribute information of the object corresponding to the multimedia data.
[0086] Optionally, the resource evaluation information is information obtained by evaluating the resource feature information of the resource, which may be a resource evaluation score corresponding to the resource feature information of the resource. The resource evaluation score is used to characterize the confidence of the object corresponding to the resource. Exemplarily, in the case where the resource is resource transfer associated data, the resource evaluation information is the value of the credit score of the object corresponding to the resource, or the value of the probability of violation, etc. In the case where the resource is multimedia data, the resource evaluation information is the accuracy or credibility score of the object corresponding to the multimedia data.
[0087] As an example, in a financial risk control scenario, the resource is resource transfer associated data. The resource feature information of the above resource may be operation information of the object corresponding to the resource, for example, one or more of the number of loans, loan platforms, loan amounts, repayment dates, overdue days, etc. Correspondingly, the resource evaluation information is a resource evaluation score corresponding to the resource, and the resource evaluation score is used to indicate the value of the credit score of the object corresponding to the resource transfer associated data, or the value of the probability of violation, etc.
[0088] As another example, in a product recommendation scenario, the resource is product image data. The resource feature information of the resource may be the attribute information of the product contained in the product image data. For example, product category, product color, product price, etc. Correspondingly, the resource evaluation information may be the resource evaluation score of the product, which is used to indicate the accuracy or credibility score of the product image data. Furthermore, it may be used to indicate the matching degree between the product corresponding to the product image data and the user.
[0089] As another example, in the medical field, the resource is medical image data. The resource feature information of the above resource can be the attribute information of the object embodied by the medical image data, such as clarity, size, shape, etc. Correspondingly, the resource evaluation information can be the evaluation score corresponding to the medical image. Correspondingly, the resource evaluation information can be the resource evaluation score corresponding to the medical image, and the resource evaluation score is used to indicate the accuracy or credibility score of the object embodied by the medical image data.
[0090] As another example, in a human posture recognition scenario, the resource is human posture image data. The resource feature information of the resource may be the posture data of the object corresponding to the resource, and the posture data may be the position information of one or more specific joints. Accordingly, the resource evaluation information may be a resource evaluation score corresponding to the human posture image data, and the resource evaluation score is used to indicate the accuracy score of the preset action corresponding to the human posture image data.
[0091] As another example, in a speech recognition scenario, the resource is speech data. The resource feature information of the resource may be specific speech attribute information of the object corresponding to the resource. Accordingly, the resource evaluation information may be a resource evaluation score corresponding to the speech data, and the resource evaluation score is used to indicate a pronunciation accuracy score compared to a preset standard pronunciation.
[0092] As another example, in a simultaneous interpretation scenario, the resource is translation data. The resource feature information of the resource may be specific translation information of the object corresponding to the resource. Accordingly, the resource evaluation information may be a resource evaluation score corresponding to the translation data, and the resource evaluation score is used to indicate a translation accuracy score compared to a preset standard translation.
[0093] It should be noted that the application scenarios of the embodiments of the present application are not limited to the above scenarios.
[0094] S109. The target client obtains target unlabeled sample resources under a preset business scenario and obtains a target teacher network from the server; the target client includes at least two business networks and a second teacher network.
[0095] S1011. The target client trains a second learning network based on at least two business networks, a target teacher network and target unlabeled sample resources to obtain a target student network; the target student network is used to determine resource evaluation information of the input resources based on the input resources.
[0096] Optionally, the above steps S109-S1011 are equivalent to a zero-shot network training process based on distillation learning.
[0097] Optionally, continue as Figure 2 As shown, after completing the pre-training of the teacher network, for a new cold start modeling scenario (i.e., a preset business scenario), the target client can perform resource evaluation processing on the resource feature information of the target unlabeled sample resources of the cold start scenario based on the acquired target teacher network and at least two business networks, and use the processing result as the learning target to train the second student network through distillation learning to obtain the target student network, and use the target student network as the final cold start network.
[0098] Optionally, the target client may be at least one of the at least two participating clients, or may be any other client except the at least two participating clients. The embodiment of the present application does not limit the type of the target client.
[0099] It should be noted that the resources corresponding to the target unlabeled sample resource and the input resource are at least one of resource transfer-related data and multimedia data. When the resource is resource transfer-related data, the resource feature information of the resource represents the operation information of the object corresponding to the resource transfer-related data. When the resource is multimedia data, the resource feature information of the resource represents the attribute information of the object corresponding to the multimedia data.
[0100] The resource processing network training method proposed in the embodiment of the present application, in an unlabeled sample scenario, and under the condition that the labeled samples of each participating client are not out of domain, performs distillation learning by adaptively fusing the business networks of each participating client to train a zero-sample network (i.e., a target student network). On the one hand, meta-distillation learning and training based on federated learning is realized: that is, during the training process of the target teacher network, each joint participating client transmits and shares the teacher network and gradient update parameters, and the gradient update calculation relying on the labeled sample resources is performed locally on each participating client, thereby ensuring that all participating clients can perform joint network training under the condition that the sample resource data does not leave the domain and meets the data privacy and security conditions, and realize the external migration of sample resources and network capabilities; on the other hand, a zero-shot modeling solution based on meta-distillation learning is realized: that is, the business network constructed by using the labeled sample resources from each joint participating client is adaptively learned based on meta-learning technology. The business relevance of each business network and the zero-shot scenario (i.e., the preset business scenario) is learned, and the network training in the zero-shot scenario is guided by distillation learning to obtain the final target student network, thereby realizing the migration of sample resources and network capabilities from each joint participating client to the preset business scenario under the condition of no labeled sample resources in the business cold start phase, so as to improve the modeling effect of the unlabeled sample resources in the preset business scenario, thereby solving the modeling problem of unlabeled samples in the preset business scenario in the business cold start phase, and then improving the modeling efficiency and modeling accuracy of unlabeled sample resources in the preset business scenario.
[0101] Figure 5 The following is a flow chart of a resource processing network training method according to an exemplary embodiment. Figure 2 ,like Figure 5 As shown, in a feasible embodiment, each participating client in the above step S103 trains a first student network based on at least two business networks, a teacher network and supporting sample resources, performs resource evaluation processing on the resource feature information of the query sample resources based on the training results, and determines the update gradient of the teacher network according to the resource evaluation processing results, which may include:
[0102] S1031. Each participating client performs resource evaluation processing on resource feature information of supporting sample resources based on at least two business networks and a teacher network to obtain first resource evaluation information.
[0103] S1033. Each participating client trains a first student network based on the first resource evaluation information and the supporting sample resources, performs resource evaluation processing on the resource feature information of the query sample resources based on the training results, and determines the update gradient of the teacher network according to the resource evaluation processing results.
[0104] Step S103 in this embodiment is the local distillation learning training process in the local distillation learning training for the teacher network. Figure 4 As shown, the local distillation learning training process can further include a first resource evaluation information generation stage, a local distillation learning stage and an update gradient calculation stage.
[0105] For the first resource evaluation information generation stage: As described in step S1031 above, the first resource evaluation information generation stage is used to use at least two business networks and a teacher network to perform resource evaluation processing on the resource feature information of the local support sample resources to obtain the first resource evaluation information. It should be noted that the first resource evaluation information is similar to the above-mentioned resource evaluation information. For example, in a financial risk control scenario, the first resource evaluation information may be the numerical value of the credit score of the object corresponding to the support sample resource, or the numerical value of the probability of violation, etc. In a product recommendation scenario, the first resource evaluation information may be the degree of match between the product and the user. In the medical field, the first resource evaluation information is used to indicate the accuracy or credibility score of the object represented by the medical image, etc.
[0106] For the local distillation learning stage: as described in step S1033 above, the local distillation learning stage is used to use the first resource evaluation information generated by the teacher network to target fitting support sample resources, thereby distilling and guiding the training of the first student network; and to evaluate the effect of the first student network after distillation learning by querying sample resources and calculating the update gradient of the teacher network.
[0107] This embodiment performs gradient update calculations of sample resources locally on each participating client, thereby ensuring that in the meta-distillation learning training based on federated learning, all participating clients perform joint network training without leaving the domain and satisfying data privacy and security conditions, thereby achieving external migration of sample resources and network capabilities.
[0108] In a feasible embodiment, in the above step S1031, each of the above participating clients performs resource evaluation processing on the resource feature information of the supporting sample resources based on at least two business networks and the teacher network to obtain first resource evaluation information, which may include:
[0109] Each participating client inputs the resource feature information of the supported sample resources to each business network for resource evaluation processing, and obtains the first initial resource evaluation information output by each business network.
[0110] Each participating client inputs the first initial resource evaluation information output by each business network and the resource feature information of the supporting sample resources into the teacher network to learn the business relevance of each business network to the business scenarios corresponding to the supporting sample resources, and obtain the evaluation weight information of each business network for the supporting sample resources; and weightedly fuse the first initial resource evaluation information output by each business network and the evaluation weight information of each business network for the supporting sample resources to obtain the first resource evaluation information.
[0111] In this embodiment, for the first resource evaluation information generation stage: the client performs resource evaluation processing on the resource feature information of the supported sample resources locally through at least two business networks, respectively, to obtain the first initial resource evaluation information output by each business network. Each participating client uses the first initial resource evaluation information output by each business network and the supported sample resources as the input of the teacher network to learn the business relevance of each business network to the business scenario corresponding to the supported sample resources, and obtain the evaluation weight information of each business network to the supported sample resources. It should be noted that the evaluation weight information is used to characterize the business relevance of the business scenario corresponding to the business network and the supported sample resources. The higher the relevance, the higher the evaluation weight information is assigned, and the lower the relevance, the lower the evaluation weight information is assigned. Each participating client weightedly fuses the first initial resource evaluation information output by each business network and the evaluation weight information of each business network to the supported sample resources to obtain the first resource evaluation information.
[0112] As a result, each participating client can adaptively match and fuse the prediction results of multiple joint business networks for supporting sample resources, among which business networks with higher business relevance to the business scenarios corresponding to the supporting sample resources will be assigned higher fusion weights, so that the trained teacher network has the ability to fuse multiple business networks according to the scenario relevance, thereby improving the training accuracy and efficiency of the target teacher network, so that the trained target teacher network can accurately determine the resource evaluation information of the input resources based on the input resources.
[0113] The following continues to use the above example to illustrate the first resource evaluation information generation stage:
[0114] Each participating client locally performs resource evaluation processing on the resource feature information of each supporting sample resource in the supporting sample resource set through N business networks, such as scoring prediction, and obtains the scores of each business network for each supporting sample resource. Among them, X i refers to the resource feature information of the i-th supporting sample resource, b is the number of supporting sample resources in the supporting sample resource set, It is the prediction score of the Nth business network for the i-th supporting sample resource in the supporting sample resource set.
[0115] Each participating client will As the input of the meta-teacher network, the resource feature information X of the supporting sample resources i and the first initial resource evaluation information output by each business network Input the teacher network to learn the business relevance of each business network and the business scenarios corresponding to the supporting sample resources, and obtain the evaluation weight information of each business network for the supporting sample resources in, Refers to the evaluation weight information of the Nth business network for the i-th supporting sample resource in the supporting sample resource set. And calculate the product of the predicted score of each supporting sample resource output by each business network and the evaluation weight information of each supporting sample resource of each business network, obtain the corresponding product of each business network, calculate the sum of the corresponding products of each business network, and obtain the first resource evaluation information of each supporting sample resource Among them, the first resource evaluation information The first resource evaluation information can be considered as a "pseudo label" of each supporting sample resource.
[0116] In an optional embodiment, in the above step S1033, each of the above participating clients trains the first student network based on the first resource evaluation information and the supporting sample resources, which may include:
[0117] Each participating client inputs resource feature information supporting the sample resource to the first student network for resource evaluation processing to obtain third resource evaluation information.
[0118] Each participating client determines the first loss data according to the difference between the first resource evaluation information and the third resource evaluation information, updates the network parameters of the first student network according to the first loss data, obtains the trained first student network, and obtains the training result according to the trained first student network.
[0119] In this embodiment, for the local distillation learning stage, each participating client can input the resource feature information of the supporting sample resources into the first student network for resource evaluation processing to obtain the third resource evaluation information. Each participating client can use the first resource evaluation information generated by the teacher network as the target to fit the supporting sample resources, thereby distilling and guiding the training of the first student network. As an example, each participating client can use cross entropy to calculate the first loss data of the first student network on the supporting sample resources, and update the network parameters of the first student network to obtain the trained first student network, which is the above training result. Thus, the first resource evaluation information generated by the teacher network is used as the target to fit the supporting sample resources, and the first student network is trained with distillation guidance. Through the mechanism of "multi-business network joint resource evaluation information generation" plus "distillation learning", it is possible to migrate the model capabilities from multiple joint parties to the zero-sample scenario, thereby solving the modeling problem of zero-sample scenarios without labeled sample resources in the business cold start phase, and improving the convenience of modeling of sample scenarios without labeled sample resources in the business cold start phase.
[0120] Exemplarily, the training formula of the first student network may be as follows:
[0121]
[0122]
[0123] in, Refers to the first resource evaluation information, refers to the third resource evaluation information, loss1 refers to the first loss data between the first resource evaluation information and the third resource evaluation information, are the network parameters of the first student network, are the network parameters of the first student network after training, It means to find the gradient, and T means transposition.
[0124] In an optional embodiment, in the above step S1033, the resource evaluation process is performed on the resource feature information of the query sample resource based on the training result, and the update gradient of the teacher network is determined according to the resource evaluation process result, which may include:
[0125] Each participating client inputs the resource feature information of the query sample resource to the first student network and the trained first student network for resource evaluation processing, and obtains the fourth resource evaluation information output by the first student network and the fifth resource evaluation information output by the trained first student network.
[0126] Each participating client determines an update gradient of the teacher network according to the difference among the fourth resource evaluation information, the fifth resource evaluation information, the first resource evaluation information, the first label resource evaluation information corresponding to the supporting sample resource, and the second label resource evaluation information corresponding to the query sample resource.
[0127] In this embodiment, for the local distillation learning stage, the effect of the first student network after distillation learning can be evaluated by querying sample resources and the update gradient of the teacher network can be calculated. As an example, each participating client can input the resource characteristic information of the query sample resource to the first student network (i.e., the first student network before the update) and the first student network after the training (i.e., the first student network after the update) for resource evaluation processing, and obtain the fourth resource evaluation information output by the first student network and the fifth resource evaluation information output by the first student network after the training. And obtain the first label resource evaluation information corresponding to the supporting sample resource and the second label resource evaluation information corresponding to the query sample resource, and the first label resource evaluation information and the second label resource evaluation information are both pre-labeled resource evaluation information. Each participating client calculates the loss data based on the difference between the fourth resource evaluation information, the fifth resource evaluation information, the first resource evaluation information, the first label resource evaluation information, and the second label resource evaluation information, and determines the update gradient of the teacher network based on the loss data. It should be noted that each participating client will obtain an update gradient in the above manner.
[0128] Therefore, on the one hand, by performing gradient update calculations of sample resources locally on each participating client, it is ensured that in the meta-distillation learning training based on federated learning, all participating clients can perform joint network training without leaving the domain and satisfying data privacy and security conditions, thereby realizing the external migration of sample resources and network capabilities; on the other hand, by querying sample resources to evaluate the effect of the first student network after distillation learning and calculating the update gradient of the teacher network, the accuracy of the update gradient calculation can be improved, which helps to improve the modeling accuracy of unlabeled sample resources in zero-sample scenarios during the business cold start phase, and further improves the convenience of modeling sample scenarios without labeled sample resources during the business cold start phase.
[0129] In a feasible embodiment, each of the participating clients determines the update gradient of the teacher network according to the difference between the fourth resource evaluation information, the fifth resource evaluation information, the first resource evaluation information, the first label resource evaluation information corresponding to the supporting sample resource, and the second label resource evaluation information corresponding to the query sample resource, which may include:
[0130] Each participating client determines the second loss data according to the difference between the first resource evaluation information and the first tag resource evaluation information.
[0131] Each participating client determines the third loss data according to the difference between the fourth resource evaluation information and the second tag resource evaluation information.
[0132] Each participating client determines fourth loss data according to a difference between the fifth resource evaluation information and the second tag resource evaluation information.
[0133] Each participating client determines an update gradient of the teacher network based on the first loss data, the second loss data, and the third loss data.
[0134] Exemplarily, the calculation formula of the second loss data may be as follows:
[0135]
[0136] Among them, loss2 refers to the second loss data, Refers to the first resource evaluation information, Y spt Refers to the first tag resource evaluation information.
[0137] Exemplarily, the calculation formula of the third loss data may be as follows:
[0138]
[0139] Among them, loss3 refers to the third loss data, Y qry Refers to the second tag resource evaluation information, Refers to the fourth resource evaluation information.
[0140] Exemplarily, the calculation formula of the fourth loss data may be as follows:
[0141]
[0142] Among them, loss4 refers to the fourth loss data, Y qry Refers to the second tag resource evaluation information, Refers to the fifth resource evaluation information.
[0143] Exemplarily, the calculation formula of the updated gradient of the teacher network can be as follows:
[0144]
[0145] in, refers to the updated gradient of the teacher network, loss2 refers to the second loss data, loss3 refers to the third loss data, and loss4 refers to the fourth loss data. refers to the network parameters of the teacher network before updating, are the network parameters of the first student network, are the network parameters of the first student network after training, represents the gradient, T represents the transposition process, A plurality of resource evaluation information is obtained by performing resource evaluation processing on the query sample resources in the query sample resource set based on the teacher network; Indicates loss data determined by the difference between "multiple resource evaluation information obtained by performing resource evaluation processing on resource characteristic information of query sample resources in the query sample resource set based on the teacher network".
[0146] It should be noted that if the first resource evaluation information generated by the teacher network is good enough, the classification loss of the query sample resource will become smaller after the student network performs distillation learning, that is, loss4 is smaller than loss3.
[0147] Therefore, on the one hand, by performing gradient update calculations of sample resources locally on each participating client, it is ensured that in the meta-distillation learning training based on federated learning, all participating clients perform joint network training without leaving the domain and satisfying data privacy and security conditions, thereby realizing the external migration of sample resources and network capabilities; on the other hand, the second loss data can characterize the difference between the supporting sample resources and the corresponding labels, and the third loss data and the fourth loss data can characterize the difference between the query sample resources and the corresponding labels. Therefore, according to the first loss data, the second loss data and the third loss data, the accuracy of the updated gradient calculation can be further improved, thereby further helping to improve the modeling accuracy and convenience of unlabeled sample resources in the zero-sample scenario during the business cold start phase.
[0148] In an optional embodiment, in the above step S107, the above server updates the network parameters of the teacher network based on the update gradient determined by each participating client to obtain the target teacher network, including:
[0149] The server calculates the mean of the updated gradients determined by each participating client and obtains the gradient mean.
[0150] The server updates the network parameters of the teacher network based on the gradient mean, and repeats the steps of sending the teacher network to at least two participating clients, until the server updates the network parameters of the teacher network based on the updated gradient determined by each participating client, until the network parameters of the teacher network meet the preset conditions, thereby obtaining the target teacher network.
[0151] In this embodiment, after the server collects the update gradients uploaded by each participating client, the server can calculate the average of the update gradients determined by each participating client to obtain the gradient mean, and update the network parameters of the teacher network according to the gradient mean. The corresponding calculation formula can be as follows:
[0152]
[0153] in, represents the teacher network before updating, represents the updated teacher network, g i Identifies the update gradient uploaded by the i-th participating client, and N represents the number of participating clients.
[0154] In another embodiment, the server calculates the average of the update gradients determined by each participating client to obtain the gradient mean, which can also be replaced by: determining the weight of the update gradient determined by each participating client, calculating the product of the weight of the update gradient determined by each participating client and the update gradient determined by each participating client, and obtaining the product corresponding to each participating client; calculating the average of the products corresponding to each participating client to obtain the gradient mean.
[0155] In this embodiment, continue as Figure 4 As shown, after updating the network parameters of the teacher network, the server sends the teacher network to at least two participating clients, and the server updates the network parameters of the teacher network based on the update gradient determined by each participating client, until the network parameters of the teacher network meet the preset conditions, and the target teacher network is obtained, that is, the two parts of "local distillation learning training of the teacher network" and "server-side updating of the teacher network" are iterated until the algorithm converges. Thus, each participating client transmits the teacher network and gradient update parameters, and the gradient update calculation relying on the labeled sample resources is performed locally on each participating client, thereby ensuring that all participating clients perform joint model training under the condition that the sample resource data does not leave the domain and meets the data privacy security conditions.
[0156] In a feasible embodiment, after completing the training of the target teacher network, for a new cold start modeling scenario (i.e., a preset business scenario), resource evaluation processing can be performed on the resource feature information of the unlabeled sample resources in the new cold start scenario based on the target teacher network, and the resource evaluation processing result is used as the learning goal, and the student network is trained through distillation learning to obtain the final target learning network.
[0157] Optionally, continue as Figure 2As shown, in the above step S109, the target client can download at least two business networks and the trained target teacher network. The target teacher network can be downloaded from the server. There are multiple ways to obtain the at least two business networks. As an example, in the case where the target client is at least one of the at least two participating clients, since the at least two participating clients themselves contain at least two business networks, the target client does not need to obtain at least two business networks. As another example, in the case where the target client is a client other than the at least two participating clients, the target client can download the at least two business networks from any participating client, or can obtain the business networks of each participating client from each participating client to obtain at least two business networks.
[0158] In addition, continue Figure 2 As shown, the target client can also obtain the target unlabeled sample resource under the preset business scenario. It should be noted that the preset business scenario is similar to the scenario of the above-mentioned training target teacher network, and the feature data dimension of the sample resource used by the above-mentioned training target teacher network is the same as the feature data dimension of the target unlabeled sample resource. The higher the degree of similarity between the preset business scenario and the scenario of the above-mentioned training target teacher network, the better the migration effect. For example, if the scenario of the above-mentioned training target teacher network is the risk control scenario of the bank, then the preset business scenario can be a scenario related to the risk control scenario of the bank, such as the risk control scenario of a non-bank lending institution. Or, if the scenario of the above-mentioned training target teacher network is a clothing recommendation scenario, then the preset business scenario can be a scenario related to the clothing recommendation scenario, such as a clothing accessories recommendation scenario. The target unlabeled sample resource is at least one of resource transfer associated data and multimedia data; in the case where the target unlabeled sample resource is resource transfer associated data, the resource feature information represents the operation information of the object corresponding to the resource transfer associated data, and in the case where the target unlabeled sample resource is multimedia data, the resource feature information represents the attribute information of the object corresponding to the multimedia data.
[0159] Optionally, continue as Figure 2 As shown, the training of the target student network in the above step S1011 may include two stages: generating the second resource evaluation information and training the student network through distillation learning. Figure 5 As shown, the target client trains a second learning network based on at least two business networks, a target teacher network and a target unlabeled sample resource to obtain a target student network, which may include:
[0160] S10111. The target client performs resource evaluation processing on the resource feature information of the target unlabeled sample resource based on at least two business networks and the target teacher network to obtain second resource evaluation information.
[0161] S10113. The target client trains the second student network according to the target unlabeled sample resources and the second resource evaluation information to obtain the target student network.
[0162] The above step S10111 can be considered as the stage of generating the second resource evaluation information. At this stage, the target client can perform resource evaluation processing on the resource feature information of the target unlabeled sample resource through at least two business networks and the target teacher network to obtain the second resource evaluation information. It should be noted that the second resource evaluation information is of the same type as the first resource evaluation information mentioned above. For example, in financial risk control scenarios, the second resource evaluation information can be used to indicate the value of the credit score of the object corresponding to the resource, or the value of the probability of violation, etc. In scenarios related to product recommendations, the second resource evaluation information can be the degree of match between the product and the user.
[0163] The above step S10113 can be considered as the stage of distillation learning and training the student network. In this stage, the target client can use the second resource evaluation information generated based on at least two business networks and the target teacher network to fit the target unlabeled sample resources for the target, thereby distilling and guiding the training of the second student network to obtain the target student network, so that the generated second student network has the same prediction ability as the target teacher network, thereby realizing the migration of sample resources and network capabilities from various joint clients to preset business scenarios, so as to improve the modeling effect of unlabeled sample resources in preset business scenarios, thereby solving the modeling problem of unlabeled sample resources in preset business scenarios during the business cold start phase, and thus improving the modeling efficiency, modeling accuracy and modeling convenience of unlabeled sample resources in preset business scenarios. Exemplarily, the training of the second student network can adopt any machine learning method such as Bayes, decision tree, random forest, neural network, etc. 。
[0164] In an optional embodiment, the second resource evaluation information generation stage may further include: the business network performs the first resource evaluation information generation stage on the target unlabeled sample resource and the target teacher network determines the final resource evaluation information based on the processing result of the business network. Accordingly, in the above step S10111, the target client performs resource evaluation processing on the resource feature information of the target unlabeled sample resource based on at least two business networks and the target teacher network to obtain the second resource evaluation information, which may include:
[0165] The target client inputs the resource feature information of the target unlabeled sample resource to each business network for resource evaluation processing, and obtains the second initial resource evaluation information output by each business network.
[0166] The target client inputs the second initial resource evaluation information output by each business network and the resource feature information of the target unlabeled sample resources into the target teacher network to learn the business relevance of each business network with the preset business scenario, and obtains the target weight evaluation information of each business network for the target unlabeled sample resources.
[0167] The target client generates second resource evaluation information according to the second initial resource evaluation information and the target weight evaluation information.
[0168] In this embodiment, the target unlabeled sample resource is evaluated and processed for the business network: the target client inputs the target unlabeled sample resource to each business network for resource evaluation processing, and obtains the second initial resource evaluation information output by each business network. The target teacher network determines the final resource evaluation information based on the processing result of the business network: the target client uses the second initial resource evaluation information and the target unlabeled sample resource as the input of the target teacher network to learn the business relevance of each business network with the preset business scenario, and obtains the target weight evaluation information of each business network for the target unlabeled sample resource. It should be noted that the target evaluation weight information is used to characterize the business relevance of the business scenario corresponding to the business network and the target unlabeled sample resource. The higher the relevance, the higher the target evaluation weight information is assigned, and the lower the relevance, the lower the target evaluation weight information is assigned. After obtaining the target weight information, the target client can also calculate the product of the second initial resource evaluation information and the target weight evaluation information based on the target teacher network to obtain the second resource evaluation information.
[0169] As a result, the target client can adaptively match and fuse the prediction results of multiple joint business networks for the target unlabeled sample resources, where the business network of the preset business scenario corresponding to the target unlabeled sample resources will be assigned a higher fusion weight, so that the trained target student network has the ability to fuse multiple business networks according to the scenario relevance, thereby improving the training accuracy and efficiency of the target student network, so that the trained target student network can accurately determine the resource evaluation information of the input resources based on the input resources.
[0170] The following is an example to illustrate the above S10111:
[0171] 1) Resource evaluation and processing of target unlabeled sample resources for the business network:
[0172] Assume that the unlabeled sample set of the preset business scenario (i.e., the target unlabeled sample resource) is D new First, the target client uses all business networks to perform resource evaluation on the target unlabeled sample resources, such as scoring prediction, to generate a data set. In this formula, x i is the resource feature information of the target unlabeled sample resource, Score the prediction of the nth business network for the i-th target unlabeled sample resource.
[0173] 2) The stage of determining the final resource evaluation information for the target teacher network based on the processing results of the business network: taking the predicted scores of each business network and the resource characteristic information of the target unlabeled sample resources as the input of the target teacher network, learning the business relevance of each business network with the preset business scenario based on the target teacher network, obtaining the target weight evaluation information of each business network for the target unlabeled sample resources, and generating the second resource evaluation information of each target unlabeled sample resource based on the second initial resource evaluation information and the target weight evaluation information where Y exp is the second resource evaluation information. The second resource evaluation information can be considered as a “pseudo label” of each target unlabeled sample resource.
[0174] In an optional embodiment, in the above step S10113, the above target client trains the second student network according to the target unlabeled sample resource and the second resource evaluation information to obtain the target student network, which may include:
[0175] The target client inputs the resource feature information of the target unlabeled sample resource to the second student network for resource evaluation processing to obtain sixth resource evaluation information.
[0176] The target client updates the network parameters of the second student network according to the difference between the sixth resource evaluation information and the second resource evaluation information to obtain a trained target student network.
[0177] In this embodiment, for the stage of distillation learning to train the student network, the target client can input the resource feature information of the target unlabeled sample resource into the second student network for resource evaluation processing to obtain the sixth resource evaluation information. The target client can use the second resource evaluation information generated by the target teacher network to fit the sixth resource evaluation information to the target, and train the second student network with distillation guidance. As an example, the target client can use cross entropy to calculate the loss data of the second student network on the target unlabeled sample resource, and update the network parameters of the second student network to obtain the trained target student network. Thus, the target unlabeled sample resource is fitted to the target based on the second resource evaluation information generated by the target teacher network, and the second student network is trained with distillation guidance. Through the mechanism of "multi-service network joint resource evaluation information generation" plus "distillation learning", it is possible to migrate the model capabilities from multiple joint parties to the zero-sample scenario, thereby solving the modeling problem of unlabeled sample resources in the zero-sample scenario during the service cold start phase, and improving the convenience and efficiency of modeling unlabeled sample resources in the zero-sample scenario during the service cold start phase.
[0178] The federated migration modeling method based on meta-distillation learning proposed in the embodiment of the present application can be applied to model training in the cold start phase of the business where there is a lack of labeled sample resources and there are data privacy restrictions. The embodiment of the present application combines meta-distillation learning and federated learning to migrate the network capabilities of the participating clients to the zero-sample scenario under the condition that the sample resource data of each joint participating client does not leave the local, effectively improving the model construction in the cold start phase. Table 1 shows the KS verification results of the method proposed in the embodiment of the present application on 6 data sets. Among them, KS is based on the cumulative distribution function, which is usually used to determine whether there is a significant difference in the potential probability distribution of two observations, or whether the potential probability distribution of the observations is significantly different from the assumed distribution (such as a normal distribution). Table 1 also compares the KS verification results corresponding to the following risk control networks: DZ: For multiple unlabeled sample feature information, based on the corresponding average resource evaluation information determined by 4 business networks, the risk control network trained by distillation. Mean: For the resource feature information of multiple unlabeled sample resources, based on the corresponding average resource evaluation information determined by 4 business networks, the risk control network trained by distillation. MetaTeacher: The risk control network determined by the resource processing network training method of the present application.
[0179] Table 1 KS verification results of different risk control networks
[0180] Sample Dataset DZ Mean This application S1 0.33 0.336 0.347 S2 0.216 0.25 0.257 S3 0.498 0.45 0.439 S4 0.259 0.159 0.225 S5 0.229 0.225 0.237 S6 0.338 0.302 0.297 Mean 0.311 0.287 0.300
[0181] Table 1 shows that the federated migration modeling scheme based on meta-distillation learning proposed in the embodiment of the present application is better than the modeling scheme based on average distillation learning as a whole, proving that the teacher network pre-trained by meta-learning can learn the knowledge of different experts in a biased manner, thereby generating higher-quality resource evaluation information (i.e., pseudo-labels), and then distilling and training a network with higher risk control accuracy. In addition, the comparison results of the federated migration modeling scheme based on meta-distillation learning proposed by DZ and the embodiment of the present application show that the scheme proposed in the embodiment of the present application can also achieve a prediction effect close to that based on real label training in the absence of labels in the preset business scenario. On some data sets (such as S1, S2, and S5), the effect of this scheme even exceeds the real training effect. It proves that the scheme can effectively provide network prediction capabilities in the cold start phase of the business.
[0182] The embodiment of the present application also provides a resource processing method, which can be executed by a terminal or a server, or by a terminal and a server together; the embodiment of the present application is explained by taking terminal execution as an example.
[0183] Figure 6 is a flowchart of a resource processing method according to an exemplary embodiment. Figure 6 As shown, the resource processing method may include:
[0184] S201. Obtain resources to be processed.
[0185] S203. Input the resource feature information of the resource to be processed into the target student network for resource evaluation processing to obtain resource evaluation information of the resource to be processed. The target student network is trained based on the resource processing network training method in any of the above embodiments.
[0186] In this embodiment, continue as Figure 2 As shown, the target school network can be online, and the resource feature information of the resources to be processed can be input into the target student network for resource evaluation processing to obtain the resource evaluation information of the resources to be processed.
[0187] Optionally, the resource to be processed may be at least one of resource transfer associated data and multimedia data. When the resource to be processed is resource transfer associated data, the resource feature information of the resource to be processed represents the operation information of the object corresponding to the resource transfer associated data. When the resource to be processed is multimedia data, the resource feature information of the resource to be processed represents the attribute information of the object corresponding to the multimedia data. The resource evaluation information of the resource to be processed is similar to the resource evaluation information described in the above embodiments, and will not be described in detail here.
[0188] The resource processing method proposed in the embodiment of the present application obtains the resources to be processed, inputs the resource feature information of the resources to be processed into the target student network for resource evaluation processing, obtains the resource evaluation information of the resources to be processed, and realizes the resource evaluation processing of the unmarked resources to be processed, thereby effectively improving the processing efficiency and processing accuracy of the resource evaluation information of resource processing.
[0189] The resource processing network training method is introduced below with each of at least two participating clients as the execution subject:
[0190] Figure 7 The following is a flow chart of a resource processing network training method according to an exemplary embodiment. Figure 3 ,like Figure 7 As shown, the resource processing network training method includes:
[0191] S301. Obtain the teacher network from the server.
[0192] S303. Train the first student network based on at least two business networks, the teacher network and the supporting sample resources, perform resource evaluation processing on the resource feature information of the query sample resources based on the training results, and determine the update gradient of the teacher network according to the resource evaluation processing results.
[0193] S305. Sending an update gradient to the server, so that the server updates the network parameters of the teacher network based on the update gradient sent by each participating client to obtain a target teacher network; and so that the server transmits the target teacher network to a target client, the target client including at least two business networks and a second learning network; and so that the target client trains the second learning network based on at least two business networks, the target teacher network and target unlabeled sample resources under a preset business scenario to obtain a target student network;
[0194] Among them, the target student network is used to determine the resource evaluation information of the input resources according to the input resources; the resources corresponding to the input resources, the supporting sample resources, the query sample resources and the target unlabeled sample resources are at least one of resource transfer associated data and multimedia data; when the resource is resource transfer associated data, the resource feature information of the resource represents the operation information of the object corresponding to the resource transfer associated data, and when the resource is multimedia data, the resource feature information of the resource represents the attribute information of the object corresponding to the multimedia data.
[0195] In an optional embodiment, the training of the first student network based on at least two business networks, the teacher network and the supporting sample resources, performing resource evaluation processing on the resource feature information of the query sample resources based on the training results, and determining the update gradient of the teacher network according to the resource evaluation processing results, includes:
[0196] Based on the at least two business networks and the teacher network, resource evaluation processing is performed on the resource feature information of the supporting sample resources to obtain first resource evaluation information.
[0197] The first student network is trained based on the first resource evaluation information and the supporting sample resources, resource evaluation processing is performed on the resource feature information of the query sample resources based on the training results, and an update gradient of the teacher network is determined according to the resource evaluation processing results.
[0198] In an optional embodiment, the resource evaluation process is performed on the resource feature information of the supporting sample resources based on the at least two business networks and the teacher network to obtain the first resource evaluation information, including:
[0199] The resource characteristic information of the supporting sample resources is respectively input to each service network for resource evaluation processing, so as to obtain the first initial resource evaluation information output by each service network.
[0200] The first initial resource evaluation information output by each business network and the resource feature information of the supporting sample resources are input into the teacher network to learn the business relevance of each business network to the business scenarios corresponding to the supporting sample resources, and obtain the evaluation weight information of each business network for the supporting sample resources; and the first initial resource evaluation information output by each business network and the evaluation weight information of each business network for the supporting sample resources are weightedly fused to obtain the first resource evaluation information.
[0201] In an optional embodiment, the training of the first student network based on the first resource evaluation information and the supporting sample resources includes:
[0202] The resource characteristic information of the supporting sample resource is input into the first student network for resource evaluation processing to obtain third resource evaluation information.
[0203] Determine first loss data based on the difference between the first resource evaluation information and the third resource evaluation information, update network parameters of the first student network based on the first loss data to obtain a trained first student network, and obtain the training result based on the trained first student network.
[0204] In an optional embodiment, the resource evaluation process is performed on the resource feature information of the query sample resource based on the training result, and the update gradient of the teacher network is determined according to the resource evaluation process result, including:
[0205] The resource characteristic information of the query sample resource is respectively input into the first student network and the trained first student network for resource evaluation processing, so as to obtain the fourth resource evaluation information output by the first student network and the fifth resource evaluation information output by the trained first student network.
[0206] An update gradient of the teacher network is determined based on differences among the fourth resource evaluation information, the fifth resource evaluation information, the first resource evaluation information, the first label resource evaluation information corresponding to the supporting sample resource, and the second label resource evaluation information corresponding to the query sample resource.
[0207] In an optional embodiment, the above-mentioned determining the update gradient of the teacher network according to the difference between the fourth resource evaluation information, the fifth resource evaluation information, the first resource evaluation information, the first label resource evaluation information corresponding to the supporting sample resource, and the second label resource evaluation information corresponding to the query sample resource includes:
[0208] Determine second loss data according to a difference between the first resource evaluation information and the first tag resource evaluation information.
[0209] Determine third loss data according to a difference between the fourth resource evaluation information and the second tag resource evaluation information.
[0210] Determine fourth loss data according to a difference between the fifth resource evaluation information and the second tag resource evaluation information.
[0211] Determine an update gradient of the teacher network based on the second loss data, the third loss data and the fourth loss data.
[0212] The embodiment of the present application also discloses a resource processing network training system, which includes at least two participating clients, a server and a target client, each participating client includes a supporting sample resource, a query sample resource, at least two business networks and a first student network, and the target client includes at least two business networks and a second student network;
[0213] Each participating client is used to train the first student network based on at least two business networks, the teacher network and the supporting sample resources, perform resource evaluation processing on the resource feature information of the query sample resources based on the training results, and determine the update gradient of the teacher network according to the resource evaluation processing results; and send the update gradient determined by each participating client to the server;
[0214] The server is used to update the network parameters of the teacher network based on the update gradient determined by each participating client to obtain a target teacher network.
[0215] A target client is used to obtain a target unlabeled sample resource under a preset business scenario and obtain the target teacher network from the server; the target client includes at least two business networks and a second student network; and the second student network is trained based on at least two business networks, the target teacher network and the target unlabeled sample resource to obtain a target student network; the target student network is used to determine resource evaluation information of the input resource according to the input resource;
[0216] Among them, the resources corresponding to the input resources, the supporting sample resources, the query sample resources and the target unlabeled sample resources are at least one of resource transfer associated data and multimedia data; when the resource is resource transfer associated data, the resource characteristic information of the resource represents the operation information of the object corresponding to the resource transfer associated data, and when the resource is multimedia data, the resource characteristic information of the resource represents the attribute information of the object corresponding to the multimedia data.
[0217] The following introduces the resource processing network training method described above with the target client as the execution subject:
[0218] Figure 8 The following is a flow chart of a resource processing network training method according to an exemplary embodiment. Figure 4 ,like Figure 8 As shown, the resource processing network training method includes:
[0219] S401. Obtain target unlabeled sample resources under a preset business scenario, and obtain a target teacher network from a server; the target teacher network is obtained by the server updating the network parameters of the teacher network in the server based on the update gradient sent by each participating client; the update gradient sent by each participating client is used to train a first student network for each participating client based on at least two business networks, a teacher network and supporting sample resources included in each participating client, and resource evaluation processing is performed on the resource feature information of the query sample resources included in each participating client based on the training result, and the result is determined according to the resource evaluation processing result; the teacher network included in each participating client is obtained from the server for each participating client;
[0220] S403. Train a second learning network based on at least two business networks, the target teacher network and the target unlabeled sample resources to obtain a target student network; wherein the target student network is used to determine resource evaluation information of the input resources based on the input resources; the resources corresponding to the input resources, the supporting sample resources, the query sample resources and the target unlabeled sample resources are at least one of resource transfer associated data and multimedia data; when the resource is resource transfer associated data, the resource feature information of the resource represents the operation information of the object corresponding to the resource transfer associated data, and when the resource is multimedia data, the resource feature information of the resource represents the attribute information of the object corresponding to the multimedia data.
[0221] In an optional embodiment, the above-mentioned training of a second learning network based on at least two business networks, the target teacher network and the target unlabeled sample resource to obtain a target student network includes:
[0222] Based on at least two business networks and the target teacher network, resource evaluation processing is performed on the resource feature information of the target unlabeled sample resource to obtain second resource evaluation information.
[0223] The second student network is trained according to the target unlabeled sample resource and the second resource evaluation information to obtain the target student network.
[0224] In an optional embodiment, the resource evaluation process is performed on the resource feature information of the target unlabeled sample resource based on at least two business networks and the target teacher network to obtain the second resource evaluation information, including:
[0225] The resource feature information of the target unlabeled sample resource is respectively input to each business network for resource evaluation processing to obtain second initial resource evaluation information output by each business network.
[0226] The second initial resource evaluation information output by each business network and the resource feature information of the target unlabeled sample resources are input into the target teacher network to learn the business relevance of each business network to the preset business scenario, and obtain the target weight evaluation information of each business network for the target unlabeled sample resources; and the second resource evaluation information is generated according to the second initial resource evaluation information and the target weight evaluation information.
[0227] In an optional embodiment, the step of training the second student network according to the target unlabeled sample resource and the second resource evaluation information to obtain the target student network includes:
[0228] The resource feature information of the target unlabeled sample resource is input into the second student network for resource evaluation processing to obtain sixth resource evaluation information.
[0229] The network parameters of the second student network are updated according to the difference between the sixth resource evaluation information and the second resource evaluation information to obtain a trained target student network.
[0230] The following introduces the resource processing network training method using the server as the execution subject:
[0231] Receive the update gradient sent by each participating client; use the update gradient sent by each participating client to train a first student network for each participating client based on at least two business networks, a teacher network and supporting sample resources included in each participating client, perform resource evaluation processing on the resource feature information of the query sample resources included in each participating client based on the training result, and determine the result according to the resource evaluation processing result; the teacher network included in each participating client is obtained from the server for each participating client.
[0232] Updating the network parameters of the teacher network based on the update gradient determined by each participating client to obtain a target teacher network;
[0233] The target teacher network is transmitted to a target client, wherein the target client includes at least two business networks and a second student network; so that the target client trains the second student network based on at least two business networks, the target teacher network and target unlabeled sample resources under a preset business scenario to obtain a target student network; wherein the target student network is used to determine resource evaluation information of the input resources according to the input resources; the resources corresponding to each of the input resources, the supporting sample resources, the query sample resources and the target unlabeled sample resources are at least one of resource transfer associated data and multimedia data; in the case where the resource is resource transfer associated data, the resource feature information of the resource represents the operation information of the object corresponding to the resource transfer associated data, and in the case where the resource is multimedia data, the resource feature information of the resource represents the attribute information of the object corresponding to the multimedia data.
[0234] In an optional embodiment, updating the network parameters of the teacher network based on the update gradient determined by each participating client to obtain the target teacher network includes:
[0235] Calculate the mean of the updated gradients determined by each participating client to obtain the gradient mean.
[0236] The network parameters of the teacher network are updated based on the gradient mean, and the steps of receiving the update gradient sent by each participating client and updating the network parameters of the teacher network based on the update gradient determined by each participating client are repeated until the network parameters of the teacher network meet the preset conditions, thereby obtaining the target teacher network.
[0237] Fig. 9 A frame diagram of a resource processing network training device according to an exemplary embodiment is shown. Figure 1 ,like Fig. 9 As shown, the resource processing network training device is applied to each of at least two participating clients, each participating client includes supporting sample resources, querying sample resources, at least two business networks and a first student network, and the device includes:
[0238] The teacher network acquisition module 501 is used to acquire the teacher network from the server.
[0239] The update gradient determination module 503 is used to train the first student network based on at least two business networks, the teacher network and the supporting sample resources, perform resource evaluation processing on the resource feature information of the query sample resources based on the training results, and determine the update gradient of the teacher network according to the resource evaluation processing results.
[0240] The update gradient sending module 505 is used to send the update gradient to the server so that the server updates the network parameters of the teacher network based on the update gradient sent by each participating client to obtain the target teacher network; and to enable the server to transmit the target teacher network to the target client, the target client including at least two business networks and a second student network; and to enable the target client to train the second student network based on at least two business networks, the target teacher network and the target unlabeled sample resources under the preset business scenario to obtain the target student network; wherein the target student network is used to determine the resource evaluation information of the input resource according to the input resource; the resources corresponding to each of the input resource, the supporting sample resource, the query sample resource and the target unlabeled sample resource are at least one of resource transfer associated data and multimedia data; in the case where the resource is resource transfer associated data, the resource feature information of the resource represents the operation information of the object corresponding to the resource transfer associated data, and in the case where the resource is multimedia data, the resource feature information of the resource represents the attribute information of the object corresponding to the multimedia data.
[0241] In an optional embodiment, the update gradient determination module 503 includes:
[0242] The supporting sample resource evaluation unit is used to perform resource evaluation processing on the resource feature information of the supporting sample resources based on the at least two business networks and the teacher network to obtain first resource evaluation information.
[0243] A supporting resource training and evaluation unit is used to train the first student network based on the first resource evaluation information and the supporting sample resources, perform resource evaluation processing on the resource feature information of the query sample resources based on the training results, and determine the update gradient of the teacher network according to the resource evaluation processing results.
[0244] In an optional embodiment, the above-mentioned supporting sample resource evaluation unit includes:
[0245] The first initial resource evaluation information generating subunit is used to input the resource characteristic information of the supporting sample resources to each service network for resource evaluation processing, and obtain the first initial resource evaluation information output by each service network.
[0246] The first resource evaluation information generating sub-unit is used to input the first initial resource evaluation information output by each business network and the resource feature information of the supporting sample resources into the teacher network to learn the business relevance of each business network to the business scenario corresponding to the supporting sample resources, and obtain the evaluation weight information of each business network for the supporting sample resources; and weightedly fuse the first initial resource evaluation information output by each business network and the evaluation weight information of each business network for the supporting sample resources to obtain the first resource evaluation information.
[0247] In an optional embodiment, the supporting resource training evaluation unit includes:
[0248] The third resource evaluation information generating subunit is used to input the resource characteristic information of the supporting sample resource to the first student network for resource evaluation processing to obtain third resource evaluation information.
[0249] A training result generating subunit is used to determine first loss data according to the difference between the first resource evaluation information and the third resource evaluation information, update the network parameters of the first student network according to the first loss data, obtain the trained first student network, and obtain the training result according to the trained first student network.
[0250] In an optional embodiment, the supporting resource training evaluation unit includes:
[0251] a fifth resource evaluation information generating subunit, used for inputting the resource characteristic information of the query sample resource to the first student network and the trained first student network for resource evaluation processing, respectively, to obtain fourth resource evaluation information output by the first student network and fifth resource evaluation information output by the trained first student network;
[0252] An update gradient determination subunit is used to determine the update gradient of the teacher network based on the difference between the fourth resource evaluation information, the fifth resource evaluation information, the first resource evaluation information, the first label resource evaluation information corresponding to the supporting sample resource, and the second label resource evaluation information corresponding to the query sample resource.
[0253] In an optional embodiment, the above-mentioned update gradient determination subunit includes:
[0254] a second loss data determining subunit, configured to determine second loss data according to a difference between the first resource evaluation information and the first tag resource evaluation information;
[0255] a third loss data determining subunit, configured to determine third loss data according to a difference between the fourth resource evaluation information and the second tag resource evaluation information;
[0256] a fourth loss data determining subunit, configured to determine fourth loss data according to a difference between the fifth resource evaluation information and the second tag resource evaluation information;
[0257] The update gradient generation subunit is used to determine the update gradient of the teacher network according to the second loss data, the third loss data and the fourth loss data.
[0258] Fig.10 A frame diagram of a resource processing network training device according to an exemplary embodiment is shown. Figure 2 ,like Fig.10 As shown, the device comprises:
[0259] The resource network acquisition module 601 is used to obtain the target unlabeled sample resources under the preset business scenario, and obtain the target teacher network from the server; the target teacher network is obtained by the server updating the network parameters of the teacher network in the server based on the update gradient sent by each participating client; the update gradient sent by each participating client is used for each participating client to train a first student network based on at least two business networks, the teacher network and the supporting sample resources included in each participating client, and based on the training results, the resource feature information of the query sample resources included in each participating client is evaluated and processed, and determined according to the resource evaluation processing result; the teacher network included in each participating client is obtained from the server for each participating client.
[0260] The target student network training module 603 is used to train a second student network based on at least two business networks, the target teacher network and the target unlabeled sample resources to obtain a target student network; wherein the target student network is used to determine the resource evaluation information of the input resources according to the input resources; the resources corresponding to the input resources, the supporting sample resources, the query sample resources and the target unlabeled sample resources are at least one of resource transfer associated data and multimedia data; when the resource is resource transfer associated data, the resource feature information of the resource represents the operation information of the object corresponding to the resource transfer associated data, and when the resource is multimedia data, the resource feature information of the resource represents the attribute information of the object corresponding to the multimedia data.
[0261] In an optional embodiment, the target student network generation module 603 includes:
[0262] A second resource evaluation information determining unit, configured to perform resource evaluation processing on the resource feature information of the target unlabeled sample resource based on at least two business networks and the target teacher network to obtain second resource evaluation information;
[0263] The unlabeled sample resource training unit is used to train the second student network according to the target unlabeled sample resource and the second resource evaluation information to obtain the target student network.
[0264] In an optional embodiment, the second resource evaluation information determining unit includes:
[0265] The second initial resource evaluation information generating subunit is used to input the resource feature information of the target unlabeled sample resource to each business network for resource evaluation processing, and obtain the second initial resource evaluation information output by each business network.
[0266] The second resource evaluation information generating sub-unit is used to input the second initial resource evaluation information output by each business network and the resource feature information of the target unlabeled sample resource into the target teacher network to learn the business relevance of each business network with the preset business scenario, and obtain the target weight evaluation information of each business network for the target unlabeled sample resource; and generate the second resource evaluation information according to the second initial resource evaluation information and the target weight evaluation information.
[0267] In an optional embodiment, the unlabeled sample resource training unit includes:
[0268] The sixth resource evaluation information generating subunit is used to input the resource feature information of the target unlabeled sample resource into the second student network for resource evaluation processing to obtain sixth resource evaluation information.
[0269] The target student network training subunit is used to update the network parameters of the second student network according to the difference between the sixth resource evaluation information and the second resource evaluation information to obtain a trained target student network.
[0270] The present application also provides a resource processing network training device, the device comprising:
[0271] The update gradient receiving module is used to receive the update gradient sent by each participating client; the update gradient sent by each participating client is used to train a first student network for each participating client based on at least two business networks, a teacher network and supporting sample resources included in each participating client, and resource evaluation processing is performed on the resource feature information of the query sample resources included in each participating client based on the training result, and the update gradient is determined according to the resource evaluation processing result; the teacher network included in each participating client is obtained from the local server for each participating client;
[0272] A target teacher network generation module, used to update the network parameters of the teacher network based on the update gradient determined by each participating client to obtain a target teacher network;
[0273] A target teacher network transmission module is used to transmit the target teacher network to a target client, wherein the target client includes at least two business networks and a second student network; so that the target client trains the second student network based on at least two business networks, the target teacher network and target unlabeled sample resources under a preset business scenario to obtain a target student network; wherein the target student network is used to determine resource evaluation information of the input resources according to the input resources; the resources corresponding to each of the input resources, the supporting sample resources, the query sample resources and the target unlabeled sample resources are at least one of resource transfer associated data and multimedia data; in the case where the resource is resource transfer associated data, the resource feature information of the resource represents the operation information of the object corresponding to the resource transfer associated data, and in the case where the resource is multimedia data, the resource feature information of the resource represents the attribute information of the object corresponding to the multimedia data.
[0274] In an optional embodiment, the target teacher network generation module includes:
[0275] The mean calculation unit is used to calculate the mean of the update gradient determined by each participating client to obtain the gradient mean.
[0276] A repeating unit is used to update the network parameters of the teacher network based on the gradient mean, and repeat the steps of receiving the update gradient sent by each participating client, to updating the network parameters of the teacher network based on the update gradient determined by each participating client, until the network parameters of the teacher network meet the preset conditions, thereby obtaining the target teacher network.
[0277] The embodiment of the present application further provides a resource processing device, the resource processing device comprising:
[0278] The module for obtaining resources to be processed is used to obtain resources to be processed.
[0279] The resource input module is used to input the resource characteristic information of the resource to be processed into the target student network for resource evaluation processing to obtain the resource evaluation information of the resource to be processed.
[0280] It should be noted that the device embodiment provided in the embodiments of the present application and the above-mentioned method embodiment are based on the same inventive concept.
[0281] An embodiment of the present application also provides an electronic device for training a resource processing network or a resource processing method, the electronic device comprising a processor and a memory, the memory storing at least one instruction or at least one program, the at least one instruction or at least one program being loaded and executed by the processor to implement the training of the resource processing network or the resource processing method provided in any of the above embodiments.
[0282] An embodiment of the present application also provides a computer-readable storage medium, which can be set in a terminal to store at least one instruction or at least one program for implementing a method in a method embodiment, and the at least one instruction or at least one program is loaded and executed by a processor to implement the training of a resource processing network or a resource processing method provided in the above method embodiment.
[0283] Optionally, in the embodiment of this specification, the storage medium may be located in at least one of the multiple network servers of the computer network. Optionally, in this embodiment, the above storage medium may include but is not limited to: a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and other media that can store program codes.
[0284] The memory of the embodiment of this specification can be used to store software programs and modules, and the processor executes various functional applications and data processing by running the software programs and modules stored in the memory. The memory may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, applications required for functions, etc.; the data storage area may store data created according to the use of the device, etc. In addition, the memory may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage device. Accordingly, the memory may also include a memory controller to provide the processor with access to the memory.
[0285] The embodiment of the present application also provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. The processor of the computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the resource processing network training or resource processing method provided in the above method embodiment.
[0286] The resource processing network training or resource processing method embodiment provided in the present application can be executed in a terminal, a computer terminal, a server or a similar computing device. Taking running on a server as an example, Fig.11 FIG. 1 is a hardware structure diagram of a server provided according to an exemplary embodiment. Fig.11 As shown, the server 700 may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPU) 710 (the central processing unit 710 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 730 for storing data, and one or more storage media 720 (such as one or more mass storage devices) for storing application programs 723 or data 722. Among them, the memory 730 and the storage medium 720 can be short-term storage or permanent storage. The program stored in the storage medium 720 may include one or more modules, each of which may include a series of instruction operations on the server. Furthermore, the central processing unit 710 can be configured to communicate with the storage medium 720 and execute a series of instruction operations in the storage medium 720 on the server 700. The server 700 may also include one or more power supplies 760, one or more wired or wireless network interfaces 750, one or more input and output interfaces 740, and / or one or more operating systems 721, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
[0287] The input / output interface 740 may be used to receive or send data via a network. The specific example of the network may include a wireless network provided by a communication provider of the server 700. In one example, the input / output interface 740 includes a network adapter (Network Interface Controller, NIC), which may be connected to other network devices via a base station so as to communicate with the Internet. In one example, the input / output interface 740 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0288] It can be understood by those skilled in the art that Fig.11 The structure shown is only for illustration and does not limit the structure of the above electronic device. Fig.11 More or fewer components as shown, or with Fig.11 Different configurations shown.
[0289] It should be noted that the above-mentioned sequence of the embodiments of the present application is for description only and does not represent the advantages and disadvantages of the embodiments. The above-mentioned specific embodiments of this specification are described. Other embodiments are within the scope of the attached claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0290] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device and server embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.
[0291] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware, or by a program to instruct the relevant hardware, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0292] The above are only preferred embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.
Claims
1. A resource processing network training method, characterized in that: Applied to each of at least two participating clients, each participating client including a supporting sample resource, a query sample resource, at least two business networks and a first student network, the method comprising: Get the teacher network from the server; Training the first student network based on at least two business networks, the teacher network and the supporting sample resources, performing resource evaluation processing on the resource feature information of the query sample resources based on the training results, and determining the update gradient of the teacher network according to the resource evaluation processing results; Send the update gradient to the server, so that the server updates the network parameters of the teacher network based on the update gradient sent by each participating client to obtain a target teacher network; and the server transmits the target teacher network to a target client, the target client including at least two business networks and a second student network; and the target client trains the second student network based on at least two business networks, the target teacher network and target unlabeled sample resources under a preset business scenario to obtain a target student network; Among them, the target student network is used to determine the resource evaluation information of the input resources according to the input resources; the resources corresponding to the input resources, the supporting sample resources, the query sample resources and the target unlabeled sample resources are at least one of resource transfer associated data and multimedia data; when the resource is resource transfer associated data, the resource feature information of the resource represents the operation information of the object corresponding to the resource transfer associated data, and when the resource is multimedia data, the resource feature information of the resource represents the attribute information of the object corresponding to the multimedia data.
2. The resource processing network training method according to claim 1, characterized in that: The step of training the first student network based on at least two business networks, the teacher network and the supporting sample resources, performing resource evaluation processing on the resource feature information of the query sample resources based on the training results, and determining the update gradient of the teacher network according to the resource evaluation processing results includes: Performing resource evaluation processing on the resource feature information of the supporting sample resources based on the at least two business networks and the teacher network to obtain first resource evaluation information; The first student network is trained based on the first resource evaluation information and the supporting sample resources, resource evaluation processing is performed on the resource feature information of the query sample resources based on the training results, and an update gradient of the teacher network is determined according to the resource evaluation processing results.
3. The resource processing network training method according to claim 2, characterized in that: The performing resource evaluation processing on the resource feature information of the supporting sample resources based on the at least two business networks and the teacher network to obtain first resource evaluation information includes: Inputting the resource characteristic information of the supporting sample resources to each service network for resource evaluation processing, and obtaining first initial resource evaluation information output by each service network; The first initial resource evaluation information output by each business network and the resource feature information of the supporting sample resources are input into the teacher network to learn the business relevance of each business network to the business scenarios corresponding to the supporting sample resources, and obtain the evaluation weight information of each business network for the supporting sample resources; and the first initial resource evaluation information output by each business network and the evaluation weight information of each business network for the supporting sample resources are weightedly fused to obtain the first resource evaluation information.
4. The resource processing network training method according to claim 2, characterized in that: The step of training the first student network based on the first resource evaluation information and the supporting sample resources includes: Inputting the resource characteristic information of the supporting sample resource to the first student network for resource evaluation processing to obtain third resource evaluation information; Determine first loss data based on the difference between the first resource evaluation information and the third resource evaluation information, update network parameters of the first student network based on the first loss data to obtain a trained first student network, and obtain the training result based on the trained first student network.
5. The resource processing network training method according to claim 4, characterized in that: The performing resource evaluation processing on the resource feature information of the query sample resource based on the training result, and determining the update gradient of the teacher network according to the resource evaluation processing result, includes: Inputting resource characteristic information of the query sample resource to the first student network and the trained first student network for resource evaluation processing respectively, and obtaining fourth resource evaluation information output by the first student network and fifth resource evaluation information output by the trained first student network; An update gradient of the teacher network is determined based on differences among the fourth resource evaluation information, the fifth resource evaluation information, the first resource evaluation information, the first label resource evaluation information corresponding to the supporting sample resource, and the second label resource evaluation information corresponding to the query sample resource.
6. The resource processing network training method according to claim 5, characterized in that: The step of determining the update gradient of the teacher network according to the difference between the fourth resource evaluation information, the fifth resource evaluation information, the first resource evaluation information, the first label resource evaluation information corresponding to the supporting sample resource, and the second label resource evaluation information corresponding to the query sample resource comprises: determining second loss data according to a difference between the first resource evaluation information and the first tag resource evaluation information; determining third loss data according to a difference between the fourth resource evaluation information and the second tag resource evaluation information; determining fourth loss data according to a difference between the fifth resource evaluation information and the second tag resource evaluation information; Determine an update gradient of the teacher network based on the second loss data, the third loss data and the fourth loss data.
7. A resource processing network training method, characterized in that: The method comprises: Obtain target unlabeled sample resources under a preset business scenario, and obtain a target teacher network from a server; the target teacher network is obtained by the server updating the network parameters of the teacher network in the server based on the update gradient sent by each participating client; the update gradient sent by each participating client is used to train a first student network for each participating client based on at least two business networks, the teacher network and the supporting sample resources included in each participating client, and resource evaluation processing is performed on the resource feature information of the query sample resources included in each participating client based on the training result, and the result is determined according to the resource evaluation processing result; the teacher network included in each participating client is obtained from the server for each participating client; Training a second learning network based on at least two business networks, the target teacher network and the target unlabeled sample resources to obtain a target student network; Among them, the target student network is used to determine the resource evaluation information of the input resources according to the input resources; the resources corresponding to the input resources, the supporting sample resources, the query sample resources and the target unlabeled sample resources are at least one of resource transfer associated data and multimedia data; when the resource is resource transfer associated data, the resource feature information of the resource represents the operation information of the object corresponding to the resource transfer associated data, and when the resource is multimedia data, the resource feature information of the resource represents the attribute information of the object corresponding to the multimedia data.
8. The resource processing network training method according to claim 7, characterized in that: The step of training a second learning network based on at least two business networks, the target teacher network and the target unlabeled sample resources to obtain a target student network includes: Performing resource evaluation processing on the resource feature information of the target unlabeled sample resource based on at least two business networks and the target teacher network to obtain second resource evaluation information; The second student network is trained according to the target unlabeled sample resource and the second resource evaluation information to obtain the target student network.
9. The resource processing network training method according to claim 8, characterized in that: The performing resource evaluation processing on the resource feature information of the target unlabeled sample resource based on at least two business networks and the target teacher network to obtain second resource evaluation information includes: Inputting the resource feature information of the target unlabeled sample resource to each business network for resource evaluation processing, respectively, to obtain second initial resource evaluation information output by each business network; The second initial resource evaluation information output by each business network and the resource feature information of the target unlabeled sample resources are input into the target teacher network to learn the business relevance of each business network to the preset business scenario, and obtain the target weight evaluation information of each business network for the target unlabeled sample resources; and the second resource evaluation information is generated according to the second initial resource evaluation information and the target weight evaluation information.
10. The resource processing network training method according to claim 9, characterized in that: The step of training the second student network according to the target unlabeled sample resource and the second resource evaluation information to obtain a target student network includes: Inputting resource feature information of the target unlabeled sample resource into the second student network for resource evaluation processing to obtain sixth resource evaluation information; The network parameters of the second student network are updated according to the difference between the sixth resource evaluation information and the second resource evaluation information to obtain a trained target student network.
11. A resource processing network training method, characterized in that: The method comprises: Receive the update gradient sent by each participating client; train a first student network for each participating client based on at least two business networks, a teacher network and supporting sample resources included in each participating client based on the update gradient sent by each participating client, perform resource evaluation processing on the resource feature information of the query sample resources included in each participating client based on the training result, and determine the result according to the resource evaluation processing result; the teacher network included in each participating client is obtained from the local server for each participating client; Updating the network parameters of the teacher network based on the update gradient determined by each participating client to obtain a target teacher network; Transmitting the target teacher network to a target client, the target client including at least two business networks and a second student network; so that the target client trains the second student network based on at least two business networks, the target teacher network and target unlabeled sample resources under a preset business scenario to obtain a target student network; Among them, the target student network is used to determine the resource evaluation information of the input resources according to the input resources; the resources corresponding to the input resources, the supporting sample resources, the query sample resources and the target unlabeled sample resources are at least one of resource transfer associated data and multimedia data; when the resource is resource transfer associated data, the resource feature information of the resource represents the operation information of the object corresponding to the resource transfer associated data, and when the resource is multimedia data, the resource feature information of the resource represents the attribute information of the object corresponding to the multimedia data.
12. The resource processing network training method according to claim 11, characterized in that: The updating of the network parameters of the teacher network based on the update gradient determined by each participating client to obtain a target teacher network includes: Calculate the mean of the updated gradients determined by each participating client to obtain the gradient mean; The network parameters of the teacher network are updated based on the gradient mean, and the steps of receiving the update gradient sent by each participating client and updating the network parameters of the teacher network based on the update gradient determined by each participating client are repeated until the network parameters of the teacher network meet the preset conditions, thereby obtaining the target teacher network.
13. A resource processing method, characterized in that: The resource processing method comprises: Get the resources to be processed; Inputting resource characteristic information of the resource to be processed into the target student network for resource evaluation processing to obtain resource evaluation information of the resource to be processed; Wherein, the target student network is trained based on the resource processing network training method described in any one of claims 1 to 12.
14. A resource processing network training device, characterized in that: Applied to each of at least two participating clients, each participating client includes supporting sample resources, querying sample resources, at least two business networks and a first student network, the device includes: The teacher network acquisition module is used to obtain the teacher network from the server; An update gradient determination module, configured to train the first student network based on at least two business networks, the teacher network and the supporting sample resources, perform resource evaluation processing on the resource feature information of the query sample resources based on the training results, and determine the update gradient of the teacher network according to the resource evaluation processing results; An update gradient sending module is used to send the update gradient to the server, so that the server updates the network parameters of the teacher network based on the update gradient sent by each participating client to obtain a target teacher network; and to enable the server to transmit the target teacher network to a target client, the target client including at least two business networks and a second student network; and to enable the target client to train the second student network based on at least two business networks, the target teacher network and target unlabeled sample resources under a preset business scenario to obtain a target student network; Among them, the target student network is used to determine the resource evaluation information of the input resources according to the input resources; the resources corresponding to the input resources, the supporting sample resources, the query sample resources and the target unlabeled sample resources are at least one of resource transfer associated data and multimedia data; when the resource is resource transfer associated data, the resource feature information of the resource represents the operation information of the object corresponding to the resource transfer associated data, and when the resource is multimedia data, the resource feature information of the resource represents the attribute information of the object corresponding to the multimedia data.
15. A resource processing network training device, characterized in that: The device comprises: A resource network acquisition module is used to acquire target unlabeled sample resources under a preset business scenario and acquire a target teacher network from a server; the target teacher network is obtained by the server updating the network parameters of the teacher network in the server based on the update gradient sent by each participating client; the update gradient sent by each participating client is used to train a first student network for each participating client based on at least two business networks, a teacher network and supporting sample resources included in each participating client, and resource evaluation processing is performed on the resource feature information of the query sample resources included in each participating client based on the training results, and the network is determined based on the resource evaluation processing results; the teacher network included in each participating client is obtained from the server for each participating client; A target student network training module is used to train a second learning network based on at least two business networks, the target teacher network and the target unlabeled sample resources to obtain a target student network; Among them, the target student network is used to determine the resource evaluation information of the input resources according to the input resources; the resources corresponding to the input resources, the supporting sample resources, the query sample resources and the target unlabeled sample resources are at least one of resource transfer associated data and multimedia data; when the resource is resource transfer associated data, the resource feature information of the resource represents the operation information of the object corresponding to the resource transfer associated data, and when the resource is multimedia data, the resource feature information of the resource represents the attribute information of the object corresponding to the multimedia data.
