Closed jaredweinfurtner closed 2 years ago
I don't think TensorFlow and MP-SPDZ mix that easily. MP-SPDZ is more designed for continuous secure computation rather than than this use case where secure aggregation is interleaved with local training. The following page has an overview of how to get information in and out of MP-SPDZ secure computation: https://mp-spdz.readthedocs.io/en/latest/io.html
Hello, I wanted to provide a demonstration of federated learning using MPC to perform the secure aggregation. I started with this blog entry of demonstrating federated learning of the MNIST handwritten digit dataset using the corresponding repo.
In that codebase contains a function that performs the aggregation:
That is what I wanted to execute in an mpc program, but not sure where to start. The
scaled_weight_list
is a largenumpy.ndarray
of floating point numbers. Should I convert those to integer by multiplying by a fixed 1n? Does thereduce_sum
function work on secret shares?Thanks in advance for any guidance you provide.