arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2305.17660cs.CL
收藏

用于预训练模型的即插即用文档模块

Plug-and-Play Document Modules for Pre-trained Models

Tsinghua University(清华大学);International Innovation Center of Tsinghua University, Shanghai(清华大学上海国际创新中心);Quan Cheng Laboratory(之江实验室);Gaoling School of Artificial Intelligence, Renmin University of China(中国人民大学高瓴人工智能学院);Beijing Key Laboratory of Big Data Management and Analysis Methods(大数据管理与分析方法北京市重点实验室);Huawei Technologies Co., Ltd.(华为技术有限公司)

Chaojun Xiao, Zhengyan Zhang, Xu Han, Chi-Min Chan, Yankai Lin, Zhiyuan Liu, Xiangyang Li, Zhonghua Li, Zhao Cao, Maosong Sun

AI总结:

本文提出PlugD文档插件,将文档编码与下游任务解耦,使预训练模型对文档一次编码即可复用于多任务,在8个数据集上节省69%计算成本并保持相当性能,还可作为后处理注入知识提升模型表现。

摘要:

大规模预训练模型(PTMs)已被广泛应用于面向文档的自然语言处理任务,例如问答。然而,编码与任务耦合的要求导致同一文档在不同任务和查询中需要被重复编码,这在计算上非常低效。为此,我们旨在将文档编码与下游任务解耦,并提出将每个文档表示为一个即插即用的文档模块,即用于预训练模型的文档插件(PlugD)。通过将文档插件插入骨干预训练模型以用于下游任务,我们可以对文档进行一次编码即可处理多个任务,这比传统的编码-任务耦合方法更高效,后者需要使用任务特定编码器同时编码文档和输入查询。在4类典型自然语言处理任务的8个数据集上的大量实验表明,PlugD使模型能够在不同场景中一次性编码文档并长期复用。特别是,PlugD可以节省69%的计算成本,同时达到与最先进的编码-任务耦合方法相当的性能。此外,我们表明PlugD可以作为一种有效的后处理方式,将知识注入任务特定模型,无需任何额外模型训练即可提升模型性能。

英文摘要:

Large-scale pre-trained models (PTMs) have been widely used in document-oriented NLP tasks, such as question answering. However, the encoding-task coupling requirement results in the repeated encoding of the same documents for different tasks and queries, which is highly computationally inefficient. To this end, we target to decouple document encoding from downstream tasks, and propose to represent each document as a plug-and-play document module, i.e., a document plugin, for PTMs (PlugD). By inserting document plugins into the backbone PTM for downstream tasks, we can encode a document one time to handle multiple tasks, which is more efficient than conventional encoding-task coupling methods that simultaneously encode documents and input queries using task-specific encoders. Extensive experiments on 8 datasets of 4 typical NLP tasks show that PlugD enables models to encode documents once and for all across different scenarios. Especially, PlugD can save $69\%$ computational costs while achieving comparable performance to state-of-the-art encoding-task coupling methods. Additionally, we show that PlugD can serve as an effective post-processing way to inject knowledge into task-specific models, improving model performance without any additional model training.

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

↑