DeepReShape:为高效私有推理重新设计神经网络
DeepReShape: Redesigning Neural Networks for Efficient Private Inference
AI总结:
针对私有推理中ReLU和FLOPs均影响延迟的问题,提出DeepReShape技术同时优化二者,生成HybReNets网络,在基准测试中实现精度与运行效率的显著提升,并阐明关键网络属性。
摘要:
私有推理(PI)即直接对加密输入执行的推理,此前的相关研究主要聚焦于最小化网络的ReLU,人们一直认为ReLU而非浮点运算(FLOPs)决定了PI的延迟。近期研究表明,PI的FLOPs已不容忽视,会带来极高的延迟损耗。本文提出了DeepReShape,这是一种在PI约束下优化神经网络架构的技术,首次同时针对ReLU和FLOPs进行优化。其核心思路是策略性地分配通道,按照对网络精度的重要性程度排布网络的ReLU,同时提升ReLU和FLOPs的效率。DeepReShape通过高效流程实现网络开发自动化,我们将生成的网络称为HybReNets。我们使用标准PI基准测试对DeepReShape进行了评估,结果显示在CIFAR-100上,在ReLU数量相同的情况下,精度提升2.1%,运行时间提升5.2倍;在TinyImageNet上,在精度相同的情况下,运行时间提升8.7倍。此外,我们还探究了网络选择在以往ReLU优化中的重要性,阐明了实现优异PI性能的关键网络属性。
英文摘要:
Prior work on Private Inference (PI) -- inferences performed directly on encrypted input -- has focused on minimizing a network's ReLUs, which have been assumed to dominate PI latency rather than FLOPs. Recent work has shown that FLOPs for PI can no longer be ignored and incur high latency penalties. In this paper, we develop DeepReShape, a technique that optimizes neural network architectures under PI's constraints, optimizing for both ReLUs and FLOPs for the first time. The key insight is strategically allocating channels to position the network's ReLUs in order of their criticality to network accuracy, simultaneously optimizes ReLU and FLOPs efficiency. DeepReShape automates network development with an efficient process, and we call generated networks HybReNets. We evaluate DeepReShape using standard PI benchmarks and demonstrate a 2.1% accuracy gain with a 5.2$\times$ runtime improvement at iso-ReLU on CIFAR-100 and an 8.7$\times$ runtime improvement at iso-accuracy on TinyImageNet. Furthermore, we investigate the significance of network selection in prior ReLU optimizations and shed light on the key network attributes for superior PI performance.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。