Transformers can under some circumstances generalize to novel problem instances whose constituent parts might have been encountered during training, but whose compositions have not. What mechanisms underlie this ability for compositional generalization? By reformulating multi-head attention as a hypernetwork, we reveal that a composable, low-dimensional latent code specifies key-query specific operations. We find empirically that this latent code is predictive of the subtasks the network performs on unseen task compositions, revealing that latent codes acquired during training are reused to solve unseen problem instances. To further examine the hypothesis that the intrinsic hypernetwork of multi-head attention supports compositional generalization, we ablate whether making the hypernetwork-generated linear value network nonlinear strengthens compositionality. We find that this modification improves compositional generalization on abstract reasoning tasks. In particular, we introduce a symbolic version of the Raven's Progressive Matrices human intelligence test, which gives us precise control over the problem compositions encountered during training and evaluation. We demonstrate on this task how scaling model size and data enables compositional generalization in transformers and gives rise to a functionally structured latent space.
Know Yourself and Know Your Neighbour: A Syntactically Informed Self-Supervised Compositional Sentence Representation Learning Framework using a Recursive Hypernetwork
ADAPT Research Centre(ADAPT研究中心);Trinity College Dublin(都柏林圣三一学院)
Hypernetwork-Driven Low-Rank Adaptation Across Attention Heads
The University of Texas at Austin(德克萨斯大学奥斯汀分校);University of Science, VNU-HCM(越南国家大学胡志明市分校科学大学);Vietnam National University, Ho Chi Minh City(越南国家大学胡志明市分校);Trivita AI
HyperAdaLoRA: Accelerating LoRA Rank Allocation During Training via Hypernetworks without Sacrificing Performance
Harvard University(哈佛大学);University of Chinese Academy of Sciences(中国科学院大学);Fudan University(复旦大学);University of Chicago(芝加哥大学);University of Alabama at Birmingham(阿拉巴马大学伯明翰分校);South China Normal University(华南师范大学);Shanghai Artificial Intelligence Laboratory(上海人工智能实验室);Shanghai University of Engineering Science(上海工程技术大学)
Think before you act: A simple baseline for compositional generalization
Seminar for Statistics, ETH Zurich(苏黎世联邦理工学院统计研讨班);Facebook AI Research(Facebook人工智能研究)
人类有能力重组熟悉的表情来创造新的表情,但现代神经网络却很难做到这一点。最近,随着基准数据集“gSCAN”(Ruis et al. 2020)的引入,这一点得到了强调,旨在评估模型在基于语言理解的组合泛化方面的性能。在这项工作中,我们提出了一个简单的模型,实现了令人惊讶的良好性能的gSCAN测试分裂的gSCAN基准的挑战。我们的模型是基于这样的观察,即要成功完成gSCAN任务,智能体必须(i)识别目标对象(思考),然后(ii)成功导航到它(行动)。具体地说,我们提出了对(Ruis et al. 2020)的基线模型的注意力启发修改,以及考虑到步骤(i)和(ii)的顺序性质的辅助损失。虽然我们的方法解决了两个合成任务,但我们也发现其他任务仍未解决,验证了gSCAN作为评估模型合成能力的基准的相关性。