Revisiting Transformer-based Models for Long Document Classification
By Xiang Dai, Ilias Chalkidis, Sune Darkner, Desmond Elliott. 2022
102 citations recorded by the source corpus.
The recent literature in text classification is biased towards short text sequences (e.g., sentences or paragraphs). In real-world applications, multi-page multi-paragraph documents are common and they cannot be efficiently encoded by vanilla Transformer-based models. We compare different Transformer-based Long Document Classification (TrLDC) approaches that aim to mitigate the computational overhead of vanilla transformers to encode much longer text, namely sparse attention and hierarchical encoding methods. We examine several aspects of sparse attention (e.g., size of local attention window, use of global attention) and hierarchical (e.g., document splitting strategy) transformers on four document classification datasets covering different domains. We observe a clear benefit from being able to process longer text, and, based on our results, we derive practical advice of applying Transformer-based models on long document classification tasks.
Subfields: Artificial Intelligence, Natural Language Processing, Model Architectures
How researchers see this paper
The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.
In Artificial Intelligence
In Natural Language Processing
In Model Architectures
Citations in the corpus
- FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness (2022, background): “4 points of lift from modeling longer sequences on long-document classification [12].”
- NextLevelBERT: Masked Language Modeling with Higher-Level Representations for Long Documents (2024, unknown): “…9 - 2 1 1 0 9 2 1 1 0 9 - 2 5 3 1 8 2 5 3 1 8 - 2 9 5 2 8 2 9 5 2 8 - 3 3 7 3 8 3 3 7 3 8 - 3 7 9 4 8 3 7 9 4 8 - 4 2 1 5 8 Text length 10 based language models, hierarchical Transformer architectures have been proposed for (long) document classification (Pappagari et al., 2019; Dai et al., 2022).”