mlsanityData to 14 Oct 2026

Revisiting Transformer-based Models for Long Document Classification

arXiv 2204.06683 ↗First posted 14 Apr 2022cs.CLcited by 49

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

  1. 2017Attention Is All You Needcited by 60,361
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  3. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
  4. 2020Longformer: The Long-Document Transformercited by 3,413
  5. 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,850
  6. 2020Big Bird: Transformers for Longer Sequencescited by 1,684
  7. 2020Reformer: The Efficient Transformercited by 1,668
  8. 2020Rethinking Attention with Performerscited by 1,601
  9. 2020Don't Stop Pretraining: Adapt Language Models to Domains and Taskscited by 1,565
  10. 2019Generating Long Sequences with Sparse Transformerscited by 1,546
  11. 2020Efficient Transformers: A Surveycited by 790
  12. 2021Documenting Large Webtext Corpora: A Case Study on the Colossal Clean Crawled Corpuscited by 492
24 more
  1. 2019How to Fine-Tune BERT for Text Classification?cited by 411
  2. 2021LexGLUE: A Benchmark Dataset for Legal Language Understanding in Englishcited by 310
  3. 2020On the Stability of Fine-tuning BERT: Misconceptions, Explanations, and Strong Baselinescited by 255
  4. 2018Explainable Prediction of Medical Codes from Clinical Textcited by 234
  5. 2019Blockwise Self-Attention for Long Document Understandingcited by 159
  6. 2020Neural Unsupervised Domain Adaptation in NLP---A Surveycited by 144
  7. 2019HIBERT: Document Level Pre-training of Hierarchical Bidirectional Transformers for Document Summarizationcited by 121
  8. 2019DocBERT: BERT for Document Classificationcited by 68
  9. 2022Code Synonyms Do Matter: Multiple Synonyms Matching Network for Automatic ICD Codingcited by 53
  10. 2020An Empirical Study on Large-Scale Multi-Label Text Classification Including Few and Zero-Shot Labelscited by 44
  11. 2021Does the Magic of BERT Apply to Medical Code Assignment? A Quantitative Studycited by 39
  12. 2020Explainable Automated Coding of Clinical Notes using Hierarchical Label-wise Attention Networks and Label Embedding Initialisationcited by 38
  13. 2017Towards Automated ICD Coding Using Deep Learningcited by 35
  14. 2020Beyond 512 Tokens: Siamese Multi-depth Transformer-based Hierarchical Encoder for Long-Form Document Matchingcited by 35
  15. 2020Inferring Degrees from Incomplete Networks and Nonlinear Dynamicscited by 33
  16. 2020ERNIE-Doc: A Retrospective Long-Document Modeling Transformercited by 31
  17. 2022Efficient Classification of Long Documents Using Transformerscited by 30
  18. 2021Towards BERT-based Automatic ICD Coding: Limitations and Opportunitiescited by 25
  19. 2021Simple Local Attentions Remain Competitive for Long-Context Taskscited by 25
  20. 2019Phenotyping of Clinical Notes with Improved Document Classification Models Using Contextualized Neural Language Modelscited by 20
  21. 2020Multi-label Few/Zero-shot Learning with Knowledge Aggregated from Multiple Label Graphscited by 19
  22. 2018ML-Net: multi-label classification of biomedical texts with deep neural networkscited by 17
  23. 2020Medical Code Assignment with Gated Convolution and Note-Code Interactioncited by 9
  24. 2021MDAPT: Multilingual Domain Adaptive Pretraining in a Single Modelcited by 6

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2022: 10; 2023: 13; 2024: 13; 2025: 11; 2026: 2.

49 papers.

Sort:

By area:

  1. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
  2. 2024Capabilities of Gemini Models in Medicinecited by 237
  3. 2022Legal Prompt Engineering for Multilingual Legal Judgement Predictioncited by 55
  4. 2022Knowledge Injected Prompt Based Fine-tuning for Multi-label Few-shot ICD Codingcited by 40
  5. 2022An Exploration of Hierarchical Attention Transformers for Efficient Long Document Classificationcited by 38
  6. 2022Deconfounding Legal Judgment Prediction for European Court of Human Rights Cases Towards Better Alignment with Expertscited by 24
  7. 2022Processing Long Legal Documents with Pre-trained Transformers: Modding LegalBERT and Longformercited by 20
  8. 2022ClassActionPrediction: A Challenging Benchmark for Legal Judgment Prediction of Class Action Cases in the UScited by 17
  9. 2022Multi-label Few-shot ICD Coding as Autoregressive Generation with Promptcited by 17
  10. 2022An Empirical Study on Cross-X Transfer for Legal Judgment Predictioncited by 16
  11. 2023Zero-shot Transfer of Article-aware Legal Outcome Classification for European Court of Human Rights Casescited by 14
  12. 2023Leveraging Task Dependency and Contrastive Learning for Case Outcome Classification on European Court of Human Rights Casescited by 12
