arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2410.04941cs.LGcs.AI
收藏

TOAST: 使用自适应和简单变换的Transformer优化

TOAST: Transformer Optimization using Adaptive and Simple Transformations

Department of Computer Science, ETH Zurich(苏黎世联邦理工学院计算机科学系);CISPA Helmholtz Center for Information Security(信息安全赫尔姆霍兹中心);Sapienza University of Rome(罗马大学萨皮恩扎大学);University of Fribourg(弗里堡大学)

Irene Cannistraci, Simone Antonelli, Emanuele Palumbo, Thomas M. Sutter, Emanuele Rodolà, Bastian Rieck, Julia E. Vogt

AI总结:

本文提出TOAST框架,通过利用Transformer内部的冗余性,用轻量级闭式映射(如线性变换或身份函数)近似整个Transformer块,从而在不额外训练的情况下减少参数和计算量,同时保持甚至提升下游性能。

摘要:

基础模型在不同任务上实现了最先进的性能,但其规模和计算需求引发了关于可访问性和可持续性的担忧。现有的效率方法通常需要额外的重新训练或微调,限制了其实用性。最近的研究发现,深度神经网络表现出内部表示的相似性。虽然这种相似性已被用于启用技术如模型缝合和合并,但网络内部的冗余性仍较少被用作效率提升的来源。在本文中,我们介绍了Transformer优化使用自适应和简单变换(TOAST),一个框架利用这些冗余性,用轻量级闭式映射(如线性变换或甚至身份函数)近似整个Transformer块,而无需任何额外训练。在最先进的预训练视觉模型(如ViT、DINOv2、DeiT)和从MNIST到ImageNet-1k的各类数据集上,TOAST在减少参数和计算量的同时,保持并有时提升下游性能。这些结果表明,Transformer深度的大部分可以被简单函数替代,为高效基础模型提供了新的视角。

英文摘要:

Foundation models achieve state-of-the-art performance across different tasks, but their size and computational demands raise concerns about accessibility and sustainability. Existing efficiency methods often require additional retraining or finetuning, limiting their practicality. Recent findings suggest that deep neural networks exhibit internal representation similarities. While such similarities across different models have been exploited for enabling techniques such as model stitching and merging, intra-network redundancy remains underexplored as a source for efficiency gains. In this paper, we introduce Transformer Optimization using Adaptive and Simple Transformations (TOAST), a framework that exploits these redundancies to approximate entire transformer blocks with lightweight closed-form mappings, such as linear transformations or even the identity function, without any additional training. Across state-of-the-art pretrained vision models (e.g., ViT, DINOv2, DeiT) and datasets ranging from MNIST to ImageNet-1k, TOAST reduces parameters and computation while preserving, and in some cases improving, downstream performance. These results show that large portions of transformer depth can be replaced by trivial functions, opening a new perspective on efficient foundation models.

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

↑