ERNIE-Doc: A Retrospective Long-Document Modeling Transformer
Siyu Ding, Junyuan Shang, Shuohuan Wang, Yu Sun, Hao Tian, Hua Wu, Haifeng Wang
摘要
Transformers are not suited for processing long documents, due to their quadratically increasing memory and time consumption. Simply truncating a long document or applying the sparse attention mechanism will incur the context fragmentation problem or lead to an inferior modeling capability against comparable model sizes. In this paper, we propose ERNIE-DOC, a document-level language pretraining model based on Recurrence Transformers (Dai et al., 2019). Two welldesigned techniques, namely the retrospective feed mechanism and the enhanced recurrence mechanism, enable ERNIE-DOC 1 , which has a much longer effective context length, to capture the contextual information of a complete document. We pretrain ERNIE-DOC to explicitly learn the relationships among segments with an additional document-aware segment-reordering objective. Various experiments were conducted on both English and Chinese document-level tasks. ERNIE-DOC improved the state-of-the-art language modeling result of perplexity to 16.8 on WikiText-103. Moreover, it outperformed competitive pretraining models by a large margin on most language understanding tasks, such as text classification and question answering.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 10 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Big Bird: Transformers for Longer Sequences 引用了 Reformer: The Efficient Transformer
- Big Bird: Transformers for Longer Sequences 引用了 Compressive Transformers for Long-Range Sequence Modelling
- Beyond Attention: Breaking the Limits of Transformer Context Length with Recurrent Memory 引用了 Big Bird: Transformers for Longer Sequences
- Beyond Attention: Breaking the Limits of Transformer Context Length with Recurrent Memory 引用了 Recurrent Memory Transformer
- Beyond Attention: Breaking the Limits of Transformer Context Length with Recurrent Memory 引用了 Compressive Transformers for Long-Range Sequence Modelling
- Revisiting Pre-Trained Models for Chinese Natural Language Processing 引用了 ERNIE 2.0: A Continual Pre-Training Framework for Language Understanding
- Recurrent Memory Transformer 引用了 Big Bird: Transformers for Longer Sequences
- Recurrent Memory Transformer 引用了 Compressive Transformers for Long-Range Sequence Modelling
- Museformer: Transformer with Fine- and Coarse-Grained Attention for Music Generation 引用了 Big Bird: Transformers for Longer Sequences
- Museformer: Transformer with Fine- and Coarse-Grained Attention for Music Generation 引用了 Reformer: The Efficient Transformer
- Museformer: Transformer with Fine- and Coarse-Grained Attention for Music Generation 引用了 Compressive Transformers for Long-Range Sequence Modelling
- DHA: Learning Decoupled-Head Attention from Transformer Checkpoints via Adaptive Heads Fusion 引用了 Big Bird: Transformers for Longer Sequences
- DHA: Learning Decoupled-Head Attention from Transformer Checkpoints via Adaptive Heads Fusion 引用了 Recurrent Memory Transformer
- DHA: Learning Decoupled-Head Attention from Transformer Checkpoints via Adaptive Heads Fusion 引用了 Reformer: The Efficient Transformer
- PoNet: Pooling Network for Efficient Token Mixing in Long Sequences 引用了 Big Bird: Transformers for Longer Sequences
- PoNet: Pooling Network for Efficient Token Mixing in Long Sequences 引用了 Reformer: The Efficient Transformer
引用它的顶会 Paper10
- Recurrent Memory TransformerAydar Bulatov, Yuri Kuratov, Mikhail BurtsevNeurIPS 2022 · 252 次引用
- Museformer: Transformer with Fine- and Coarse-Grained Attention for Music GenerationBotao Yu, Peiling Lu, Rui Wang, Wei Hu 等NeurIPS 2022 · 104 次引用
- Beyond Attention: Breaking the Limits of Transformer Context Length with Recurrent MemoryAydar Bulatov, Yuri Kuratov, Yermek Kapushev, Mikhail BurtsevAAAI 2024 · 22 次引用
- PoNet: Pooling Network for Efficient Token Mixing in Long SequencesChao-Hong Tan, Qian Chen, Wen Wang, Qinglin Zhang 等ICLR 2022 · 15 次引用
- DHA: Learning Decoupled-Head Attention from Transformer Checkpoints via Adaptive Heads FusionYilong Chen, Linhao Zhang, Junyuan Shang, Zhenyu Zhang 等NeurIPS 2024 · 12 次引用
它引用的 Paper8
- Big Bird: Transformers for Longer SequencesManzil Zaheer, Guru Guruganesh, Kumar Avinava Dubey, Joshua Ainslie 等NeurIPS 2020 · 3,159 次引用
- Reformer: The Efficient TransformerNikita Kitaev, Lukasz Kaiser, Anselm LevskayaICLR 2020 · 2,878 次引用
- ERNIE 2.0: A Continual Pre-Training Framework for Language UnderstandingYu Sun, Shuohuan Wang, Yu-Kun Li, Shikun Feng 等AAAI 2020 · 885 次引用
- Revisiting Pre-Trained Models for Chinese Natural Language ProcessingYiming Cui, Wanxiang Che, Ting Liu, Bing Qin 等EMNLP Findings 2020 · 866 次引用
- Compressive Transformers for Long-Range Sequence ModellingJack W. Rae, Anna Potapenko, Siddhant M. Jayakumar, Chloe Hillier 等ICLR 2020 · 833 次引用
相关 Paper
- Contrastive Document Representation Learning with Graph Attention NetworksPeng Xu, Xinchi Chen, Xiaofei Ma, Zhiheng Huang 等EMNLP Findings 2021 · 10 次引用
- ERNIE-Layout: Layout Knowledge Enhanced Pre-training for Visually-rich Document UnderstandingQiming Peng, Yinxu Pan, Wenjin Wang, Bin Luo 等EMNLP Findings 2022 · 67 次引用
- Span Graph Transformer for Document-Level Named Entity RecognitionHongli Mao, Xian-Ling Mao, Hanlin Tang, Yuming Shang 等AAAI 2024 · 3 次引用
- In-Context Pretraining: Language Modeling Beyond Document BoundariesWeijia Shi, Sewon Min, Maria Lomeli, Chunting Zhou 等ICLR 2024 · 87 次引用
- Modeling Document-Level Context for Event Detection via Important Context SelectionAmir Pouran Ben Veyseh, Minh Van Nguyen, Nghia Trung Ngo, Bonan Min 等EMNLP 2021 · 25 次引用
