Plug-and-Play Document Modules for Pre-trained Models
Chaojun Xiao, Zhengyan Zhang, Xu Han, Chi-Min Chan, Yankai Lin, Zhiyuan Liu, Xiangyang Li, Zhonghua Li, Zhao Cao, Maosong Sun
摘要
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. Our code and checkpoints can be found in https://github.com/ thunlp/Document-Plugin .
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 5 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- LoRA: Low-Rank Adaptation of Large Language Models 引用了 Language Models are Few-Shot Learners
- KB-Plugin: A Plug-and-play Framework for Large Language Models to Induce Programs over Low-resourced Knowledge Bases 引用了 LoRA: Low-Rank Adaptation of Large Language Models
- KB-Plugin: A Plug-and-play Framework for Large Language Models to Induce Programs over Low-resourced Knowledge Bases 引用了 Language Models are Few-Shot Learners
- KB-Plugin: A Plug-and-play Framework for Large Language Models to Induce Programs over Low-resourced Knowledge Bases 引用了 Plug-and-Play Knowledge Injection for Pre-trained Language Models
- Plug-and-Play Knowledge Injection for Pre-trained Language Models 引用了 LoRA: Low-Rank Adaptation of Large Language Models
- Plug-and-Play Knowledge Injection for Pre-trained Language Models 引用了 Flamingo: a Visual Language Model for Few-Shot Learning
- Cartridges: Lightweight and general-purpose long context representations via self-study 引用了 LoRA: Low-Rank Adaptation of Large Language Models
- Cartridges: Lightweight and general-purpose long context representations via self-study 引用了 Big Bird: Transformers for Longer Sequences
- Cartridges: Lightweight and general-purpose long context representations via self-study 引用了 Plug-and-Play Knowledge Injection for Pre-trained Language Models
- Finetuned Language Models are Zero-Shot Learners 引用了 Language Models are Few-Shot Learners
- Augmentation-Adapted Retriever Improves Generalization of Language Models as Generic Plug-In 引用了 Language Models are Few-Shot Learners
- Augmentation-Adapted Retriever Improves Generalization of Language Models as Generic Plug-In 引用了 Plug-and-Play Knowledge Injection for Pre-trained Language Models
- Flamingo: a Visual Language Model for Few-Shot Learning 引用了 Language Models are Few-Shot Learners
- Flamingo: a Visual Language Model for Few-Shot Learning 引用了 Finetuned Language Models are Zero-Shot Learners
引用它的顶会 Paper5
- Cartridges: Lightweight and general-purpose long context representations via self-studySabri Eyuboglu, Ryan Ehrlich, Simran Arora, Neel Guha 等ICLR 2026 · 74 次引用
- Augmentation-Adapted Retriever Improves Generalization of Language Models as Generic Plug-InZichun Yu, Chenyan Xiong, Shi Yu, Zhiyuan LiuACL 2023 · 15 次引用
- Plug-and-Play Knowledge Injection for Pre-trained Language ModelsZhengyan Zhang, Zhiyuan Zeng, Yankai Lin, Huadong Wang 等ACL 2023 · 10 次引用
- KB-Plugin: A Plug-and-play Framework for Large Language Models to Induce Programs over Low-resourced Knowledge BasesJiajie Zhang, Shulin Cao, Linmei Hu, Ling Feng 等EMNLP 2024 · 3 次引用
- Diff-Plugin: Revitalizing Details for Diffusion-Based Low-Level TasksYuhao Liu, Zhanghan Ke, Fang Liu, Nanxuan Zhao 等CVPR 2024
它引用的 Paper26
- Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah 等NeurIPS 2020 · 64,255 次引用
- LoRA: Low-Rank Adaptation of Large Language ModelsEdward J. Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu 等ICLR 2022 · 18,833 次引用
- Flamingo: a Visual Language Model for Few-Shot LearningJean-Baptiste Alayrac, Jeff Donahue, Pauline Luc, Antoine Miech 等NeurIPS 2022 · 6,707 次引用
- Finetuned Language Models are Zero-Shot LearnersJason Wei, Maarten Bosma, Vincent Y. Zhao, Kelvin Guu 等ICLR 2022 · 4,966 次引用
- Big Bird: Transformers for Longer SequencesManzil Zaheer, Guru Guruganesh, Kumar Avinava Dubey, Joshua Ainslie 等NeurIPS 2020 · 3,159 次引用
相关 Paper
- Decouple knowledge from paramters for plug-and-play language modelingXin Cheng, Yankai Lin, Xiuying Chen, Dongyan Zhao 等ACL Findings 2023 · 4 次引用
- XDoc: Unified Pre-training for Cross-Format Document UnderstandingJingye Chen, Tengchao Lv, Lei Cui, Cha Zhang 等EMNLP Findings 2022 · 5 次引用
- General Purpose Text Embeddings from Pre-trained Language Models for Scalable InferenceJingfei Du, Myle Ott, Haoran Li, Xing Zhou 等EMNLP Findings 2020 · 8 次引用
- Variator: Accelerating Pre-trained Models with Plug-and-Play Compression ModulesChaojun Xiao, Yuqi Luo, Wenbin Zhang, Pengle Zhang 等EMNLP Findings 2023 · 1 次引用
- A Hierarchical Encoding-Decoding Scheme for Abstractive Multi-document SummarizationChenhui Shen, Liying Cheng, Xuan-Phi Nguyen, Yang You 等EMNLP Findings 2023 · 18 次引用
