Evaluating Customized vs. Generalist Transformer-based Models for Legal Contract Classification
Abstract
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.
Keywords
Cite
@article{arxiv.2508.07849,
title = {Evaluating Customized vs. Generalist Transformer-based Models for Legal Contract Classification},
author = {Amrita Singh and H. Suhan Karaca and Aditya Joshi and Hye-young Paik and Jiaojiao Jiang},
journal= {arXiv preprint arXiv:2508.07849},
year = {2026}
}
Comments
Accepted to Customizable NLP at ACL 2026