paper-with-me

Papers

Ditto: Quantization-aware Secure Inference of Transformers upon MPC

2024-05-09 · Haoqi Wu, Wenjing Fang, Yancheng Zheng, Junming Ma, Jin Tan, Yinggui Wang, Lei Wang

Due to the rising privacy concerns on sensitive client data and trained models like Transformers, secure multi-party computation (MPC) techniques are employed to enable secure inference despite attendant overhead. Existing works attempt to reduce the overhead using more MPC-friendly non-linear function approximations. However, the integration of quantization widely used in plaintext inference into the MPC domain remains unclear. To bridge this gap, we propose the framework named Ditto to enable more efficient quantization-aware secure Transformer inference. Concretely, we first incorporate an MPC-friendly quantization into Transformer inference and employ a quantization-aware distillation procedure to maintain the model utility. Then, we propose novel MPC primitives to support the type conversions that are essential in quantization and implement the quantization-aware MPC execution of secure quantized inference. This approach significantly decreases both computation and communication overhead, leading to improvements in overall efficiency. We conduct extensive experiments on Bert and GPT2 models to evaluate the performance of Ditto. The results demonstrate that Ditto is about $3.14\sim 4.40\times$ faster than MPCFormer (ICLR 2023) and $1.44\sim 2.35\times$ faster than the state-of-the-art work PUMA with negligible utility degradation.

📄 PDF Abstract BibTeX arXiv:2405.05525

Code (1)

secretflow/spu 공식 구현 tf

Tasks

Quantization

Methods 이 논문이 사용한 방법론

Refunds@Expedia|||How do I get a full refund from Expedia? “How do I get a full refund from Expedia? How do I get a full refund from Expedia? – Call ☎️ +1-(888) 829 (0881) or +1-805-330-4056 or +1-805-330-4056 for Quick Help &…
Attention 설명 없음
Weight Decay 설명 없음
Attention Dropout Attention Dropout is a type of dropout used in attention-based architectures, where elements are randomly dropped out of the…
Dropout Dropout is a regularization technique for neural networks that drops a unit (along with connections) at training time with a specified probability $p$ (a common value is…
Label Smoothing Label Smoothing is a regularization technique that introduces noise for the labels. This accounts for the fact that datasets may have mistakes in them, so maximizing the…
Residual Connection 설명 없음
Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…

Similar Papers 제목 키워드 기반

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

2024-10-12 · Tianshi Xu, Shuzhang Zhong, Wenxuan Zeng, Runsheng Wang 외

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 inf…

Quantization

Ditto: Accelerating Diffusion Model via Temporal Value Similarity

2025-01-20 · Sungbin Kim, Hyunwuk Lee, Wonho Cho, Mincheol Park 외

Diffusion models achieve superior performance in image generation tasks. However, it incurs significant computation overheads due to its iterative structure. To address these overheads, we analyze this iterative structur…

Image GenerationmodelQuantization

SecureRouter: Encrypted Routing for Efficient Secure Inference

2026-04-16 · Yukuan Zhang, Mengxin Zheng, Qian Lou arxiv

Cryptographically secure neural network inference typically relies on secure computing techniques such as Secure Multi-Party Computation (MPC), enabling cloud servers to process client inputs without decrypting them. Alt…

DiTTo: Scalable Order-aware All-in-One Image Restoration Agent

2026-05-29 · Seungho Choi, Jihyong Oh arxiv

Real-world images rarely suffer from a single degradation, and the order in which degradations are removed substantially affects the final restoration quality, motivating agent-based image restoration (IR), where a visio…

Image Restoration

TaQ-DiT: Time-aware Quantization for Diffusion Transformers

2024-11-21 · Xinyan Liu, Huihong Shi, Yang Xu, Zhongfeng Wang

Transformer-based diffusion models, dubbed Diffusion Transformers (DiTs), have achieved state-of-the-art performance in image and video generation tasks. However, their large model size and slow inference speed limit the…

DenoisingModel CompressionQuantizationVideo Generation