arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2112.08786cs.CL
收藏

预训练语言模型的高效分层领域自适应

Efficient Hierarchical Domain Adaptation for Pretrained Language Models

Center for Information and Language Processing, LMU Munich(慕尼黑大学信息与语言处理中心);Allen Institute for Artificial Intelligence(艾伦人工智能研究所)

Alexandra Chronopoulou, Matthew E. Peters, Jesse Dodge

摘要:

大语言模型的显著成功是由在大量未标记的非结构化语料库上训练的密集模型驱动的。这些语料库通常包含来自不同、异构来源的文本,但在训练过程中很少使用有关文本来源的信息。将他们的知识转移到目标领域通常是通过继续进行领域内的培训来完成的。在本文中,我们介绍了一种方法,允许领域自适应许多不同的领域使用计算效率的适配器的方法。我们的方法是基于文本域部分重叠的观察,我们表示域作为一个分层的树结构,其中树中的每个节点与一组适配器权重。当与冻结的预训练语言模型相结合时,这种方法可以在相关域之间共享参数,同时避免不相关域之间的负面干扰。GPT-2和C4中100个最具代表性的网站中的一大部分的实验结果显示了域中的全面改进。我们还提供了一个推理时间算法,并表明,平均通过树的多条路径可以进一步提高泛化能力,同时只增加一个边际成本的推理。

英文摘要:

The remarkable success of large language models has been driven by dense models trained on massive unlabeled, unstructured corpora. These corpora typically contain text from diverse, heterogeneous sources, but information about the source of the text is rarely used during training. Transferring their knowledge to a target domain is typically done by continuing training in-domain. In this paper, we introduce a method to permit domain adaptation to many diverse domains using a computationally efficient adapter approach. Our method is based on the observation that textual domains are partially overlapping, and we represent domains as a hierarchical tree structure where each node in the tree is associated with a set of adapter weights. When combined with a frozen pretrained language model, this approach enables parameter sharing among related domains, while avoiding negative interference between unrelated ones. Experimental results with GPT-2 and a large fraction of the 100 most represented websites in C4 show across-the-board improvements in-domain. We additionally provide an inference time algorithm for a held-out domain and show that averaging over multiple paths through the tree enables further gains in generalization, while adding only a marginal cost to inference.

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

↑