arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2208.04461cs.LGstat.ML
收藏

稀疏激活网络的理论研究

A Theoretical View on Sparsely Activated Networks

Google Research(谷歌研究院)

Cenk Baykal, Nishanth Dikkala, Rina Panigrahy, Cyrus Rashtchian, Xin Wang

摘要:

如今,深度和广度的神经网络成功地拟合了非常复杂的函数,但密集模型的推理成本开始高得令人望而却步。为了缓解这种情况,一个有希望的方向是激活网络的稀疏子图的网络。子图由数据相关路由功能选择,强制执行输入到子网络的固定映射(例如,开关Transformers中混合专家模型(MoE)范例)。然而,以前的工作主要是经验性的,而现有的路由功能在实践中工作良好,他们不导致近似能力的理论保证。我们的目标是为稀疏网络的力量提供理论解释。作为我们的第一个贡献,我们提出了一个正式的数据依赖稀疏网络模型,捕捉流行的架构的突出方面。然后,我们介绍了一个路由功能的基础上局部敏感哈希(LSH),使我们能够推理稀疏网络如何近似目标函数。在用我们的模型表示基于LSH的稀疏网络之后,我们证明了稀疏网络可以匹配稠密网络对Lipschitz函数的逼近能力。在输入向量上应用LSH意味着专家在输入空间的不同子区域内插目标函数。为了支持我们的理论,我们定义了基于Lipschitz目标函数的各种数据集,我们表明稀疏网络在活动单元数量和近似质量之间提供了有利的权衡。

英文摘要:

Deep and wide neural networks successfully fit very complex functions today, but dense models are starting to be prohibitively expensive for inference. To mitigate this, one promising direction is networks that activate a sparse subgraph of the network. The subgraph is chosen by a data-dependent routing function, enforcing a fixed mapping of inputs to subnetworks (e.g., the Mixture of Experts (MoE) paradigm in Switch Transformers). However, prior work is largely empirical, and while existing routing functions work well in practice, they do not lead to theoretical guarantees on approximation ability. We aim to provide a theoretical explanation for the power of sparse networks. As our first contribution, we present a formal model of data-dependent sparse networks that captures salient aspects of popular architectures. We then introduce a routing function based on locality sensitive hashing (LSH) that enables us to reason about how well sparse networks approximate target functions. After representing LSH-based sparse networks with our model, we prove that sparse networks can match the approximation power of dense networks on Lipschitz functions. Applying LSH on the input vectors means that the experts interpolate the target function in different subregions of the input space. To support our theory, we define various datasets based on Lipschitz target functions, and we show that sparse networks give a favorable trade-off between number of active units and approximation quality.

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

↑