当稀疏性如何缓解大语言模型中的深度诅咒
When Does Sparsity Mitigate the Curse of Depth in LLMs
AI总结:
本文研究稀疏性机制如何缓解大语言模型深度诅咒,通过实验发现稀疏性可降低输出方差并提升层间区分度,提出训练深度有效LLM的实用规则,提升下游任务准确率4.6%。
摘要:
近期研究表明,大语言模型(LLMs)中存在深度诅咒现象,即后期层对学习和表示的贡献小于前期层。这种利用率低与预层归一化中方差的累积增长有关,可推动深度模块趋于近恒等行为。本文提供证据表明,稀疏性机制可抑制方差传播并提升深度利用率。我们的研究涵盖两种稀疏性来源:(i)隐式稀疏性,由训练和数据条件引起,包括权重衰减诱导的权重稀疏性和长上下文输入诱导的注意力稀疏性;(ii)显式稀疏性,由架构设计强制,包括分组查询注意力中的键/值共享和专家混合中的专家激活稀疏性。我们的主张通过受控深度扩展实验和针对性层有效性干预得到充分支持。在各种设置中,我们观察到一致的关系:交互密度降低的机制表现出较低的输出方差和更好的层区分度。我们最终将发现提炼为训练深度有效LLM的实用规则,从而在下游任务上获得显著的4.6%准确率提升。我们的结果表明,稀疏性设计选择是有效深度扩展的重要且此前未被强调的因素。代码可在https://github.com/pUmpKin-Co/SparsityAndCoD获取。
英文摘要:
Recent work has demonstrated the curse of depth in large language models (LLMs), where later layers contribute less to learning and representation than earlier layers. Such under-utilization is linked to the accumulated growth of variance in Pre-Layer Normalization, which can push deep blocks toward near-identity behavior. In this paper, we provide evidence that sparsity-like mechanisms can dampen variance propagation and are associated with improved depth utilization Our investigation covers two sources of sparsity: (i) implicit sparsity, which emerges from training and data conditions, including weight sparsity induced by weight decay and attention sparsity induced by long-context inputs; and (ii) explicit sparsity, which is enforced by architectural design, including key/value-sharing in Grouped-Query Attention and expert-activation sparsity in Mixtureof-Experts. Our claim is thoroughly supported by controlled depth-scaling experiments and targeted layer effectiveness interventions. Across settings, we observe a consistent relationship: mechanisms with reduced effective interaction density tend to exhibit lower output variance and better layer differentiation. We eventually distill our findings into a practical rule-of-thumb recipe for training depth-effective LLMs, yielding a notable 4.6 accuracy improvement on downstream tasks. Our results suggest that sparsity-like design choices are an important and previously underemphasized factor in effective depth scaling for LLMs. Code is available at https://github. com/pUmpKin-Co/SparsityAndCoD.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。