mlsanityData to 13 Oct 2026

BudgetLongformer: Can we Cheaply Pretrain a SotA Legal Language Model From Scratch?

arXiv 2211.17135 ↗First posted 30 Nov 2022cs.CL cs.AI cs.LGcited by 13

Not on the map. Why?

Abstract (arXiv)

Pretrained transformer models have achieved state-of-the-art results in many tasks and benchmarks recently. Many state-of-the-art Language Models (LMs), however, do not scale well above the threshold of 512 input tokens. In specialized domains though (such as legal, scientific or biomedical), models often need to process very long text (sometimes well above 10000 tokens). Even though many efficient transformers have been proposed (such as Longformer, BigBird or FNet), so far, only very few such efficient models are available for specialized domains. Additionally, since the pretraining process is extremely costly in general - but even more so as the sequence length increases - it is often only in reach of large research labs. One way of making pretraining cheaper is the Replaced Token Detection (RTD) task, by providing more signal during training, since the loss can be computed over all tokens. In this work, we train Longformer models with the efficient RTD task on legal data to showcase that pretraining efficient LMs is possible using much less compute. We evaluate the trained models on challenging summarization tasks requiring the model to summarize long texts to show to what extent the models can achieve good performance on downstream tasks. We find that both the small and base models outperform their baselines on the in-domain BillSum and out-of-domain PubMed tasks in their respective parameter range. We publish our code and models for research purposes.

Key facts. Cited by 13 papers in the map (data through 13 Oct 2026). Builds on 43 of its 54 references that are in the map. First posted on arXiv 30 Nov 2022.

Builds on

43 of 54 references.

References · 43

  1. 2017Attention Is All You Needcited by 60,106
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,304
  3. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,322
  4. 2021Evaluating Large Language Models Trained on Codecited by 8,205
  5. 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,884
  6. 2022Generative Adversarial Networkscited by 5,614
  7. 2019BERTScore: Evaluating Text Generation with BERTcited by 5,480
  8. 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,880
  9. 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,281
  10. 2020Longformer: The Long-Document Transformercited by 3,393
  11. 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,810
  12. 2019BioBERT: a pre-trained biomedical language representation model for biomedical text miningcited by 1,942
31 more
  1. 2020Big Bird: Transformers for Longer Sequencescited by 1,681
  2. 2020Don't Stop Pretraining: Adapt Language Models to Domains and Taskscited by 1,556
  3. 2019Generating Long Sequences with Sparse Transformerscited by 1,538
  4. 2019SciBERT: A Pretrained Language Model for Scientific Textcited by 1,409
  5. 2019Energy and Policy Considerations for Deep Learning in NLPcited by 1,248
  6. 2021DeBERTaV3: Improving DeBERTa using ELECTRA-Style Pre-Training with Gradient-Disentangled Embedding Sharingcited by 1,239
  7. 2019PEGASUS: Pre-training with Extracted Gap-sentences for Abstractive Summarizationcited by 1,100
  8. 2020Efficient Transformers: A Surveycited by 785
  9. 2021BARTScore: Evaluating Generated Text as Text Generationcited by 720
  10. 2020Long Range Arena: A Benchmark for Efficient Transformerscited by 697
  11. 2021Carbon Emissions and Large Neural Network Trainingcited by 565
  12. 2018A Discourse-Aware Attention Model for Abstractive Summarization of Long Documentscited by 478
  13. 2020Efficient Content-Based Sparse Attention with Routing Transformerscited by 470
  14. 2020Fine-Tuning Pretrained Language Models: Weight Initializations, Data Orders, and Early Stoppingcited by 381
  15. 2021FNet: Mixing Tokens with Fourier Transformscited by 346
  16. 2021LexGLUE: A Benchmark Dataset for Legal Language Understanding in Englishcited by 303
  17. 2020On the Stability of Fine-tuning BERT: Misconceptions, Explanations, and Strong Baselinescited by 254
  18. 2020MiniLMv2: Multi-Head Self-Attention Relation Distillation for Compressing Pretrained Transformerscited by 240
  19. 2021CUAD: An Expert-Annotated NLP Dataset for Legal Contract Reviewcited by 233
  20. 2019Neural Legal Judgment Prediction in Englishcited by 208
  21. 2020Synthesizer: Rethinking Self-Attention in Transformer Modelscited by 205
  22. 2021When Does Pretraining Help? Assessing Self-Supervised Learning for Law and the CaseHOLD Datasetcited by 199
  23. 2019BIGPATENT: A Large-Scale Dataset for Abstractive and Coherent Summarizationcited by 156
  24. 2019BillSum: A Corpus for Automatic Summarization of US Legislationcited by 117
  25. 2019Neural Machine Translation with Byte-Level Subwordscited by 115
  26. 2021Lawformer: A Pre-trained Language Model for Chinese Legal Long Documentscited by 115
  27. 2020The Cost of Training NLP Models: A Concise Overviewcited by 98
  28. 2022Clinical-Longformer and Clinical-BigBird: Transformers for long clinical sequencescited by 68
  29. 2021Swiss-Judgment-Prediction: A Multilingual Legal Judgment Prediction Benchmarkcited by 60
  30. 2022Multi-LexSum: Real-World Summaries of Civil Rights Lawsuits at Multiple Granularitiescited by 47
  31. 2021An Empirical Study on Hyperparameter Optimization for Fine-Tuning Pre-trained Language Modelscited by 12

Built on by

Cited by year

Citing papers per year: 2023: 6; 2024: 6; 2025: 1.

13 papers.

Sort:

By area: