mlsanityData to 7 Oct 2026

Attention over pre-trained Sentence Embeddings for Long Document Classification

arXiv 2307.09084 ↗First posted 18 Jul 2023cs.CLcited by 2

Not on the map. Why?

Abstract (arXiv)

Despite being the current de-facto models in most NLP tasks, transformers are often limited to short sequences due to their quadratic attention complexity on the number of tokens. Several attempts to address this issue were studied, either by reducing the cost of the self-attention computation or by modeling smaller sequences and combining them through a recurrence mechanism or using a new transformer model. In this paper, we suggest to take advantage of pre-trained sentence transformers to start from semantically meaningful embeddings of the individual sentences, and then combine them through a small attention layer that scales linearly with the document length. We report the results obtained by this simple architecture on three standard document classification datasets. When compared with the current state-of-the-art models using standard fine-tuning, the studied method obtains competitive results (even if there is no clear best model in this configuration). We also showcase that the studied architecture obtains better results when freezing the underlying transformers. A configuration that is useful when we need to avoid complete fine-tuning (e.g. when the same frozen transformer is shared by different applications). Finally, two additional experiments are provided to further evaluate the relevancy of the studied architecture over simpler baselines.

Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Builds on 15 of its 21 references that are in the map. First posted on arXiv 18 Jul 2023.

Builds on

15 of 21 references.

References · 15

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
  4. 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
  5. 2020Longformer: The Long-Document Transformercited by 3,362
  6. 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,801
  7. 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,830
  8. 2020Reformer: The Efficient Transformercited by 1,658
  9. 2020Efficient Content-Based Sparse Attention with Routing Transformerscited by 469
  10. 2019Hierarchical Transformers for Long Document Classificationcited by 103
  11. 2020PARADE: Passage Representation Aggregation for Document Rerankingcited by 44
  12. 2020Beyond 512 Tokens: Siamese Multi-depth Transformer-based Hierarchical Encoder for Long-Form Document Matchingcited by 35
3 more
  1. 2021Hi-Transformer: Hierarchical Interactive Transformer for Efficient and Effective Long Document Modelingcited by 35
  2. 2022Efficient Classification of Long Documents Using Transformerscited by 30
  3. 2022PARM: A Paragraph Aggregation Retrieval Model for Dense Document-to-Document Retrievalcited by 5

Built on by

Cited by year

Citing papers per year: 2025: 2.

2 papers.