encryptogroup / MOTION2NX

A framework for generic hybrid two-party computation and private inference with neural networks
MIT License
29 stars 16 forks source link

Circuits using multi input gates as ABY2.0 #10

Open rptii opened 1 year ago

rptii commented 1 year ago

Hi, ABY2.0 used 4-input gates to implement adders and multipliers reducing the multiplicative depth. Is there anything similar within MOTION2NX? Or, is it supported?

lenerd commented 1 year ago

Hi, I thought I had an implementation of the 3- and 4-input AND/MUL gates somewhere, but it does not seem to be on the public branch. Maybe I did not finish it, have to check.

rptii commented 1 year ago

Is it possible to share that? The 3 and 4-input implementation reduced the depth quite significantly. I'm assuming the results in the paper took those gates into account.

lenerd commented 1 year ago

I have put the current state here. With new GCC, it does currently not compile for me, though.

rptii commented 1 year ago

Thank you for that. I'll check it out and see if I can compile it. Will report back soon.

BeStrongok commented 1 year ago

Thank you for that. I'll check it out and see if I can compile it. Will report back soon.

Hey, i'm also wondering the implementation of 3- and 4-input AND/MUL gates, have you handled it?