| CPC G06N 3/08 (2013.01) [G06F 9/5027 (2013.01); G06F 9/5072 (2013.01); G06F 18/2148 (2023.01)] | 15 Claims |

|
1. A method for generating a shared encoder, comprising:
sending by a master node a shared encoder training instruction comprising a type of a target shared encoder to be trained to child nodes, to allow each child node obtains training samples based on the type;
sending an initial parameter set of the target shared encoder to be trained to each child node after obtaining a confirmation message returned by each child node, so that the initial parameter set is trained by each child node with the training samples;
obtaining a number of the training samples included in each child node;
determining a weight of each child node based on the number of the training samples included in each child node, wherein the weight is used to balance an importance of each child node in a training of the target shared encoder:
obtaining an updated parameter set of the target shared encoder returned by each child node; and
determining a product of the weight of each child node and a corresponding parameter in the updated parameter set as a value for each parameter in an updated parameter set after modification, and determining a target parameter set corresponding to the target shared encoder by fusing the updated parameter set after modification of each child node based on a first preset rule.
|