arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2310.08866cs.LGcs.AI
收藏

适应性与模块化:面向任务复杂度的高效泛化

Adaptivity and Modularity for Efficient Generalization Over Task Complexity

Apple(苹果公司)

Samira Abnar, Omid Saremi, Laurent Dinh, Shantel Wilson, Miguel Angel Bautista, Chen Huang, Vimal Thilak, Etai Littwin, Jiatao Gu, Josh Susskind, Samy Bengio

AI总结:

本文提出Hyper-UT架构,结合超网络动态函数生成与Universal Transformers自适应深度,解决Transformer在不同任务复杂度上的高效泛化问题,在图像识别中节省超70%计算量。

摘要:

Transformer能否在需要处理不同难度示例的问题上高效泛化?我们引入了一个新任务,专门用于评估在不同复杂度上的泛化能力,并给出了表明标准Transformer在解决这些任务时面临挑战的结果。这些任务是Zhang等人(2021)先前引入的指针值检索的变体。我们研究了在Transformer中使用自适应和模块化计算机制如何促进对需要泛化到不同顺序计算步骤数量(即计算图深度)的任务的学习。基于我们的观察,我们提出了一种名为Hyper-UT的基于Transformer的架构,它将超网络中的动态函数生成与Universal Transformers中的自适应深度相结合。该模型在泛化到更高计算步骤数量时,表现出更高的准确性和更公平的计算资源分配。我们得出结论,自适应深度和模块化机制在提高关于示例复杂性的高效泛化方面相辅相成。此外,为了强调我们发现的广泛适用性,我们展示了在标准图像识别任务中,Hyper-UT的性能与ViT模型相当,但计算需求显著降低(通过有效使用更少的层,平均节省超过70%的计算量)。

英文摘要:

Can transformers generalize efficiently on problems that require dealing with examples with different levels of difficulty? We introduce a new task tailored to assess generalization over different complexities and present results that indicate that standard transformers face challenges in solving these tasks. These tasks are variations of pointer value retrieval previously introduced by Zhang et al. (2021). We investigate how the use of a mechanism for adaptive and modular computation in transformers facilitates the learning of tasks that demand generalization over the number of sequential computation steps (i.e., the depth of the computation graph). Based on our observations, we propose a transformer-based architecture called Hyper-UT, which combines dynamic function generation from hyper networks with adaptive depth from Universal Transformers. This model demonstrates higher accuracy and a fairer allocation of computational resources when generalizing to higher numbers of computation steps. We conclude that mechanisms for adaptive depth and modularity complement each other in improving efficient generalization concerning example complexity. Additionally, to emphasize the broad applicability of our findings, we illustrate that in a standard image recognition task, Hyper- UT's performance matches that of a ViT model but with considerably reduced computational demands (achieving over 70\% average savings by effectively using fewer layers).

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

↑