The present disclosure relates to a model training method, an instant pushing method, a device, a medium and an electronic device, and belongs to the technical field of computers, and can realize model training in an end intelligent scene. A model training method based on
federated learning comprises: multiple first participants with labels, the same features and different samples, encrypting the
label values possessed by the multiple first participants and transmitting the encrypted
label values to a second participant without labels, the second participant possessing all the samples of the first participants but having different features from the first participants; the second participant determining a second gradient based on the encrypted
label values and feature values of the features possessed by the second participant and transmitting the second gradient to the first participants; the first participants determining a first gradient and a first
histogram based on the feature values of the features possessed by the first participants and the label values possessed by the first participants and transmitting the first gradient and the first
histogram to the second participant; the first participants determining a first optimal
split point based on the second gradient and transmitting the first optimal
split point to the second participant; and the second participant determining a
global optimal split point based on the first gradient, the first
histogram and the first optimal split point and transmitting the
global optimal split point to the first participants.