PIRB: A Comprehensive Benchmark of Polish Dense and Hybrid Text Retrieval Methods

Slawomir Dadas, Michal Perelkiewicz, Rafal Poswiata · DOI

Introduction

In the current landscape of Information Retrieval (IR), Large Language Models (LLMs) and Retrieval-Augmented Generation (RAG) have set new standards for how users interact with information. However, progress in these fields is heavily dependent on the availability of high-quality, annotated datasets and standardized benchmarks. While English and Chinese have benefited from extensive research and data abundance, languages like Polish have historically faced a "data desert." This lack of resources has forced developers to rely on general-purpose multilingual models that often struggle with the specific linguistic nuances, legal terminology, and medical jargon unique to the Polish context.

To address this gap, this paper introduces PIRB (Polish Information Retrieval Benchmark), the first comprehensive evaluation suite for Polish text retrieval. Alongside the benchmark, the authors present a high-performance pipeline for developing Polish-specific retrievers that outperform existing state-of-the-art multilingual solutions.

The PIRB Benchmark

The PIRB benchmark is designed to provide a rigorous and diverse evaluation of retrieval models across 41 distinct tasks. These tasks are categorized into three primary groups:

  1. Pre-existing Datasets (31 tasks): This includes Polish translations of the widely used BEIR benchmark (BEIR-PL), PolEval-2022, and the MAUPQA collection. These provide a baseline for comparison with existing literature.
  2. New Web Datasets (9 tasks): To capture real-world complexity, the authors curated human-written Q&A data from various Polish domains, including medicine (abczdrowie), law (e-prawnik), physics, and business.
  3. GPT-exams (1 task): A semi-automatically generated dataset featuring over 8,000 exam-style questions spanning more than 400 university-level subjects, testing the models' ability to handle academic and technical queries.

Methodology: Building a Polish Retriever

The authors propose a three-stage pipeline to bridge the performance gap between language-specific and general multilingual models.

1. Knowledge Distillation

Recognizing that English-only models often possess superior semantic understanding due to the scale of their training data, the authors employ a "teacher-student" distillation approach. A high-performing English encoder (FlagEmbedding) serves as the teacher, while a Polish-supporting model (such as RoBERTa or multilingual E5) acts as the student. By training on a massive bilingual corpus of 60 million pairs, the student model learns to map Polish sentences into the same semantic space as the English teacher, effectively inheriting its sophisticated representation capabilities.

2. Supervised Fine-tuning

Following distillation, the model undergoes supervised fine-tuning on a Polish version of the MS MARCO dataset. Using contrastive loss, the model is trained to distinguish between relevant documents and irrelevant "hard negatives" for specific queries, sharpening its ability to perform precise retrieval.

3. Hybrid Rescoring

To maximize accuracy, the authors implement a hybrid retrieval strategy that combines the strengths of dense retrieval (semantic meaning) and sparse retrieval (keyword matching, such as BM25 or SPLADE).

Rather than using computationally expensive Transformer-based rerankers, the authors utilize a lightweight LambdaMART model (implemented via XGBoost). This model rescores the top results from both dense and sparse methods. This approach provides the "best of both worlds"—the semantic depth of neural models and the precision of keyword matching—while maintaining high throughput.

Key Insights and Results

The experimental results demonstrate significant improvements over existing benchmarks:

  • State-of-the-Art Performance: The distilled and fine-tuned polish-roberta-large-v2 achieved an average NDCG@10 of 58.06, surpassing the previous leader, multilingual-e5-large (57.29).
  • The Hybrid Advantage: Integrating the hybrid rescoring step with SPLADE further increased performance to 59.23 NDCG@10. This confirms that keyword-based signals remain crucial for queries involving technical jargon or named entities.
  • Efficiency at Scale: A major contribution of this work is the focus on deployment efficiency. The XGBoost-based rescorer achieved a throughput of 1,500 queries per second, whereas traditional Transformer-based rerankers often struggle to exceed 5 queries per second on similar hardware.
  • Cross-Domain Robustness: The specialized Polish models showed superior zero-shot generalization in technical domains like law and medicine compared to general-purpose multilingual models, highlighting the value of language-specific distillation.

Conclusion and Future Work

PIRB establishes a new standard for Polish Information Retrieval, providing both the data and the methodology needed to build high-performance systems. While the current work focuses on base and large-scale encoders, future research may explore how these distillation techniques scale to multi-billion parameter models. Additionally, addressing the noise in machine-translated datasets and extending the benchmark to include long-context retrieval tasks remain important avenues for the evolution of Polish IR.

Summary updated

BibTeX
@inproceedings{dadas2024pirb,
  author = {Slawomir Dadas and Michal Perelkiewicz and Rafal Poswiata},
  title = {{PIRB: A Comprehensive Benchmark of Polish Dense and Hybrid Text Retrieval Methods}},
  booktitle = {International Conference on Computational Linguistics},
  year = {2024},
  url = {https://openreview.net/forum?id=VCK6CIkekD},
}
Figure