arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2604.08565cs.CLcs.AIcs.LG
收藏

大规模树状前馈层中的动态稀疏性

Dynamic sparsity in tree-structured feed-forward layers at scale

CITEC, Bielefeld University(比勒费尔德大学认知交互技术研究中心);Department of Computer Science, Royal Holloway, University of London(伦敦大学皇家霍洛威学院计算机科学系)

Reza Sedghi, Robin Schiewer, Anand Subramoney, David Kappel

AI总结:

本文研究了树状结构前馈层作为Transformer中密集MLP块的替代方案,实现条件计算无需额外路由网络。通过动态稀疏性技术,在大规模模型中实现高效的语言建模和问答任务。

摘要:

在典型上下文长度下,前馈MLP块占Transformer计算预算的大部分,促使寻找稀疏替代方案。我们研究了树状结构前馈层作为深度Transformer架构中MLP块的替代方案,通过硬层次路由实现条件计算。我们首次展示了这种树状结构条件稀疏性可应用于自回归语言建模和下游问答任务,包括零样本和少样本设置,并在超过10亿参数的规模上具有可扩展性。尽管每个token激活的前馈块单元少于5%,我们的模型在受控训练和微调协议下与密集基线匹配。我们进一步分析了训练动态,并识别出一种新兴的自动剪枝效应:硬路由与非对称非线性性的相互作用逐步停用未使用的路径,产生动态路由到静态结构稀疏性的部分转换。我们显示简单的架构选择可以调节这种行为,并在无需辅助损失的情况下恢复平衡的树结构。总体而言,本文工作表明,树状结构前馈层为稀疏化大规模Transformer模型提供了一种可扩展且可控的机制。

英文摘要:

At typical context lengths, the feed-forward MLP block accounts for a large share of a transformer's compute budget, motivating sparse alternatives to dense MLP blocks. We study sparse, tree-structured feed-forward layers as drop-in replacements for MLP blocks in deep transformer architectures, enabling conditional computation via hard hierarchical routing without a separate router network. We demonstrate for the first time that this form of tree-structured conditional sparsity can be applied for autoregressive language modeling and downstream question answering, including zero- and few-shot settings, and its scalability beyond 1B parameters. Despite activating fewer than 5% of the feed-forward block's units per token, our models match dense baselines under controlled training and fine-tuning protocols. We further analyze training dynamics and identify an emergent auto-pruning effect: the interaction of hard routing with asymmetric nonlinearities progressively deactivates unused paths, yielding partial conversion of dynamic routing into static structural sparsity. We show that simple architectural choices can modulate this behavior and recover balanced trees without auxiliary losses. Overall, our work demonstrates that tree-structured feed-forward layers provide a scalable and controllable mechanism for sparsifying large transformer models.

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

↑