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