Stronger Normalization-Free Transformers
该论文提出了一种名为Derf的点-wise函数,该函数在多种任务和模型中优于传统的归一化层,从而提高了Transformer架构的性能。
更新于 2026-06-28。作者:Mingzhi Chen、Taiming Lu、Jiachen Zhu、Mingjie Sun、Zhuang Liu。
中文摘要
尽管归一化层长期以来被视为深度学习架构中不可或缺的组成部分,但最近提出的动态双曲正切(DyT)证明了替代方案是可能的。点wise函数DyT限制了极端值以确保稳定收敛,并达到了归一化水平的性能;这项工作旨在寻求超越它的函数设计。我们首先研究了点wise函数的内在属性如何影响训练和性能。基于这些发现,我们进行了大规模的搜索,以寻找更有效的函数设计。通过这次探索,我们引入了Derf(x) = erf(αx + s),其中erf(x)是重新缩放的高斯累积分布函数,并将其识别为最出色的设计。Derf在广泛的领域,包括视觉(图像识别和生成)、语音表示和DNA序列建模中,都优于LayerNorm、RMSNorm和DyT。我们的研究结果表明,Derf的性能提升主要源于其改进的泛化能力,而不是更强的拟合能力。其简洁性和更强的性能使得Derf成为无归一化Transformer架构的一个实用选择。
英文摘要
Although normalization layers have long been viewed as indispensable components of deep learning architectures, the recent introduction of Dynamic Tanh (DyT) has demonstrated that alternatives are possible. The point-wise function DyT constrains extreme values for stable convergence and reaches normalization-level performance; this work seeks further for function designs that can surpass it. We first study how the intrinsic properties of point-wise functions influence training and performance. Building on these findings, we conduct a large-scale search for a more effective function design. Through this exploration, we introduce Derf(x) = erf(αx + s), where erf(x) is the rescaled Gaussian cumulative distribution function, and identify it as the most performant design. Derf outperforms LayerNorm, RMSNorm, and DyT across a wide range of domains, including vision (image recognition and generation), speech representation, and DNA sequence modeling. Our findings suggest that the performance gains of Derf largely stem from its improved generalization rather than stronger fitting capacity. Its simplicity and stronger performance make Derf a practical choice for normalization-free Transformer architectures.
解读
一句话总结
该论文提出了一种名为Derf的点-wise函数,该函数在多种任务和模型中优于传统的归一化层,从而提高了Transformer架构的性能。
问题1:这篇论文想要解决什么具体问题?
- 问题背景:尽管归一化层在深度学习中起着关键作用,但它们依赖于训练期间的激活统计信息,这引入了额外的内存访问和同步开销,并且对批量大小敏感。
- 现有方案不足:现有的归一化方法如LayerNorm、RMSNorm和Dynamic Tanh(DyT)虽然有效,但它们的性能可能受到训练统计信息的影响,并且可能无法超越归一化层的性能。
- 研究目标:寻找能够超越归一化层性能的点-wise函数,以推动更强大的Transformer架构。
问题2:论文的核心创新点是什么?
- 技术创新:提出了Derf函数,这是一个基于误差函数erf的点-wise函数,通过可学习的参数进行增强。
- 方法改进:通过系统研究点-wise函数的特性,识别了零中心性、有界性、中心敏感性和单调性作为关键设计原则。
- 优势:Derf在视觉识别、生成、语音表示和DNA序列建模等广泛领域优于LayerNorm、RMSNorm和DyT,并且表现出更强的泛化能力。
问题3:实验结果如何验证了方法的有效性?
- 关键实验:在多个任务和模型上进行了实验,包括视觉Transformer(ViT)、扩散Transformer(DiT)、语音模型、DNA模型和语言模型。
- 性能提升:Derf在所有这些设置中均优于基线归一化方法和DyT,例如在ViT-B和ViT-L上分别提高了0.5%和0.7%的top-1准确率。
- 对比结果:与LayerNorm相比,Derf在ViT-B和ViT-L上的top-1准确率分别提高了0.5%和0.3%,表明了其性能优势。
问题4:这个研究的实际应用价值是什么?
- 应用场景:Derf可以作为归一化层的替代品,适用于各种Transformer架构。
- 实施建议:Derf的简单性和强大性能使其成为归一化免费Transformer架构的实用选择。
- 局限与展望:尽管Derf表现出色,但它可能需要进一步研究以适应特定领域的特定需求。未来的工作可以探索Derf在其他类型的模型和任务中的应用。