Multi-Task Learning (MTL) networks have emerged as a promising method for transferring learned knowledge across different tasks. However, MTL must deal with challenges such as: overfitting to low resource tasks, catastrophic forgetting, and negative task transfer, or learning interference. Often, in Natural Language Processing (NLP), a separate model per task is needed to obtain the best performance. However, many fine-tuning approaches are both parameter inefficient, i.e., potentially involving one new model per task, and highly susceptible to losing knowledge acquired during pretraining. We propose a novel Transformer architecture consisting of a new conditional attention mechanism as well as a set of task-conditioned modules that facilitate weight sharing. Through this construction (a hypernetwork adapter), we achieve more efficient parameter sharing and mitigate forgetting by keeping half of the weights of a pretrained model fixed. We also use a new multi-task data sampling strategy to mitigate the negative effects of data imbalance across tasks. Using this approach, we are able to surpass single task fine-tuning methods while being parameter and data efficient (using around 66% of the data for weight updates). Compared to other BERT Large methods on GLUE, our 8-task model surpasses other Adapter methods by 2.8% and our 24-task model outperforms by 0.7-1.0% models that use MTL and single task fine-tuning. We show that a larger variant of our single multi-task model approach performs competitively across 26 NLP tasks and yields state-of-the-art results on a number of test and development sets. Our code is publicly available at https://github.com/CAMTL/CA-MTL.
PEANuT: Parameter-Efficient Adaptation with Weight-aware Neural Tweakers
University at Albany(阿伦比大学);Florida State University(佛罗里达州立大学);Rutgers University(罗格斯大学);Purdue University(普渡大学);University of North Carolina at Chapel Hill(北卡罗来纳大学教堂山分校)
RNN Architecture Learning with Sparse Regularization
Carnegie Mellon University(卡内基梅隆大学);Allen Institute for Artificial Intelligence(艾伦人工智能研究所);University of Washington(华盛顿大学)
NLP的神经模型通常使用大量参数来达到最先进的性能,这可能导致过多的内存使用和运行时间增加。我们提出了一种结构学习方法来学习稀疏的,参数有效的NLP模型。我们的方法将组套索应用于有理RNN(Peng et al.,2018),一个与加权有限状态自动机(WFSA)密切相关的模型家族。我们利用了RNN对权重的自然分组,因此组套索惩罚直接删除了WFSA状态,大大减少了模型中的参数数量。我们在一些情感分析数据集上进行的实验,使用GloVe和BERT嵌入,表明我们的方法可以学习参数较少的神经结构,而不会牺牲相对于参数丰富的基线的性能。我们的方法还突出了理性RNN的可解释性。我们表明,稀疏化这样的模型,使他们更容易可视化,我们提出的模型,完全依赖于少至三个WFSA修剪后超过90%的权重。我们公开发布代码。
Mitigating Task Interference in Multi-Task Learning via Explicit Task Routing with Non-Learnable Primitives
Beijing Jiaotong University(北京交通大学);Sun Yat-sen University(中山大学);Beijing University of Posts and Telecommunications(北京邮电大学);Southern University of Science and Technology(南方科技大学);Michigan State University(密歇根州立大学)
Improving Transformers with Probabilistic Attention Keys
FPT Software AI Center(FPT软件人工智能中心);University of California, Los Angeles(加州大学洛杉矶分校);VinUniversity(文大);Deezer Research(Deezer研究院);Rice University(莱斯大学);The University of Texas at Austin(德克萨斯大学奥斯汀分校)
多头注意力是最先进的Transformers背后的驱动力,它在各种自然语言处理(NLP)和计算机视觉任务中实现了卓越的性能。已经观察到,对于许多应用,这些注意力头学习冗余嵌入,并且其中大多数可以在不降低模型性能的情况下被移除。受此启发,我们提出了Transformer与混合高斯密钥(transformer-MGK),一种新的Transformer架构,取代冗余的头在每个头的混合密钥的变压器。这些键的混合遵循高斯混合模型,并允许每个注意力头有效地集中在输入序列的不同部分。与传统的Transformer相比,Transformer-MGK加速了训练和推理,参数更少,需要计算的FLOP更少,同时在任务中实现了相当或更好的准确性。transformer-MGK也可以很容易地扩展到使用线性注意力。我们经验证明了Transformer-MGK在一系列实际应用中的优势,包括语言建模和涉及很长序列的任务。在Wikitext-103和Long Range Arena基准测试中,具有4个头的Transformer-MGK获得了与具有8个头的基线Transformers相当或更好的性能。