arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2310.04604cs.CRcs.LG
收藏

PriViT:用于快速隐私推理的视觉Transformer

PriViT: Vision Transformers for Fast Private Inference

Tandon School of Engineering at New York University(纽约大学坦登工程学院)

Naren Dhyani, Jianqiao Mo, Minsu Cho, Ameya Joshi, Siddharth Garg, Brandon Reagen, Chinmay Hegde

AI总结:

针对ViT因大量非多项式运算不适用于MPC隐私推理的问题,提出基于梯度的PriViT算法,选择性泰勒化ViT非线性以保精度,在延迟-精度帕累托前沿上优于现有MPC友好型Transformer设计,经多个图像分类任务验证有效。

摘要:

视觉Transformer(ViT)架构已成为计算机视觉应用中最先进深度模型的首选骨干网络。然而,由于存在大量非多项式运算(自注意力、前馈整流器、层归一化),ViT并不适用于使用安全多方计算(MPC)协议的隐私推理。我们提出PriViT,这是一种基于梯度的算法,可选择性地对ViT中的非线性进行“泰勒化”,同时保持其预测精度。我们的算法概念简单、易于实现,在实现延迟-精度帕累托前沿方面,性能优于现有设计MPC友好型Transformer架构的方法。我们通过在多个标准图像分类任务上的实验证实了这些改进。公开代码可在https://github.com/NYU-DICE-Lab/privit获取。

英文摘要:

The Vision Transformer (ViT) architecture has emerged as the backbone of choice for state-of-the-art deep models for computer vision applications. However, ViTs are ill-suited for private inference using secure multi-party computation (MPC) protocols, due to the large number of non-polynomial operations (self-attention, feed-forward rectifiers, layer normalization). We propose PriViT, a gradient based algorithm to selectively "Taylorize" nonlinearities in ViTs while maintaining their prediction accuracy. Our algorithm is conceptually simple, easy to implement, and achieves improved performance over existing approaches for designing MPC-friendly transformer architectures in terms of achieving the Pareto frontier in latency-accuracy. We confirm these improvements via experiments on several standard image classification tasks. Public code is available at https://github.com/NYU-DICE-Lab/privit.

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

↑