BudgetLongformer: Can we Cheaply Pretrain a SotA Legal Language Model From Scratch?
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
- 2017Attention Is All You Needcited by 60,106
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,304
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,322
- 2021Evaluating Large Language Models Trained on Codecited by 8,205
- 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,884
- 2022Generative Adversarial Networkscited by 5,614
- 2019BERTScore: Evaluating Text Generation with BERTcited by 5,480
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,880
- 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,281
- 2020Longformer: The Long-Document Transformercited by 3,393
- 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,810
- 2019BioBERT: a pre-trained biomedical language representation model for biomedical text miningcited by 1,942
31 more
- 2020Big Bird: Transformers for Longer Sequencescited by 1,681
- 2020Don't Stop Pretraining: Adapt Language Models to Domains and Taskscited by 1,556
- 2019Generating Long Sequences with Sparse Transformerscited by 1,538
- 2019SciBERT: A Pretrained Language Model for Scientific Textcited by 1,409
- 2019Energy and Policy Considerations for Deep Learning in NLPcited by 1,248
- 2021DeBERTaV3: Improving DeBERTa using ELECTRA-Style Pre-Training with Gradient-Disentangled Embedding Sharingcited by 1,239
- 2019PEGASUS: Pre-training with Extracted Gap-sentences for Abstractive Summarizationcited by 1,100
- 2020Efficient Transformers: A Surveycited by 785
- 2021BARTScore: Evaluating Generated Text as Text Generationcited by 720
- 2020Long Range Arena: A Benchmark for Efficient Transformerscited by 697
- 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
- 2020On the Stability of Fine-tuning BERT: Misconceptions, Explanations, and Strong Baselinescited by 254
- 2020MiniLMv2: Multi-Head Self-Attention Relation Distillation for Compressing Pretrained Transformerscited by 240
- 2021CUAD: An Expert-Annotated NLP Dataset for Legal Contract Reviewcited by 233
- 2019Neural Legal Judgment Prediction in Englishcited by 208
- 2020Synthesizer: Rethinking Self-Attention in Transformer Modelscited by 205
- 2021When Does Pretraining Help? Assessing Self-Supervised Learning for Law and the CaseHOLD Datasetcited by 199
- 2019BIGPATENT: A Large-Scale Dataset for Abstractive and Coherent Summarizationcited by 156
- 2019BillSum: A Corpus for Automatic Summarization of US Legislationcited by 117
- 2019Neural Machine Translation with Byte-Level Subwordscited by 115
- 2021Lawformer: A Pre-trained Language Model for Chinese Legal Long Documentscited by 115
- 2020The Cost of Training NLP Models: A Concise Overviewcited by 98
- 2022Clinical-Longformer and Clinical-BigBird: Transformers for long clinical sequencescited by 68
- 2021Swiss-Judgment-Prediction: A Multilingual Legal Judgment Prediction Benchmarkcited by 60
- 2022Multi-LexSum: Real-World Summaries of Civil Rights Lawsuits at Multiple Granularitiescited by 47
- 2021An Empirical Study on Hyperparameter Optimization for Fine-Tuning Pre-trained Language Modelscited by 12
Built on by
Citing papers per year: 2023: 6; 2024: 6; 2025: 1.
13 papers.
Sort:
By area:
- 2024SaulLM-7B: A pioneering Large Language Model for Lawcited by 137
- 2023LEXTREME: A Multi-Lingual and Multi-Task Benchmark for the Legal Domaincited by 68
- 2023MultiLegalPile: A 689GB Multilingual Legal Corpuscited by 59
- 2024SaulLM-54B & SaulLM-141B: Scaling Up Domain Adaptation for the Legal Domaincited by 39
- 2023One Law, Many Languages: Benchmarking Multilingual Legal Reasoning for Judicial Supportcited by 15
- 2024LawInstruct: A Resource for Studying Language Model Adaptation to the Legal Domaincited by 10
- 2023MultiLegalSBD: A Multilingual Legal Sentence Boundary Detection Datasetcited by 7
- 2024Towards Explainability and Fairness in Swiss Judgement Prediction: Benchmarking on a Multilingual Datasetcited by 7
- 2024Unlocking Legal Knowledge: A Multilingual Dataset for Judicial Summarization in Switzerlandcited by 6
- 2023Automatic Anonymization of Swiss Federal Supreme Court Rulingscited by 3
- 2024Improving Legal Judgement Prediction in Romanian with Long Text Encoderscited by 3
- 2023Legal-HNet: Mixing Legal Long-Context Tokens with Hartley Transformcited by 0
- 2025Health Insurance Coverage Rule Interpretation Corpus: Law, Policy, and Medical Guidance for Health Insurance Coverage Understanding28 Jul 2025
- 2024Unlocking Legal Knowledge: A Multilingual Dataset for Judicial Summarization in Switzerland17 Oct 2024
- 2024SaulLM-54B & SaulLM-141B: Scaling Up Domain Adaptation for the Legal Domain28 Jul 2024
- 2024LawInstruct: A Resource for Studying Language Model Adaptation to the Legal Domain2 Apr 2024
- 2024SaulLM-7B: A pioneering Large Language Model for Law6 Mar 2024
- 2024Improving Legal Judgement Prediction in Romanian with Long Text Encoders29 Feb 2024
- 2024Towards Explainability and Fairness in Swiss Judgement Prediction: Benchmarking on a Multilingual Dataset26 Feb 2024
- 2023Legal-HNet: Mixing Legal Long-Context Tokens with Hartley Transform9 Nov 2023
- 2023Automatic Anonymization of Swiss Federal Supreme Court Rulings7 Oct 2023
- 2023One Law, Many Languages: Benchmarking Multilingual Legal Reasoning for Judicial Support15 Jun 2023
- 2023MultiLegalPile: A 689GB Multilingual Legal Corpus3 Jun 2023
- 2023MultiLegalSBD: A Multilingual Legal Sentence Boundary Detection Dataset2 May 2023
1 more
- 2024SaulLM-7B: A pioneering Large Language Model for Lawcited by 137
- 2023LEXTREME: A Multi-Lingual and Multi-Task Benchmark for the Legal Domaincited by 68
- 2023MultiLegalPile: A 689GB Multilingual Legal Corpuscited by 59
- 2024SaulLM-54B & SaulLM-141B: Scaling Up Domain Adaptation for the Legal Domaincited by 39
- 2024LawInstruct: A Resource for Studying Language Model Adaptation to the Legal Domaincited by 10
- 2023MultiLegalSBD: A Multilingual Legal Sentence Boundary Detection Datasetcited by 7
- 2024Towards Explainability and Fairness in Swiss Judgement Prediction: Benchmarking on a Multilingual Datasetcited by 7
- 2024Unlocking Legal Knowledge: A Multilingual Dataset for Judicial Summarization in Switzerlandcited by 6
- 2023Automatic Anonymization of Swiss Federal Supreme Court Rulingscited by 3
- 2024Improving Legal Judgement Prediction in Romanian with Long Text Encoderscited by 3
- 2023Legal-HNet: Mixing Legal Long-Context Tokens with Hartley Transformcited by 0
- 2025Health Insurance Coverage Rule Interpretation Corpus: Law, Policy, and Medical Guidance for Health Insurance Coverage Understandingcited by 0
- 2025Health Insurance Coverage Rule Interpretation Corpus: Law, Policy, and Medical Guidance for Health Insurance Coverage Understanding28 Jul 2025
- 2024Unlocking Legal Knowledge: A Multilingual Dataset for Judicial Summarization in Switzerland17 Oct 2024
- 2024SaulLM-54B & SaulLM-141B: Scaling Up Domain Adaptation for the Legal Domain28 Jul 2024
- 2024LawInstruct: A Resource for Studying Language Model Adaptation to the Legal Domain2 Apr 2024
- 2024SaulLM-7B: A pioneering Large Language Model for Law6 Mar 2024
- 2024Improving Legal Judgement Prediction in Romanian with Long Text Encoders29 Feb 2024
- 2024Towards Explainability and Fairness in Swiss Judgement Prediction: Benchmarking on a Multilingual Dataset26 Feb 2024
- 2023Legal-HNet: Mixing Legal Long-Context Tokens with Hartley Transform9 Nov 2023
- 2023Automatic Anonymization of Swiss Federal Supreme Court Rulings7 Oct 2023
- 2023MultiLegalPile: A 689GB Multilingual Legal Corpus3 Jun 2023
- 2023MultiLegalSBD: A Multilingual Legal Sentence Boundary Detection Dataset2 May 2023
- 2023LEXTREME: A Multi-Lingual and Multi-Task Benchmark for the Legal Domain30 Jan 2023