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).
Domain-Specific Risk Minimization for Out-of-Distribution Generalization
School of Artificial Intelligence, University of Chinese Academy of Sciences(中国科学院大学人工智能学院);Institute of Automation(自动化研究所);Microsoft Research Asia(微软亚洲研究院);The University of Sydney(悉尼大学)
An Adaptive Method Stabilizing Activations for Enhanced Generalization
Department of Statistics University of Georgia(佐治亚大学统计学系);School of Computing University of Georgia(佐治亚大学计算机学院);School of Electrical Engineering Hanyang University(翰林大学电气工程学院)
Meta-Learning Transformers to Improve In-Context Generalization
University of Trento, Italy(特伦托大学,意大利);Eindhoven University, Netherlands(埃因霍温大学,荷兰);University of Doha for Science and Technology, Qatar(多哈科学与技术大学,卡塔尔)
Transformer Module Networks for Systematic Generalization in Visual Question Answering
Fujitsu Limited(富士通有限公司);Fujitsu Research of America, Inc.(美国富士通研究公司);Massachusetts Institute of Technology(麻省理工学院);Center for Brains, Minds and Machines(大脑、心智与机器中心)
Learning Diverse Features in Vision Transformers for Improved Generalization
Idiap Research Institute(Idiap研究所);Mila(米拉人工智能研究所);University of Montreal(蒙特利尔大学);University of Bucharest(布加勒斯特大学);Gheorghe Mihoc - Caius Iacob Institute of Mathematical Statistics and Applied Mathematics of the Romanian Academy(罗马尼亚科学院Gheorghe Mihoc-Caius Iacob数理统计与应用数学研究所)
Adaptive Gradient Methods Converge Faster with Over-Parameterization (but you should do a line-search)
University of Alberta(阿尔伯塔大学);Mila, McGill University(米拉研究所,麦吉尔大学);University of British Columbia(不列颠哥伦比亚大学);Cornell University(康奈尔大学);Mila, Université de Montréal(米拉研究所,蒙特利尔大学)