A non-transitory computer-readable storage medium, storing executable instructions, the executable instructions, when executed by a processor of a computer device acting as an active-party device, implementing a machine learning model training method including:
- coding and encrypting a first object feature in a plurality of sample pairs provided by the active-party device using an active-party coding model to obtain an active-party first encrypted coding result, the plurality of sample pairs comprising a set of positive sample pairs and a set of negative sample pairs;
- acquiring N passive-party first encrypted coding results correspondingly sent by N passive-party devices, N being an integral constant, N≥1, the N passive-party first encrypted coding results being determined based on N passive-party coding models in combination with a second object feature in the plurality of sample pairs provided by the N passive-party devices;
- splicing the active-party first encrypted coding result and the N passive-party first encrypted coding results to obtain a first spliced encrypted coding result, and applying the first spliced encrypted coding result to a first prediction model to obtain a first prediction probability, the first prediction probability being a probability indicating that the first and second object features in each of the plurality of sample pairs are from a same object;
- performing back propagation based on a first difference between the first prediction probability and a first prediction task label of the plurality of sample pairs to cause an update of parameters of the first prediction model and the active-party coding model by the active-party device and respective updates of the N passive-party coding models by the corresponding N passive-party devices;
- and
- causing an update of parameters of a second prediction model and the active-party coding model by the active-party device and respective updates of the N passive-party coding models by the corresponding N passive-party devices based on the set of positive sample pairs and a corresponding second prediction task label, wherein a prediction task of the second prediction model is different from that of the first prediction model.