arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.15425cs.LG
收藏

TeamFormer: 浅层并行变换器与渐进近似

TeamFormer: Shallow Parallel Transformers with Progressive Approximation

Dept. of Computing, Hong Kong Polytechnic University, Hong Kong(计算机系,香港理工大学,香港)

Wei Wang, Xiao-Yong Wei, Qing Li

AI总结:

TeamFormer通过浅层并行结构与渐进近似方法,在保持性能的同时实现模型压缩和加速。

摘要:

广泛存在的'更深更好'哲学推动了ResNet和Transformer等架构的创建,这些架构通过堆叠大量层来实现高性能。然而,增加模型深度带来了训练时间更长、推理延迟更高以及在资源受限设备上不切实际等挑战。为了解决这些问题,我们提出了TeamFormer,一种用于结构和计算真正并行的浅层变换器架构。通过将标准变换器作为闭式函数近似器进行公式化,我们的理论分析表明,其性能依赖于层间协作的渐进近似,而不是深度本身。虽然深度变换器通过顺序设计强制这种协作,我们证明这种协作并不本质上与顺序结构相关。TeamFormer通过将层组织成并行分支来消除顺序约束,通过算法强制层间协作。具体而言,我们实现了渐进近似,确保每个新分支进一步减少先前分支的损失,从而加快收敛。广泛的实验验证了TeamFormer的有效性,其性能优于标准变换器如ViT。此外,TeamFormer支持高达15.07倍的模型压缩,并促进模型扩展以适应自适应连续学习。在多GPU部署的实验结果表明,TeamFormer比广泛使用的并行方案如FairScale快3.30倍。这些进展源于我们基于通用近似定理对变换器的闭式公式化,这不仅解释了'深度信念',还为设计高效的变换器架构开辟了新途径。源代码:https://(open-upon-acceptance)

英文摘要:

The widespread 'deeper is better' philosophy has driven the creation of architectures like ResNet and Transformer, which achieve high performance by stacking numerous layers. However, increasing model depth comes with challenges such as longer training times, higher inference latency, and impracticality on resource-constrained devices. To address these issues, we propose TeamFormer, a shallow Transformer architecture designed for true parallelism in both structure and computation. By formulating standard Transformers as function approximators in closed-form, our theoretical analysis shows that their performance relies on inter-layer collaboration for progressive approximation, rather than depth itself. While deep Transformers enforce this collaboration through sequential designs, we demonstrate that such collaboration is not inherently tied to sequential structures. TeamFormer removes the sequential constraint by organizing layers into parallel branches, enforcing inter-layer collaboration algorithmically. Specifically, we implement progressive approximation, ensuring that each new branch further reduces the loss from preceding branches, enabling faster convergence. Extensive experiments validate TeamFormer's effectiveness, outperforming standard Transformers like ViT. Moreover, TeamFormer supports up to 15.07x model compression and facilitates model expansion for adaptive continuous learning. Experimental results on multi-GPU deployment demonstrate that TeamFormer is 3.30x faster than widely used parallelism solutions such as FairScale. These advancements stem from our closed-form formulation of Transformers based on the Universal Approximation Theorem, which not only explains the ``depth belief'' but also opens new avenues for designing efficient Transformer architectures. Source code: https://(open-upon-acceptance)

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

↑