The invention discloses a personalized
federated learning optimization method and
system, and mainly solves the problem of poor performance of an existing personalized
federated learning model. The method comprises the following steps: establishing a
communication link between a
client and a
server; each
client receives a current global sharing
model parameter broadcasted by the
server, loads the current global sharing
model parameter to a local model, and introduces a total
loss function of a dynamic alignment strength definition model; training and optimizing local
model parameters, and updating shared parameters by using the parameters; the
client side calculates a self-adaptive aggregation weight based on the parameter updating quantity norm, the data volume weight and the synchronous frequency weight of the
client side, and uploads the self-adaptive aggregation weight and the updated shared parameters to the
server; and the server receives the parameter and weight information uploaded by the server, executes
global model aggregation to obtain an updated
global model, and outputs the
global model reaching accuracy convergence or a preset training round on the
verification set. According to the method, local
personalization and
global consistency can be balanced, the robustness and efficiency of global aggregation are improved, and the method can be used for
processing scenes of high data isomerism and dynamic change of client participation states.