NOBLE:通过非线性低秩分支加速Transformer
NOBLE: Accelerating Transformers with Nonlinear Low-Rank Branches
AI总结:
NOBLE通过非线性低秩分支提升Transformer训练效率,实现显著的加速效果,同时保持较低的参数开销。
摘要:
我们介绍了NOBLE(非线性低秩分支用于线性增强),一种通过在Transformer线性层中添加非线性低秩分支来增强架构的改进方法。与LoRA和其他参数高效微调(PEFT)方法不同,NOBLE是为从头开始预训练而设计的。该分支是架构的永久组成部分,而不是在冻结权重之上进行微调的适配器。该分支计算σ(xWdown)Wup,其中σ是一个可学习的非线性函数。我们评估了几种激活函数,并发现CosNet,一种具有可学习频率和相位的两层余弦非线性函数,中间通过瓶颈空间的线性投影,表现最佳。NOBLE在最小的开销下实现了显著的改进:达到基线评估损失的步进速度提升高达1.47倍(最多减少32%的训练步数),仅需额外4%的参数和7%的步进时间开销,从而实现高达1.22倍的总时间速度提升。在LLM(250M和1.5B参数)、BERT、VQGAN和ViT上进行的实验一致显示了改进的训练效率。我们发现一个注意事项:Mixup/CutMix增强会干扰NOBLE在ImageNet分类中的好处,以及其他随机增强,但当禁用时,ViT也有所改善。这种差异可能由正则化技术引起,这些技术鼓励更平滑地拟合目标函数,而NOBLE可能更专注于目标函数的更尖锐方面。
英文摘要:
We introduce NOBLE (Nonlinear lOw-rank Branch for Linear Enhancement), an architectural augmentation that adds nonlinear low-rank branches to transformer linear layers. Unlike LoRA and other parameter-efficient fine-tuning (PEFT) methods, NOBLE is designed for pretraining from scratch. The branch is a permanent part of the architecture as opposed to an adapter for finetuning on top of frozen weights. The branch computes σ(xWdown)Wup where σ is a learnable nonlinearity. We evaluate several activation functions and find that CosNet, a two-layer cosine nonlinearity with learnable frequency and phase with a linear projection in between them in the bottleneck space, performs best. NOBLE achieves substantial improvements with minimal overhead: up to 1.47x step speedup to reach baseline eval loss (up to 32% fewer training steps), with as low as 4% additional parameters and 7% step time overhead, resulting in up to 1.22x net wallclock speedup. Experiments on LLMs (250M and 1.5B parameters), BERT, VQGAN, and ViT consistently show improved training efficiency. We identify one caveat: Mixup/CutMix augmentation interferes with NOBLE's benefits in Imagenet classification along with other stochastic augmentations, but when disabled, ViT also improves. This discrepancy is possibly explained by regularization techniques that encourage smoother fits to the target function while NOBLE may specialize more in sharper aspects of the target function.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。