[Paper Review] Legal Area Classification: A Comparative Study of Text Classifiers on Singapore Supreme Court Judgments
This study evaluates state-of-the-art NLP models—including BERT, word embeddings, and LSA—against traditional statistical models for classifying Singapore Supreme Court judgments into 31 legal areas. Despite the dominance of deep learning in NLP, LSA-based models outperformed neural networks on precision, while BERT and GloVe-CNN achieved stronger recall, highlighting the need for domain-specific fine-tuning of large models on long legal texts.
This paper conducts a comparative study on the performance of various machine learning (``ML'') approaches for classifying judgments into legal areas. Using a novel dataset of 6,227 Singapore Supreme Court judgments, we investigate how state-of-the-art NLP methods compare against traditional statistical models when applied to a legal corpus that comprised few but lengthy documents. All approaches tested, including topic model, word embedding, and language model-based classifiers, performed well with as little as a few hundred judgments. However, more work needs to be done to optimize state-of-the-art methods for the legal domain.
Motivation & Objective
- To evaluate the performance of modern NLP models against traditional statistical models in classifying Singapore Supreme Court judgments into legal areas.
- To investigate how data scarcity and document length affect the performance of text classifiers in legal NLP.
- To assess whether state-of-the-art deep learning models like BERT and ULMBERT generalize well to legal corpora with few, lengthy judgments.
- To establish a benchmark for legal area classification using a novel dataset of 6,227 Singapore Supreme Court judgments labeled across 31 legal areas.
- To explore the viability of keyword-based baselines as strong competitors in recall-critical legal retrieval tasks.
Proposed method
- The study uses a novel dataset of 6,227 Singapore Supreme Court judgments, manually labeled into 31 common law legal areas.
- Text classification models include traditional approaches (LSA, TF-IDF with linear SVM), word embeddings (GloVe, CNN, average/max pooling), and transformer-based models (BERT-base, BERT-large, ULMBERT).
- Models are trained and evaluated on data subsets of 10%, 50%, and 100% of the full dataset to assess data efficiency.
- Performance is measured using micro- and macro-precision and recall, with a keyword-based baseline (count_25) using a 25-term legal ontology.
- Input length constraints are addressed by truncating or segmenting long judgments for models like BERT that cannot process full-length texts.
- All models are evaluated out-of-the-box without hyperparameter tuning to ensure fair comparison.
Experimental results
Research questions
- RQ1How do state-of-the-art NLP models compare to traditional statistical models in classifying legal judgments into legal areas?
- RQ2To what extent does data scarcity (few thousand labeled judgments) affect the performance of modern deep learning models in legal text classification?
- RQ3How do document length and input length constraints impact the performance of transformer-based models like BERT on legal texts?
- RQ4Can simple keyword-based baselines outperform complex neural models in recall-critical legal retrieval tasks?
- RQ5What role does domain-specific pre-training and fine-tuning play in improving model performance on legal corpora?
Key findings
- LSA-based models achieved the highest macro-precision (80.0%) on the full 100% dataset, outperforming even BERT and GloVe-CNN models.
- On the 10% subset, $glove_{cnn}$ recorded the highest macro-precision (75.3%), but $lsa_{250}$ still ranked second with 74.2%.
- BERT models achieved the best micro- and macro-recall on the 10% and 50% subsets, with $bert_{large}$ reaching 68.5% micro-recall and 61.6% macro-recall on the 100% subset.
- The keyword-based baseline $count_{25}$ outperformed all other models on both micro- and macro-recall across all data subsets, indicating strong baseline performance for recall-focused tasks.
- Despite being out-of-the-box and not fine-tuned, BERT models showed competitive performance with as few as 588 labeled judgments, suggesting potential for data-efficient adaptation.
- ULMBERT showed strong performance on the 10% subset but failed to scale effectively with more data, indicating limitations in data utilization for this model.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.