TL;DR
LEPISZCZE is a new, comprehensive NLP benchmark for the Polish language that addresses the limitations of previous frameworks by introducing more diverse tasks, a modern API, and rigorous tracking of computational costs. It provides a blueprint for evaluating low-resource languages, moving beyond simple classification to include complex sequence tagging and legal-domain challenges.
The Resource Gap in NLP Evaluation
In the world of Natural Language Processing (NLP), English and Mandarin Chinese are the "resource-rich" giants, boasting dozens of standardized benchmarks like GLUE or SuperGLUE. Other languages, including Polish (spoken by nearly 40 million people), have historically been "low-resourced" in terms of evaluation tools.
The previous standard for Polish, the KLEJ benchmark, had several issues: it was "stale" (no new datasets since 2020), featured only a handful of tasks, and some of those tasks were ill-defined (for example, treating Named Entity Recognition as a simple classification task rather than sequence tagging). Furthermore, machine learning suffers from a "reproducibility crisis" due to poor code quality and inconsistent hyper-parameter selection. The authors of LEPISZCZE set out to create a flexible, reproducible, and more difficult testing ground for Polish language models.
Methods: Operationalization and Flexibility
The authors designed LEPISZCZE with a focus on rigorous operationalization and flexibility. Key technical choices include:
- Unified API: The benchmark is integrated with the HuggingFace Datasets ecosystem, making it easy for researchers to load data and submit models.
- MLOps Integration: They utilized tools like DVC (Data Version Control) for dataset versioning and Weights & Biases for model tracking, ensuring every experiment is reproducible.
- Holistic Evaluation: Instead of a single score, they calculate multiple metrics (F1, precision, recall, accuracy) and—crucially—track "externalities" like completion time and computational costs (carbon footprint).
- Automated Tuning: They used the Optuna framework for hyper-parameter search (HPS) to ensure that models are compared fairly at their best possible configurations.
Datasets and Experiments
LEPISZCZE includes 13 distinct experiments (task/dataset pairs). While it incorporates five datasets from the older KLEJ benchmark (like sentiment analysis and paraphrase detection), it adds eight novel or improved datasets:
- PAC (Polish Abusive Clauses): A legal-domain dataset for detecting "unfair" terms in consumer contracts.
- KPWr-NER & NKJP POS: Proper sequence tagging tasks for Named Entities (82 classes!) and Part-of-Speech tagging.
- AspectEmo: Aspect-based sentiment analysis (e.g., identifying sentiment toward specific features of a product).
- DiaBiz.Kom: A dataset of transcribed call center conversations for dialogue act classification.
- Political Advertising: Detecting specific categories of political tweets.
- Punctuation Restoration: A challenging task involving restoring punctuation to unformatted text.
Key Insights and Results
The authors benchmarked five state-of-the-art models, including HerBERT and PolBERT, yielding several critical insights:
- Diversity Trumps Openness: The authors argue that including "closed" or proprietary datasets (like the DiaBiz call center data) is worth the trade-off. Even if the data isn't fully public, it provides a vital test of how models handle infrequent, real-world domain data that isn't found in Wikipedia.
- The Monolingual Advantage: The results confirm that monolingual models (trained specifically on Polish) significantly outperform massive multilingual models like XLM-RoBERTa, especially on complex sequence tagging tasks where the gap can be as large as 70%.
- Sequence Tagging is the Real Test: While most models score above 80% on simple text classification (reaching near-human performance on tasks like the Polish Summaries Corpus with ~98% F1), they struggle immensely with sequence tagging. On tasks like Punctuation Restoration or AspectEmo, F1 scores often hover between 39% and 46%. This highlights where the next generation of Polish LMs needs to improve.
- Top Performer: HerBERT-large emerged as the overall winner with the best mean rank (1.62) across all tasks.
- Benchmark Difficulty: By introducing more "out-of-domain" tests, the authors showed that current models are still quite brittle when the context shifts.
Limitations and Future Work
The authors acknowledge a few gaps in this initial release:
- Human Baselines: There are currently no "gold standard" human scores to compare against the models.
- Static Splits: The current version uses predefined data splits; future versions will implement multiple random splits to prevent models from "overfitting" to the benchmark itself.
- Generative Tasks: The current benchmark focuses on Natural Language Understanding (NLU). Future updates aim to include Natural Language Generation (NLG) tasks like summarization and translation.
Reference: Augustyniak, Ł., et al. (2022). This is the way: designing and compiling LEPISZCZE, a comprehensive NLP benchmark for Polish. 36th Conference on Neural Information Processing Systems (NeurIPS 2022).
Summary updated