ERNIE-Doc: A Retrospective Long-Document Modeling Transformer
Siyu Ding, Junyuan Shang, Shuohuan Wang, Yu Sun, Hao Tian, Hua Wu, Haifeng Wang
Abstract
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.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
10 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Big Bird: Transformers for Longer Sequences cites Reformer: The Efficient Transformer
- Big Bird: Transformers for Longer Sequences cites Compressive Transformers for Long-Range Sequence Modelling
- Beyond Attention: Breaking the Limits of Transformer Context Length with Recurrent Memory cites Big Bird: Transformers for Longer Sequences
- Beyond Attention: Breaking the Limits of Transformer Context Length with Recurrent Memory cites Recurrent Memory Transformer
- Beyond Attention: Breaking the Limits of Transformer Context Length with Recurrent Memory cites Compressive Transformers for Long-Range Sequence Modelling
- Revisiting Pre-Trained Models for Chinese Natural Language Processing cites ERNIE 2.0: A Continual Pre-Training Framework for Language Understanding
- Recurrent Memory Transformer cites Big Bird: Transformers for Longer Sequences
- Recurrent Memory Transformer cites Compressive Transformers for Long-Range Sequence Modelling
- Museformer: Transformer with Fine- and Coarse-Grained Attention for Music Generation cites Big Bird: Transformers for Longer Sequences
- Museformer: Transformer with Fine- and Coarse-Grained Attention for Music Generation cites Reformer: The Efficient Transformer
- Museformer: Transformer with Fine- and Coarse-Grained Attention for Music Generation cites Compressive Transformers for Long-Range Sequence Modelling
- DHA: Learning Decoupled-Head Attention from Transformer Checkpoints via Adaptive Heads Fusion cites Big Bird: Transformers for Longer Sequences
- DHA: Learning Decoupled-Head Attention from Transformer Checkpoints via Adaptive Heads Fusion cites Recurrent Memory Transformer
- DHA: Learning Decoupled-Head Attention from Transformer Checkpoints via Adaptive Heads Fusion cites Reformer: The Efficient Transformer
- PoNet: Pooling Network for Efficient Token Mixing in Long Sequences cites Big Bird: Transformers for Longer Sequences
- PoNet: Pooling Network for Efficient Token Mixing in Long Sequences cites Reformer: The Efficient Transformer
Cited by top-tier papers10
- Recurrent Memory TransformerAydar Bulatov, Yuri Kuratov, Mikhail BurtsevNeurIPS 2022 · 252 citations
- Museformer: Transformer with Fine- and Coarse-Grained Attention for Music GenerationBotao Yu, Peiling Lu, Rui Wang, Wei Hu et al.NeurIPS 2022 · 104 citations
- Beyond Attention: Breaking the Limits of Transformer Context Length with Recurrent MemoryAydar Bulatov, Yuri Kuratov, Yermek Kapushev, Mikhail BurtsevAAAI 2024 · 22 citations
- PoNet: Pooling Network for Efficient Token Mixing in Long SequencesChao-Hong Tan, Qian Chen, Wen Wang, Qinglin Zhang et al.ICLR 2022 · 15 citations
- DHA: Learning Decoupled-Head Attention from Transformer Checkpoints via Adaptive Heads FusionYilong Chen, Linhao Zhang, Junyuan Shang, Zhenyu Zhang et al.NeurIPS 2024 · 12 citations
Builds on8
- Big Bird: Transformers for Longer SequencesManzil Zaheer, Guru Guruganesh, Kumar Avinava Dubey, Joshua Ainslie et al.NeurIPS 2020 · 3,159 citations
- Reformer: The Efficient TransformerNikita Kitaev, Lukasz Kaiser, Anselm LevskayaICLR 2020 · 2,878 citations
- ERNIE 2.0: A Continual Pre-Training Framework for Language UnderstandingYu Sun, Shuohuan Wang, Yu-Kun Li, Shikun Feng et al.AAAI 2020 · 885 citations
- Revisiting Pre-Trained Models for Chinese Natural Language ProcessingYiming Cui, Wanxiang Che, Ting Liu, Bing Qin et al.EMNLP Findings 2020 · 866 citations
- Compressive Transformers for Long-Range Sequence ModellingJack W. Rae, Anna Potapenko, Siddhant M. Jayakumar, Chloe Hillier et al.ICLR 2020 · 833 citations
Related papers
- Contrastive Document Representation Learning with Graph Attention NetworksPeng Xu, Xinchi Chen, Xiaofei Ma, Zhiheng Huang et al.EMNLP Findings 2021 · 10 citations
- ERNIE-Layout: Layout Knowledge Enhanced Pre-training for Visually-rich Document UnderstandingQiming Peng, Yinxu Pan, Wenjin Wang, Bin Luo et al.EMNLP Findings 2022 · 67 citations
- Span Graph Transformer for Document-Level Named Entity RecognitionHongli Mao, Xian-Ling Mao, Hanlin Tang, Yuming Shang et al.AAAI 2024 · 3 citations
- In-Context Pretraining: Language Modeling Beyond Document BoundariesWeijia Shi, Sewon Min, Maria Lomeli, Chunting Zhou et al.ICLR 2024 · 87 citations
- Modeling Document-Level Context for Event Detection via Important Context SelectionAmir Pouran Ben Veyseh, Minh Van Nguyen, Nghia Trung Ngo, Bonan Min et al.EMNLP 2021 · 25 citations
