mlsanityData to 7 Oct 2026

HDT: Hierarchical Document Transformer

arXiv 2407.08330 ↗First posted 11 Jul 2024cs.LGcited by 6

Not on the map. Why?

Abstract (arXiv)

In this paper, we propose the Hierarchical Document Transformer (HDT), a novel sparse Transformer architecture tailored for structured hierarchical documents. Such documents are extremely important in numerous domains, including science, law or medicine. However, most existing solutions are inefficient and fail to make use of the structure inherent to documents. HDT exploits document structure by introducing auxiliary anchor tokens and redesigning the attention mechanism into a sparse multi-level hierarchy. This approach facilitates information exchange between tokens at different levels while maintaining sparsity, thereby enhancing computational and memory efficiency while exploiting the document structure as an inductive bias. We address the technical challenge of implementing HDT's sample-dependent hierarchical attention pattern by developing a novel sparse attention kernel that considers the hierarchical structure of documents. As demonstrated by our experiments, utilizing structural information present in documents leads to faster convergence, higher sample efficiency and better performance on downstream tasks.

Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). Builds on 52 of its 68 references that are in the map. First posted on arXiv 11 Jul 2024.

Builds on

52 of 68 references.

References · 52

  1. 2017Attention Is All You Needcited by 59,932
  2. 2015Deep Residual Learning for Image Recognitioncited by 51,809
  3. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  4. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  5. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
  6. 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,874
  7. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
  8. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
  9. 2020Longformer: The Long-Document Transformercited by 3,362
  10. 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,898
  11. 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,551
  12. 2020Big Bird: Transformers for Longer Sequencescited by 1,673
38 more
  1. 2020Reformer: The Efficient Transformercited by 1,658
  2. 2019Generating Long Sequences with Sparse Transformerscited by 1,523
  3. 2019SciBERT: A Pretrained Language Model for Scientific Textcited by 1,404
  4. 2020Efficient Transformers: A Surveycited by 784
  5. 2020Long Range Arena: A Benchmark for Efficient Transformerscited by 696
  6. 2017The NarrativeQA Reading Comprehension Challengecited by 590
  7. 2021A Dataset of Information-Seeking Questions and Answers Anchored in Research Paperscited by 475
  8. 2021Efficient Attentions for Long Document Summarizationcited by 342
  9. 2022UL2: Unifying Language Learning Paradigmscited by 292
  10. 2019Neural Legal Judgment Prediction in Englishcited by 208
  11. 2021QuALITY: Question Answering with Long Input Texts, Yes!cited by 204
  12. 2022SCROLLS: Standardized CompaRison Over Long Language Sequencescited by 170
  13. 2018Online normalizer calculation for softmaxcited by 154
  14. 2021ContractNLI: A Dataset for Document-level Natural Language Inference for Contractscited by 145
  15. 2018ListOps: A Diagnostic Dataset for Latent Tree Learningcited by 128
  16. 2022SciRepEval: A Multi-Format Benchmark for Scientific Document Representationscited by 124
  17. 2019Fine-tune BERT for Extractive Summarizationcited by 122
  18. 2023CoLT5: Faster Long-Range Transformers with Conditional Computationcited by 84
  19. 2022Cramming: Training a Language Model on a Single GPU in One Daycited by 81
  20. 2021Paragraph-level Rationale Extraction through Regularization: A case study on European Court of Human Rights Casescited by 77
  21. 2022Neighborhood Contrastive Learning for Scientific Document Representations with Citation Embeddingscited by 75
  22. 2019Tree Transformer: Integrating Tree Structures into Self-Attentioncited by 68
  23. 2021HTLM: Hyper-Text Pre-Training and Prompting of Language Modelscited by 58
  24. 2023Grokking of Hierarchical Structure in Vanilla Transformerscited by 53
  25. 2022Revisiting Transformer-based Models for Long Document Classificationcited by 48
  26. 2020Do Syntax Trees Help Pre-trained Transformers Extract Information?cited by 47
  27. 2022An Exploration of Hierarchical Attention Transformers for Efficient Long Document Classificationcited by 38
  28. 2021Hi-Transformer: Hierarchical Interactive Transformer for Efficient and Effective Long Document Modelingcited by 35
  29. 2022Mining Legal Arguments in Court Decisionscited by 35
  30. 2021Bringing Structure into Summaries: a Faceted Summarization Dataset for Long Scientific Documentscited by 33
  31. 2022The Harvard USPTO Patent Dataset: A Large-Scale, Well-Structured, and Multi-Purpose Corpus of Patent Applicationscited by 32
  32. 2020Code Summarization with Structure-induced Transformercited by 29
  33. 2022HEGEL: Hypergraph Transformer for Long Document Summarizationcited by 28
  34. 2022HiStruct+: Improving Extractive Text Summarization with Hierarchical Structure Informationcited by 26
  35. 2023unarXive 2022: All arXiv Publications Pre-Processed for NLP, Including Structured Full-Text and Citation Networkcited by 24
  36. 2023Faster Causal Attention Over Large Sequences Through Sparse Flash Attentioncited by 24
  37. 2022HIBRIDS: Attention with Hierarchical Biases for Structure-aware Long Document Summarizationcited by 22
  38. 2021HETFORMER: Heterogeneous Transformer with Sparse Attention for Long-Text Extractive Summarizationcited by 13

50 most cited of 52 All 52 (JSON)

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 1; 2026: 5.

6 papers.