arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.09771cs.CVcs.AIcs.LG
收藏

EUGens: 高效、统一且通用的密集层

EUGens: Efficient, Unified, and General Dense Layers

Sang Min Kim, Byeongchan Kim, Arijit Sehanobish, Somnath Basu Roy Chowdhury, Rahul Kidambi, Dongseok Shim, Avinava Dubey, Snigdha Chaturvedi, Min-hwan Oh, Krzysztof Choromanski

AI总结:

EUGens通过随机特征和输入范数依赖,高效统一密集层,提升推断速度和内存效率

摘要:

高效神经网络对于将机器学习模型扩展到实时应用和资源受限环境至关重要。全连接前馈层(FFLs)在神经网络架构中引入了计算和参数计数的瓶颈。为了解决这一挑战,本文提出了一种新的密集层类别,即通用、统一和通用的密集层(EUGens)。EUGens利用随机特征来近似标准FFLs,并通过在计算中引入输入范数的直接依赖关系超越它们。所提出的层统一了现有的高效FFL扩展,并通过将推断复杂度从二次降至线性时间来提高效率。它们还导致了首个无偏算法,可以使用任意多项式激活函数近似FFLs。此外,EUGens在减少参数计数和计算开销的同时,保持了FFLs的表达能力和适应性。我们还提出了一个层间知识转移技术,可以绕过反向传播,使EUGens能够高效地适应预训练模型。从经验上,我们观察到将EUGens集成到Transformer和MLP中,在图像分类、语言模型预训练和3D场景重建等任务中,推断速度(最高27%)和内存效率(最高30%)都有显著提升。总体而言,我们的结果突显了EUGens在大规模神经网络可扩展部署中的潜力。

英文摘要:

Efficient neural networks are essential for scaling machine learning models to real-time applications and resource-constrained environments. Fully-connected feedforward layers (FFLs) introduce computation and parameter count bottlenecks within neural network architectures. To address this challenge, in this work, we propose a new class of dense layers that generalize standard fully-connected feedforward layers, \textbf{E}fficient, \textbf{U}nified and \textbf{Gen}eral dense layers (EUGens). EUGens leverage random features to approximate standard FFLs and go beyond them by incorporating a direct dependence on the input norms in their computations. The proposed layers unify existing efficient FFL extensions and improve efficiency by reducing inference complexity from quadratic to linear time. They also lead to \textbf{the first} unbiased algorithms approximating FFLs with arbitrary polynomial activation functions. Furthermore, EuGens reduce the parameter count and computational overhead while preserving the expressive power and adaptability of FFLs. We also present a layer-wise knowledge transfer technique that bypasses backpropagation, enabling efficient adaptation of EUGens to pre-trained models. Empirically, we observe that integrating EUGens into Transformers and MLPs yields substantial improvements in inference speed (up to \textbf{27}\%) and memory efficiency (up to \textbf{30}\%) across a range of tasks, including image classification, language model pre-training, and 3D scene reconstruction. Overall, our results highlight the potential of EUGens for the scalable deployment of large-scale neural networks in real-world scenarios.

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

↑