We thank the reviewer sjar for the questions on MPC-side contributions. We are sorry that we defer some detailed descriptions regarding MPC protocols to Appendix due to page limitation.
We hereby answer the specific questions below.
> Distillation is widely used in MPC-based secure inference works.
We clarify that our main contribution is proposing MPC-friendly quantization and quantization-aware distillation, which effectively bridges the gap between plaintext quantization and MPC-based inference.
Different from prior works that leverage distillation, we further incorporate MPC-friendly quantization into distillation, which is not trivial. **This involves converting the computations in the student model into fixed-point arithmetic (illustrated in Figure 5, Appendix A.7) and utilizing them as inputs to the distillation process.** With quantization-aware distillation, we can enhance efficiency while maintaining a negligible utility drop.
> It seems limited contributions of MPC protocols.
Due to page limitation, we are unable to provide a detailed description in Section 4.3.1. The **formulated protocol construction**, **correctness analysis** and **security proofs** are presented in Appendix A.2~A.4.
Besides, we emphasize that the Downcast and UpCast are different from prior works and exhibit better performance, which is the key to quantization-aware secure inference. We believe that the following explanations will help demonstrate the contribution of MPC protocols.
> Does the Downcast protocol have a probabilistic error? What is the difference compared with the truncation of SecureML?
To summarize, there are distinct differences between Downcast and the truncation method in SecureML. **Downcast introduces a probabilistic error solely in the least significant bit (LSB), whereas SecureML introduces probabilistic errors in both the LSB and MSB.** The impact of LSB error is negligible, while the MSB error may cause significant deviations.
As shown in Equation 2, Appendix A.3,
$x'=x/2^t$
$=((x_0+x_1+x_2)\mod 2^\ell)/2^t$
$=x_0/2^t+x_1/2^t+x_2/2^t-w\cdot 2^{\ell-t}+w'$
$=(x_0/2^t+x_1/2^t+x_2/2^t-w\cdot 2^{\ell-t}+w')\mod 2^{\ell'}$
$=(x_0/2^t\mod 2^{\ell'})+(x_1/2^t\mod 2^{\ell'})+(x_2/2^t\mod 2^{\ell'})-(w\cdot 2^{\ell-t}\mod 2^{\ell'})+w'\mod 2^{\ell'}$
there are two potential wraps, i.e., $w$ and $w'$. $w$ leads to the MSB error, while $w'$ leads to the LSB error. In Ditto, since we have $\ell−t=64−(18−8)=54$ and $\ell'=32$, we can get $w \cdot 2^{\ell−t}\mod 2^{\ell'}=0$. That is, we can implicitly erase the MSB error in Ditto. While in SecureML, the potential wrap happens with probability and may lead to significant errors.
> Could you provide the theoretical or experimental advantages of the proposed Downcast and Upcast protocols compared with SOTA?
Consider casting from $\mathbb{Z}\_{2^\ell}$ to $\mathbb{Z}\_{2^{\ell'}}$. $\lambda$ denotes the computational security parameter, typically 128 in SIRNN[2].
The table below demonstrates that Ditto surpasses previous works in terms of the upcast protocol, excelling in both communication round and size. These two factors are crucial in measuring the efficiency of protocols. **Notably, Upcast in Ditto is constant-round (3 rounds), which is much better than SOTA works ($\mathcal{O}(\log\ell)$).**
In terms of downcast, **Ditto incurs no communication like prior works, while avoiding MSB error**, which was a drawback in the SecureML approach.
|||Round|Size (bits)|
|:------:|:------------------:|:-------------:|:---------------------------------:|
|Downcast|SecureML[1]|0|0|
||SIRNN[2]|0|0|
||Ditto|0|0|
|Upcast|SIRNN[2]| $\log \ell + 2$ | $\lambda (\ell+1) + 13\ell + \ell'$ |
||Baccarini et al.[3]| $\log \ell + 4$ | $2(\ell + \ell') + \log \ell + 2$ |
||Ditto|3|$2\ell + \ell'$|
> In Upcast, what distribution is r sampled from?
The randomness $r$ is a random $\ell$-bit integer, uniformly sampled from $\mathbb{Z}_{2^{\ell}}$ to ensure perfect security during the mask-and-open process of $x$. That is, $r \in [-2^{\ell-1}, 2^{\ell-1}-1]$.
> How to ensure the input is positive?
We have a trick that restricts the range of $x\in[-2^{\ell-2},2^{\ell-2}-1]$. As a result, $x+2^{\ell-2}\in[0,2^{\ell-1}-1]$, thus ensuring that the input to Upcast is positive.
After the conversion, the bias term $2^{\ell-2}$ can be conveniently subtracted to eliminate its influence.
This approach allows us to achieve performance improvements at the sacrifice of one bit without compromising the overall security of the system.
The correctness analysis is provided in Appendix A.3.
[1]: Mohassel and Zhang. SecureML: A System for Scalable Privacy-Preserving Machine Learning. IEEE Symposium on Security and Privacy 2017
[2]: Rathee et al. SiRnn: A Math Library for Secure RNN Inference. SP 2021
[3]: Baccarini et al. Multi-Party Replicated Secret Sharing over a Ring with Applications to Privacy-Preserving Machine Learning. Proc. Priv. Enhancing Technol. 2023