|
Algorithm 2 Anti Poisoning Privacy-Perserving Federated Learning |
| 01. Input: . |
| 02. Output: updated reward points , parameters , and local reliability . |
| 03. 1: Trade gradients via sharing level, reward points and local reliability: At every |
| 04. round, the goal of party is to download model parameter updates from |
| 05. the other parties, while party is able to provide about model |
| 06. parameter updates, one reward point is spent for every download and rewarded for |
| 07. every upload. Parties update their model according to the model parameter updates |
| 08. of party as the following: |
| 09. for do
|
| 10. , party
|
| 11. first choose meaningful gradients from according to largest values |
| 12. criterion: sort gradients in and choose top of them, and mask the |
| 13. remaining model parameter updates with 0 as
|
| 14. end for
|
| 15. 2: Model parameter update: party utilizes the secret key to decrypt received |
| 16. encrypted symmetric key as , and utilizes it to decrypt the encrypted parameter |
| 17. updates as at the end decrypts the sum of model paramter updates |
| 18. via homomorphic encryption and thus local model can be updated via integrating all |
| 19. the plain paramter updates as
|
| 20. . |
| 21. 3: Local reliability update: party publishes artificial private data samples to |
| 22. other party for labeling. Mutual evaluation is utilized to compute the local |
| 23. reliability of the party as at current round. Thus party updates party
|
| 24. local reliability via integrating the historical reliability as . |
| 25. 4: Local reliability normalization:
|
| 26. if then
|
| 27. party will report party as the party with low contribution. |
| 28. end if
|
| 29. 5: Set of reliable party: The reliable party set in blockchain will be reconstructed in |
| 30. form of removing the low-contribution party reported by the majority of parties. |