arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2509.01178cs.CR
收藏

一类实数输入函数的高效高精度安全两方协议

Efficient and High-Accuracy Secure Two-Party Protocols for a Class of Functions with Real-number Inputs

Hao Guo, Zhaoqian Liu, Liqiang Peng, Shuaishuai Li, Ximing Fu, Weiran Liu, Lin Qu

AI总结:

本文针对实数输入的安全两方计算,将输入约束从 |x|<L/3 放宽至 |x|<L/2,并提出通用协议框架支持整数除法、三角函数和指数函数,在效率和精度上显著优于 SirNN 和 Bolt。

摘要:

在两方秘密共享方案中,数值通常被编码为无符号整数 $\mathsf{uint}(x)$,而现实世界应用往往需要对有符号实数 $\mathsf{Real}(x)$ 进行计算。为了能够安全评估实际函数,必须从共享输入中计算 $\mathsf{Real}(x)$,因为协议以份额作为输入。在 USENIX'25 上,Guo 等人提出了一种从份额中计算有符号整数值 $\mathsf{int}(x)$ 的高效方法,该方法可以扩展用于计算 $\mathsf{Real}(x)$。然而,他们的方法施加了限制性输入约束 $|x| < \frac{L}{3}$(其中 $x \in \mathbb{Z}_L$),限制了其在现实场景中的适用性。在本工作中,我们将该约束显著放宽为 $|x| < B$,其中 $B \leq \frac{L}{2}$ 且 $B = \frac{L}{2}$ 对应于 $x \in \mathbb{Z}_L$ 中的自然可表示范围。这放宽了限制,使得 $\mathsf{Real}(x)$ 的计算能够在宽松甚至无输入约束的条件下进行。在此基础上,我们提出了一个通用框架,用于为一类广泛的函数设计安全协议,包括整数除法($\lfloor \frac{x}{d} \rfloor$)、三角函数($\sin(x)$)和指数函数($e^{-x}$)。我们的实验评估表明,所提出的协议同时实现了高效率和高精度。值得注意的是,我们用于评估 $e^{-x}$ 的协议将通信开销降低到 SirNN(S&P 21)和 Bolt(S&P 24)的约 31%,运行时间加速分别高达 $5.53 \times$ 和 $3.09 \times$。在精度方面,我们的协议实现了最大 ULP 误差 $1.435$,而 SirNN 为 $2.64$,Bolt 为 $8.681$。

英文摘要:

In two-party secret sharing scheme, values are typically encoded as unsigned integers $\mathsf{uint}(x)$, whereas real-world applications often require computations on signed real numbers $\mathsf{Real}(x)$. To enable secure evaluation of practical functions, it is essential to computing $\mathsf{Real}(x)$ from shared inputs, as protocols take shares as input. At USENIX'25, Guo et al. proposed an efficient method for computing signed integer values $\mathsf{int}(x)$ from shares, which can be extended to compute $\mathsf{Real}(x)$. However, their approach imposes a restrictive input constraint $|x| < \frac{L}{3}$ for $x \in \mathbb{Z}_L$, limiting its applicability in real-world scenarios. In this work, we significantly relax this constraint to $|x| < B$ for any $B \leq \frac{L}{2}$, where $B = \frac{L}{2}$ corresponding to the natural representable range in $x \in \mathbb{Z}_L$. This relaxes the restrictions and enables the computation of $\mathsf{Real}(x)$ with loose or no input constraints. Building upon this foundation, we present a generalized framework for designing secure protocols for a broad class of functions, including integer division ($\lfloor \frac{x}{d} \rfloor$), trigonometric ($\sin(x)$) and exponential ($e^{-x}$) functions. Our experimental evaluation demonstrates that the proposed protocols achieve both high efficiency and high accuracy. Notably, our protocol for evaluating $e^{-x}$ reduces communication costs to approximately 31% of those in SirNN (S&P 21) and Bolt (S&P 24), with runtime speedups of up to $5.53 \times$ and $3.09 \times$, respectively. In terms of accuracy, our protocol achieves a maximum ULP error of $1.435$, compared to $2.64$ for SirNN and $8.681$ for Bolt.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