论文标题
运行时深层模型多路复用,以减少延迟和能耗推断
Runtime Deep Model Multiplexing for Reduced Latency and Energy Consumption Inference
论文作者
论文摘要
我们提出了一种学习算法,以设计一个轻巧的神经多路复用器,鉴于输入和计算资源需求,它将调用该模型,该模型将消耗最低计算资源以成功推断。移动设备可以使用所提出的算法将硬输入卸载到云中,同时在本地推断出容易的算法。此外,在基于云的大规模智能应用程序中,与其复制最精确的模型,可以根据输入的复杂性来多样地将一系列大型和大型模型多倍增,这将节省云的计算资源。输入复杂性或硬度取决于可以预测正确标签的模型数量的数量。例如,如果没有模型可以正确预测标签,则输入被认为是最难的。所提出的算法允许移动设备检测可以在本地处理的输入以及需要更大型号并应向云服务发送的输入。因此,移动用户不仅受益于本地处理,而且从托管在云服务器上的精确模型中受益。我们的实验结果表明,提出的算法将移动模型的准确性提高了8.52%,这是因为这些输入被正确选择并卸载到云服务器上。此外,由于选择了小型型号,因此它可以节省云提供商的计算资源2.85倍。
We propose a learning algorithm to design a light-weight neural multiplexer that given the input and computational resource requirements, calls the model that will consume the minimum compute resources for a successful inference. Mobile devices can use the proposed algorithm to offload the hard inputs to the cloud while inferring the easy ones locally. Besides, in the large scale cloud-based intelligent applications, instead of replicating the most-accurate model, a range of small and large models can be multiplexed from depending on the input's complexity which will save the cloud's computational resources. The input complexity or hardness is determined by the number of models that can predict the correct label. For example, if no model can predict the label correctly, then the input is considered as the hardest. The proposed algorithm allows the mobile device to detect the inputs that can be processed locally and the ones that require a larger model and should be sent a cloud server. Therefore, the mobile user benefits from not only the local processing but also from an accurate model hosted on a cloud server. Our experimental results show that the proposed algorithm improves mobile's model accuracy by 8.52% which is because of those inputs that are properly selected and offloaded to the cloud server. In addition, it saves the cloud providers' compute resources by a factor of 2.85x as small models are chosen for easier inputs.