37 more
  1. 2023Large Language Models are legal but they are not: Making the case for a powerful LegalLLMcited by 12
  2. 2025AdaSplash: Adaptive Sparse Flash Attentioncited by 12
  3. 2024Accurate and Well-Calibrated ICD Code Assignment Through Attention Over Diverse Label Embeddingscited by 9
  4. 2023Modelling Temporal Document Sequences for Clinical ICD Codingcited by 7
  5. 2023Neural Natural Language Processing for Long Texts: A Survey on Classification and Summarizationcited by 7
  6. 2024HDT: Hierarchical Document Transformercited by 6
  7. 2024Length-Aware Multi-Kernel Transformer for Long Document Classificationcited by 5
  8. 2023Towards Semi-Structured Automatic ICD Coding via Tree-based Contrastive Learningcited by 4
  9. 2024PecSched: Preemptive and Efficient Cluster Scheduling for LLM Inferencecited by 4
  10. 2023Can Model Fusing Help Transformers in Long Document Classification? An Empirical Studycited by 3
  11. 2024FAIIR: Building Toward A Conversational AI Agent Assistant for Youth Mental Health Service Provisioncited by 3
  12. 2025The Anatomy of Evidence: An Investigation Into Explainable ICD Codingcited by 3
  13. 2026Prompt Overflow: What the Guardrail Inspects Is Not What the Model Inferscited by 3
  14. 2022Detecting Entities in the Astrophysics Literature: A Comparison of Word-based and Span-based Entity Recognition Methodscited by 2
  15. 2024NextLevelBERT: Masked Language Modeling with Higher-Level Representations for Long Documentscited by 2
  16. 2024CTP-LLM: Clinical Trial Phase Transition Prediction Using Large Language Modelscited by 2
  17. 2023ARC-NLP at PAN 2023: Hierarchical Long Text Classification for Trigger Detectioncited by 1
  18. 2024Continuous Predictive Modeling of Clinical Notes and ICD Codes in Patient Health Recordscited by 1
  19. 2025Explainable AI for Infection Prevention and Control: Modeling CPE Acquisition and Patient Outcomes in an Irish Hospital with Transformerscited by 1
  20. 2023Automatic ICD-10 Code Association: A Challenging Task on French Clinical Textscited by 0
  21. 2023Leveraging BERT Language Model for Arabic Long Document Classificationcited by 0
  22. 2023A General-Purpose Multilingual Document Encodercited by 0
  23. 2023Causality is all you needcited by 0
  24. 2023Summarization-based Data Augmentation for Document Classificationcited by 0
  25. 2024ECtHR-PCR: A Dataset for Precedent Understanding and Prior Case Retrieval in the European Court of Human Rightscited by 0
  26. 2024Domain-specific long text classification from sparse relevant informationcited by 0
  27. 2024Graph-tree Fusion Model with Bidirectional Information Propagation for Long Document Classificationcited by 0
  28. 2024Don't Pay Attention, PLANT It: Pretraining Attention via Learning-to-Rankcited by 0
  29. 2025PLAID: A Unified Data Model for Machine Learning on Heterogeneous Physics Simulationscited by 0
  30. 2025Algorithm Development in Neural Networks: Insights from the Streaming Parity Taskcited by 0
  31. 2025ROBAD: Robust Adversary-aware Local-Global Attended Bad Actor Detection Sequential Modelcited by 0
  32. 2025Predictive Multimodal Modeling of Diagnoses and Treatments in EHRcited by 0
  33. 2025MOSAIC: A Multilingual, Taxonomy-Agnostic, and Computationally Efficient Approach for Radiological Report Classificationcited by 0
  34. 2025Span-level Detection of AI-generated Scientific Text via Contrastive Learning and Structural Calibrationcited by 0
  35. 2025TraceCoder: Towards Traceable ICD Coding via Multi-Source Knowledge Integrationcited by 0
  36. 2025Skim-Aware Contrastive Learning for Efficient Document Representationcited by 0
  37. 2026Challenges in Explaining Pretrained Clinical Text Classifierscited by 0