Beyond 512 Tokens: Siamese Multi-depth Transformer-based Hierarchical Encoder for Long-Form Document Matching
Not on the map. Why?
Abstract (arXiv)
Many natural language processing and information retrieval problems can be formalized as the task of semantic matching. Existing work in this area has been largely focused on matching between short texts (e.g., question answering), or between a short and a long text (e.g., ad-hoc retrieval). Semantic matching between long-form documents, which has many important applications like news recommendation, related article recommendation and document clustering, is relatively less explored and needs more research effort. In recent years, self-attention based models like Transformers and BERT have achieved state-of-the-art performance in the task of text matching. These models, however, are still limited to short text like a few sentences or one paragraph due to the quadratic computational complexity of self-attention with respect to input text length. In this paper, we address the issue by proposing the Siamese Multi-depth Transformer-based Hierarchical (SMITH) Encoder for long-form document matching. Our model contains several innovations to adapt self-attention models for longer text input. In order to better capture sentence level semantic relations within a document, we pre-train the model with a novel masked sentence block language modeling task in addition to the masked word language modeling task used by BERT. Our experimental results on several benchmark datasets for long-form document matching show that our proposed SMITH model outperforms the previous state-of-the-art models including hierarchical attention, multi-depth attention-based hierarchical recurrent neural network, and BERT. Comparing to BERT based baselines, our model is able to increase maximum input text length from 512 to 2048. We will open source a Wikipedia based benchmark dataset, code and a pre-trained checkpoint to accelerate future research on long-form document matching.
Key facts. Cited by 35 papers in the map (data through 7 Oct 2026). First posted on arXiv 26 Apr 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 8; 2022: 9; 2023: 11; 2024: 3; 2025: 2; 2026: 2.
35 papers.
Sort:
By area:
- 2021LexGLUE: A Benchmark Dataset for Legal Language Understanding in Englishcited by 302
- 2021Paragraph-level Rationale Extraction through Regularization: A case study on European Court of Human Rights Casescited by 77
- 2022Revisiting Transformer-based Models for Long Document Classificationcited by 48
- 2023A Survey on Long Text Modeling with Transformerscited by 47
- 2022EUR-Lex-Sum: A Multi- and Cross-lingual Dataset for Long-form Summarization in the Legal Domaincited by 39
- 2022An Exploration of Hierarchical Attention Transformers for Efficient Long Document Classificationcited by 38
- 2021Hi-Transformer: Hierarchical Interactive Transformer for Efficient and Effective Long Document Modelingcited by 35
- 2022WebFormer: The Web-page Transformer for Structure Information Extractioncited by 34
- 2021VILA: Improving Structured Content Extraction from Scientific PDFs Using Visual Layout Groupscited by 27
- 2022Processing Long Legal Documents with Pre-trained Transformers: Modding LegalBERT and Longformercited by 20
- 2021CDLM: Cross-Document Language Modelingcited by 17
- 2021RoR: Read-over-Read for Long Document Machine Reading Comprehensioncited by 15
23 more
- 2022Spectral, Probabilistic, and Deep Metric Learning: Tutorial and Surveycited by 9
- 2023Finding the Law: Enhancing Statutory Article Retrieval via Graph Neural Networkscited by 9
- 2023LAIT: Efficient Multi-Segment Encoding in Transformers with Layer-Adjustable Interactioncited by 7
- 2024Focus on the Core: Efficient Attention via Pruned Token Compression for Document Classificationcited by 7
- 2021Three-level Hierarchical Transformer Networks for Long-sequence and Multiple Clinical Documents Classificationcited by 6
- 2023Breaking the Token Barrier: Chunking and Convolution for Efficient Long Text Classification with BERTcited by 6
- 2024Multi-view Content-aware Indexing for Long Document Retrievalcited by 4
- 2023Enhancing Keyphrase Extraction from Long Scientific Documents using Graph Embeddingscited by 3
- 2021Can Deep Neural Networks Predict Data Correlations from Column Names?cited by 2
- 2022Machine Learning for Violence Risk Assessment Using Dutch Clinical Notescited by 2
- 2023Attention over pre-trained Sentence Embeddings for Long Document Classificationcited by 2
- 2023Enhancing Pre-Trained Language Models with Sentence Position Embeddings for Rhetorical Roles Recognition in Legal Opinionscited by 2
- 2024Generalization in Healthcare AI: Evaluation of a Clinical Large Language Modelcited by 2
- 2022FETILDA: An Effective Framework For Fin-tuned Embeddings For Long Financial Text Documentscited by 1
- 2022Legal Element-oriented Modeling with Multi-view Contrastive Learning for Legal Case Retrievalcited by 1
- 2023HiCL: Hierarchical Contrastive Learning of Unsupervised Sentence Embeddingscited by 1
- 2023Reinforcement Replaces Supervision: Query focused Summarization using Deep Reinforcement Learningcited by 1
- 2025SAE-FiRE: Enhancing Earnings Surprise Predictions Through Sparse Autoencoder Feature Selectioncited by 1
- 2023Transformer-based Models for Long-Form Document Matching: Challenges and Empirical Analysiscited by 0
- 2023A General-Purpose Multilingual Document Encodercited by 0
- 2025Context-Aware Language Models for Forecasting Market Impact from Sequences of Financial Newscited by 0
- 2026FinAnchor: Aligned Multi-Model Representations for Financial Predictioncited by 0
- 2026REIGN: Refurbished Embeddings with Integrated Guidance Networks for Efficient Context-Length Scalingcited by 0
- 2026REIGN: Refurbished Embeddings with Integrated Guidance Networks for Efficient Context-Length Scaling30 Aug 2026
- 2026FinAnchor: Aligned Multi-Model Representations for Financial Prediction24 Feb 2026
- 2025Context-Aware Language Models for Forecasting Market Impact from Sequences of Financial News15 Sep 2025
- 2025SAE-FiRE: Enhancing Earnings Surprise Predictions Through Sparse Autoencoder Feature Selection20 May 2025
- 2024Focus on the Core: Efficient Attention via Pruned Token Compression for Document Classification3 Jun 2024
- 2024Multi-view Content-aware Indexing for Long Document Retrieval23 Apr 2024
- 2024Generalization in Healthcare AI: Evaluation of a Clinical Large Language Model14 Feb 2024
- 2023Reinforcement Replaces Supervision: Query focused Summarization using Deep Reinforcement Learning29 Nov 2023
- 2023Breaking the Token Barrier: Chunking and Convolution for Efficient Long Text Classification with BERT31 Oct 2023
- 2023HiCL: Hierarchical Contrastive Learning of Unsupervised Sentence Embeddings15 Oct 2023
- 2023Enhancing Pre-Trained Language Models with Sentence Position Embeddings for Rhetorical Roles Recognition in Legal Opinions8 Oct 2023
- 2023Attention over pre-trained Sentence Embeddings for Long Document Classification18 Jul 2023
23 more
- 2023LAIT: Efficient Multi-Segment Encoding in Transformers with Layer-Adjustable Interaction31 May 2023
- 2023Enhancing Keyphrase Extraction from Long Scientific Documents using Graph Embeddings16 May 2023
- 2023A General-Purpose Multilingual Document Encoder11 May 2023
- 2023A Survey on Long Text Modeling with Transformers28 Feb 2023
- 2023Transformer-based Models for Long-Form Document Matching: Challenges and Empirical Analysis7 Feb 2023
- 2023Finding the Law: Enhancing Statutory Article Retrieval via Graph Neural Networks30 Jan 2023
- 2022Processing Long Legal Documents with Pre-trained Transformers: Modding LegalBERT and Longformer2 Nov 2022
- 2022EUR-Lex-Sum: A Multi- and Cross-lingual Dataset for Long-form Summarization in the Legal Domain24 Oct 2022
- 2022An Exploration of Hierarchical Attention Transformers for Efficient Long Document Classification11 Oct 2022
- 2022Legal Element-oriented Modeling with Multi-view Contrastive Learning for Legal Case Retrieval11 Oct 2022
- 2022FETILDA: An Effective Framework For Fin-tuned Embeddings For Long Financial Text Documents14 Jun 2022
- 2022Machine Learning for Violence Risk Assessment Using Dutch Clinical Notes28 Apr 2022
- 2022Revisiting Transformer-based Models for Long Document Classification14 Apr 2022
- 2022WebFormer: The Web-page Transformer for Structure Information Extraction1 Feb 2022
- 2022Spectral, Probabilistic, and Deep Metric Learning: Tutorial and Survey23 Jan 2022
- 2021LexGLUE: A Benchmark Dataset for Legal Language Understanding in English3 Oct 2021
- 2021RoR: Read-over-Read for Long Document Machine Reading Comprehension10 Sep 2021
- 2021Can Deep Neural Networks Predict Data Correlations from Column Names?9 Jul 2021
- 2021Hi-Transformer: Hierarchical Interactive Transformer for Efficient and Effective Long Document Modeling2 Jun 2021
- 2021VILA: Improving Structured Content Extraction from Scientific PDFs Using Visual Layout Groups1 Jun 2021
- 2021Three-level Hierarchical Transformer Networks for Long-sequence and Multiple Clinical Documents Classification17 Apr 2021
- 2021Paragraph-level Rationale Extraction through Regularization: A case study on European Court of Human Rights Cases24 Mar 2021
- 2021CDLM: Cross-Document Language Modeling2 Jan 2021
- 2021LexGLUE: A Benchmark Dataset for Legal Language Understanding in Englishcited by 302
- 2021Paragraph-level Rationale Extraction through Regularization: A case study on European Court of Human Rights Casescited by 77
- 2022Revisiting Transformer-based Models for Long Document Classificationcited by 48
- 2023A Survey on Long Text Modeling with Transformerscited by 47
- 2022EUR-Lex-Sum: A Multi- and Cross-lingual Dataset for Long-form Summarization in the Legal Domaincited by 39
- 2022An Exploration of Hierarchical Attention Transformers for Efficient Long Document Classificationcited by 38
- 2021Hi-Transformer: Hierarchical Interactive Transformer for Efficient and Effective Long Document Modelingcited by 35
- 2022WebFormer: The Web-page Transformer for Structure Information Extractioncited by 34
- 2021VILA: Improving Structured Content Extraction from Scientific PDFs Using Visual Layout Groupscited by 27
- 2022Processing Long Legal Documents with Pre-trained Transformers: Modding LegalBERT and Longformercited by 20
- 2021CDLM: Cross-Document Language Modelingcited by 17
- 2021RoR: Read-over-Read for Long Document Machine Reading Comprehensioncited by 15
12 most cited of 34 All 34 (JSON)
- 2026REIGN: Refurbished Embeddings with Integrated Guidance Networks for Efficient Context-Length Scaling30 Aug 2026
- 2026FinAnchor: Aligned Multi-Model Representations for Financial Prediction24 Feb 2026
- 2025Context-Aware Language Models for Forecasting Market Impact from Sequences of Financial News15 Sep 2025
- 2025SAE-FiRE: Enhancing Earnings Surprise Predictions Through Sparse Autoencoder Feature Selection20 May 2025
- 2024Multi-view Content-aware Indexing for Long Document Retrieval23 Apr 2024
- 2024Generalization in Healthcare AI: Evaluation of a Clinical Large Language Model14 Feb 2024
- 2023Reinforcement Replaces Supervision: Query focused Summarization using Deep Reinforcement Learning29 Nov 2023
- 2023Breaking the Token Barrier: Chunking and Convolution for Efficient Long Text Classification with BERT31 Oct 2023
- 2023HiCL: Hierarchical Contrastive Learning of Unsupervised Sentence Embeddings15 Oct 2023
- 2023Enhancing Pre-Trained Language Models with Sentence Position Embeddings for Rhetorical Roles Recognition in Legal Opinions8 Oct 2023
- 2023Attention over pre-trained Sentence Embeddings for Long Document Classification18 Jul 2023
- 2023LAIT: Efficient Multi-Segment Encoding in Transformers with Layer-Adjustable Interaction31 May 2023
12 newest of 34 All 34 (JSON)