Abstract: Private convolutional neural network (CNN) inference based on secure two-party computation (2PC) suffers from high communication and latency overhead. EQO is a quantized 2PC inference framework that jointly optimizes CNNs and 2PC protocols. It features a novel protocol combining Winograd transformation with quantization. By addressing sub-optimal bit-width conversions and weight outliers through protocol-level fusion and network-level bit re-weighting, EQO achieves up to 11.7x communication reduction with improved accuracy compared to state-of-the-art frameworks.
Addressing the Communication Wall in Private Inference
Private Inference (PI) is essential for deploying AI in privacy-sensitive domains like healthcare. It allows a client to use a server's model without exposing their sensitive data, typically via Secure Two-Party Computation (2PC). However, 2PC is notoriously communication-intensive, often requiring gigabytes of data transfer for even modest models. This "communication wall" creates a significant bottleneck in both latency and bandwidth.
While Winograd convolution reduces the number of multiplications and quantization reduces the bit-width of operands, naively combining them is inefficient. Winograd transformations introduce "bit-width bloat"—where intermediate values require more bits to maintain precision—and weight outliers that often force higher global bit-widths, negating the benefits of quantization. EQO addresses these challenges through a co-optimization strategy at both the protocol and network levels.
Methods: Co-Optimizing Protocols and Networks
EQO operates by minimizing the product of the number of multiplications and the bit-width of operands through several key innovations.
QWinConv and Graph-Level Optimizations
The core of EQO is QWinConv, a protocol designed specifically for quantized Winograd convolutions. As shown in the comparison below, Winograd transformations necessitate bit-width extensions (e.g., from 6-bit to 8-bit or 10-bit) during feature and output transformations to prevent numerical overflow.
To mitigate the overhead of these extensions, EQO employs graph-level optimizations:
- Protocol Fusion: Redundant bit-width conversion steps in the inference graph are fused to eliminate unnecessary intermediate communication.
- Simplified Residuals: Shortcut connections are redesigned to align directly with convolution outputs, skipping extra communication rounds.
- MSB-known Optimization: Since ReLU outputs are always non-negative, the protocol can skip checking the sign bit (Most Significant Bit), further trimming data transfer.
Network-Level Sensitivity and Bit Re-weighting
EQO uses Hessian-based sensitivity analysis to assign higher precision to critical layers while compressing less sensitive ones. To handle weight outliers without increasing the overall bit-width, the authors developed 2PC-friendly Bit Re-weighting. In 2PC (specifically Oblivious Transfer), bits are processed individually. This allows EQO to "re-weight" the importance of specific bits to increase dynamic range for outliers without increasing the total number of bits or communication rounds.
Key Results and Insights
EQO consistently outperforms existing state-of-the-art (SOTA) frameworks across various benchmarks including CIFAR and ImageNet.
As illustrated in the figure above:
- Communication Reduction: EQO achieves up to an 11.7× reduction in total communication compared to SiRNN. On ResNet-32 (CIFAR-100), total communication is slashed from 1.90 GB to just 0.47 GB.
- Accuracy Gains: Despite heavy compression, EQO models are 1.16% to 1.29% more accurate than baselines, likely due to the more sophisticated mixed-precision and bit-reweighting training strategies.
- Weight Distribution: The distribution of weights in Winograd convolution (bottom left) shows a sharper peak but with distinct outliers. EQO's bit re-weighting handles these outliers efficiently, preventing the "bit-width bloat" that typically plagues Winograd-based quantization.
Limitations and Future Work
EQO primarily focuses on Oblivious Transfer (OT)-based 2PC. While highly effective for CNNs, the trade-offs for Winograd in Homomorphic Encryption (HE) environments remain an open question. Additionally, while the principles of bit-reweighting could apply to Transformers, the specific Winograd optimizations are unique to convolutions. Future research may explore even lower bit-widths, such as 2-bit or binary weights, within the Winograd secure computation domain.
Summary updated