通过细粒度专家机制缓解密集大模型的稀疏激活问题
Finedeep: Mitigating Sparse Activation in Dense LLMs via Multi-Layer Fine-Grained Experts
- 将前馈层拆分为多个小型专家,分层排列并动态路由
- 在相同参数量下,困惑度与基准测试性能显著提升
- 适合追求高效表示能力的密集模型优化场景
大型语言模型在众多任务中表现出色,但密集模型普遍存在稀疏激活现象,即大量激活值趋近于零(即未激活)。我们认为这限制了模型对表示空间的高效探索。为此,我们提出 Finedeep,一种面向密集模型的深层细粒度专家架构。该框架将传统密集模型的前馈神经网络层拆分为小型专家,并分布于多个子层;设计新颖路由机制以确定各专家贡献。我们在多种模型规模下进行广泛实验,结果表明,本方法在保持相近参数量和浮点运算量的前提下,显著优于传统密集架构,在困惑度与基准测试性能上均有提升。此外,我们发现当深度与宽度平衡时,即调整子层数与每层专家数,Finedeep可取得最优效果。实证结果证实,Finedeep有效缓解稀疏激活,高效利用密集模型的表示能力。
原文摘要 · Abstract (English)
Large language models have demonstrated exceptional performance across a wide range of tasks. However, dense models usually suffer from sparse activation, where many activation values tend towards zero (i.e., being inactivated). We argue that this could restrict the efficient exploration of model representation space. To mitigate this issue, we propose Finedeep, a deep-layered fine-grained expert architecture for dense models. Our framework partitions the feed-forward neural network layers of traditional dense models into small experts, arranges them across multiple sub-layers. A novel routing mechanism is proposed to determine each expert's contribution. We conduct extensive experiments across various model sizes, demonstrating that our approach significantly outperforms traditional dense architectures in terms of perplexity and benchmark performance while maintaining a comparable number of parameters and floating-point operations. Moreover, we find that Finedeep achieves optimal results when balancing depth and width, specifically by adjusting the number of expert sub-layers and the number of experts per sub-layer. Empirical results confirm that Finedeep effectively alleviates sparse activation and efficiently utilizes representation capacity in dense models.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。