arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2312.02829cs.LGcs.AIstat.ML
收藏

MIMONets:利用叠加计算的多输入多输出神经网络

MIMONets: Multiple-Input-Multiple-Output Neural Networks Exploiting Computation in Superposition

IBM Research(IBM研究院);ETH Zurich(苏黎世联邦理工学院)

Nicolas Menet, Michael Hersche, Geethan Karunaratne, Luca Benini, Abu Sebastian, Abbas Rahimi

AI总结:

本文提出MIMONets,通过变量绑定、整体非线性变换与解绑机制叠加处理多个输入,并在CNN和Transformer上验证其可在小幅精度损失下获得2至4倍推理加速。

摘要:

随着深度学习的出现,人们设计了越来越大的神经网络来解决复杂任务。我们利用这些容量充足的模型,通过叠加计算来降低推理成本。为了减少每个输入的计算负担,我们提出了多输入多输出神经网络(Multiple-Input-Multiple-Output Neural Networks,MIMONets),能够一次处理多个输入。MIMONets通过变量绑定机制增强多种深度神经网络架构,从而以固定宽度的分布式表示在组合式数据结构中表示任意数量的输入。相应地,MIMONets调整非线性神经变换以整体处理该数据结构,从而获得几乎与数据结构中叠加输入项数量成正比的加速。在叠加处理之后,解绑机制恢复每个感兴趣的、经过变换的输入。MIMONets还通过在一组精度—吞吐量工作点之间即时按需切换,提供精度与吞吐量之间的动态权衡,而这一切都在单组固定参数内完成。我们将MIMONets概念应用于CNN和Transformer架构,分别产生了MIMOConv和MIMOFormer。实证评估表明,在CIFAR10和CIFAR100上,与WideResNet CNN相比,MIMOConv实现了约2至4倍加速,同时精度变化处于[+0.68, -3.18]%范围内。类似地,MIMOFormer可以一次处理2至4个输入,并在long range arena基准上保持较高的平均精度,精度变化处于[-1.07, -3.43]%范围内。最后,我们给出了MIMOFormer中叠加通道之间干扰的数学界。我们的代码可在https://github.com/IBM/multiple-input-multiple-output-nets获取。

英文摘要:

With the advent of deep learning, progressively larger neural networks have been designed to solve complex tasks. We take advantage of these capacity-rich models to lower the cost of inference by exploiting computation in superposition. To reduce the computational burden per input, we propose Multiple-Input-Multiple-Output Neural Networks (MIMONets) capable of handling many inputs at once. MIMONets augment various deep neural network architectures with variable binding mechanisms to represent an arbitrary number of inputs in a compositional data structure via fixed-width distributed representations. Accordingly, MIMONets adapt nonlinear neural transformations to process the data structure holistically, leading to a speedup nearly proportional to the number of superposed input items in the data structure. After processing in superposition, an unbinding mechanism recovers each transformed input of interest. MIMONets also provide a dynamic trade-off between accuracy and throughput by an instantaneous on-demand switching between a set of accuracy-throughput operating points, yet within a single set of fixed parameters. We apply the concept of MIMONets to both CNN and Transformer architectures resulting in MIMOConv and MIMOFormer, respectively. Empirical evaluations show that MIMOConv achieves about 2-4 x speedup at an accuracy delta within [+0.68, -3.18]% compared to WideResNet CNNs on CIFAR10 and CIFAR100. Similarly, MIMOFormer can handle 2-4 inputs at once while maintaining a high average accuracy within a [-1.07, -3.43]% delta on the long range arena benchmark. Finally, we provide mathematical bounds on the interference between superposition channels in MIMOFormer. Our code is available at https://github.com/IBM/multiple-input-multiple-output-nets.

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

↑