An Exploration of Hierarchical Attention Transformers for Efficient Long Document Classification
Not on the map. Why?
Abstract (arXiv)
Non-hierarchical sparse attention Transformer-based models, such as Longformer and Big Bird, are popular approaches to working with long documents. There are clear benefits to these approaches compared to the original Transformer in terms of efficiency, but Hierarchical Attention Transformer (HAT) models are a vastly understudied alternative. We develop and release fully pre-trained HAT models that use segment-wise followed by cross-segment encoders and compare them with Longformer models and partially pre-trained HATs. In several long document downstream classification tasks, our best HAT model outperforms equally-sized Longformer models while using 10-20% less GPU memory and processing documents 40-45% faster. In a series of ablation studies, we find that HATs perform best with cross-segment contextualization throughout the model than alternative configurations that implement either early or late cross-segment contextualization. Our code is on GitHub: https://github.com/coastalcph/hierarchical-transformers.
Key facts. Cited by 38 papers in the map (data through 7 Oct 2026). Builds on 36 of its 43 references that are in the map. First posted on arXiv 11 Oct 2022.
Builds on
36 of 43 references.
References · 36
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 11,979
- 2020Scaling Laws for Neural Language Modelscited by 6,411
- 2020Longformer: The Long-Document Transformercited by 3,362
- 2022Training Compute-Optimal Large Language Modelscited by 2,927
- 2021Efficiently Modeling Long Sequences with Structured State Spacescited by 2,424
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
- 2020Big Bird: Transformers for Longer Sequencescited by 1,673
- 2020Reformer: The Efficient Transformercited by 1,658
24 more
- 2020Rethinking Attention with Performerscited by 1,584
- 2021VICReg: Variance-Invariance-Covariance Regularization for Self-Supervised Learningcited by 1,013
- 2020Efficient Transformers: A Surveycited by 784
- 2020Long Range Arena: A Benchmark for Efficient Transformerscited by 696
- 2021Combining Recurrent, Convolutional, and Continuous-time Models with Linear State-Space Layerscited by 607
- 2022Diagonal State Spaces are as Effective as Structured State Spacescited by 350
- 2021LexGLUE: A Benchmark Dataset for Legal Language Understanding in Englishcited by 302
- 2021LongT5: Efficient Text-To-Text Transformer for Long Sequencescited by 232
- 2019Neural Legal Judgment Prediction in Englishcited by 208
- 2021QuALITY: Question Answering with Long Input Texts, Yes!cited by 204
- 2021ContractNLI: A Dataset for Document-level Natural Language Inference for Contractscited by 145
- 2019Well-Read Students Learn Better: On the Importance of Pre-training Compact Modelscited by 118
- 2021MultiEURLEX -- A multi-lingual and multi-label legal document classification dataset for zero-shot cross-lingual transfercited by 89
- 2021Paragraph-level Rationale Extraction through Regularization: A case study on European Court of Human Rights Casescited by 77
- 2019Pretrained Language Models for Sequential Sentence Classificationcited by 53
- 2022Revisiting Transformer-based Models for Long Document Classificationcited by 48
- 2022Multi-LexSum: Real-World Summaries of Civil Rights Lawsuits at Multiple Granularitiescited by 47
- 2022Long Document Summarization with Top-down and Bottom-up Inferencecited by 42
- 2020Beyond 512 Tokens: Siamese Multi-depth Transformer-based Hierarchical Encoder for Long-Form Document Matchingcited by 35
- 2021Hi-Transformer: Hierarchical Interactive Transformer for Efficient and Effective Long Document Modelingcited by 35
- 2022Mining Legal Arguments in Court Decisionscited by 35
- 2021Simple Local Attentions Remain Competitive for Long-Context Taskscited by 25
- 2021Regulatory Compliance through Doc2Doc Information Retrieval: A case study in EU/UK legislation where text similarity has limitationscited by 13
- 2022ERNIE-SPARSE: Learning Hierarchical Efficient Transformer Through Regularized Self-Attentioncited by 6
Built on by
Citing papers per year: 2023: 15; 2024: 8; 2025: 7; 2026: 8.
38 papers.
Sort:
By area:
- 2023The Rise and Potential of Large Language Model Based Agents: A Surveycited by 1,422
- 2023A Picture is Worth More Than 77 Text Tokens: Evaluating CLIP-Style Models on Dense Captionscited by 107
- 2023A Survey on Long Text Modeling with Transformerscited by 47
- 2024InterACT: Inter-dependency Aware Action Chunking with Hierarchical Attention Transformers for Bimanual Manipulationcited by 21
- 2023Zero-shot Transfer of Article-aware Legal Outcome Classification for European Court of Human Rights Casescited by 14
- 2024DAIC-WOZ: On the Validity of Using the Therapist's prompts in Automatic Depression Detection from Clinical Interviewscited by 14
- 2023Leveraging Task Dependency and Contrastive Learning for Case Outcome Classification on European Court of Human Rights Casescited by 12
- 2025The Strawberry Problem: Emergence of Character-level Understanding in Tokenized Language Modelscited by 11
- 2023LogPr'ecis: Unleashing Language Models for Automated Malicious Log Analysiscited by 8
- 2023Large Language Model Prompt Chaining for Long Legal Document Classificationcited by 7
- 2024Towards Explainability and Fairness in Swiss Judgement Prediction: Benchmarking on a Multilingual Datasetcited by 7
- 2025Towards Long Context Hallucination Detectioncited by 7
26 more
- 2024HDT: Hierarchical Document Transformercited by 6
- 2023Hallucination Reduction in Long Input Text Summarizationcited by 5
- 2023Recursion in Recursion: Two-Level Nested Recursion for Length Generalization with Scalabilitycited by 5
- 2025HSGM: Hierarchical Segment-Graph Memory for Scalable Long-Text Semanticscited by 5
- 2024Exploring Large Language Models and Hierarchical Frameworks for Classification of Large Unstructured Legal Documentscited by 4
- 2023Efficient Document Embeddings via Self-Contrastive Bregman Divergence Learningcited by 3
- 2023Modular Multimodal Machine Learning for Extraction of Theorems and Proofs in Long Scientific Documents (Extended Version)cited by 2
- 2024Modeling the Quality of Dialogical Explanationscited by 2
- 2023A Hierarchical Neural Framework for Classification and its Explanation in Large Unstructured Legal Documentscited by 1
- 2024An alternative formulation of attention pooling function in translationcited by 1
- 2025Two Heads Are Better than One: Simulating Large Transformers with Small Onescited by 1
- 2025HATSolver: Learning Groebner Bases with Hierarchical Attention Transformerscited by 1
- 2026Aligning Forest and Trees in Images & Long Captions for Visually Grounded Understandingcited by 1
- 2026Overlapping Schwarz Attention: Hierarchical Attention via Domain Decompositioncited by 1
- 2023A General-Purpose Multilingual Document Encodercited by 0
- 2023An End-to-End System for Reproducibility Assessment of Source Code Repositories via Their Readmescited by 0
- 2023VECHR: A Dataset for Explainable and Robust Classification of Vulnerability Type in the European Court of Human Rightscited by 0
- 2024Graph-tree Fusion Model with Bidirectional Information Propagation for Long Document Classificationcited by 0
- 2025Lessons from Neuroscience for AI: How integrating Actions, Compositional Structure and Episodic Memory could enable Safe, Interpretable and Human-Like AIcited by 0
- 2025Skim-Aware Contrastive Learning for Efficient Document Representationcited by 0
- 2026Fusion-SSAT: Unleashing the Potential of Self-supervised Auxiliary Task by Feature Fusion for Generalized Deepfake Detectioncited by 0
- 2026Training Language Models with homotokens Leads to Delayed Overfittingcited by 0
- 2026NEST: Nested Event Stream Transformer for Sequences of Multisetscited by 0
- 2026Neutrino Oscillation Parameter Estimation Using Structured Hierarchical Transformerscited by 0
- 2026Semantic Compression Trees: Multi-Resolution Knowledge Retrieval via Hierarchical Semantic Residualscited by 0
- 2026Labeled Incidence Structures for Native Transformer Modeling of Text, Knowledge Graphs, and Hypergraphscited by 0
- 2026Semantic Compression Trees: Multi-Resolution Knowledge Retrieval via Hierarchical Semantic Residuals21 Aug 2026
- 2026Labeled Incidence Structures for Native Transformer Modeling of Text, Knowledge Graphs, and Hypergraphs29 Jul 2026
- 2026Overlapping Schwarz Attention: Hierarchical Attention via Domain Decomposition16 Jun 2026
- 2026Neutrino Oscillation Parameter Estimation Using Structured Hierarchical Transformers21 Mar 2026
- 2026Aligning Forest and Trees in Images & Long Captions for Visually Grounded Understanding3 Feb 2026
- 2026NEST: Nested Event Stream Transformer for Sequences of Multisets31 Jan 2026
- 2026Training Language Models with homotokens Leads to Delayed Overfitting6 Jan 2026
- 2026Fusion-SSAT: Unleashing the Potential of Self-supervised Auxiliary Task by Feature Fusion for Generalized Deepfake Detection2 Jan 2026
- 2025Skim-Aware Contrastive Learning for Efficient Document Representation30 Dec 2025
- 2025Lessons from Neuroscience for AI: How integrating Actions, Compositional Structure and Episodic Memory could enable Safe, Interpretable and Human-Like AI27 Dec 2025
- 2025HATSolver: Learning Groebner Bases with Hierarchical Attention Transformers9 Dec 2025
- 2025HSGM: Hierarchical Segment-Graph Memory for Scalable Long-Text Semantics17 Sep 2025
26 more
- 2025Two Heads Are Better than One: Simulating Large Transformers with Small Ones13 Jun 2025
- 2025The Strawberry Problem: Emergence of Character-level Understanding in Tokenized Language Models20 May 2025
- 2025Towards Long Context Hallucination Detection28 Apr 2025
- 2024Graph-tree Fusion Model with Bidirectional Information Propagation for Long Document Classification3 Oct 2024
- 2024InterACT: Inter-dependency Aware Action Chunking with Hierarchical Attention Transformers for Bimanual Manipulation12 Sep 2024
- 2024An alternative formulation of attention pooling function in translation23 Aug 2024
- 2024HDT: Hierarchical Document Transformer11 Jul 2024
- 2024DAIC-WOZ: On the Validity of Using the Therapist's prompts in Automatic Depression Detection from Clinical Interviews22 Apr 2024
- 2024Exploring Large Language Models and Hierarchical Frameworks for Classification of Large Unstructured Legal Documents11 Mar 2024
- 2024Modeling the Quality of Dialogical Explanations1 Mar 2024
- 2024Towards Explainability and Fairness in Swiss Judgement Prediction: Benchmarking on a Multilingual Dataset26 Feb 2024
- 2023A Picture is Worth More Than 77 Text Tokens: Evaluating CLIP-Style Models on Dense Captions14 Dec 2023
- 2023Recursion in Recursion: Two-Level Nested Recursion for Length Generalization with Scalability8 Nov 2023
- 2023VECHR: A Dataset for Explainable and Robust Classification of Vulnerability Type in the European Court of Human Rights17 Oct 2023
- 2023An End-to-End System for Reproducibility Assessment of Source Code Repositories via Their Readmes14 Oct 2023
- 2023Hallucination Reduction in Long Input Text Summarization28 Sep 2023
- 2023A Hierarchical Neural Framework for Classification and its Explanation in Large Unstructured Legal Documents19 Sep 2023
- 2023The Rise and Potential of Large Language Model Based Agents: A Survey14 Sep 2023
- 2023Large Language Model Prompt Chaining for Long Legal Document Classification8 Aug 2023
- 2023Modular Multimodal Machine Learning for Extraction of Theorems and Proofs in Long Scientific Documents (Extended Version)18 Jul 2023
- 2023LogPr'ecis: Unleashing Language Models for Automated Malicious Log Analysis17 Jul 2023
- 2023Efficient Document Embeddings via Self-Contrastive Bregman Divergence Learning25 May 2023
- 2023A General-Purpose Multilingual Document Encoder11 May 2023
- 2023A Survey on Long Text Modeling with Transformers28 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
- 2023The Rise and Potential of Large Language Model Based Agents: A Surveycited by 1,422
- 2023A Picture is Worth More Than 77 Text Tokens: Evaluating CLIP-Style Models on Dense Captionscited by 107
- 2023A Survey on Long Text Modeling with Transformerscited by 47
- 2024InterACT: Inter-dependency Aware Action Chunking with Hierarchical Attention Transformers for Bimanual Manipulationcited by 21
- 2023Zero-shot Transfer of Article-aware Legal Outcome Classification for European Court of Human Rights Casescited by 14
- 2024DAIC-WOZ: On the Validity of Using the Therapist's prompts in Automatic Depression Detection from Clinical Interviewscited by 14
- 2023Leveraging Task Dependency and Contrastive Learning for Case Outcome Classification on European Court of Human Rights Casescited by 12
- 2025The Strawberry Problem: Emergence of Character-level Understanding in Tokenized Language Modelscited by 11
- 2023LogPr'ecis: Unleashing Language Models for Automated Malicious Log Analysiscited by 8
- 2023Large Language Model Prompt Chaining for Long Legal Document Classificationcited by 7
- 2024Towards Explainability and Fairness in Swiss Judgement Prediction: Benchmarking on a Multilingual Datasetcited by 7
- 2025Towards Long Context Hallucination Detectioncited by 7
- 2024HDT: Hierarchical Document Transformercited by 6
12 most cited of 35 All 35 (JSON)
- 2026Labeled Incidence Structures for Native Transformer Modeling of Text, Knowledge Graphs, and Hypergraphs29 Jul 2026
- 2026Overlapping Schwarz Attention: Hierarchical Attention via Domain Decomposition16 Jun 2026
- 2026Neutrino Oscillation Parameter Estimation Using Structured Hierarchical Transformers21 Mar 2026
- 2026NEST: Nested Event Stream Transformer for Sequences of Multisets31 Jan 2026
- 2026Training Language Models with homotokens Leads to Delayed Overfitting6 Jan 2026
- 2026Fusion-SSAT: Unleashing the Potential of Self-supervised Auxiliary Task by Feature Fusion for Generalized Deepfake Detection2 Jan 2026
- 2025Skim-Aware Contrastive Learning for Efficient Document Representation30 Dec 2025
- 2025Lessons from Neuroscience for AI: How integrating Actions, Compositional Structure and Episodic Memory could enable Safe, Interpretable and Human-Like AI27 Dec 2025
- 2025HATSolver: Learning Groebner Bases with Hierarchical Attention Transformers9 Dec 2025
- 2025HSGM: Hierarchical Segment-Graph Memory for Scalable Long-Text Semantics17 Sep 2025
- 2025Two Heads Are Better than One: Simulating Large Transformers with Small Ones13 Jun 2025
- 2025The Strawberry Problem: Emergence of Character-level Understanding in Tokenized Language Models20 May 2025
12 newest of 35 All 35 (JSON)