PrivQuant: Communication-Efficient Private Inference with Quantized Network/Protocol Co-Optimization

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Xu, Tianshi, Zhong, Shuzhang, Zeng, Wenxuan, Wang, Runsheng, Li, Meng
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866910646448160768
author Xu, Tianshi
Zhong, Shuzhang
Zeng, Wenxuan
Wang, Runsheng
Li, Meng
author_facet Xu, Tianshi
Zhong, Shuzhang
Zeng, Wenxuan
Wang, Runsheng
Li, Meng
contents Private deep neural network (DNN) inference based on secure two-party computation (2PC) enables secure privacy protection for both the server and the client. However, existing secure 2PC frameworks suffer from a high inference latency due to enormous communication. As the communication of both linear and non-linear DNN layers reduces with the bit widths of weight and activation, in this paper, we propose PrivQuant, a framework that jointly optimizes the 2PC-based quantized inference protocols and the network quantization algorithm, enabling communication-efficient private inference. PrivQuant proposes DNN architecture-aware optimizations for the 2PC protocols for communication-intensive quantized operators and conducts graph-level operator fusion for communication reduction. Moreover, PrivQuant also develops a communication-aware mixed precision quantization algorithm to improve inference efficiency while maintaining high accuracy. The network/protocol co-optimization enables PrivQuant to outperform prior-art 2PC frameworks. With extensive experiments, we demonstrate PrivQuant reduces communication by $11\times, 2.5\times \mathrm{and}~ 2.8\times$, which results in $8.7\times, 1.8\times ~ \mathrm{and}~ 2.4\times$ latency reduction compared with SiRNN, COINN, and CoPriv, respectively.
format Preprint
id arxiv_https___arxiv_org_abs_2410_09531
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle PrivQuant: Communication-Efficient Private Inference with Quantized Network/Protocol Co-Optimization
Xu, Tianshi
Zhong, Shuzhang
Zeng, Wenxuan
Wang, Runsheng
Li, Meng
Cryptography and Security
Artificial Intelligence
Private deep neural network (DNN) inference based on secure two-party computation (2PC) enables secure privacy protection for both the server and the client. However, existing secure 2PC frameworks suffer from a high inference latency due to enormous communication. As the communication of both linear and non-linear DNN layers reduces with the bit widths of weight and activation, in this paper, we propose PrivQuant, a framework that jointly optimizes the 2PC-based quantized inference protocols and the network quantization algorithm, enabling communication-efficient private inference. PrivQuant proposes DNN architecture-aware optimizations for the 2PC protocols for communication-intensive quantized operators and conducts graph-level operator fusion for communication reduction. Moreover, PrivQuant also develops a communication-aware mixed precision quantization algorithm to improve inference efficiency while maintaining high accuracy. The network/protocol co-optimization enables PrivQuant to outperform prior-art 2PC frameworks. With extensive experiments, we demonstrate PrivQuant reduces communication by $11\times, 2.5\times \mathrm{and}~ 2.8\times$, which results in $8.7\times, 1.8\times ~ \mathrm{and}~ 2.4\times$ latency reduction compared with SiRNN, COINN, and CoPriv, respectively.
title PrivQuant: Communication-Efficient Private Inference with Quantized Network/Protocol Co-Optimization
topic Cryptography and Security
Artificial Intelligence
url https://arxiv.org/abs/2410.09531