SafeStats speeds up chi-square test 1.5× and cuts communication 4.2×
SafeStats provides faster runtime and lower communication for 2PC statistical functions
Security & privacy arXiv 28 Jul 2026 Method Prototype evidence
Published as “SafeStats: Efficient 2PC Protocols for Data Statistic-Related Functions”
Why it matters
The improvements make privacy-preserving statistical analysis practical for real-world workloads that were previously infeasible with 2PC.
Summary
SAFESTATS dramatically speeds up 2PC statistical primitives, achieving 4.0-7.9× faster runtime and 3.1-8.6× lower communication for frequency counting, 3.4-20.5× faster runtime and 1.3-7.6× lower communication for sorting, and 1.2-1.7× faster runtime with 1.15-1.16× less communication for non-linear functions. The toolkit is built on three core protocols-shift-based counting, segment-indicator sorting, and bisection-based MSNZ identification-and is evaluated on synthetic datasets up to 16 384 records and domain size 1 024. Results on 14 statistical tasks show consistent improvements over baselines such as EzPC, QuickSort, and prior counting methods.
What they found 4
- Frequency counting is 4.0-7.9× faster and 3.1-8.6× less communication than equality-based methods.
“SAFESTATS achieves 4.0-7.9× runtime improvement and 3.1-8.6× communication improvement compared to the current equality-based frequency counting methods [16].”
- Secure sorting attains 3.4-20.5× runtime speedup and 1.3-7.6× communication reduction versus prior protocols.
“SAFESTATS achieves 3.4-20.5× runtime speedup and 1.3-7.6× communication reduction compared to the prior methods [7], [14], [17].”
- Bisection-based MSNZ protocol cuts runtime by 1.2-1.7× and communication by 1.15-1.16× for non-linear functions.
“By incorporating this bisection-based MSNZ protocol, our implementation of SAFESTATS reduces runtime by 1.2-1.7× and communication by 1.15-1.16× for secure non-linear function evaluation compared to the current work [23].”
- On the chi-square test, SAFESTATS is 1.5× faster and uses 4.2× less communication than baselines.
“for the chi-square test, SAFESTATS achieves a 1.5× runtime speedup and a 4.2× reduction in communication compared to baselines.”
Caveats 2
- when m increases to 1024, the running time of SAFESTATS becomes comparable to RadixSort, with a slight slowdown of 1.1×.
- its communication cost becomes about 2.1× higher than RadixSort at m = 1024.
What’s new here 4
- Shift-based frequency counting replaces O(ml) equality tests with O(log m) oblivious transfers.
- Counting-sort protocol uses a segment-indicator primitive to avoid secure comparisons and achieve constant communication rounds.
- Bisection-based MSNZ identification reduces range-reduction rounds from O(d) to O(log d) for non-linear function evaluation.
- Integration of these three primitives into a unified toolkit covering the majority of Excel statistical functions.