mlsanityData to 14 Oct 2026

Evaluating Customized vs. Generalist Transformer-based Models for Legal Contract Classification

arXiv 2508.07849 ↗First posted 11 Aug 2025cs.CLcited by 2

Not on the map. Why?

Abstract (arXiv)

Despite advances in legal NLP, no comprehensive evaluation of Transformer-based models customized for legal tasks (referred to as `legal-specific' models in this paper) exists for contract classification tasks. To address this gap, we present an evaluation of 13 legal-specific transformer-based models on 3 English-language contract classification tasks and compare them with 9 generalist models. The results show that legal-specific models consistently outperform generalist models, especially on tasks requiring nuanced legal understanding. They also help reduce misclassification of rare classes in imbalanced datasets. Legal-BERT and Contracts-BERT establish new SOTAs on two of the three tasks, despite having 69% fewer parameters than the best-performing generalist models. We also identify CaseLaw-BERT and LexLM as strong additional baselines for contract classification. Our results highlight the shortcomings of generalist models, emphasizing the need for domain-specific customization, particularly in the context of legal applications.

Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Builds on 20 of its 30 references that are in the map. First posted on arXiv 11 Aug 2025.

Builds on

20 of 30 references.

References · 20

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  2. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
  3. 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,307
  4. 2020Longformer: The Long-Document Transformercited by 3,413
  5. 2020DeBERTa: Decoding-enhanced BERT with Disentangled Attentioncited by 2,181
  6. 2020Big Bird: Transformers for Longer Sequencescited by 1,684
  7. 2021LexGLUE: A Benchmark Dataset for Legal Language Understanding in Englishcited by 310
  8. 2021When Does Pretraining Help? Assessing Self-Supervised Learning for Law and the CaseHOLD Datasetcited by 201
  9. 2024SaulLM-7B: A pioneering Large Language Model for Lawcited by 142
  10. 2022Pile of Law: Learning Responsible Data Filtering from the Law and a 256GB Open-Source Legal Datasetcited by 113
  11. 2018CLAUDETTE: an Automated Detector of Potentially Unfair Clauses in Online Terms of Servicecited by 73
  12. 2023MultiLegalPile: A 689GB Multilingual Legal Corpuscited by 60
8 more
  1. 2023LeXFiles and LegalLAMA: Facilitating English Multinational Legal Language Model Developmentcited by 54
  2. 2022Pre-trained Language Models for the Legal Domain: A Case Study on Indian Lawcited by 39
  3. 2023ChatGPT may Pass the Bar Exam soon, but has a Long Way to Go for the LexGLUE benchmarkcited by 33
  4. 2024Evaluating AI for Law: Bridging the Gap with Open-Source Solutionscited by 11
  5. 2024LexSumm and LexT5: Benchmarking and Modeling Legal Summarization Tasks in Englishcited by 8
  6. 2022Agent-Specific Deontic Modality Detection in Legal Languagecited by 7
  7. 2021Legal Transformer Models May Not Always Helpcited by 6
  8. 2025A Survey of Classification Tasks and Approaches for Legal Contractscited by 6

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 2.

2 papers.