arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2202.09318cs.LGcs.AI
收藏

DataMUX:用于神经网络的数据复用

DataMUX: Data Multiplexing for Neural Networks

Princeton University(普林斯顿大学)

Vishvak Murahari, Carlos E. Jimenez, Runzhe Yang, Karthik Narasimhan

摘要:

在本文中,我们介绍了数据复用(DataMUX),这是一种使深度神经网络能够使用单个紧凑表示同时处理多个输入的技术。DataMUX表明,神经网络能够对输入的混合物生成准确的预测,从而以最小的额外内存需求提高吞吐量。我们的方法使用了两个关键组件- 1)一个多路复用层,它对每个输入执行固定的线性变换,然后将它们组合起来,创建一个与单个输入大小相同的混合表示,然后由基础网络处理,以及2)一个解复用层,它将基础网络的输出转换回独立的表示,然后为每个输入生成预测。我们展示了DataMUX在不同架构(Transformers,以及较小程度上的MLP和CNN)中跨句子分类、命名实体识别和图像分类的六个不同任务的可行性。例如,用于Transformers的DataMUX可以多路复用多达$20$ x/ $40$ x的输入,从而实现$11$ x/ $18$ x的吞吐量增加,同时在MNLI(一种自然语言推理任务)上分别以最小的绝对性能下降$<2\%$和$<4\%$。我们还提供了一个理论上的自注意力网络中的复用结构,并分析了DataMUX中各种设计元素的效果。

英文摘要:

In this paper, we introduce data multiplexing (DataMUX), a technique that enables deep neural networks to process multiple inputs simultaneously using a single compact representation. DataMUX demonstrates that neural networks are capable of generating accurate predictions over mixtures of inputs, resulting in increased throughput with minimal extra memory requirements. Our approach uses two key components -- 1) a multiplexing layer that performs a fixed linear transformation to each input before combining them to create a mixed representation of the same size as a single input, which is then processed by the base network, and 2) a demultiplexing layer that converts the base network's output back into independent representations before producing predictions for each input. We show the viability of DataMUX for different architectures (Transformers, and to a lesser extent MLPs and CNNs) across six different tasks spanning sentence classification, named entity recognition and image classification. For instance, DataMUX for Transformers can multiplex up to $20$x/$40$x inputs, achieving $11$x/$18$x increase in throughput with minimal absolute performance drops of $<2\%$ and $<4\%$ respectively on MNLI, a natural language inference task. We also provide a theoretical construction for multiplexing in self-attention networks and analyze the effect of various design elements in DataMUX.

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

↑