arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2009.09139cs.LGstat.ML
收藏

联想自适应多任务学习:使用更少参数和更少数据改进NLP中的迁移学习

Conditionally Adaptive Multi-Task Learning: Improving Transfer Learning in NLP Using Fewer Parameters & Less Data

Polytechnique Montreal(蒙特利尔综合理工学院);Mila(米拉研究所);Element AI(Element AI公司)

Jonathan Pilault, Amine Elhattami, Christopher Pal

摘要:

多任务学习(MTL)网络已经成为一种很有前途的方法,用于在不同的任务之间转移学到的知识。然而,MTL必须处理的挑战,如:过拟合低资源的任务,灾难性遗忘,负任务迁移,或学习干扰。通常,在自然语言处理(NLP)中,每个任务需要一个单独的模型来获得最佳性能。然而,许多微调方法都是参数低效的,即,每个任务可能涉及一个新模型,并且非常容易丢失在预训练期间获得的知识。我们提出了一种新的Transformer架构,包括一个新的条件注意力机制以及一组任务条件模块,便于权重共享。通过这种构造(一个超网络适配器),我们实现了更有效的参数共享,并通过保持预训练模型的一半权重固定来减少遗忘。我们还使用了一种新的多任务数据采样策略,以减轻跨任务数据不平衡的负面影响。使用这种方法,我们能够超越单任务微调方法,同时具有参数和数据效率(使用约66%的数据进行权重更新)。与GLUE上的其他BERT Large方法相比,我们的8任务模型比其他Adapter方法高出2.8%,我们的24任务模型比使用MTL和单任务微调的模型高出0.7-1.0%。我们发现,我们的单一多任务模型方法的一个更大的变体在26个NLP任务中表现出竞争力,并在许多测试和开发集上产生了最先进的结果。我们的代码可在https://github.com/CAMTL/CA-MTL上公开获取。

英文摘要:

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.

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

↑