Swiss-Judgment-Prediction: A Multilingual Legal Judgment Prediction Benchmark

Joel Niklaus, Ilias Chalkidis, Matthias Stürmer

Introduction

The administrative burden on modern court systems often leads to significant delays in the delivery of justice. Artificial Intelligence, specifically Natural Language Processing (NLP), offers a potential solution by assisting legal professionals in predicting case outcomes or prioritizing workloads. However, the development of such tools has been hindered by a lack of diverse, multilingual benchmarks and the technical challenges posed by the extreme length of legal documents.

Standard transformer models, such as BERT, are typically limited to processing 512 tokens—roughly equivalent to a single page of text. In contrast, the "facts" sections of legal cases often span several thousand words. This paper introduces the first multilingual benchmark for Legal Judgment Prediction (LJP) based on Swiss Federal Supreme Court cases and explores architectural solutions to the "curse of long documents."

The Swiss-Judgment-Prediction Dataset

The authors present the Swiss-Judgment-Prediction dataset, a comprehensive collection of 85,000 cases from the Federal Supreme Court of Switzerland (FSCS) spanning the years 2000 to 2020. This dataset is uniquely multilingual, comprising 50,000 German (de), 31,000 French (fr), and 4,000 Italian (it) cases.

To facilitate machine learning tasks, complex legal outcomes were simplified into a binary classification: approval (the court agreed with the petitioner) or dismissal (the court rejected the appeal). As shown in the data distribution table below, the dataset exhibits a significant class imbalance, with approximately 75-80% of cases resulting in dismissal across all languages.

Table 1: Dataset splits and class distribution across German, French, and Italian.

Each case is further enriched with metadata, including the publication year, legal area (e.g., civil, penal, social law), and the region of origin, enabling robust evaluation and fairness studies.

Experimental Setup

The research evaluates three distinct BERT-based architectures to determine the most effective way to handle long legal narratives:

  1. Standard BERT: A baseline model limited to the first 512 tokens.
  2. Long BERT: An extension increasing the sequence length to 2,048 tokens by re-initializing positional embeddings.
  3. Hierarchical BERT: A two-tier approach that segments the document into 512-token blocks. Each block is encoded by a shared BERT model, and the resulting representations are aggregated by a Bidirectional LSTM to capture the overall document context.

The study compared Native BERT models (pre-trained on specific languages) against Multilingual BERT to assess the impact of language-specific knowledge.

Results and Discussion

The experiments yielded several key insights into the performance of NLP models in the legal domain:

The Superiority of Hierarchical Architectures

Hierarchical BERT consistently outperformed both standard and "Long" BERT variants. This suggests that for legal reasoning, modeling the relationships between different segments of a narrative is more effective than simply extending the input window of a flat transformer. The best-performing models achieved Macro-F1 scores of approximately 68.5% for German and 70.2% for French.

The "Curse of Long Documents"

A critical finding is the negative correlation between document length and model performance. As the "facts" of a case grow longer and more complex, models find it increasingly difficult to isolate the decisive legal signals.

Figure 1: Model performance (Macro-F1) as a function of document length (token bins).

Domain and Language Variations

  • Legal Areas: Performance varied significantly by domain, with penal law cases proving "easier" to predict than public or civil law. This likely reflects the more unified nature of Swiss penal jurisprudence.
  • Native vs. Multilingual: Native models generally outperformed multilingual ones in high-resource languages (German and French). However, for Italian, the performance gap was smaller, indicating that multilingual models can effectively leverage cross-lingual knowledge when data is scarce.
  • Temporal Stability: Despite the 20-year span of the dataset, model performance remained remarkably stable, suggesting that the core linguistic patterns of the court have not shifted drastically.

Conclusion and Future Directions

While this benchmark represents a significant step forward, several limitations remain. The binary simplification of outcomes does not capture the full nuance of legal rulings. Furthermore, the models currently only analyze the facts of a case to avoid "label leakage" from the court's reasoning.

Future work could involve developing "Legal-BERT" models pre-trained specifically on Swiss legal corpora, exploring multi-label classification to predict specific legal articles, and investigating cross-lingual transfer learning to further improve performance on lower-resource languages like Italian.

Summary updated

BibTeX
@inproceedings{niklaus2021swiss,
  author = {Joel Niklaus and Ilias Chalkidis and Matthias Stürmer},
  title = {{Swiss-Judgment-Prediction: A Multilingual Legal Judgment Prediction Benchmark}},
  booktitle = {NLLP @ EMNLP},
  year = {2021},
  url = {https://openreview.net/forum?id=ui9MgxKT9zG},
}
Figure