2 comments

[ 5.1 ms ] story [ 20.2 ms ] thread
> So we replaced the Max-Pooling layer with an Average-Pooling layer,

Why not use: https://en.m.wikipedia.org/wiki/Smooth_maximum

Thanks for the suggestion! The reason average pooling is faster than max pooling is that the former uses only addition, which is quite a bit faster than comparison in MPC. The smooth max requires both exponentiation and division, both of which are significantly more expensive than doing the comparison in ReLU or max pooling.