EUROPA: A Legal Multilingual Keyphrase Generation Dataset

Olivier Salaün, Frédéric Piedboeuf, Guillaume Le Berre, David Alfonso-Hermelo, Philippe Langlais · DOI

Introduction

Legal professionals are increasingly overwhelmed by the sheer volume and complexity of judicial documentation. While researchers in STEM fields have long benefited from automated tools for indexing and summarization, the legal domain has historically lagged behind, particularly for languages other than English. This gap is addressed by researchers from the Université de Montréal with the introduction of EUROPA, a massive multilingual dataset designed to train and evaluate AI models in generating keyphrases for legal judgments across 24 languages.

Keyphrase Generation (KPG) is the task of identifying or creating short phrases that encapsulate the core topics of a document. In the AI field, this is approached in two ways: extraction (identifying phrases already present in the text) and generation (creating abstractive labels that describe concepts not explicitly mentioned).

Legal documents present three primary hurdles for standard NLP models:

  1. Length and Structure: Judgments are exceptionally long and follow rigid, specialized formatting.
  2. Legalese: The terminology is highly specific and varies significantly across jurisdictions.
  3. The "Absent" Keyphrase Problem: Many critical legal concepts are abstractive; the specific keyphrase used to categorize a case often does not appear verbatim in the text of the judgment.

The EUROPA Dataset

The EUROPA dataset serves as the first open-access benchmark for multilingual KPG in the legal domain.

  • Source: The dataset is derived from legal judgments of the Court of Justice of the European Union (CJEU).
  • Scale: It contains 284,957 instances extracted from over 17,000 judgments.
  • Multilingualism: It covers all 24 official EU languages, including less-represented languages such as Irish, Maltese, and Croatian.
  • Abstractive Nature: Over 52% of the target keyphrases in the dataset are "absent," requiring models to move beyond simple copy-pasting to true conceptual reasoning.

Methodology

The researchers framed keyphrase generation as a sequence-to-sequence task. They benchmarked several state-of-the-art multilingual models to establish performance baselines:

  • mT5: A massively multilingual variant of Google’s T5 model.
  • mBART50: A multilingual version of Facebook’s BART model.
  • mBART50-8k: A specialized variant developed by the authors. Standard transformer models are typically limited to a context window of 1,024 tokens. By utilizing Local Sparse Global (LSG) attention, the authors extended the model’s context window to 8,192 tokens, allowing the model to "read" the entirety of long legal rulings.

Additionally, the team compared two data-splitting strategies: Random splits (the standard machine learning approach) and Chronological splits (training on historical cases and testing on more recent ones) to test the models' robustness against evolving legal language.

Key Insights and Results

The Importance of Context

The experiments demonstrated that context length is critical in the legal domain. The mBART50-8k model significantly outperformed its standard counterparts. Because essential legal details are often distributed throughout a lengthy document, the expanded 8,000-token window allowed the model to capture long-distance dependencies that shorter-window models missed.

Temporal Concept Drift

A significant finding was the impact of the data split. Models performed notably worse on chronological splits compared to random splits. This suggests a "temporal trap" where models rely on specific linguistic patterns of a certain era. When faced with newer cases involving evolving legal concepts, performance drops, highlighting the challenge of "concept drift" in legal AI.

Model Performance

  • Top Performer: mBART50-8k achieved a weighted average F1@M score of 29.3% for present keyphrases and 7.4% for absent ones.
  • mBART vs. mT5: Despite mT5 supporting a wider array of languages, mBART50 variants generally performed better. This suggests that mBART's pre-training data may be more aligned with the formal structure of legal prose.
  • The Complexity of Noun Phrases: Models struggled with highly specific, technical noun phrases (e.g., "Market for antidepressant medicines (citalopram)"). While 1-3 word phrases were handled relatively well, complex legal terminology remains a significant challenge.

Conclusion and Future Work

The EUROPA dataset represents a major step forward in making legal documentation more accessible and searchable across the European Union. However, the researchers noted two primary limitations: the data imbalance caused by some countries joining the EU later (resulting in less training data for certain languages) and the high computational cost of processing 8,000+ tokens.

Future research will likely focus on more efficient attention mechanisms and strategies to mitigate the data scarcity in under-represented languages. The dataset and evaluation scripts have been made publicly available on Hugging Face to encourage further innovation in the field of legal NLP.

Summary updated

BibTeX
@inproceedings{salaun2024europa,
  author = {Olivier Salaün and Frédéric Piedboeuf and Guillaume Le Berre and David Alfonso-Hermelo and Philippe Langlais},
  title = {{EUROPA: A Legal Multilingual Keyphrase Generation Dataset}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.acl-long.687},
}
Figure