PIRB: A Comprehensive Benchmark of Polish Dense and Hybrid Text Retrieval Methods
Paper · 2024 · Slawomir Dadas, Michał Perełkiewicz and Rafał Poświata
Summary
A search system can miss a useful passage because it looks for the wrong words, or because it recognizes the topic but overlooks the particular detail the reader needs. Polish Information Retrieval Benchmark, or PIRB, puts both problems in view. It brings together 41 Polish information retrieval tasks, including 10 new datasets. The collection includes translated benchmarks and existing Polish datasets, along with questions and answers collected from Polish websites and a separate dataset of generated university exam questions. The tasks range from brief search queries to detailed requests for medical or legal advice. Each tests how well a system ranks documents already available in a collection.
The authors compare ways of searching by terms, by dense vectors, and by combining the two. A term-based system can give weight to a particular name or expression. A dense retriever encodes queries and documents as vectors and uses their similarity to rank passages, which gives it a way to recognize relationships beyond term overlap. Among the systems available before the authors' new training procedure, multilingual E5 large leads with an average NDCG@10 of 57.29 across PIRB. NDCG@10 measures the quality of the ordering within the first ten results, giving more credit when relevant documents appear nearer the top.
The authors first train Polish-capable encoders to approximate the vectors an English retriever produces for corresponding texts. They then use labeled Polish retrieval examples to teach the resulting encoders to prefer relevant passages to plausible distractors. Finally, they train a lightweight ranker to combine scores from a dense index and a term-based index. The strongest standalone dense result is 58.06 average NDCG@10, from a distilled and fine-tuned Polish RoBERTa large encoder. Its hybrid with the learned sparse retriever SPLADE reaches 59.23 on the same benchmark.
The averages leave room for different strengths. The new Polish dense retriever wins more frequently on datasets with long average queries, while multilingual E5 large retains an advantage on the PolEval-2022 group of short questions and short passages. The authors also find that hybrid retrieval helps especially when questions contain names or specialized terminology. PIRB therefore offers both a common ranking comparison and a way to examine where the choice of retrieval method changes which passages a reader is likely to see.
Deep dive: PIRB: A Comprehensive Benchmark of Polish Dense and Hybrid Text Retrieval Methods
PIRB tests how well Polish search systems rank relevant passages and shows what English-to-Polish training and hybrid retrieval add. · about 31 minutes to read
The problem and its context
How a search result becomes useful
A retrieval system receives a query and searches a collection for documents that could satisfy it. Many passages can concern the same broad subject, while only some will contain the needed information. A system therefore has to make an ordering decision. An answer hidden below a long series of related passages is harder for a reader to find, and an application that passes on only the first results may miss it entirely. The object of evaluation is the ordering, with relevance judged separately for each query.
The paper places retrieval within applications such as search and question answering. It gives particular attention to retrieval-augmented generation, where a system supplies material from an external collection alongside a user's question. The earlier work the authors discuss motivates that arrangement as a way to make outside knowledge available and reduce unsupported answers. In that arrangement, the search stage determines which material reaches the generator. PIRB isolates this stage by comparing the ranking of documents themselves. Retrieval Augmentation Reduces Hallucination in Conversation
Classical term ranking provides a clear starting point. When an uncommon expression is central to both a query and a passage, that overlap can be strong evidence. BM25 builds on the logic of TF-IDF, balancing evidence from term frequency and term specificity. The paper describes a line of neural ranking research in which learned representations performed better on public benchmarks. A dense representation gives the system a way to bring texts together through semantic similarity, even when their terms differ. The paper also considers learned sparse representations, in which a neural encoder still assigns weights to vocabulary terms. The choice is therefore about the form of the search evidence as well as how it is learned.
Why Polish needed a common test
The authors describe retrieval progress as particularly visible in English and Chinese. Where labeled data is scarce, researchers have less material for supervised training. When evaluation collections are also scarce, they have fewer common tests for judging whether an advance holds across tasks. These are related problems with different consequences. Training examples determine what a system can learn directly. A varied evaluation determines how broadly its measured success extends.
Multilingual retrieval resources had begun to improve the first and second problems. The paper discusses mMARCO, Mr. TyDi and MIRACL. Each covered more than 10 languages, but Polish was absent from all of them. The authors distinguish the availability of multilingual text representations from the availability of retrieval systems tailored to this job. An encoder designed to judge whether two texts are similar, or to identify sentence pairs that translate each other, already supplies a way to compare texts. Searching for a passage that answers a question adds a different relationship between the inputs. A query and its answer may be quite different as pieces of writing while being closely connected for retrieval.
The paper presents multilingual E5 as a change in the available options. Its training first made use of text pairs collected at scale under weak supervision, then used manually annotated data, including material for retrieval. Weak supervision here means the initial pairs could furnish a training signal without each pair having to be manually judged for passage relevance. The later training brought the encoder closer to the intended search task. A multilingual entrant with this kind of training matters to PIRB because Polish-specific systems need to be compared against encoders already designed for retrieval. Text Embeddings by Weakly-Supervised Contrastive Pre-training
Polish resources already offered several starting points. PolQA paired 7,000 manually annotated questions with Wikipedia passages. The PolEval-2022 Passage Retrieval challenge used material from PolQA and broadened the evaluation to legal questions and e-commerce frequently asked questions. BEIR-PL took a different route by translating datasets from BEIR into Polish. MAUPQA assembled question and passage pairs on a larger scale through several methods, including translation and mining from existing material. The paper describes its initial release as containing almost 400,000 pairs and says the expanded collection had grown to over one million.
The authors saw an imbalance between volume and provenance. Automatically collected or translated pairs gave Polish researchers more data, but the paper points to possible noise from mistranslation and the relatively small amount of manually labeled material. Native questions and answers add another source of evidence. Their wording comes from the setting in which the exchange took place, such as a question addressed to a specialist or an explanation published by an editor. Their usefulness as a test comes partly from those differences in how people ask and answer questions.
Retrieval systems released specifically for Polish were also comparatively few. The research around MAUPQA had produced dense retrievers, and the Polish BEIR effort had released rerankers. A reranker works after candidate selection and changes the ordering of the documents it receives. That distinction matters when comparing systems. A good reranker can improve the ordering within its candidate list, whereas the retrieval stage decides what reaches that list. PIRB gives the authors a way to compare independently usable retrievers and to measure what an additional ranking step contributes.
What a varied benchmark can test
The authors want to see whether a system trained with a common set of retrieval examples generalizes to other collections. A benchmark made up of only Wikipedia questions would give evidence about that style of retrieval. It would leave open whether the same system could interpret a long account of a personal situation, identify a term in a specialized domain, or find the explanation paired with a short quiz question. A varied benchmark makes those changes in setting part of the empirical comparison.
This objective also explains the paper's interest in zero-shot retrieval. In the authors' training recipe, the tested systems are adapted using a designated Polish training collection and then evaluated across different tasks. The idea is to measure transfer without separately fitting a retriever to each benchmark dataset. Existing checkpoints can have different training histories, which makes the relationship between their training material and particular evaluation sets important. The paper handles a known instance of this overlap explicitly in its comparison of Silver Retriever.
The method, step by step
Ranking an existing collection
Each retrieval task supplies queries, documents, and links identifying the relevant documents for each query. In the question-and-answer collections, a question takes the role of the query and the recorded answer becomes a relevant document. Where the collection contains several answers for one question, the query can have several relevant documents. Candidates from elsewhere in the collection still compete for places at the top. This turns a collection of associated texts into a ranking test.
The two retrieval branches of the authors' final system represent this collection differently. A dense retriever turns a whole query or document into a vector of numbers. It estimates relevance by comparing the vectors, so the same document representation can be used across many searches. A sparse retriever uses weights tied to terms. Its representation has a place for vocabulary items but only a subset of these has weight for a given text. PIRB's learned sparse system uses subword tokenization, so these terms can be pieces of words.
These branches can nominate different documents. A specialized expression may be a strong signal on the sparse side. A passage using related wording may be easier to find on the dense side. Even when both branches find a passage, its scores and position relative to the other candidates can differ. The final ranking stage learns from those scores and from information about which branches returned a document.
Assembling the evaluation collections
Of the 41 tasks, 31 come from existing data. The authors selected 7 subsets from PolEval-2022 Passage Retrieval. These include the Wikipedia validation split, dev-0, and the domain-specific components of both test-A and test-B. Each test release covers Wikipedia, legal questions, and e-commerce frequently asked questions. The earlier competition training split is distinct from the subsets added to PIRB. PolQA was left out as a separate dataset because much of its material was already represented in the competition data.
BEIR-PL contributes 11 translated datasets. For MAUPQA, the authors selected 12 datasets and avoided including exact copies already represented through BEIR-PL. MAUPQA itself includes data derived in several ways. Besides translation, its creators used generation, transcripts of game shows, and partly structured sources from which questions and answers could be mined. PIRB also includes the Polish portion of MFAQ. That portion contains more than 60,000 question-and-answer pairs drawn from frequently asked question pages. These sources supply different kinds of relevant passages under the same ranking task.
For the new web datasets, the authors sought Polish sites with identifiable question-and-answer sections. They wrote a parser for each site so that the extracted question and answer followed the structure of the original exchange. This matters when the source contains headings, surrounding material, or several answers available for a question. The benchmark should give the retrieval system the intended texts and retain their associations. The posts supply the pairing through their publication context.
The medical advice site abczdrowie and the legal advice site specprawnik were the largest sources among the newly collected web datasets. Users could set out the details of their situation, and registered, verified specialists could answer. The abczdrowie collection has 224,533 queries and 274,687 documents. The average query is 82 words and the average document is 77 words. Specprawnik contains 54,783 queries and 66,832 documents, with averages of 66 words per query and 64 per document. In both collections the reported average number of answers per query is 1.22. These characteristics make the collections examples of retrieval with extended questions and sometimes multiple linked responses.
Editorially managed sources offer a different shape of question and answer. The authors describe sites whose staff review submissions and frequently work with specialists. Such sites commonly offer relatively general questions and longer explanatory articles. In the physics collection zapytajfizyka, there are 1,446 queries, with an average of 50 words per query and 211 per document. In the business collection odi, the average query is 8 words and the average document is 96. These are examples of different lengths on the query and document sides within the newly collected data.
The onet and techpedia datasets came from trivia or quiz material. The authors aimed to keep cases where the answer offered an explanation, and discarded most examples with a very short answer. They also excluded questions whose wording suggested that a picture was needed. This has a direct bearing on the text retrieval task. If crucial clues were only visible in an illustration, the supplied question could fail to identify an otherwise appropriate answer. The resulting tasks measure matching for the retained text-only material.
Cleaning and generating data
The authors use rules and dictionaries to clean the crawled material. They remove email and web addresses through regular expressions, take out special characters, and normalize whitespace. For the anonymization step, they split text into sentences and use lemmatization, which reduces inflected words to dictionary forms. They then look for names, surnames and words that indicate contact details, and remove sentences the dictionaries flag. This use of lemmatization is separate from the use of a Polish analyzer for BM25.
Other rules remove greetings and sign-offs at the edges of questions and answers. In datasets with numbered questions, the pipeline strips the leading number. It removes questions under 10 characters and answers under 50 characters, except that answers from abczdrowie and specprawnik must contain at least 200 characters. The authors also exclude unanswered questions. These choices determine which items enter the evaluation. Very short answers can depend heavily on the question for their meaning, while procedural language such as a sign-off can create overlap unrelated to the substance of the question.
The final new dataset, GPT-exams, was made through a separate procedure. The authors prepared a list of 409 university-level courses and asked gpt-3.5-turbo-0613 for 20 sample exam questions for each course. They parsed the responses to separate the questions and removed duplicates. For each remaining question, they supplied its course as context and requested a detailed answer appropriate to that field. The course label was thus involved in writing both the question and the passage paired with it.
The authors manually screened for responses that declined to answer, using characteristic phrases to find them. They report finding less than 10 such refusals in the collection. GPT-exams ends up with 8,131 exam-style question-and-answer pairs. This is a search task over generated material, with each question linked to the answer produced for it. The manual check concerns whether an answer was attempted. The reported procedure allows the benchmark to associate the documents with their questions while leaving factual verification a separate issue.
Establishing the baseline training procedures
For the baselines that the authors train, the data comes from the training split of Polish MS MARCO. BM25 does not need this supervised training. The implementation comes from Anserini and uses its default Polish analyzer, which draws on Morfologik to lemmatize words. In practical terms, the analyzer can match variants through their shared dictionary form. The baseline therefore represents a Polish-aware term-ranking setup.
SPLADE++ also ranks by terms, but learns how much weight to assign to vocabulary entries. Its starting checkpoint is Polish DistilRoBERTa. The authors optimize the part of the network ordinarily used to predict masked language tokens so that its vocabulary-sized output serves search. Because the output concerns vocabulary entries, it can express which terms should carry weight for a query or document. The authors follow the SPLADE++ training procedure and use an ensemble of cross-encoders to mine hard negatives. A hard negative is a distractor that looks sufficiently plausible to give the system a meaningful comparison with a relevant passage. SPLADE v2
A cross-encoder scores the query and the candidate together. Its scores can supervise a retriever that needs separately encoded documents at search time. The authors use scripts from Sentence-Transformers to train dense RoBERTa baselines with two types of supervision. The MSE baseline learns from score margins supplied by a cross-encoder. The MNR baseline learns to rank an associated document ahead of competing documents. Each baseline has a base and a large variant.
The first loss compares the reference margin with the margin predicted by the retriever.
MSE(s(q, d⁺) − s(q, d⁻), ŝ(q, d⁺) − ŝ(q, d⁻))
MSE is mean squared error. Its arguments are the reference margin and the predicted margin. The symbol q stands for the query, d⁺ for its positive or relevant document, and d⁻ for the negative document. The superscripts ⁺ and ⁻ indicate the roles of the documents. s gives the reference similarity from the cross-encoder and ŝ gives the similarity predicted by the trained retriever. Parentheses enclose a function's arguments, and commas separate those arguments. The subtraction signs form a margin in each scoring system. The loss penalizes divergence between those margins, so the student is asked to reproduce how far apart the teacher places the two passages.
The paper writes the Multiple Negatives Ranking loss for a query in a batch as follows.
−ŝ(qᵢ, dᵢ⁺) + log(∑ₖ₌₁, ₖ≠ᵢᴷ e^(ŝ(qᵢ, dₖ⁺))) + log(∑ₖ₌₁ᴷ e^(ŝ(qᵢ, dₖ⁻)))
qᵢ is the query at position i among the K queries in the batch. The index k runs through those positions. dᵢ⁺ is the positive document for qᵢ, and dₖ⁺ and dₖ⁻ are the positive and negative documents associated with query k. As before, ŝ is the retriever's similarity score for a query and document. log takes the logarithm, and e^ means exponentiation with base e, the base of the natural logarithm. ∑ indicates a sum. Its bounds run from k = 1 to K, with k ≠ i excluding the current query's positive in the first sum. The minus sign on the first term rewards a higher score for the matched passage when the loss is minimized. The plus signs add the penalties for high scores on other queries' positives and on the explicit negatives. Parentheses group function arguments and exponents, and commas distinguish the arguments or index conditions.
The in-batch comparison gives documents a second role. A passage paired with its own query can serve as a competing passage for another query in the same batch. Hard negatives supplement these competitors with selected distractors. This is contrastive training because the signal comes from comparing what belongs with a query to what should score lower.
The dense baselines use mean pooling, which averages the token representations into a vector for the text, and cosine similarity, which measures agreement in the direction of two vectors. The authors retain the scripts' default settings except for reducing the batch size from 64 to 32 for the large encoders. The baselines train for 10 epochs, meaning passes through the training data. The learning rate warms up over the first 1,000 batches to a peak of 2e−5 and then decays linearly. These baseline settings matter when interpreting comparisons to the later recipe, which changes how the training is run.
Transferring the English encoder's representations
The authors' recipe starts with knowledge distillation. An English teacher supplies the target representation. A Polish-capable student reads the corresponding Polish text and is trained to approximate that vector. The example in the paper's diagram pairs a short English greeting with its Polish equivalent. The same idea applies to longer matched texts. The teacher gives the student a target in a numerical space, which allows learning even when the texts have no search relevance judgments.
From bilingual training to hybrid Polish retrieval
The steps in order.
The English teachers come from FlagEmbedding. The students start from Polish RoBERTa or multilingual E5 checkpoints, both already capable of processing Polish. This is a transfer between trained encoders. The teacher processes the English side and the student processes the Polish side. Mean squared error penalizes differences between the resulting vectors. Though the baseline margin objective also uses mean squared error, its target is a difference between retrieval scores. Here the target is the teacher's representation of a matching text.
The authors assembled a bilingual corpus with over 60 million text pairs. The OPUS contribution provides sentences and other short texts. The longer material includes aligned paragraphs from several sources, among them PELCRA, DGT and Wikipedia, alongside bilingual scientific abstracts. The authors also collected over 2 million English questions from Common Crawl and question-answering collections and translated them into Polish. The mixture gives distillation both short and extended inputs, including texts with the form of a question. DGT-TM
The training signal assumes that the two sides correspond. When a pair is poorly aligned, matching the vectors would encourage the Polish encoder to approximate the representation of a different text. The authors therefore use LaBSE to screen pairs and discard those with a similarity below 0.7. This uses a multilingual sentence encoder as a filter before the teacher supplies targets. The cutoff identifies pairs accepted by that screening procedure. Language-agnostic BERT Sentence Embedding
Distillation uses a batch size of 32. Small and base encoders train for 3 epochs, and large encoders for 2 epochs. The learning rate scheduler uses a warmup of 10,000 steps and linear decay. The paper evaluates the resulting encoders before they receive the Polish retrieval supervision. That intermediate measurement shows the ranking behavior of the transferred representations at the point where the first stage ends.
Adapting the encoder to Polish retrieval
The second stage applies supervised fine-tuning on the training split of Polish MS MARCO. A passage can answer a query without being equivalent to it, so the objective changes from representing translations similarly to ranking appropriate documents above competitors. As in the MNR baseline, the authors use in-batch negatives alongside hard negatives.
They set the temperature to 0.01. The temperature controls the scale of scores entering the contrastive loss and thus how strongly the objective responds to differences among them. The batch sizes are 288 for small encoders, 192 for base encoders and 72 for large encoders. With in-batch negatives, changing batch size also affects how many other passages are available for comparison at a training step. Each encoder is fine-tuned for 50,000 steps. The learning rate warms up for 1,000 steps to a peak of 2e−6 and then declines linearly.
The authors run this training both on encoders they have distilled and on the original multilingual E5 checkpoints. This adds a comparison to the sequence of intermediate results. Within an E5 size, a reader can compare the path that starts with the original checkpoint and the path that first undergoes English-to-Polish distillation. The Polish RoBERTa variants put another kind of starting checkpoint through the distillation and fine-tuning sequence.
Combining retrieval scores
The final stage starts with the candidates from the dense and sparse indexes. A simple weighted average is possible, but the authors point out that the two indexes return scores on different scales. A weight that works for one dataset can give a poor balance on another. A reranker that reads the query and passage jointly has more information available, at the cost of scoring those text pairs separately. The authors instead train a ranker that works with the scores already produced by the indexes.
For each candidate, each index contributes the candidate's score, the highest and lowest score in that index's returned list for the query, and an indicator of whether the candidate was returned by that index. If the index did not return the candidate, all four inputs for that index are 0. The indicator gives the ranker an explicit signal about which retrieval branch supplied the document. The minimum and maximum give it query-specific context for interpreting a candidate's score. They let it learn from the position of that score within the range without requiring the two indexes to share units.
The authors train the ranker on the Polish MS MARCO training split. They use pairwise LambdaMART through XGBRanker in XGBoost. Pairwise ranking learns an ordering preference between candidates for the same query, and the algorithm used here optimizes NDCG. The ranker uses 100 boosted trees, a maximum depth of 6, a sub-sampling ratio of 0.75, and column sub-sampling by tree of 0.9. At search time it gives each candidate a new score based on the supplied features, and the system sorts the candidates on those scores.
The authors try both BM25 and SPLADE as the sparse component. Their hybrids therefore share the general method of combining results while differing in where the term-based evidence comes from. The paper makes PIRB, its experimental code, and the trained checkpoints publicly available. It also releases the web preprocessing script and its dictionaries and dataset settings.
Experiments and results
What the numbers measure
The paper's main measure is normalized discounted cumulative gain at rank 10, written as NDCG@10. It credits relevant documents within the first ten positions and gives more credit for results nearer the top. The normalization compares a ranking with the ideal ordering for that query. This is useful when queries differ in how many answers they have. A measure focused only on the first result would miss changes among the other leading results, whereas NDCG@10 can reflect several relevant passages moving up or down the list.
The headline averages summarize the 41 tasks. The paper also reports averages by group, so that a reader can compare, for instance, performance on the native web material and on the translated BEIR-PL datasets. One additional average covers the 29 tasks remaining after MAUPQA is excluded. Silver Retriever had trained on MAUPQA material, so the authors report its reduced-benchmark average as the appropriate broad comparison. The appendix also considers NNDCG@10, MRR@10, Recall@100 and Accuracy@1. These accompany the main ranking metric, with MRR@10 focusing on the first relevant result, Recall@100 on how much relevant material is retrieved within that cutoff, and Accuracy@1 on the first position.
What the baseline comparison establishes
The reported baselines cover classical term ranking, learned sparse ranking, and dense encoders. The paper tested more than 20 publicly available dense encoders, including Polish and multilingual models, and centers its main comparison of available systems on those that outperformed BM25. The fuller public ranking also contains the other evaluated retrievers and individual dataset results. Besides the E5 family, the main comparison includes Silver Retriever and dense systems from the PolEval-2022 competition.
Silver Retriever starts from HerBERT and learns contrastively on MAUPQA with hard negatives obtained using rules and cross-encoders. The paper reports 15,000 training steps with a batch size of 1024 for the released base encoder. The PolEval-2022 dense retrievers use a Polish translation of MS MARCO together with competition training material and negatives drawn using BM25. The E5 family is multilingual and spans small, base and large encoders of 118M, 278M and 560M parameters, respectively. The comparison thus contains variations in training data, specialization, and size. It evaluates finished retrievers, each with its own development history.
Baselines and available retrievers on all PIRB tasks by average NDCG@10
Multilingual E5 large leads this comparison, and learned sparse retrieval scores close to multilingual E5 base.
The numbers
| System or setting | NDCG@10 |
|---|---|
| BM25 | 41.85 |
| MNR baseline base | 46.44 |
| MSE baseline large | 49.98 |
| SPLADE++ | 52.93 |
| Multilingual E5 base | 53.12 |
| Multilingual E5 large (this paper) | 57.29 |
BM25 scores 41.85 average NDCG@10 over the full benchmark, while SPLADE++ scores 52.93. The latter's result is close to multilingual E5 base at 53.12. According to the paper, the encoder in SPLADE++ has 82 million parameters, a lower count than that of every dense retriever evaluated. That makes its aggregate score important in its own right. Learned term-based ranking can be a competitive search method here even before its candidates are combined with dense results.
Within the authors' dense baselines, the large Margin-MSE system reaches 49.98 average NDCG@10, compared with 48.63 for large MNR. At base size the ordering goes the other way, with 46.44 for MNR and 45.47 for Margin-MSE. These are comparisons under the baseline training setup. The new recipe also uses contrastive training but changes its settings and, in most cases, the initialization. The baseline standings therefore describe the tested implementations without settling which loss would work best across other training regimes.
The task groups give more detail about the relation between dense and sparse ranking. On the PolEval-2022 group, SPLADE++ scores 58.92 NDCG@10, while E5 base scores 60.16 and E5 large reaches 65.86. On the nine web tasks, SPLADE++ reaches 58.60, ahead of E5 small at 53.82 and near E5 base at 59.09. On BEIR-PL the respective SPLADE++ and E5 base scores are 42.47 and 44.01, with E5 large at 48.99. A close benchmark average can coexist with different group standings because each group brings its own queries and documents.
With MAUPQA removed, Silver Retriever scores 53.61 average NDCG@10 across the 29 tasks. On that same set, SPLADE++ scores 54.06, E5 base 55.08, and E5 large 60.09. Silver Retriever still fares well on particular subsets. Its web-group NDCG@10 is 61.92 and its PolEval-2022 group score is 60.87, whereas its BEIR-PL score is 37.18. This is a case where the group scores show both the strengths of a retriever and the source of a lower overall standing. The reduced average keeps the comparison on a common set without assigning a full benchmark score to Silver Retriever.
How the trained systems fare
Among the standalone dense systems produced by the recipe, the distilled and fine-tuned Polish RoBERTa large reaches 58.06 average NDCG@10. The correspondingly trained E5 large reaches 58.03, while the original E5 large fine-tuned directly on the Polish retrieval data scores 57.44. The comparison therefore includes strong results from two different starting checkpoint families once distillation and retrieval supervision have both been applied.
The combination with a sparse index brings the best scores higher. For the distilled Polish RoBERTa large, the BM25 hybrid reaches 58.82 and the SPLADE hybrid reaches 59.23. For the distilled E5 large, the corresponding scores are 58.84 and 59.22. The best result depends slightly on the sparse branch in this pair of large encoders. The Polish RoBERTa variant leads with SPLADE, while the E5 variant has the higher BM25 hybrid score. Both variants give similar full-benchmark averages under the tested recipe.
Training and hybrid settings for Polish RoBERTa large on PIRB by average NDCG@10
Retrieval fine-tuning improves the distilled encoder, and either sparse index improves the resulting system.
The numbers
| System or setting | NDCG@10 |
|---|---|
| After distillation | 55.62 |
| After retrieval fine-tuning | 58.06 |
| BM25 hybrid | 58.82 |
| SPLADE hybrid (this paper) | 59.23 |
Smaller systems also benefit from the added term-based evidence. The distilled E5 small has a standalone average of 52.25 after fine-tuning and reaches 56.04 with SPLADE. That hybrid scores above the original E5 base fine-tuned directly on Polish MS MARCO, which reaches 54.13 as a standalone retriever. It is also near the distilled and fine-tuned E5 base at 56.01. This comparison concerns the whole search setup. The small dense encoder in the hybrid has a separate sparse index bringing candidates and scores of its own.
There is a corresponding comparison for the original multilingual E5 checkpoints. Starting from original E5 large, the fine-tuned encoder reaches 57.44, its BM25 hybrid 58.47, and its SPLADE hybrid 58.66. At base size, direct fine-tuning gives 54.13, the BM25 hybrid reaches 55.59, and the SPLADE hybrid reaches 56.79. The joint scoring method therefore improves the original multilingual family as well as the distilled systems. Its effect can be examined separately from the choice of how to train the dense component.
What the throughput comparison covers
The authors report timing for aggregating results with up to 200 candidates per query, with up to 100 from each index. With an Intel i7-13700 CPU and an Nvidia RTX 3090 GPU, the machine runs the learned score combiner at roughly 1,500 queries per second. The Transformer reranker used for comparison achieves 2 to 5 queries per second on the same machine, depending on the dataset and the length of the batched passages.
These are measurements of the work done after retrieval in the described configuration. The score combiner operates on candidate scores and list features, while the comparison reranker makes decisions from query and document text. This difference in inputs explains why combining the scores can leave the last stage relatively inexpensive. The quality figures for the hybrids show what the score combiner attains on PIRB. The timing comparison separately shows the cost of its operation relative to the tested text reranker.
What the ablations show
Distillation changes how well fine-tuning works
The closest comparison to switching distillation on and off uses the E5 checkpoints. The authors evaluate each size before retrieval fine-tuning and then run the Polish retrieval training with or without the preceding distillation stage. The resulting pattern is clearer when the intermediate and final measurements are both considered. Distillation can lower the score at the intermediate checkpoint while still leading to a better retriever after supervision.
For E5 small, the original checkpoint starts at 50.65 average NDCG@10 and reaches 51.38 with direct fine-tuning. The small E5 checkpoint distilled from its English teacher starts the fine-tuning stage at 47.64 and finishes at 52.25. The large E5 comparison has the same ordering change. The original begins at 57.29 and reaches 57.44, while the distilled variant begins at 56.00 and finishes at 58.03. The teacher transfer is thus better judged in these cases by the result of the whole training sequence than by retrieval with the intermediate vectors.
Distillation and fine-tuning settings for multilingual E5 large on PIRB by average NDCG@10
The distilled checkpoint starts with a lower score and finishes with the strongest dense result in this comparison.
The numbers
| System or setting | NDCG@10 |
|---|---|
| Original E5 large | 57.29 |
| Original E5 large after fine-tuning | 57.44 |
| Distilled E5 large before fine-tuning | 56.00 |
| Distilled E5 large after fine-tuning (this paper) | 58.03 |
The base E5 comparison differs at the intermediate stage. The distilled version already has 53.56 average NDCG@10, compared with 53.12 for the original checkpoint. After supervised Polish retrieval training, they reach 56.01 and 54.13, respectively. Across these E5 comparisons, the distilled systems finish higher after the same stage of Polish supervision. The table supports the paper's interpretation that the distilled encoders respond better to retrieval fine-tuning. It does not identify a property of the transferred vectors that accounts for the improvement.
The Polish RoBERTa results show how the recipe behaves with another starting family. The base variant reaches 53.60 after distillation and 56.11 after retrieval fine-tuning. The large variant moves from 55.62 to 58.06. The paper reports these variants along the full recipe. The direct fine-tuning baselines offer context, but their hyper-parameters differ. The matched E5 comparison consequently gives the cleaner evidence for the effect of inserting distillation before supervised training.
Changing the sparse branch
The hybrid comparison exposes two decisions. One is whether to add a sparse branch at all. The other is which sparse retriever to use. Within a row of the paper's comparison, the dense encoder is the same, and the BM25 and SPLADE settings show the results with different sources of term evidence. For distilled E5 small, the fine-tuned dense result is 52.25, the BM25 hybrid reaches 54.25, and the SPLADE hybrid reaches 56.04. The stronger sparse component yields the higher hybrid score. The distilled large E5 branch has scores of 58.03 alone, 58.84 with BM25 and 59.22 with SPLADE. The gap between the sparse choices is smaller in that setting.
The paper's error analysis gives these aggregate gains a more concrete setting. The authors report that questions with named entities or specialized terms are especially likely to benefit from a hybrid. Such wording can identify a document even when many other passages concern the same subject. A sparse index can help the system retain that evidence alongside a dense judgment about overall relevance. This is an observed error pattern. Because the comparison adds both candidates and sparse score features, it leaves open how much of each gain comes from a newly retrieved document and how much comes from changing the order of documents the dense branch had already found.
The authors also see improvements on task groups where their standalone retrievers had been weaker or comparable to original E5, particularly PolEval-2022 and MAUPQA. They report small differences for the other groups. The observed gains therefore vary with the evaluation setting as well as the size of the dense encoder. The group results give some indication of where sparse evidence helps the tested system recover from weaknesses that remain after fine-tuning.
Where the strongest dense systems differ
The authors compare their distilled and fine-tuned Polish RoBERTa large with original multilingual E5 large. They put datasets into groups by average query length, using less than 10 words for short, 10-20 words for medium and more than 20 words for long. The Polish retriever beats E5 on 53% of the short-query datasets, 50% of the medium-query datasets and 83% of the long-query datasets. Each percentage counts datasets on which it comes out ahead. It does not express the average gain in ranking score, or the chance that a single query of that length will benefit.
The dataset comparisons also show why length alone is an incomplete account. The authors identify PolEval-2022 as the only task group where E5 does substantially better. Its datasets have a similar structure, with short natural questions and relatively short passages, below 50 words. Yet the Polish encoder does better on several BEIR-PL tasks with short search queries, including MS MARCO, NFCorpus and DBPedia. The short-query comparison therefore encompasses requests written for different settings and paired with different kinds of documents.
The authors further report that E5 tends to be as good as or better than their encoder on trivia-like datasets, while the Polish encoder does better on specialized domains. The web and BEIR-PL groups give examples of its advantage across more varied tasks. These findings describe where the systems' rankings differ. Since the topic, query style, answer length and source change together across datasets, the comparisons do not establish which individual characteristic causes the advantage.
Limitations
Limits the authors identify
The authors point out that much of the available Polish retrieval data was made automatically, especially by translation, and that errors in translation can introduce noise. PIRB adds questions and answers originally written in Polish, but retains translated and automatically assembled collections because they broaden the available tasks. Results on the full benchmark therefore combine several kinds of source material. The group scores help distinguish success on translated benchmarks from success on the newly collected web questions.
The paper also identifies a concrete limit to comparing Silver Retriever across the full benchmark. Its training incorporated MAUPQA data, so treating its MAUPQA ranking as an independent test would be unreliable. The authors give scores without that group for comparison. This illustrates how a generalization result depends on the relation between a retriever's training data and the evaluation collection. Inclusion in a common benchmark cannot on its own establish that an example is new to every system tested.
The authors characterize abczdrowie and specprawnik as requiring especially intensive cleaning. They give those sources a higher answer-length threshold because the raw material is noisier. The rules reduce some readily identifiable problems and change the population of questions and answers under evaluation. The sites contribute examples of how people ask specialists for help, as represented by the exchanges that satisfy the filtering procedure.
The paper identifies a practical constraint on simple fusion as well. Sparse and dense scores need not be comparable across datasets, which makes a fixed weighted average difficult to tune for general use. This motivates the features and supervised ranker they propose. The empirical comparisons report how that ranker behaves with the two sparse branches. They leave the relative performance of different fixed weighting schemes open.
Limits visible in the setup
A recorded question-and-answer association is a practical relevance judgment. It can identify the published response to a question without requiring a person to search and judge every passage in the collection. Other passages may also answer the question, particularly for common topics or recurring requests. The web datasets' construction does not establish exhaustive relevance judgments for all those alternatives. An encoder might retrieve a useful passage that has no recorded link to the query, while the benchmark gives explicit credit according to the associations it has.
The native web data covers particular sites and types of interaction. Even within the selected sites, the cleaning rules remove unanswered questions, very short texts, and certain image-dependent questions. This makes the test more consistent as text retrieval, while focusing it on the resulting subset. The performance of the retrievers on very brief answers or on questions that require visual evidence remains outside what those tasks demonstrate.
GPT-exams has a separate source of uncertainty. Its relevance associations come from asking the same service to generate questions and produce answers conditioned on them. The authors remove clear refusals but do not describe independently checking the factual accuracy of all answers. The resulting task can test whether a system finds the generated response that belongs with a question. A high ranking score on the task cannot establish that the response would meet a university examiner's expectations, or that the generated prose resembles the kinds of source passages a student would encounter elsewhere.
The training-stage comparison gives its clearest evidence for the tested English teachers, Polish-capable students, bilingual corpus and Polish MS MARCO supervision. The paper varies the student family and size and supplies an E5 comparison without distillation. It does not isolate the contributions of the corpus sources, the bilingual filtering threshold, or the different fine-tuning settings. The margin and ranking baselines also use a different training schedule. The evidence supports the combined recipe under the tested conditions, with the matched E5 branches providing a narrower view of what distillation adds.
The fusion ranker can act only on passages returned by at least one index. It uses scores, ranges and indicators, so its reported benefit cannot establish how it would handle a relevance distinction visible only by rereading the document. The throughput result describes aggregation with a specified candidate budget on one machine. It leaves the operating costs of the whole search pipeline, including serving the two indexes and obtaining their candidate lists, outside the reported measurement. Nor does the speed comparison itself establish how the score combiner and the text reranker compare in ranking quality.
Finally, PIRB tests the ranking stage even though the paper motivates retrieval in part through downstream generation. A higher NDCG@10 shows that relevant passages appear in better positions under the benchmark's judgments. Whether an application uses those passages to answer more accurately would depend on which passages it receives and what it does with them. The paper's evidence for Polish search is therefore direct, while the downstream consequences remain unmeasured.
What came after
The later citations place PIRB in work on multilingual retrieval, Polish text embeddings and Polish question-and-response data. They establish connections to those research areas. The precise form of reuse is unspecified, including whether any particular PIRB dataset, score or trained retriever was used in an experiment.
mGTE concerns long-context text representation and reranking for multilingual retrieval. Its subject connects to two decisions PIRB makes explicit. One is how to represent text for the initial search, and the other is how to reorder candidates after that search. PIRB examines those decisions in Polish and includes tasks whose questions and passages differ considerably in length. The citation links this language-specific evaluation to work with a multilingual scope. It does not establish a direct comparison between the systems or measure whether expanding the available context would improve a particular PIRB task.
PL-MTEB takes Polish text embeddings as its benchmark subject. PIRB treats passage retrieval as a concrete use of such representations. Its dense experiments compare encoders on whether their vectors help put relevant documents near the top of a ranking, and the group results show how performance varies across retrieval settings. PL-MTEB's citation connects that work to an evaluation effort organized around Polish embeddings. The citation alone leaves the selection and treatment of any inherited retrieval tasks unspecified.
POLAR concerns questions, responses and argumentation in Polish political radio discourse. Its overlap with PIRB lies in question-and-response resources for Polish. PIRB turns recorded questions and answers into searches over passage collections. POLAR's title identifies a different setting for questions and responses and an interest in their argumentative role. The citation connects PIRB to work on Polish data in that setting, without specifying a replication of the ranking experiment or a transfer of the hybrid method.
Cite
Cite as Slawomir Dadas, Michał Perełkiewicz and Rafał Poświata. 2024. PIRB: A Comprehensive Benchmark of Polish Dense and Hybrid Text Retrieval Methods. Proceedings of the 2024 Joint International Conference on Computational Linguistics, Language Resources and Evaluation (LREC-COLING 2024).
@inproceedings{dadas2024pirb,
title = {{PIRB: A Comprehensive Benchmark of Polish Dense and Hybrid Text Retrieval Methods}},
author = {Slawomir Dadas, Michał Perełkiewicz and Rafał Poświata},
booktitle = {Proceedings of the 2024 Joint International Conference on Computational Linguistics, Language Resources and Evaluation (LREC-COLING 2024)},
year = {2024},
url = {https://aclanthology.org/2024.lrec-main.1117/}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/dadas-2024-pirb-comprehensive-benchmark-polish-dense/