mlsanityData to 13 Oct 2026

Legal-HNet: Mixing Legal Long-Context Tokens with Hartley Transform

arXiv 2311.05089 ↗First posted 9 Nov 2023cs.CL cs.AIcited by 0

Not on the map. Why?

Abstract (arXiv)

Since its introduction, the transformers architecture has seen great adoption in NLP applications, but it also has limitations. Although the self-attention mechanism allows for generating very rich representations of the input text, its effectiveness may be limited in specialized domains such as legal, where, for example, language models often have to process very long texts. In this paper, we explore alternatives to replace the attention-based layers with simpler token-mixing mechanisms: Hartley and Fourier transforms. Using these non-parametric techniques, we train models with long input documents from scratch in the legal domain setting. We also introduce a new hybrid Seq2Seq architecture, a no-attention-based encoder connected with an attention-based decoder, which performs quite well on existing summarization tasks with much less compute and memory requirements. We believe that similar, if not better performance, as in the case of long correlations of abstractive text summarization tasks, can be achieved by adopting these simpler infrastructures. This not only makes training models from scratch accessible to more people, but also contributes to the reduction of the carbon footprint during training.

Key facts. No citing papers in the map yet (data through 13 Oct 2026). Builds on 46 of its 57 references that are in the map. First posted on arXiv 9 Nov 2023.

Builds on

46 of 57 references.

References · 46

  1. 2020Language Models are Few-Shot Learnerscited by 32,320
  2. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,043
  3. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,549
  4. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,322
  5. 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,884
  6. 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,880
  7. 2020Longformer: The Long-Document Transformercited by 3,393
  8. 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,810
  9. 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,779
  10. 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,994
  11. 2019BioBERT: a pre-trained biomedical language representation model for biomedical text miningcited by 1,942
  12. 2020Big Bird: Transformers for Longer Sequencescited by 1,681
34 more
  1. 2020Reformer: The Efficient Transformercited by 1,662
  2. 2019Generating Long Sequences with Sparse Transformerscited by 1,538
  3. 2020Linformer: Self-Attention with Linear Complexitycited by 1,469
  4. 2021MLP-Mixer: An all-MLP Architecture for Visioncited by 1,442
  5. 2019SciBERT: A Pretrained Language Model for Scientific Textcited by 1,409
  6. 2019Energy and Policy Considerations for Deep Learning in NLPcited by 1,248
  7. 2019TinyBERT: Distilling BERT for Natural Language Understandingcited by 1,157
  8. 2019BERT Rediscovers the Classical NLP Pipelinecited by 1,049
  9. 2020Domain-Specific Language Model Pretraining for Biomedical Natural Language Processingcited by 1,001
  10. 2019What Does BERT Look At? An Analysis of BERT's Attentioncited by 999
  11. 2019Analyzing Multi-Head Self-Attention: Specialized Heads Do the Heavy Lifting, the Rest Can Be Prunedcited by 849
  12. 2020Efficient Transformers: A Surveycited by 785
  13. 2018Subword Regularization: Improving Neural Network Translation Models with Multiple Subword Candidatescited by 637
  14. 2021Carbon Emissions and Large Neural Network Trainingcited by 565
  15. 2018A Discourse-Aware Attention Model for Abstractive Summarization of Long Documentscited by 478
  16. 2020Efficient Content-Based Sparse Attention with Routing Transformerscited by 470
  17. 2020Fine-Tuning Pretrained Language Models: Weight Initializations, Data Orders, and Early Stoppingcited by 381
  18. 2021FNet: Mixing Tokens with Fourier Transformscited by 346
  19. 2021LexGLUE: A Benchmark Dataset for Legal Language Understanding in Englishcited by 303
  20. 2019Analyzing the Structure of Attention in a Transformer Language Modelcited by 242
  21. 2021CUAD: An Expert-Annotated NLP Dataset for Legal Contract Reviewcited by 233
  22. 2020Synthesizer: Rethinking Self-Attention in Transformer Modelscited by 205
  23. 2020Fast Transformers with Clustered Attentioncited by 123
  24. 2019BillSum: A Corpus for Automatic Summarization of US Legislationcited by 117
  25. 2021Lawformer: A Pre-trained Language Model for Chinese Legal Long Documentscited by 115
  26. 2020Masked Language Modeling for Proteins via Linearly Scalable Long-Context Transformerscited by 49
  27. 2022Multi-LexSum: Real-World Summaries of Civil Rights Lawsuits at Multiple Granularitiescited by 47
  28. 2022pNLP-Mixer: an Efficient all-MLP Architecture for Languagecited by 19
  29. 2022BudgetLongformer: Can we Cheaply Pretrain a SotA Legal Language Model From Scratch?cited by 13
  30. 2021An Empirical Study on Hyperparameter Optimization for Fine-Tuning Pre-trained Language Modelscited by 12
  31. 2022Sparse Mixers: Combining MoE and Mixing to build a more efficient BERTcited by 12
  32. 2020MLM: A Benchmark Dataset for Multitask Learning with Multiple Languages and Modalitiescited by 10
  33. 2018Hartley Spectral Pooling for Deep Learningcited by 6
  34. 2021Beyond Self Attention: A Subquadratic Fourier Wavelet Transformer with Multi Modal Fusioncited by 1

Built on by

Not cited yet.