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

LLaMA模型中的动态激活陷阱:一项实证研究

Dynamic Activation Pitfalls in LLaMA Models: An Empirical Study

Meituan(美团)

Chi Ma, Mincong Huang, Chao Wang, Yujie Wang, Lei Yu

AI总结:

本研究系统探究LLaMA系列模型的动态激活机制,发现现有动态激活方案存在固有缺陷,高稀疏率场景下表现不及ReLU模型,分析了三大成因并为稀疏方案设计提供方向。

摘要:

在本研究中,我们系统探究了LLaMA系列语言模型中动态激活机制的效能。尽管动态激活方法有望降低采用ReLU激活函数的模型的计算量并提升速度,但我们的实证发现揭示了现有动态激活方案存在若干固有缺陷。通过对多种动态激活策略开展大量实验,我们证明LLaMA模型的表现通常不及采用ReLU的同类模型,在要求高稀疏率的场景中尤为明显。我们将这些不足归因于多方面因素的共同作用:1)动态预测激活头与神经元的固有复杂性;2)激活函数带来的稀疏度不足;3)KV缓存跳过导致的信息保留不充分。我们的分析不仅阐明了大规模LLaMA模型场景下动态激活的局限性,还为优化未来稀疏方案的设计提出了方向。

英文摘要:

In this work, we systematically investigate the efficacy of dynamic activation mechanisms within the LLaMA family of language models. Despite the potential of dynamic activation methods to reduce computation and increase speed in models using the ReLU activation function, our empirical findings have uncovered several inherent pitfalls in the current dynamic activation schemes. Through extensive experiments across various dynamic activation strategies, we demonstrate that LLaMA models usually underperform when compared to their ReLU counterparts, particularly in scenarios demanding high sparsity ratio. We attribute these deficiencies to a combination of factors: 1) the inherent complexity of dynamically predicting activation heads and neurons; 2) the inadequate sparsity resulting from activation functions; 3) the insufficient preservation of information resulting from KV cache skipping. Our analysis not only sheds light on the limitations of dynamic activation in the context of large-scale LLaMA models but also proposes roadmaps for enhancing the design of future sparsity schemes.

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

↑