-
Notifications
You must be signed in to change notification settings - Fork 270
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bit-length for SqueezeNet inference #1401
Comments
The reason is the statistical masking introduced here: https://citeseerx.ist.psu.edu/document?repid=rep1&type=pdf&doi=baf1019ec7d406260bd0e358af47962eef6c9a69 |
Thanks! I had not seen that 44 figure anywhere. If test.mpc is given by
and I run
can't be similarly compiled and executed over a 50 rather than 106 bit prime field? And if not, what does |
MP-SPDZ operates with 64-bit words, so it sends at least 8 bytes per share even with modulus 31. You can decrease the field size by decreasing the integer bit length, for example using |
Thanks I was not aware that; I just tried with a 201-bit prime and bandwidth did go up indeed. I presume that these words are different for mixed circuits, where some computations are done over (an extension of?) What was confusing me is that the first protocol allows me to be very flexible with the field size after I run |
Yes, binary circuits also use bit packing for storage and communication. I haven't paid much attention to small prime moduli because the application isn't really clear whereas binary circuits have very clear applications.
Indeed. |
Quantised neural networks might be a potential application? If you decide on LSSS-based MPC here then adding 40 bits of statistical slack over a small field should be inefficient. |
I'm happy to look into if I see some evidence. |
In the standard README of MP-SPDZ, it is suggested that SqueezeNet inference for ImageNet can be performed with a series of commands, including one starting with
./compile.py -R 64
. When I try to compile and run it over a 64-bit prime field, I getTape requires prime of bit length 84
.Where is the number 84 coming from?
The text was updated successfully, but these errors were encountered: