Revisiting Transformer-based Models for Long Document Classification
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. Cited by 49 papers in the map (data through 14 Oct 2026). Builds on 36 of its 57 references that are in the map. First posted on arXiv 14 Apr 2022.
Builds on
36 of 57 references.
References · 36
- 2017Attention Is All You Needcited by 60,361
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
- 2020Longformer: The Long-Document Transformercited by 3,413
- 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,850
- 2020Big Bird: Transformers for Longer Sequencescited by 1,684
- 2020Reformer: The Efficient Transformercited by 1,668
- 2020Rethinking Attention with Performerscited by 1,601
- 2020Don't Stop Pretraining: Adapt Language Models to Domains and Taskscited by 1,565
- 2019Generating Long Sequences with Sparse Transformerscited by 1,546
- 2020Efficient Transformers: A Surveycited by 790
- 2021Documenting Large Webtext Corpora: A Case Study on the Colossal Clean Crawled Corpuscited by 492
24 more
- 2019How to Fine-Tune BERT for Text Classification?cited by 411
- 2021LexGLUE: A Benchmark Dataset for Legal Language Understanding in Englishcited by 310
- 2020On the Stability of Fine-tuning BERT: Misconceptions, Explanations, and Strong Baselinescited by 255
- 2018Explainable Prediction of Medical Codes from Clinical Textcited by 234
- 2019Blockwise Self-Attention for Long Document Understandingcited by 159
- 2020Neural Unsupervised Domain Adaptation in NLP---A Surveycited by 144
- 2019HIBERT: Document Level Pre-training of Hierarchical Bidirectional Transformers for Document Summarizationcited by 121
- 2019DocBERT: BERT for Document Classificationcited by 68
- 2022Code Synonyms Do Matter: Multiple Synonyms Matching Network for Automatic ICD Codingcited by 53
- 2020An Empirical Study on Large-Scale Multi-Label Text Classification Including Few and Zero-Shot Labelscited by 44
- 2021Does the Magic of BERT Apply to Medical Code Assignment? A Quantitative Studycited by 39
- 2020Explainable Automated Coding of Clinical Notes using Hierarchical Label-wise Attention Networks and Label Embedding Initialisationcited by 38
- 2017Towards Automated ICD Coding Using Deep Learningcited by 35
- 2020Beyond 512 Tokens: Siamese Multi-depth Transformer-based Hierarchical Encoder for Long-Form Document Matchingcited by 35
- 2020Inferring Degrees from Incomplete Networks and Nonlinear Dynamicscited by 33
- 2020ERNIE-Doc: A Retrospective Long-Document Modeling Transformercited by 31
- 2022Efficient Classification of Long Documents Using Transformerscited by 30
- 2021Towards BERT-based Automatic ICD Coding: Limitations and Opportunitiescited by 25
- 2021Simple Local Attentions Remain Competitive for Long-Context Taskscited by 25
- 2019Phenotyping of Clinical Notes with Improved Document Classification Models Using Contextualized Neural Language Modelscited by 20
- 2020Multi-label Few/Zero-shot Learning with Knowledge Aggregated from Multiple Label Graphscited by 19
- 2018ML-Net: multi-label classification of biomedical texts with deep neural networkscited by 17
- 2020Medical Code Assignment with Gated Convolution and Note-Code Interactioncited by 9
- 2021MDAPT: Multilingual Domain Adaptive Pretraining in a Single Modelcited by 6
Built on by
Citing papers per year: 2022: 10; 2023: 13; 2024: 13; 2025: 11; 2026: 2.
49 papers.
Sort:
By area:
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
- 2024Capabilities of Gemini Models in Medicinecited by 237
- 2022Legal Prompt Engineering for Multilingual Legal Judgement Predictioncited by 55
- 2022Knowledge Injected Prompt Based Fine-tuning for Multi-label Few-shot ICD Codingcited by 40
- 2022An Exploration of Hierarchical Attention Transformers for Efficient Long Document Classificationcited by 38
- 2022Deconfounding Legal Judgment Prediction for European Court of Human Rights Cases Towards Better Alignment with Expertscited by 24
- 2022Processing Long Legal Documents with Pre-trained Transformers: Modding LegalBERT and Longformercited by 20
- 2022ClassActionPrediction: A Challenging Benchmark for Legal Judgment Prediction of Class Action Cases in the UScited by 17
- 2022Multi-label Few-shot ICD Coding as Autoregressive Generation with Promptcited by 17
- 2022An Empirical Study on Cross-X Transfer for Legal Judgment Predictioncited by 16
- 2023Zero-shot Transfer of Article-aware Legal Outcome Classification for European Court of Human Rights Casescited by 14
- 2023Leveraging Task Dependency and Contrastive Learning for Case Outcome Classification on European Court of Human Rights Casescited by 12
37 more
- 2023Large Language Models are legal but they are not: Making the case for a powerful LegalLLMcited by 12
- 2025AdaSplash: Adaptive Sparse Flash Attentioncited by 12
- 2024Accurate and Well-Calibrated ICD Code Assignment Through Attention Over Diverse Label Embeddingscited by 9
- 2023Modelling Temporal Document Sequences for Clinical ICD Codingcited by 7
- 2023Neural Natural Language Processing for Long Texts: A Survey on Classification and Summarizationcited by 7
- 2024HDT: Hierarchical Document Transformercited by 6
- 2024Length-Aware Multi-Kernel Transformer for Long Document Classificationcited by 5
- 2023Towards Semi-Structured Automatic ICD Coding via Tree-based Contrastive Learningcited by 4
- 2024PecSched: Preemptive and Efficient Cluster Scheduling for LLM Inferencecited by 4
- 2023Can Model Fusing Help Transformers in Long Document Classification? An Empirical Studycited by 3
- 2024FAIIR: Building Toward A Conversational AI Agent Assistant for Youth Mental Health Service Provisioncited by 3
- 2025The Anatomy of Evidence: An Investigation Into Explainable ICD Codingcited by 3
- 2026Prompt Overflow: What the Guardrail Inspects Is Not What the Model Inferscited by 3
- 2022Detecting Entities in the Astrophysics Literature: A Comparison of Word-based and Span-based Entity Recognition Methodscited by 2
- 2024NextLevelBERT: Masked Language Modeling with Higher-Level Representations for Long Documentscited by 2
- 2024CTP-LLM: Clinical Trial Phase Transition Prediction Using Large Language Modelscited by 2
- 2023ARC-NLP at PAN 2023: Hierarchical Long Text Classification for Trigger Detectioncited by 1
- 2024Continuous Predictive Modeling of Clinical Notes and ICD Codes in Patient Health Recordscited by 1
- 2025Explainable AI for Infection Prevention and Control: Modeling CPE Acquisition and Patient Outcomes in an Irish Hospital with Transformerscited by 1
- 2023Automatic ICD-10 Code Association: A Challenging Task on French Clinical Textscited by 0
- 2023Leveraging BERT Language Model for Arabic Long Document Classificationcited by 0
- 2023A General-Purpose Multilingual Document Encodercited by 0
- 2023Causality is all you needcited by 0
- 2023Summarization-based Data Augmentation for Document Classificationcited by 0
- 2024ECtHR-PCR: A Dataset for Precedent Understanding and Prior Case Retrieval in the European Court of Human Rightscited by 0
- 2024Domain-specific long text classification from sparse relevant informationcited by 0
- 2024Graph-tree Fusion Model with Bidirectional Information Propagation for Long Document Classificationcited by 0
- 2024Don't Pay Attention, PLANT It: Pretraining Attention via Learning-to-Rankcited by 0
- 2025PLAID: A Unified Data Model for Machine Learning on Heterogeneous Physics Simulationscited by 0
- 2025Algorithm Development in Neural Networks: Insights from the Streaming Parity Taskcited by 0
- 2025ROBAD: Robust Adversary-aware Local-Global Attended Bad Actor Detection Sequential Modelcited by 0
- 2025Predictive Multimodal Modeling of Diagnoses and Treatments in EHRcited by 0
- 2025MOSAIC: A Multilingual, Taxonomy-Agnostic, and Computationally Efficient Approach for Radiological Report Classificationcited by 0
- 2025Span-level Detection of AI-generated Scientific Text via Contrastive Learning and Structural Calibrationcited by 0
- 2025TraceCoder: Towards Traceable ICD Coding via Multi-Source Knowledge Integrationcited by 0
- 2025Skim-Aware Contrastive Learning for Efficient Document Representationcited by 0
- 2026Challenges in Explaining Pretrained Clinical Text Classifierscited by 0
- 2026Challenges in Explaining Pretrained Clinical Text Classifiers27 May 2026
- 2026Prompt Overflow: What the Guardrail Inspects Is Not What the Model Infers22 May 2026
- 2025Skim-Aware Contrastive Learning for Efficient Document Representation30 Dec 2025
- 2025TraceCoder: Towards Traceable ICD Coding via Multi-Source Knowledge Integration17 Oct 2025
- 2025Span-level Detection of AI-generated Scientific Text via Contrastive Learning and Structural Calibration1 Oct 2025
- 2025Explainable AI for Infection Prevention and Control: Modeling CPE Acquisition and Patient Outcomes in an Irish Hospital with Transformers18 Sep 2025
- 2025MOSAIC: A Multilingual, Taxonomy-Agnostic, and Computationally Efficient Approach for Radiological Report Classification29 Aug 2025
- 2025Predictive Multimodal Modeling of Diagnoses and Treatments in EHR14 Aug 2025
- 2025ROBAD: Robust Adversary-aware Local-Global Attended Bad Actor Detection Sequential Model20 Jul 2025
- 2025Algorithm Development in Neural Networks: Insights from the Streaming Parity Task14 Jul 2025
- 2025The Anatomy of Evidence: An Investigation Into Explainable ICD Coding2 Jul 2025
- 2025PLAID: A Unified Data Model for Machine Learning on Heterogeneous Physics Simulations5 May 2025
37 more
- 2025AdaSplash: Adaptive Sparse Flash Attention17 Feb 2025
- 2024Don't Pay Attention, PLANT It: Pretraining Attention via Learning-to-Rank30 Oct 2024
- 2024Graph-tree Fusion Model with Bidirectional Information Propagation for Long Document Classification3 Oct 2024
- 2024PecSched: Preemptive and Efficient Cluster Scheduling for LLM Inference23 Sep 2024
- 2024Domain-specific long text classification from sparse relevant information23 Aug 2024
- 2024CTP-LLM: Clinical Trial Phase Transition Prediction Using Large Language Models20 Aug 2024
- 2024HDT: Hierarchical Document Transformer11 Jul 2024
- 2024FAIIR: Building Toward A Conversational AI Agent Assistant for Youth Mental Health Service Provision28 May 2024
- 2024Continuous Predictive Modeling of Clinical Notes and ICD Codes in Patient Health Records19 May 2024
- 2024Length-Aware Multi-Kernel Transformer for Long Document Classification11 May 2024
- 2024Capabilities of Gemini Models in Medicine29 Apr 2024
- 2024ECtHR-PCR: A Dataset for Precedent Understanding and Prior Case Retrieval in the European Court of Human Rights31 Mar 2024
- 2024NextLevelBERT: Masked Language Modeling with Higher-Level Representations for Long Documents27 Feb 2024
- 2024Accurate and Well-Calibrated ICD Code Assignment Through Attention Over Diverse Label Embeddings5 Feb 2024
- 2023Summarization-based Data Augmentation for Document Classification1 Dec 2023
- 2023Causality is all you need21 Nov 2023
- 2023Large Language Models are legal but they are not: Making the case for a powerful LegalLLM15 Nov 2023
- 2023Towards Semi-Structured Automatic ICD Coding via Tree-based Contrastive Learning14 Oct 2023
- 2023ARC-NLP at PAN 2023: Hierarchical Long Text Classification for Trigger Detection27 Jul 2023
- 2023Can Model Fusing Help Transformers in Long Document Classification? An Empirical Study18 Jul 2023
- 2023Neural Natural Language Processing for Long Texts: A Survey on Classification and Summarization25 May 2023
- 2023A General-Purpose Multilingual Document Encoder11 May 2023
- 2023Leveraging BERT Language Model for Arabic Long Document Classification4 May 2023
- 2023Automatic ICD-10 Code Association: A Challenging Task on French Clinical Texts6 Apr 2023
- 2023Modelling Temporal Document Sequences for Clinical ICD Coding24 Feb 2023
- 2023Leveraging Task Dependency and Contrastive Learning for Case Outcome Classification on European Court of Human Rights Cases1 Feb 2023
- 2023Zero-shot Transfer of Article-aware Legal Outcome Classification for European Court of Human Rights Cases1 Feb 2023
- 2022Legal Prompt Engineering for Multilingual Legal Judgement Prediction5 Dec 2022
- 2022Detecting Entities in the Astrophysics Literature: A Comparison of Word-based and Span-based Entity Recognition Methods24 Nov 2022
- 2022Multi-label Few-shot ICD Coding as Autoregressive Generation with Prompt24 Nov 2022
- 2022Processing Long Legal Documents with Pre-trained Transformers: Modding LegalBERT and Longformer2 Nov 2022
- 2022ClassActionPrediction: A Challenging Benchmark for Legal Judgment Prediction of Class Action Cases in the US1 Nov 2022
- 2022Deconfounding Legal Judgment Prediction for European Court of Human Rights Cases Towards Better Alignment with Experts25 Oct 2022
- 2022An Exploration of Hierarchical Attention Transformers for Efficient Long Document Classification11 Oct 2022
- 2022Knowledge Injected Prompt Based Fine-tuning for Multi-label Few-shot ICD Coding7 Oct 2022
- 2022An Empirical Study on Cross-X Transfer for Legal Judgment Prediction25 Sep 2022
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness27 May 2022
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
- 2024Capabilities of Gemini Models in Medicinecited by 237
- 2022Legal Prompt Engineering for Multilingual Legal Judgement Predictioncited by 55
- 2022Knowledge Injected Prompt Based Fine-tuning for Multi-label Few-shot ICD Codingcited by 40
- 2022An Exploration of Hierarchical Attention Transformers for Efficient Long Document Classificationcited by 38
- 2022Deconfounding Legal Judgment Prediction for European Court of Human Rights Cases Towards Better Alignment with Expertscited by 24
- 2022Processing Long Legal Documents with Pre-trained Transformers: Modding LegalBERT and Longformercited by 20
- 2022ClassActionPrediction: A Challenging Benchmark for Legal Judgment Prediction of Class Action Cases in the UScited by 17
- 2022Multi-label Few-shot ICD Coding as Autoregressive Generation with Promptcited by 17
- 2022An Empirical Study on Cross-X Transfer for Legal Judgment Predictioncited by 16
- 2023Zero-shot Transfer of Article-aware Legal Outcome Classification for European Court of Human Rights Casescited by 14
- 2023Leveraging Task Dependency and Contrastive Learning for Case Outcome Classification on European Court of Human Rights Casescited by 12
12 most cited of 48 All 48 (JSON)
- 2026Challenges in Explaining Pretrained Clinical Text Classifiers27 May 2026
- 2025Skim-Aware Contrastive Learning for Efficient Document Representation30 Dec 2025
- 2025TraceCoder: Towards Traceable ICD Coding via Multi-Source Knowledge Integration17 Oct 2025
- 2025Span-level Detection of AI-generated Scientific Text via Contrastive Learning and Structural Calibration1 Oct 2025
- 2025Explainable AI for Infection Prevention and Control: Modeling CPE Acquisition and Patient Outcomes in an Irish Hospital with Transformers18 Sep 2025
- 2025MOSAIC: A Multilingual, Taxonomy-Agnostic, and Computationally Efficient Approach for Radiological Report Classification29 Aug 2025
- 2025Predictive Multimodal Modeling of Diagnoses and Treatments in EHR14 Aug 2025
- 2025ROBAD: Robust Adversary-aware Local-Global Attended Bad Actor Detection Sequential Model20 Jul 2025
- 2025Algorithm Development in Neural Networks: Insights from the Streaming Parity Task14 Jul 2025
- 2025The Anatomy of Evidence: An Investigation Into Explainable ICD Coding2 Jul 2025
- 2025PLAID: A Unified Data Model for Machine Learning on Heterogeneous Physics Simulations5 May 2025
- 2025AdaSplash: Adaptive Sparse Flash Attention17 Feb 2025
12 newest of 48 All 48 (JSON)