En bref
Sur un test public de recherche dans la législation belge, nous avons comparé notre recherche par mots avec SPLADE, une méthode publiée qui utilise un modèle de langage neuronal pour choisir et pondérer les mots de recherche, et que nous avons affinée sur les mêmes questions d’entraînement. Laquelle des deux trouve le plus dépend de la question. Sur les 98 questions de test françaises qui ressemblent à une question d’entraînement, notre recherche par mots a trouvé 94,1 % des bons articles parmi les 100 premiers résultats sur BSARD et 94,6 % sur bBSARD français, contre 88,6 % et 88,7 % pour SPLADE. Sur les 124 autres, SPLADE en a trouvé 83,9 % et 83,5 %, contre 74,7 % et 74,6 % pour la nôtre. Sur l’ensemble des 222 questions de test françaises, l’écart entre les deux reste dans la marge d’erreur, et ce résultat est la moyenne des deux groupes.
Rappel à 100 sur BSARD
Questions qui ressemblent à une question d’entraînement (98)
Les autres questions (124)
Toutes les questions de test (222)
L’article demande jusqu’où la recherche par mots peut aller sans recherche vectorielle et sans exécuter de modèle de langage à l’arrivée d’une question. La recherche par mots standard (BM25) trouve 52,3 % des bons articles parmi les 100 premiers résultats sur BSARD. Avec des composants entraînés sur les questions d’entraînement du benchmark, notre recherche par mots atteint 83,3 % sur BSARD, 83,4 % sur bBSARD français et 80,5 % sur bBSARD néerlandais.
Nous l’avons comparée à trois méthodes publiées de la même famille, que nous avons chacune affinée sur les questions d’entraînement du benchmark : SPLADE, DeepImpact et uniCOIL. DeepImpact et uniCOIL atteignent environ 70 % en français. SPLADE atteint 85,9 % sur BSARD et 85,8 % sur bBSARD français sur l’ensemble des questions de test. En néerlandais, notre recherche par mots atteint 80,5 % contre 76,0 % pour SPLADE, qui y lisait des entrées plus courtes parce que l’exécution avec des entrées plus longues a échoué.
Sur les 30 questions de test dont les bons articles ne figurent dans aucune étiquette d’entraînement, SPLADE est en français devant notre recherche par mots de 15 à 18 points, et en néerlandais les deux ne se distinguent pas.
Sur un seul cœur de processeur, notre recherche par mots répond à une question en 50 millisecondes en médiane, à peu près comme un SPLADE optimisé (50 à 60 millisecondes, selon le degré de compression). Parmi les réponses les plus lentes, la nôtre est plus rapide : 57 millisecondes au 95e percentile contre 75 à 84. Notre index est 3,3 fois plus grand et notre système utilise plus de mémoire.
Lequel des deux sert mieux les utilisateurs réels dépend de la fréquence à laquelle leurs questions ressemblent à des questions antérieures. L’article ne l’a pas mesuré.
Ce que l’article ne montre pas
- La comparaison des autres systèmes sur les deux groupes de questions a été faite après la connaissance des résultats de test. Le regroupement utilise un seuil de similarité unique, qui n’a pas été varié.
- Le test n’était pas en aveugle pour notre système. Les questions de test ont été notées plusieurs fois en un jour pendant la construction du système, et les résultats précédents étaient connus lors des choix suivants.
- Une partie de notre système a été entraînée sur 64 questions d’entraînement qui sont des quasi-doublons de questions de validation ou de test. L’ensemble d’entraînement des autres systèmes les excluait, et nous n’avons pas réentraîné sans elles pour mesurer l’effet.
- La comparaison en néerlandais utilise un SPLADE qui lit 256 tokens, parce que l’exécution à 512 tokens a échoué et n’a pas été relancée. DeepImpact et uniCOIL n’ont pas été exécutés en néerlandais.
- Chaque configuration a été exécutée avec une seule graine aléatoire. Les marges d’erreur ne couvrent que l’échantillonnage des questions.
- La tâche est étroite : des articles de loi belges et de courtes questions du public. Les résultats ne disent rien de la jurisprudence, de la doctrine ni des longues questions de professionnels.
Texte intégral de l’article
L’article est en anglais.
Sommaire
- En bref
- Ce que l’article ne montre pas
- Abstract
- 1. Introduction
- 2. Related work
- 3. Task, data and protocol
- 4. Systems
- 5. Results on all test queries
- 6. Training-query similarity and relevance-label overlap
- 7. Supporting results
- 8. Discussion
- 9. Limitations
- 10. Conclusion
- References
- Appendix A. Our lexical retrieval system on the test queries, all metrics
- Appendix B. Baseline runs on the validation queries
- Appendix C. Training curves
- Citer cet article
Abstract
We investigate supervised lexical retrieval on the Belgian Statutory Article Retrieval Dataset (BSARD) and its bilingual extension bBSARD. Our approach combines BM25, lexical enhancements, neural term weighting and supervised query expansion, without dense vector retrieval or language-model inference at query time. We compare it with fine-tuned SPLADE, DeepImpact and uniCOIL.
The comparison with SPLADE depends on whether a test query resembles a training query. On the 98 French test queries that do, our system reaches a recall at 100 (R@100) of 94.1 / 94.6 (BSARD / bBSARD French) against 88.6 / 88.7 for 512-token SPLADE; on the 124 that do not, 74.7 / 74.6 against 83.9 / 83.5 (95% paired bootstrap intervals exclude zero). In Dutch, with a 256-token SPLADE (the 512-token run failed), ours leads in the first group; in the second, R@100 is not separated and ours leads in nDCG@10. DeepImpact and uniCOIL trail in both groups.
Parity on all 222 test queries is thus an average of two opposite results: 83.3 / 83.4 for our system against 85.9 / 85.8 for SPLADE in French, with intervals that include zero for R@100 and for nDCG@10, and 80.5 against 76.0 in Dutch, where ours leads on both metrics. BM25 reaches 52.3 / 51.8 and 42.4; DeepImpact and uniCOIL about 70, level with our term weighter. On the 30 test queries with no relevant article in the training labels, query expansion changes R@100 by -1.3, -2.7 and -15.0 points and nDCG@10 by -8.8, -5.0 and +3.5 (intervals include zero), and French SPLADE reaches 74.2 and 74.5.
Three caveats apply: the similarity split is post hoc; the test set was not blind for our system; and our query-expansion component was trained on 64 near-duplicates of validation or test queries that the baselines' training set excluded.
In a single-threaded CPU benchmark, our median query latency (50 ms) is comparable to that of a partially int8-quantised SPLADE encoder that loses 1.5 points of nDCG@10, and below the float32 encoder's (60 ms). Ours has lower tail latency (57 against 75 to 84 ms at the 95th percentile) and 9.2 against 110.7 million neural-network parameters, but higher peak memory (2.6 against 0.41 to 0.75 GB) and a 3.3 times larger index.
1. Introduction
Statutory article retrieval takes a question posed in everyday language and returns the articles of law that apply to it. It is the first stage of any system that answers legal questions from sources: an article that is not retrieved cannot be cited.
The main difficulty is vocabulary mismatch. Three examples from the training queries, ranked with BM25:
- A question asks whether one may leave all one's property to a goddaughter by will. The article that limits this speaks of libéralités (gifts and bequests) and shares essentially one word with the question. It ranks 147th.
- A Dutch question asks whether a landlord may demand a rental deposit (huurwaarborg) of three months. The article says waarborg. Only the word for the landlord matches; it ranks 551st.
- A question asks whom to contact about a problem with the national employment office, by its abbreviation. The article on bringing the case before the labour tribunal never uses that name and is not retrieved at all.
Dense retrievers learn to match meaning rather than surface form. Lexical retrieval retains three practical advantages: it runs on commodity CPUs, its index can be small, and its matches can be inspected term by term. Learned lexical retrievers, also called learned sparse retrievers, sit in between: a neural model determines the terms and weights under which a document, and sometimes a query, is indexed, while retrieval still runs on an inverted index.
We address three research questions:
- How far can lexical retrieval be improved without dense vector retrieval or language-model inference at query time?
- How does the result compare with learned lexical retrievers built on pretrained transformers and fine-tuned on the same queries?
- How does that comparison depend on the similarity of a test query to the training queries, and on whether its relevant articles occur in the training labels?
The third question matters because in BSARD the training and test queries share most of their relevant articles, and 98 of the 222 test queries resemble a training query. Aggregate retrieval scores may therefore favour methods that exploit recurring associations between queries and relevant articles. That is what we find. Supervised lexical retrieval with query expansion is strongest on the test queries that resemble a training query, where it leads fine-tuned SPLADE, and it falls behind SPLADE in French recall on those that do not. The parity of the two systems on the full test set is an average of these two opposite results.
2. Related work
BSARD (Louis and Spanakis, 2022) pairs French legal questions from Belgian citizens with articles of Belgian codes. Its authors report an R@100 of 51.33 for BM25 and 74.78 for a trained two-tower CamemBERT retriever. bBSARD (Lotfi et al., 2025) adds a parallel Dutch version and compares many retrievers on both languages.
Later work on dense and graph-based methods reports higher R@100 on the original dataset: G-DSR, which represents the hierarchy of the legislation as a graph (84.3; Louis et al., 2023), CuSINeS (84.9; Santosh et al., 2024), and a public repository reporting up to 89.0 with a fine-tuned dense model and re-scoring by legislative structure (Benamar et al., 2026). Published results without a trained dense model are lower: BM25 between 49.3 and 51.5, document expansion with generated queries (docT5query) at 51.7, and BM25 re-scored by legislative structure at 59.5.
Among learned lexical retrievers, DeepCT (Dai and Callan, 2020) learns term weights that replace term frequency. Doc2query (Nogueira et al., 2019) appends generated queries to documents. DeepImpact (Mallia et al., 2021) combines such expansion with a learned impact score for each document term. uniCOIL (Lin and Ma, 2021) weights both document and query terms. SPLADE (Formal et al., 2021) uses the masked-language-model head to weight and expand both sides over the model's vocabulary, with a regulariser that keeps the representations sparse. We found no published results for DeepImpact, uniCOIL or SPLADE on BSARD. Our literature search was not exhaustive, so this statement and the comparison with published results in Section 7.6 may miss recent work.
3. Task, data and protocol
| BSARD (French original) | bBSARD French | bBSARD Dutch | |
|---|---|---|---|
| Articles in the collection | 22,633 | 22,417 | 22,417 |
| Official training queries | 886 | 886 | 886 |
| Test queries | 222 | 222 | 222 |
BSARD and bBSARD French share their query identifiers and texts, and their relevance labels agree on all but one test query; they are therefore not independent results. The Dutch queries are machine translations of the French ones (Lotfi et al., 2025). Queries are short, with a median of 15 words in French and 14 in Dutch (same source). Both datasets are released for non-commercial use (CC BY-NC-SA 4.0).
Split. We divide the 886 official training queries into 587 training queries, used to fit models, and 293 validation queries, used for model selection; 6 are excluded. Queries with identical text stay on the same side of the split. Six training queries and one validation query that also occur in an unrelated held-out evaluation set were held back; the match is on French text, so nothing was held back from the Dutch validation queries. Validation results are therefore reported on 292 queries (293 for Dutch).
Training sets. We call a training query a near-duplicate if its set of words has a Jaccard similarity of at least 0.8 with that of a validation or test query; 64 of the 587 training queries are near-duplicates (only the text of the test queries was read to establish this). One of them is also held back. The components were trained on the following queries.
- Learned baselines (Section 4.2): 518 training queries in each language, after removing the near-duplicates and the held-back queries.
- Term weighter: the near-duplicates were removed, and the held-back queries in French only. After also dropping queries for which the lexical enhancements match no relevant article, 517 French and 518 Dutch training queries remain. One model is trained on both languages.
- Lexical enhancements: the settings were selected on all 587 training queries, and the French query-term weighting was fitted on the 581 that were not held back. Near-duplicates were not removed.
- Supervised query expansion: the association statistics and the term selector, including the cross-validation that set its hyperparameters, used the 581 training queries that were not held back for BSARD and bBSARD French, and all 587 for bBSARD Dutch. Near-duplicates were not removed. The neural term predictors of this component were trained only on outside data (Section 4.1).
The query-expansion component and the lexical enhancements thus used 64 training queries (63 in French) that the baselines and the term weighter did not, each of them a near-duplicate of a validation or test query. By the same criterion, 21 of the 222 French test queries and 18 of the Dutch ones have a near-duplicate among the query-expansion training queries, and none has one among the baselines' 518. This is a potential confounder in favour of our full system. We did not retrain to remove it; the test queries with no similar training query, defined below, are free of it.
Metrics. Recall at cutoff k (R@k, with k = 10, 100 and 200) is the fraction of a query's distinct relevant articles that appear in the top k results, averaged over queries. nDCG@10 and MAP@100 measure ranking quality. A repeated relevant-article identifier counts once; the published bBSARD evaluator divides by the raw number of identifiers. Intervals are 95% paired bootstrap intervals over queries (10,000 resamples).
Unseen-article subset. The unseen-article subset consists of the queries none of whose relevant articles is labelled relevant for any training query. On the test set it contains 30 queries, defined relative to the query-expansion training queries; relative to the baselines' 518 training queries it contains 35, on which 512-token SPLADE leads our full system in French by 18 to 20 points of R@100. On the validation set it contains 30 queries, defined relative to the baselines' 518 training queries. With so few queries, differences of several points can be due to chance.
Similar training query. A test query has a similar training query if its set of words has a Jaccard similarity of at least 0.5 with that of a query-expansion training query. This holds for 98 of the 222 test queries (99 in Dutch) and not for the other 124 (123 in Dutch). The grouping was fixed before the test evaluation of our system; the comparison of the baselines on it was added afterwards (Section 6.1).
4. Systems
4.1 Our lexical retrieval system
The system has four components; each is added to the one before it. Section 3 gives the queries on which each was trained.
1. BM25. Articles and queries are stemmed and stripped of stop words, and articles are ranked with BM25 at default parameters. No relevance labels are used.
2. Lexical enhancements and pseudo-relevance feedback (PRF). Each article is indexed in three fields (text, section headings and the name of its code), combined with BM25F, and a sub-word view of the same fields (character n-grams and, in Dutch, the parts of compounds) is added to the score. The top-ranked articles of a first pass then supply expansion terms for a second (RM3). The settings, and for French a small regression model that weights the words of the query, were fitted on the training queries and their relevance labels.
3. Neural term weighting. The term weighter is a small convolutional and recurrent network that assigns a weight to every word occurrence in an article or a query; the weight replaces the occurrence's count of one in the BM25F term frequency. Its inputs are the characters of the word, a frozen pretrained word embedding, the neighbouring words, and the occurrence's inverse document frequency, term frequency and text length. It is trained end-to-end through the retrieval score, with a softmax ranking loss that contrasts each relevant article of a training query with hard negatives mined from the model's own ranking. Article weights are computed offline and stored in the index; at query time only the words of the query are weighted.
4. Supervised query expansion. Candidate terms that the query does not contain come from three kinds of source: statistics over the training labels (the article terms associated with a query's terms in the relevant articles of training queries, and the terms of the relevant articles of similar training queries); label-free statistics of the collection and of the first-pass results; and term predictors trained on outside data. The term predictors are two neural networks and a co-occurrence table. They are trained on about 16,000 questions from outside the benchmark, each paired with short keyword queries written by a large language model, whose terms they learn to predict from the question. A term selector, a gradient-boosted tree ranker trained on the training queries, orders the candidates by how much each is predicted to improve the ranks of the query's relevant articles. The highest-ranked candidates are matched against the term-weighted index with decreasing weights, and their score is added to that of the query. No language model runs at query time.
Indexing. Each collection is indexed twice, without and with the learned term weights. The full system uses the unweighted index for the first pass and the weighted index for the final ranking.
The term weighter has 93,154 trainable parameters. The full system has 9.2 million neural-network parameters; the other 9.1 million belong to the two neural term predictors. This count excludes the frozen word embeddings and the non-neural learned parts of the system (the association and co-occurrence tables and the term selector).
The outside questions are 15,704 Belgian legal questions in Dutch and French, most of them on tax law: parliamentary questions, questions from public online forums and FAQ pages, other user-submitted questions, and questions generated from legal documents. The pipeline that assembled them excluded any question whose text matched a BSARD or bBSARD training, validation or test query. For this paper we also compared the 15,704 retained questions with the validation and test queries by text alone: there is no exact match, no match after normalisation and no near-duplicate by the criterion of Section 3 (the highest word-set Jaccard similarity is 0.58).
Components 2 to 4 use data beyond the released benchmark: recovered headings for part of the Dutch articles, public pretrained word embeddings, the outside questions, and term statistics from a separate collection of legal texts.
4.2 Learned lexical baselines
All three use pretrained transformers and the same 518 training queries. Long articles are split into at most eight windows, each prefixed with the article's headings; an article's score is the maximum over its windows. The public checkpoints and data are listed below.
| Role | Model or data |
|---|---|
| SPLADE, French, off-the-shelf | sparse-encoder/splade-camembert-base-v2 (fine-tuned further), antoinelouis/splade-max-camembert-base-mmarcoFR |
| SPLADE, Dutch, off-the-shelf | sparse-encoder/splade-robbert-dutch-base-v1 (fine-tuned further), tomaarsen/splade-robbert-dutch-base-marginmsepp |
| SPLADE, both languages, off-the-shelf, documents only | opensearch-project/opensearch-neural-sparse-encoding-multilingual-v1 |
| DeepImpact and uniCOIL encoder | almanach/camembert-base |
| Document expansion | doc2query/msmarco-french-mt5-base-v1 |
| Pretraining triples | translated MS MARCO (unicamp-dl/mmarco; Bonifacio et al., 2021) |
SPLADE. We first evaluate the off-the-shelf models. We then compare input variants (with or without headings, 256 or 512 tokens) for the best monolingual model and fine-tune it. Each query is scored against a relevant article and hard negatives, with the other articles of the batch as further negatives. An epoch is one pass over the 518 training queries, and the hard negatives are re-mined from the model's own ranking before every epoch. Three settings are compared: learning rate 2e-5; 5e-6; and 2e-5 without the sparsity regulariser (otherwise 3e-4 on queries and 1e-4 on documents, increased gradually). Batches hold six queries with three hard negatives each (four queries at 512 tokens), for five epochs at 256 tokens. The best setting is then run again for eight epochs at 512 tokens and, if still improving, for ten epochs at 256. In both languages the 256-token model reported below is the ten-epoch run.
DeepImpact. The doc2query model samples 20 queries for up to two segments of each article; only terms that the article does not already contain are appended. A CamemBERT encoder with a two-layer head assigns one impact score to each distinct stemmed term, and a query scores an article by the sum of the scores of its terms. The model is pretrained on 30,000 batches of 16 translated triples, then fine-tuned for five epochs in two settings (learning rate 2e-5 or 5e-6, ten times higher on the head), at 384 tokens. Expanded, unexpanded and unstemmed inputs are compared before fine-tuning; the expanded input was selected. The use of stemmed terms departs from the original model.
uniCOIL. As DeepImpact, except that the same model also weights the query's terms and each document term takes its highest weight over its occurrences. It was pretrained for 15,000 steps. The unexpanded input was selected, so the fine-tuned uniCOIL adds no terms to articles.
Dutch SPLADE follows the French procedure. Dutch DeepImpact and uniCOIL were not run.
Model selection. All baseline choices were made by mean R@100 on validation queries: the starting checkpoint and the input variant on the mean over the language's collections; the epoch, learning rate and input length on the training collection (BSARD for French, bBSARD Dutch for Dutch). By that rule French SPLADE at 256 tokens was preferred to 512 (82.8 against 82.3). The 512-token model has a markedly higher nDCG@10 on both French collections, and before any test evaluation we designated it the primary French SPLADE result, reporting the 256-token model beside it. For Dutch only the 256-token model is available.
Test evaluation. Models, code and inputs were fixed by file hash before the test file was written. A rehearsal of the same pipeline on validation queries reproduced every stored validation result exactly. The five fine-tuned systems were then evaluated once on the test queries.
Hardware. The baselines ran on one RTX 3070 (8 GB). A SPLADE fine-tuning run took 11 to 26 minutes and the DeepImpact pretraining about 2 hours 25 minutes. Our term weighter processes about 6 million article words per second on an RTX 5090, a faster GPU.
5. Results on all test queries
5.1 All systems on the test queries
R@100 / nDCG@10, 222 queries. The baselines were evaluated once, with models, inputs and the primary result fixed beforehand on validation queries. The first four rows are the results of our system as obtained on 27 November 2026, the day before the baseline test run, during development in which the test set was evaluated several times (Section 9); they were not recomputed.
Notre système complet atteint un R@100 de 83.3 sur BSARD, 83.4 sur bBSARD français et 80.5 sur bBSARD néerlandais ; BM25 atteint 52.3, 51.8 et 42.4. SPLADE, affiné avec 512 tokens, atteint 85.9 et 85.8 sur les deux collections françaises ; son exécution en néerlandais a échoué.
Notre recherche par motsAutres systèmes et exécutions
R@100
nDCG@10
Afficher les chiffres
| System | BSARD | bBSARD French | bBSARD Dutch |
|---|---|---|---|
| BM25 | 52.3 / 22.8 | 51.8 / 22.6 | 42.4 / 17.7 |
| + lexical enhancements and PRF | 65.3 / 28.0 | 64.9 / 28.3 | 61.4 / 20.6 |
| + neural term weighting | 69.3 / 38.8 | 69.5 / 40.0 | 65.9 / 29.8 |
| + supervised query expansion (full system) | 83.3 / 55.8 | 83.4 / 56.8 | 80.5 / 54.4 |
| SPLADE fine-tuned, 512 tokens (primary in French) | 85.9 / 53.3 | 85.8 / 52.8 | not run |
| SPLADE fine-tuned, 256 tokens | 83.4 / 48.2 | 84.1 / 46.3 | 76.0 / 41.5 |
| DeepImpact fine-tuned | 70.0 / 41.5 | 69.6 / 40.3 | not run |
| uniCOIL fine-tuned | 69.8 / 40.5 | 70.3 / 40.9 | not run |
Paired differences, baseline minus our full system, with 95% intervals. The differences are computed per query before rounding, so they can differ by 0.1 from the difference of two rounded scores in the table above (85.9 - 83.3 = 2.6, against +2.7 here).
Pour SPLADE à 512 tokens, les intervalles de l’écart de R@100 contiennent zéro sur les deux collections françaises (+2.7 [-1.2, 6.5] et +2.3 [-1.6, 6.3]) ; pour DeepImpact et uniCOIL, chaque intervalle est inférieur à zéro.
Différenceintervalle à 95 %Zéro
Afficher les chiffres
| Baseline | Metric | BSARD | bBSARD French | bBSARD Dutch |
|---|---|---|---|---|
| SPLADE 512 | R@100 | +2.7 [-1.2, 6.5] | +2.3 [-1.6, 6.3] | not run |
| SPLADE 512 | nDCG@10 | -2.5 [-7.3, 2.5] | -4.1 [-9.0, 0.9] | not run |
| SPLADE 256 | R@100 | +0.1 [-3.8, 3.9] | +0.6 [-3.4, 4.6] | -4.5 [-8.7, -0.4] |
| SPLADE 256 | nDCG@10 | -7.6 [-12.9, -2.3] | -10.6 [-15.9, -5.5] | -12.9 [-17.9, -8.1] |
| DeepImpact | R@100 | -13.3 [-18.3, -8.5] | -13.8 [-18.8, -9.1] | not run |
| DeepImpact | nDCG@10 | -14.3 [-19.7, -9.3] | -16.6 [-22.0, -11.4] | not run |
| uniCOIL | R@100 | -13.5 [-18.5, -8.6] | -13.1 [-18.2, -8.2] | not run |
| uniCOIL | nDCG@10 | -15.3 [-20.6, -10.2] | -16.0 [-21.4, -10.8] | not run |
Between the two French SPLADE models, the 512-token model is above the 256-token one by 2.6 [0.2, 5.0] in R@100 and 5.1 [2.2, 8.1] in nDCG@10 on BSARD, and by 1.7 [-0.7, 4.2] in R@100 and 6.5 [3.4, 9.6] in nDCG@10 on bBSARD French.
These results on all test queries combine two groups of queries on which the comparison with SPLADE goes in opposite directions (Section 6.1).
5.2 Contribution of the learned components (test)
Paired differences in R@100, each component against the system without it:
L’expansion supervisée des requêtes ajoute +14.0, +13.9 et +14.7 points de R@100, avec des intervalles qui commencent à 9.0 ; la pondération neuronale des termes ajoute +3.9, +4.6 et +4.5.
Différenceintervalle à 95 %Zéro
Afficher les chiffres
| Component | BSARD | bBSARD French | bBSARD Dutch |
|---|---|---|---|
| Neural term weighting | +3.9 [0.1, 7.9] | +4.6 [1.0, 8.3] | +4.5 [0.8, 8.1] |
| Supervised query expansion | +14.0 [9.0, 19.3] | +13.9 [9.0, 19.0] | +14.7 [9.0, 20.5] |
The two learned components act differently. Term weighting raises nDCG@10 by 9 to 12 points and R@100 by 4 to 5, so its larger effect is on ranking. On the validation queries, 85 to 88% of the relevant articles in its top 100 are already in the top 100 without it, although the two top-100 lists share only 56 to 57% of their articles. Query expansion raises both metrics by a wide margin.
6. Training-query similarity and relevance-label overlap
6.1 Test queries with and without a similar training query
We split the test queries by whether they have a similar training query (Section 3) and compare the baselines with our full system in each group. The comparison is post hoc: it was made after the training-set asymmetry of Section 3 was identified, from the stored per-query results of the test evaluations, without retrieving or evaluating anything again, and the test set was already not blind for our system (Section 9). The group with no similar training query contains no test query that has a near-duplicate among the query-expansion training queries.
Test queries with a similar training query (n = 98 / 98 / 99), R@100 / nDCG@10:
Sur ces questions, notre système complet atteint un R@100 de 94.1 sur BSARD et 94.6 sur bBSARD français, contre 88.6 et 88.7 pour SPLADE affiné avec 512 tokens.
Notre recherche par motsAutres systèmes et exécutions
R@100
nDCG@10
Afficher les chiffres
| System | BSARD | bBSARD French | bBSARD Dutch |
|---|---|---|---|
| + neural term weighting | 74.6 / 48.6 | 75.8 / 50.5 | 67.7 / 35.2 |
| + supervised query expansion (full system) | 94.1 / 70.9 | 94.6 / 71.8 | 89.5 / 69.7 |
| SPLADE fine-tuned, 512 | 88.6 / 60.2 | 88.7 / 59.4 | not run |
| SPLADE fine-tuned, 256 | 87.8 / 54.7 | 86.9 / 53.3 | 81.2 / 49.1 |
| DeepImpact fine-tuned | 79.0 / 52.4 | 80.4 / 52.0 | not run |
| uniCOIL fine-tuned | 77.3 / 50.1 | 77.5 / 49.9 | not run |
Test queries with no similar training query (n = 124 / 124 / 123), R@100 / nDCG@10:
Sur ces questions, SPLADE affiné avec 512 tokens atteint un R@100 de 83.9 sur BSARD et 83.5 sur bBSARD français, contre 74.7 et 74.6 pour notre système complet.
Notre recherche par motsAutres systèmes et exécutions
R@100
nDCG@10
Afficher les chiffres
| System | BSARD | bBSARD French | bBSARD Dutch |
|---|---|---|---|
| + neural term weighting | 65.1 / 31.1 | 64.5 / 31.6 | 64.4 / 25.6 |
| + supervised query expansion (full system) | 74.7 / 43.9 | 74.6 / 45.0 | 73.3 / 42.1 |
| SPLADE fine-tuned, 512 | 83.9 / 47.9 | 83.5 / 47.5 | not run |
| SPLADE fine-tuned, 256 | 79.9 / 43.1 | 81.8 / 40.7 | 71.8 / 35.3 |
| DeepImpact fine-tuned | 62.9 / 32.9 | 61.0 / 31.0 | not run |
| uniCOIL fine-tuned | 63.8 / 32.9 | 64.7 / 33.7 | not run |
Paired differences on the queries with no similar training query, baseline minus our full system, with 95% intervals:
Pour SPLADE à 512 tokens, les intervalles de R@100 sont supérieurs à zéro (+9.2 [3.8, 14.9] sur BSARD, +8.9 [3.3, 14.8] sur bBSARD français) ; pour DeepImpact et uniCOIL, ils sont inférieurs à zéro.
Différenceintervalle à 95 %Zéro
Afficher les chiffres
| Baseline | Metric | BSARD | bBSARD French | bBSARD Dutch |
|---|---|---|---|---|
| SPLADE 512 | R@100 | +9.2 [3.8, 14.9] | +8.9 [3.3, 14.8] | not run |
| SPLADE 512 | nDCG@10 | +4.0 [-1.9, 10.0] | +2.5 [-3.5, 8.6] | not run |
| SPLADE 256 | R@100 | +5.2 [-0.2, 10.8] | +7.2 [1.7, 13.0] | -1.5 [-6.3, 3.4] |
| SPLADE 256 | nDCG@10 | -0.7 [-7.4, 5.8] | -4.3 [-10.8, 2.1] | -6.8 [-13.2, -0.5] |
| DeepImpact | R@100 | -11.8 [-18.9, -4.7] | -13.5 [-20.8, -6.2] | not run |
| DeepImpact | nDCG@10 | -11.0 [-18.0, -4.3] | -14.1 [-21.3, -7.2] | not run |
| uniCOIL | R@100 | -10.9 [-18.0, -3.9] | -9.9 [-17.1, -2.8] | not run |
| uniCOIL | nDCG@10 | -11.0 [-17.9, -4.3] | -11.3 [-18.2, -4.8] | not run |
On the test queries with a similar training query our system leads every baseline on both metrics: 512-token SPLADE by 5.5 [1.1, 10.5] and 5.9 [1.7, 10.8] points of R@100 and by 10.7 and 12.4 points of nDCG@10, and Dutch SPLADE by 8.3 [1.3, 15.4] and 20.6. On the test queries with no similar training query, 512-token SPLADE leads our full system in French by 9.2 and 8.9 points of R@100, with intervals that exclude zero; its nDCG@10 is 4.0 and 2.5 points higher, with intervals that include zero. In Dutch, 256-token SPLADE and our system are not separated in R@100 on these queries, and ours remains ahead in nDCG@10. DeepImpact and uniCOIL trail our system in both groups, by 10 to 14 points of R@100 in the second. The parity of the two systems in French on the full test set (Section 5.1) is therefore an average of two opposite results: a lead of our system on queries like the training queries and a SPLADE lead on queries unlike them. The gain from query expansion over term weighting is about 19 to 22 points of R@100 in the first group and about 9 to 10 in the second.
This comparison removes every test query affected by the training-set asymmetry, but it also removes the queries whose similar training query the baselines did see. It therefore shows where the advantage of our system lies; it does not show how much of that advantage is due to the 64 near-duplicates.
6.2 Relevance-label overlap and the unseen-article subset
About 87.5% of the (query, relevant article) pairs in the test set concern an article that is also labelled relevant for some training query. R@100 before and after adding supervised query expansion:
Sur l’ensemble des questions de test, R@100 passe de 69.3 à 83.3 sur BSARD ; sur le sous-ensemble d’articles jamais vus, il passe de 60.4 à 59.1.
AvantAprès
Afficher les chiffres
| Test queries | n (BSARD / French / Dutch) | BSARD | bBSARD French | bBSARD Dutch |
|---|---|---|---|---|
| All | 222 / 222 / 222 | 69.3 → 83.3 | 69.5 → 83.4 | 65.9 → 80.5 |
| No similar training query (word-set Jaccard below 0.5) | 124 / 124 / 123 | 65.1 → 74.7 | 64.5 → 74.6 | 64.4 → 73.3 |
| No training query with the same set of relevant articles | 97 / 97 / 97 | 66.0 → 72.3 | 65.8 → 72.4 | 65.5 → 66.6 |
| Unseen-article subset | 30 / 30 / 30 | 60.4 → 59.1 | 59.6 → 56.9 | 65.3 → 50.3 |
The first and last rows as paired differences, with 95% intervals (computed per query before rounding):
Sur l’ensemble des questions de test, la variation est de +14.0 [9.0, 19.3] sur BSARD, avec un intervalle supérieur à zéro ; sur le sous-ensemble d’articles jamais vus, chaque intervalle contient zéro.
Différenceintervalle à 95 %Zéro
Afficher les chiffres
| Change in R@100 from supervised query expansion | BSARD | bBSARD French | bBSARD Dutch |
|---|---|---|---|
| All test queries (n = 222) | +14.0 [9.0, 19.3] | +13.9 [9.0, 19.0] | +14.7 [9.0, 20.5] |
| Unseen-article subset (n = 30) | -1.3 [-9.6, 8.3] | -2.7 [-12.6, 7.3] | -15.0 [-31.9, 2.1] |
The gain shrinks as the test queries become less similar to the training queries, and it is absent on the unseen-article subset, where R@100 is lower with query expansion than without it on all three collections; with 30 queries, the intervals of these decreases include zero. Much of the gain therefore comes from what the training labels reveal about which terms belong to which articles. This is useful when new queries concern the same articles, as in a service whose users ask recurring questions, and it should not be read as a general improvement in matching.
All systems on the unseen-article subset (30 test queries), R@100 / nDCG@10:
Sur le sous-ensemble d’articles jamais vus, SPLADE affiné avec 512 tokens atteint un R@100 de 74.2 sur BSARD et 74.5 sur bBSARD français, contre 59.1 et 56.9 pour notre système complet.
Notre recherche par motsAutres systèmes et exécutions
R@100
nDCG@10
Afficher les chiffres
| System | BSARD | bBSARD French | bBSARD Dutch |
|---|---|---|---|
| + lexical enhancements and PRF | 70.4 / 18.9 | 70.4 / 19.5 | 57.4 / 21.0 |
| + neural term weighting | 60.4 / 24.3 | 59.6 / 21.4 | 65.3 / 15.2 |
| + supervised query expansion (full system) | 59.1 / 15.5 | 56.9 / 16.4 | 50.3 / 18.7 |
| SPLADE fine-tuned, 512 | 74.2 / 38.1 | 74.5 / 38.8 | not run |
| SPLADE fine-tuned, 256 | 70.3 / 32.5 | 70.6 / 31.5 | 48.2 / 18.2 |
| DeepImpact fine-tuned | 55.4 / 20.1 | 54.8 / 16.1 | not run |
| uniCOIL fine-tuned | 65.1 / 25.4 | 68.7 / 25.3 | not run |
7. Supporting results
7.1 Validation queries
All baseline choices were made on these results. For our own system, model selection used the training and validation queries, but its development was also influenced by test results, as disclosed in Section 9. R@100 / nDCG@10, on 292 queries (293 for Dutch).
Sur les questions de validation de BSARD, notre système complet atteint un R@100 de 82.9 et SPLADE affiné avec 256 tokens 82.8 ; BM25 atteint 50.2.
Notre recherche par motsAutres systèmes et exécutions
R@100
nDCG@10
Afficher les chiffres
| System | Trained on relevance labels | BSARD | bBSARD French | bBSARD Dutch |
|---|---|---|---|---|
| BM25 | no | 50.2 / 25.7 | 50.7 / 26.2 | 38.8 / 18.4 |
| + lexical enhancements and PRF | settings and a small query-term weighting | 60.9 / 29.4 | 61.6 / 29.8 | 54.5 / 21.3 |
| Best off-the-shelf SPLADE (by R@100) | no | 56.8 / 23.1 | 55.4 / 23.7 | 46.7 / 17.6 |
| + neural term weighting | yes | 69.0 / 40.8 | 68.8 / 41.4 | 59.0 / 32.9 |
| + supervised query expansion (full system) | yes | 82.9 / 56.3 | 82.8 / 56.6 | 81.8 / 54.8 |
| SPLADE fine-tuned, 512 tokens | yes | 82.3 / 52.7 | 83.0 / 51.3 | not run |
| SPLADE fine-tuned, 256 tokens | yes | 82.8 / 46.4 | 81.5 / 46.0 | 78.8 / 40.3 |
| DeepImpact fine-tuned | yes | 68.9 / 40.7 | 67.9 / 40.4 | not run |
| uniCOIL fine-tuned | yes | 66.1 / 39.8 | 65.5 / 39.3 | not run |
Unseen-article subset (30 queries):
Sur le sous-ensemble d’articles jamais vus des questions de validation de BSARD, SPLADE affiné avec 256 tokens atteint un R@100 de 74.9, contre 64.5 pour notre système complet.
Notre recherche par motsAutres systèmes et exécutions
R@100
nDCG@10
Afficher les chiffres
| System | BSARD | bBSARD French | bBSARD Dutch |
|---|---|---|---|
| + lexical enhancements and PRF | 53.2 / 22.6 | 53.5 / 23.0 | 47.7 / 16.5 |
| + neural term weighting | 50.7 / 21.9 | 54.8 / 18.9 | 46.0 / 17.3 |
| + supervised query expansion (full system) | 64.5 / 15.2 | 63.1 / 14.5 | 51.0 / 11.6 |
| SPLADE fine-tuned, 512 | 70.9 / 36.0 | 70.9 / 36.7 | not run |
| SPLADE fine-tuned, 256 | 74.9 / 30.4 | 68.7 / 30.4 | 53.8 / 21.2 |
| DeepImpact fine-tuned | 57.1 / 19.2 | 53.5 / 18.1 | not run |
| uniCOIL fine-tuned | 49.4 / 22.7 | 50.5 / 21.3 | not run |
7.2 Effect of in-domain fine-tuning on the baselines
Off-the-shelf SPLADE models, pretrained on translated web-search data or a multilingual mixture, reach an R@100 of 41 to 57, below our lexical enhancements with PRF (55 to 62). Fine-tuning the selected model on the 518 training queries adds 26 to 32 points over the best off-the-shelf one. DeepImpact and uniCOIL rise from about 53 after web-search pretraining to between 65 and 69. Fine-tuning on these 518 domain-specific queries substantially improves retrieval effectiveness across the evaluated models.
Three input effects were visible before any fine-tuning (Appendix B). Prefixing headings adds 6 to 10 points of R@100 for the two off-the-shelf models on which it was tested. Stemming improves DeepImpact and uniCOIL by 3 to 6 points. Document expansion changes their R@100 by less than 2 points in either direction.
7.3 Training behaviour
Training curves are in Appendix C.
- The higher learning rate won every comparison. Removing SPLADE's sparsity regulariser did not help.
- French SPLADE was still improving after five epochs; the ten-epoch run added 1.6 points on the selection metric, with its best checkpoint at epoch six. In Dutch the ten-epoch run added 3.9, with its best at epoch eight.
- DeepImpact pretraining was flat from a quarter of its steps onward (51.8, 52.0, 51.1, 52.9), which is why uniCOIL was given half as many. This is one model family on one collection and does not show that longer pretraining would never matter.
- The Dutch 512-token SPLADE run collapsed after its first epoch, from an R@100 of 60.8 to about 1. We did not identify the cause or rerun it.
7.4 Query latency and memory
We benchmarked our full system against 512-token SPLADE on one machine: an AMD Ryzen 7 3700X CPU, one thread pinned to one core, no GPU at query time. Each system takes the raw query text and returns the top 100 articles of BSARD (French original), one query at a time. The latencies are for 200 validation queries, evenly spaced among the 293, after 10 untimed warm-up queries. The table gives the second of two runs, each in a fresh process; the two differ by less than a millisecond. Effectiveness is on the 292 validation queries of Section 7.1.
SPLADE's query encoder was optimised for this benchmark: besides plain PyTorch, it was exported to ONNX Runtime 1.31.1 with fused attention and normalisation operators and all graph optimisations, in float32 and with dynamic int8 quantisation. All SPLADE rows use the same article index (float32 weights), and all rows, ours included, the same final scoring routine. Our system ran as unoptimised research code in Python.
Notre système complet a une latence médiane de 50 ms et un 95e percentile de 57 ms ; SPLADE en PyTorch float32 a 107 et 142 ms, et les variantes int8 de SPLADE ont des médianes de 46 à 57 ms et des 95e percentiles de 72 à 82 ms.
Notre recherche par motsAutres systèmes et exécutions
Afficher les chiffres
| System at query time | Median (ms) | p95 (ms) | R@100 | nDCG@10 | Peak process memory |
|---|---|---|---|---|---|
| Full system (ours) | 50 | 57 | 82.9 | 56.3 | 2.6 GB |
| SPLADE, PyTorch float32 | 107 | 142 | 82.3 | 52.6 | 1.28 GB |
| SPLADE, ONNX float32 | 60 | 84 | 82.3 | 52.6 | 0.75 GB |
| SPLADE, int8 vocabulary layer only | 57 | 82 | 82.2 | 52.5 | 0.66 GB |
| SPLADE, int8 except both feed-forward layers and the head's dense layer | 54 | 78 | 82.2 | 52.8 | 0.50 GB |
| SPLADE, int8 except the feed-forward output layers | 50 | 75 | 82.3 | 51.1 | 0.41 GB |
| SPLADE, int8 throughout, signed weights | 47 | 74 | 75.5 | 24.0 | 0.34 GB |
| SPLADE, int8 throughout, unsigned weights | 46 | 72 | 74.8 | 23.0 | 0.34 GB |
| SPLADE, int8 except the vocabulary layer | 51 | 77 | 75.5 | 23.9 | 0.43 GB |
Quantising the whole encoder to int8 degrades the ranking severely: nDCG@10 falls to less than half. The loss comes mainly from the second layer of the feed-forward blocks, and the variants that keep it in float32 retain R@100. We chose which layers to keep in float32 by how closely each group's int8 output matched the float32 output on the 293 validation queries, without relevance labels. On the CPU the float32 encoder gives the effectiveness shown here; Section 7.1 shows 52.7 for nDCG@10, with the queries encoded on the GPU at lower precision.
At the median the two systems are level: ours and the fastest SPLADE variant that retains R@100 both take 50 ms, and that variant gives up 1.5 points of nDCG@10. Against lossless ONNX float32, ours is 1.2 times as fast (50 against 60 ms). Our system has lower tail latency: 57 ms at the 95th percentile (p95) against 75 to 84 ms for the ONNX variants that retain R@100. Nearly all of SPLADE's time is spent in its encoder; searching its index takes 2 to 4 ms.
What each system holds in memory to answer a query, in MB (millions of bytes). The last two columns are the int8 variants that keep one and three groups of layers in float32.
| Full system (ours) | SPLADE, PyTorch | SPLADE, ONNX float32 | SPLADE, int8 (one) | SPLADE, int8 (three) | |
|---|---|---|---|---|---|
| Neural-network parameters | 9.2 million | 110.7 million | 110.7 million | 110.7 million | 110.7 million |
| Models, tables and dictionaries | 210 | 445 | 543 | 224 | 310 |
| Index and search arrays | 181 | 55 | 55 | 55 | 55 |
| Total of the two rows above | 391 | 500 | 598 | 279 | 365 |
Our system has a twelfth of SPLADE's neural-network parameters (Section 4.1). It also loads frozen word embeddings and other learned tables, which the memory rows count. Its memory footprint is larger. Its index and search arrays are 3.3 times the size of SPLADE's (SPLADE's would shrink to an estimated 34 MB with one-byte weights), the two int8 SPLADE variants load less in total, and our process peaks at 2.6 GB against 0.41 to 0.75 GB for the ONNX variants that retain R@100.
The 391 MB in the table are the arrays, models and dictionaries needed to answer a query; the peak of 2.6 GB is that of the process as we ran it. That process is the unoptimised experimental pipeline, which also loads the tokenised text of all three collections, the article texts, intermediate analysis structures and the runtimes of several numerical libraries. Its resident memory was 2.1 GB after loading, before the first query. We did not profile how the memory beyond the 391 MB divides among these parts, so we cannot say how much of it a purpose-built implementation would need. Our word-embedding tables also cover only the vocabulary of the benchmark and of the term predictors; a service that must handle arbitrary words would need about 520 MB more. Neither system needs a GPU at query time; both used one offline.
This is one collection, one machine, one thread and 200 queries. We tested one inference runtime and dynamic quantisation. Static quantisation, other runtimes, smaller SPLADE encoders and an optimised implementation of our system were not tested. We did not compare offline cost.
7.5 Index sizes of the other systems
Index sizes are for BSARD and, for the baselines, the French models.
| System | Trained parameters | Entries per article | Index |
|---|---|---|---|
| BM25 | 0 | 48 | 5.6 MB |
| + lexical enhancements and PRF | not counted | 384 | 43.8 MB |
| + neural term weighting | 93,154 | 384 | 43.8 MB |
| SPLADE, 256 tokens | 110.7 million | 303 | 34.4 MB |
| SPLADE, 512 tokens | 110.7 million | 302 | 34.4 MB |
| uniCOIL | 110.6 million | 41 | 4.8 MB |
| DeepImpact | 110.6 million | 46 | 5.4 MB |
The term weighter changes the weights of index entries and not the entries themselves, so its row has the same entries and, by the same accounting, the same size as the row above it; we did not measure its effectiveness with weights stored in one byte. The SPLADE, uniCOIL and DeepImpact indexes are given with weights stored in one byte, which changes R@100 by less than a point, on validation and on test.
DeepImpact does not encode the query with a neural model. In an earlier measurement of the query-encoding step alone it took 0.7 ms, against 83 ms for uniCOIL. That measurement was made on a different machine, so the two timings can be compared with each other but not with the latencies of Section 7.4. On test, DeepImpact's R@100 is about 13 points below that of our full system.
7.6 Published results
| Source | Method | Split as stated | BSARD R@100 | bBSARD French / Dutch R@100 |
|---|---|---|---|---|
| Louis and Spanakis, 2022 | BM25 | test | 51.33 | |
| Louis and Spanakis, 2022 | Trained two-tower CamemBERT | test | 74.78 | |
| Louis et al., 2023 | BM25 | test | 49.3 | |
| Louis et al., 2023 | docT5query | test | 51.7 | |
| Louis et al., 2023 | DPR / G-DSR | test | 77.9 / 84.3 | |
| Santosh et al., 2024 | CuSINeS (best variant) | not stated | 84.9 | |
| Santosh et al., 2025 | QABISAR | not stated | 83.7 | |
| Benamar et al., 2026 | BM25 / with structure re-scoring | test | 51.5 / 59.5 | |
| Benamar et al., 2026 | Fine-tuned dense with structure re-scoring | test | 89.0 | |
| Lotfi et al., 2025 | BM25 | test | 51.81 / 40.19 | |
| Lotfi et al., 2025 | Best zero-shot dense | test | 77.71 / 75.70 | |
| Lotfi et al., 2025 | Best fine-tuned dense | test | 78.15 / 75.08 |
On the original dataset our 83.3 is below the best published dense results. On bBSARD our test results are above those in the bBSARD paper, with the caveats that data releases and evaluation details may differ and that our system learns from the training labels and from outside data. Our 512-token SPLADE (85.9 on BSARD, 85.8 on bBSARD French) is also above every published result in this table except the repository's 89.0; it is one training run per setting, and the setups differ. We did not rerun any published system.
8. Discussion
How our system compares with fine-tuned SPLADE depends first on whether a test query resembles a training query. On the queries with a similar training query our system leads SPLADE in both languages and on both metrics. On those with none, SPLADE leads in French R@100 by about 9 points while nDCG@10 is not separated, and in Dutch R@100 is not separated while ours stays ahead in nDCG@10 (Section 6.1). On the full test set these opposite results average out in French: SPLADE is higher in R@100, ours in nDCG@10, and all four intervals include zero. In Dutch ours is ahead on both metrics on the full test set. Dutch SPLADE was limited to 256 tokens, however, and the longer input improved French ranking, so the Dutch results may understate what SPLADE can do.
Across the systems we evaluated, supervised query expansion is associated with substantially higher recall. DeepImpact and uniCOIL, which here mostly or only reweight existing terms, end near our term weighter, 15 to 16 points of R@100 below 512-token SPLADE in French. SPLADE and our query-expansion component, which both learn from relevance labels to add terms that the query lacks, are far higher. This is a reading of the results table; we did not run an experiment that isolates the effect of expansion.
These gains have to be read together with the relevance-label overlap of the benchmark. On BSARD, any method that learns which articles answer which kinds of query can profit from the articles shared between training and test. We isolated this for two systems only. On the unseen-article subset (n = 30), French SPLADE at 512 tokens leads our full system by 15 to 18 points of R@100, and in Dutch the two are not separated. On that subset BM25 with the lexical enhancements also outperformed both of our learned components in French (70.4 on test), which the validation queries did not show (about 53); results on 30 queries are unstable. The training-set asymmetry works in the same direction: the query-expansion component was trained on 64 near-duplicates of validation or test queries that the baselines and the term weighter excluded (Section 3), and we did not retrain without them. The test queries with no similar training query are free of this asymmetry, but that group also excludes the similar training queries that the baselines did see. The split therefore locates the advantage of our system without showing how much of it the 64 near-duplicates explain. We recommend reporting both the similarity split and the unseen-article subset whenever results on this benchmark are reported.
Implications for deployment
For a service whose users ask recurring questions, so that new queries resemble past ones, our system was the stronger option in these measurements: it leads every baseline on the test queries with a similar training query. For novel questions, which resemble no past query or concern articles absent from the training labels, fine-tuned SPLADE is the safer choice in French, provided a transformer on every query is affordable; in Dutch the two were not separated in recall on such queries. Which system serves a real query stream better depends on its mix of the two kinds of query, which we did not measure.
9. Limitations
- Test-set exposure of our system. Our test results were not obtained blind. The test set was evaluated several times on one day while our system was being developed, and BM25 had been evaluated on it in earlier experiments. The query-expansion component was evaluated once, after its settings were frozen; the earlier components were evaluated two or three times, and the first test results had been seen before later choices were made.
- Dutch compound splitting (part of component 2) was first measured on the Dutch test queries in earlier work; the Dutch results for components 2 to 4 are not free of test-set influence.
- Training-set asymmetry. The query-expansion component and the lexical enhancements were fitted on training queries that include 64 near-duplicates of validation or test queries; the baselines and the term weighter excluded them (Section 3). This may favour our full system, and we did not retrain to measure the effect.
- Post-hoc similarity split. The comparison by training-query similarity (Section 6.1) was chosen after the test results were known, on a test set that was not blind for our system. It uses one similarity threshold (0.5), which we did not vary.
- Query expansion. The cross-validation used to set this component's hyperparameters placed repeated queries in different folds, was not nested, and its settings were chosen on it; the test evaluation was not repeated after the folds were corrected. The file manifest of this component was not fully recorded before the test run and was completed afterwards.
- Evaluation asymmetry. The baselines were evaluated on the test set once, with every setting fixed on validation queries. Their validation results are optimistic, because each setting was chosen on the queries reported.
- Unequal effort. Dutch DeepImpact and uniCOIL were not run; uniCOIL had half the pretraining steps; pretraining passages were not expanded, unlike DeepImpact's articles; a French SPLADE model trained on access-gated data was left out because overlap could not be checked; the Dutch 512-token SPLADE run failed and was not rerun.
- Efficiency was measured on validation queries of one collection, on one CPU and one thread, with SPLADE's query encoder optimised and our system not (Section 7.4).
- One seed per setting. The intervals cover query sampling only.
- Narrow task. Belgian statutory articles and short lay queries. The results say nothing about case law, legal writing or long professional queries.
10. Conclusion
On Belgian statutory article retrieval, an inverted index can be taken much further than BM25. A small neural term weighter and query expansion learned from the training labels bring our lexical system to an R@100 of 80 to 83 on the test set. How it compares with fine-tuned SPLADE depends on the query. On test queries that resemble a training query it leads SPLADE in both languages; on those that do not, SPLADE leads in French R@100 by about 9 points, and the two are not separated in Dutch R@100. Parity in French on all 222 test queries (SPLADE about 2.5 points higher in R@100 and lower in nDCG@10, with intervals that include zero) is the average of these two results; in Dutch our system is ahead on the full test set. DeepImpact and uniCOIL stay near the term weighter and trail our full system in both groups. The gain from query expansion also depends on articles shared between the training and test labels: on the unseen-article subset it lowers R@100, and French SPLADE is ahead. The similarity split is post hoc, and the test set was not blind for our system. A firmer comparison needs a benchmark whose test queries and articles are disjoint from its training queries and articles, or results reported separately for the two kinds of query.
Computational efficiency varies by metric. In a single-threaded CPU benchmark, our research code and an optimised SPLADE have the same median query latency, about 50 ms, if SPLADE may give up 1.5 points of nDCG@10; against lossless float32 SPLADE ours is 1.2 times as fast. Ours has lower tail latency (57 against 75 to 84 ms at p95) and a twelfth of the neural-network parameters. Its index and its memory footprint are larger. Neither needs a GPU at query time. These measurements come from one collection and one machine.
References
- Benamar, A., Dilmi, M. D. and Chaieb-Chakchouk, F. (2026). How much of the legislative structure can we use without training? Score regularization for statutory article retrieval. Public repository, github.com/AkramBenamar/VHP
- Bonifacio, L., Jeronymo, V., Abonizio, H. Q., Campiotti, I., Fadaee, M., Lotufo, R. and Nogueira, R. (2021). mMARCO: a multilingual version of the MS MARCO passage ranking dataset. arXiv preprint, arXiv:2108.13897
- Dai, Z. and Callan, J. (2020). Context-aware term weighting for first stage passage retrieval. SIGIR 2020. doi:10.1145/3397271.3401204
- Formal, T., Piwowarski, B. and Clinchant, S. (2021). SPLADE: sparse lexical and expansion model for first stage ranking. SIGIR 2021. doi:10.1145/3404835.3463098
- Lin, J. and Ma, X. (2021). A few brief notes on DeepImpact, COIL, and a conceptual framework for information retrieval techniques. arXiv preprint, arXiv:2106.14807
- Lotfi, E., Banar, N., Yuzbashyan, N. and Daelemans, W. (2025). Bilingual BSARD: extending statutory article retrieval to Dutch. Proceedings of the 1st Regulatory NLP Workshop (RegNLP 2025), 10–21.
- Louis, A. and Spanakis, G. (2022). A statutory article retrieval dataset in French. ACL 2022, 6789–6803. doi:10.18653/v1/2022.acl-long.468
- Louis, A., van Dijck, G. and Spanakis, G. (2023). Finding the law: enhancing statutory article retrieval via graph neural networks. EACL 2023, 2761–2776.
- Mallia, A., Khattab, O., Suel, T. and Tonellotto, N. (2021). Learning passage impacts for inverted indexes. SIGIR 2021. doi:10.1145/3404835.3463030
- Nogueira, R., Yang, W., Lin, J. and Cho, K. (2019). Document expansion by query prediction. arXiv preprint, arXiv:1904.08375
- Santosh, T. Y. S. S., Kaiser, K. and Grabmair, M. (2024). CuSINeS: curriculum-driven structure induced negative sampling for statutory article retrieval. LREC-COLING 2024. arXiv:2404.00590
- Santosh, T. Y. S. S., Sarwat, H. and Grabmair, M. (2025). QABISAR: query-article bipartite interactions for statutory article retrieval. COLING 2025. arXiv:2412.00934
Appendix A. Our lexical retrieval system on the test queries, all metrics
222 queries per collection. The test set was not blind for these systems (Section 9). Baselines: Section 5.1.
BSARD
| System | R@10 | R@100 | R@200 | nDCG@10 | MAP@100 |
|---|---|---|---|---|---|
| BM25 | 27.0 | 52.3 | 58.7 | 22.8 | 18.5 |
| + lexical enhancements and PRF | 34.6 | 65.3 | 70.3 | 28.0 | 24.0 |
| + neural term weighting | 43.8 | 69.3 | 73.3 | 38.8 | 34.5 |
| + supervised query expansion (full system) | 60.6 | 83.3 | 88.8 | 55.8 | 50.0 |
bBSARD French
| System | R@10 | R@100 | R@200 | nDCG@10 | MAP@100 |
|---|---|---|---|---|---|
| BM25 | 27.7 | 51.8 | 58.9 | 22.6 | 18.0 |
| + lexical enhancements and PRF | 34.6 | 64.9 | 70.8 | 28.3 | 24.4 |
| + neural term weighting | 46.4 | 69.5 | 73.2 | 40.0 | 35.2 |
| + supervised query expansion (full system) | 62.0 | 83.4 | 87.9 | 56.8 | 51.2 |
bBSARD Dutch
| System | R@10 | R@100 | R@200 | nDCG@10 | MAP@100 |
|---|---|---|---|---|---|
| BM25 | 21.3 | 42.4 | 47.5 | 17.7 | 13.9 |
| + lexical enhancements and PRF | 26.1 | 61.4 | 69.5 | 20.6 | 17.5 |
| + neural term weighting | 36.1 | 65.9 | 71.3 | 29.8 | 26.0 |
| + supervised query expansion (full system) | 57.3 | 80.5 | 86.7 | 54.4 | 50.3 |
Appendix B. Baseline runs on the validation queries
This appendix contains the off-the-shelf SPLADE models with their input variants, the pretrained-only DeepImpact and uniCOIL models with their input variants, and the selected fine-tuned model of each family. The other fine-tuning runs (the learning-rate settings, the individual epochs and the failed Dutch 512-token run) are given as training curves in Appendix C.
Validation queries: all 293 of the run, which is why a few results differ by some tenths from Section 7.1, where all systems are restricted to the same 292 or 293. Unseen: the 30 validation queries of the unseen-article subset.
BSARD
| Run | R@10 | R@100 | R@200 | nDCG@10 | MAP@100 | Unseen R@100 | Unseen nDCG@10 |
|---|---|---|---|---|---|---|---|
| SPLADE CamemBERT v2, off-the-shelf, heading, 256 | 29.7 | 55.1 | 61.3 | 22.9 | 18.9 | 52.3 | 24.8 |
| SPLADE CamemBERT v2, off-the-shelf, no heading, 256 | 24.1 | 46.5 | 55.1 | 18.9 | 15.3 | 37.9 | 22.3 |
| SPLADE CamemBERT v2, off-the-shelf, heading, 512 | 31.4 | 56.6 | 63.6 | 23.0 | 18.9 | 56.1 | 25.4 |
| SPLADE CamemBERT (mMARCO French), off-the-shelf, 256 | 26.1 | 50.6 | 58.8 | 18.8 | 14.8 | 42.2 | 18.8 |
| OpenSearch multilingual sparse, off-the-shelf, 256 | 31.7 | 51.5 | 60.0 | 26.9 | 22.4 | 44.4 | 20.3 |
| SPLADE fine-tuned, 256 (chosen by the selection rule) | 50.7 | 82.7 | 86.5 | 46.2 | 41.7 | 74.9 | 30.4 |
| SPLADE fine-tuned, 512 | 59.5 | 82.4 | 86.8 | 52.5 | 47.0 | 70.9 | 36.0 |
| DeepImpact, pretrained only, expanded | 32.6 | 53.5 | 60.2 | 24.7 | 19.8 | 41.3 | 29.1 |
| DeepImpact, pretrained only, not expanded | 29.6 | 53.4 | 59.1 | 24.4 | 20.8 | 46.2 | 28.2 |
| DeepImpact, pretrained only, expanded, unstemmed | 28.0 | 47.5 | 54.8 | 22.9 | 19.1 | 48.5 | 26.9 |
| DeepImpact fine-tuned | 46.3 | 68.9 | 74.3 | 40.6 | 36.0 | 57.1 | 19.2 |
| uniCOIL, pretrained only, expanded | 31.3 | 51.3 | 59.6 | 23.9 | 18.9 | 42.4 | 25.1 |
| uniCOIL, pretrained only, not expanded | 29.6 | 53.1 | 59.4 | 23.6 | 19.3 | 47.4 | 24.9 |
| uniCOIL, pretrained only, expanded, unstemmed | 27.3 | 48.2 | 54.1 | 22.2 | 18.4 | 41.6 | 24.4 |
| uniCOIL fine-tuned | 46.0 | 66.0 | 70.9 | 39.6 | 34.3 | 49.4 | 22.7 |
bBSARD French
| Run | R@10 | R@100 | R@200 | nDCG@10 | MAP@100 | Unseen R@100 | Unseen nDCG@10 |
|---|---|---|---|---|---|---|---|
| SPLADE CamemBERT v2, off-the-shelf, heading, 256 | 28.7 | 54.6 | 61.1 | 22.8 | 18.9 | 49.3 | 24.6 |
| SPLADE CamemBERT v2, off-the-shelf, no heading, 256 | 24.2 | 45.1 | 53.9 | 18.9 | 15.1 | 36.6 | 21.3 |
| SPLADE CamemBERT v2, off-the-shelf, heading, 512 | 30.9 | 55.2 | 62.9 | 23.6 | 19.4 | 54.2 | 25.3 |
| SPLADE CamemBERT (mMARCO French), off-the-shelf, 256 | 24.4 | 49.2 | 59.7 | 17.9 | 14.2 | 36.3 | 18.7 |
| OpenSearch multilingual sparse, off-the-shelf, 256 | 32.3 | 52.3 | 59.8 | 27.1 | 22.6 | 44.1 | 21.4 |
| SPLADE fine-tuned, 256 (chosen by the selection rule) | 51.5 | 81.4 | 86.8 | 45.8 | 40.9 | 68.7 | 30.4 |
| SPLADE fine-tuned, 512 | 59.4 | 83.1 | 87.5 | 51.1 | 45.1 | 70.9 | 36.7 |
| DeepImpact, pretrained only, expanded | 31.6 | 54.8 | 60.6 | 24.8 | 19.9 | 42.8 | 25.3 |
| DeepImpact, pretrained only, not expanded | 29.1 | 53.9 | 58.6 | 24.3 | 20.9 | 46.2 | 27.1 |
| DeepImpact, pretrained only, expanded, unstemmed | 27.7 | 49.6 | 54.3 | 23.9 | 20.0 | 48.2 | 26.2 |
| DeepImpact fine-tuned | 45.0 | 67.6 | 71.9 | 40.3 | 36.1 | 53.5 | 18.1 |
| uniCOIL, pretrained only, expanded | 31.5 | 52.9 | 59.6 | 24.3 | 19.0 | 44.3 | 24.9 |
| uniCOIL, pretrained only, not expanded | 32.0 | 52.8 | 59.2 | 25.6 | 21.0 | 48.5 | 26.2 |
| uniCOIL, pretrained only, expanded, unstemmed | 26.1 | 47.6 | 54.7 | 22.2 | 18.4 | 43.2 | 24.1 |
| uniCOIL fine-tuned | 46.4 | 65.4 | 70.6 | 39.2 | 33.7 | 50.5 | 21.3 |
bBSARD Dutch
| Run | R@10 | R@100 | R@200 | nDCG@10 | MAP@100 | Unseen R@100 | Unseen nDCG@10 |
|---|---|---|---|---|---|---|---|
| SPLADE RobBERT v1, off-the-shelf, heading, 256 | 23.1 | 46.7 | 54.7 | 17.6 | 13.5 | 38.4 | 13.2 |
| SPLADE RobBERT v1, off-the-shelf, no heading, 256 | 18.9 | 41.0 | 48.4 | 14.5 | 12.2 | 36.6 | 15.7 |
| SPLADE RobBERT v1, off-the-shelf, heading, 512 | 21.0 | 43.5 | 55.5 | 15.7 | 12.8 | 35.1 | 15.5 |
| SPLADE RobBERT margin-MSE, off-the-shelf, 256 | 24.0 | 46.0 | 52.8 | 17.9 | 13.3 | 39.6 | 13.2 |
| OpenSearch multilingual sparse, off-the-shelf, 256 | 24.3 | 44.8 | 51.3 | 19.2 | 14.8 | 35.1 | 13.1 |
| SPLADE fine-tuned, 256 (chosen by the selection rule) | 48.5 | 78.8 | 83.1 | 40.3 | 34.3 | 53.8 | 21.2 |
Appendix C. Training curves
Mean R@100 on the validation queries of the training collection (BSARD for French, bBSARD Dutch for Dutch) after each epoch. Pretraining rows give the value at each quarter of the pretraining steps. A: learning rate 2e-5; B: 5e-6; C: 2e-5 without the sparsity regulariser.
| Run | R@100 by epoch (fine-tuning rows start with the value before fine-tuning) |
|---|---|
| SPLADE French, A | 55.3, 72.2, 76.4, 78.0, 80.7, 81.2 |
| SPLADE French, B | 55.3, 70.0, 70.4, 74.1, 75.8, 75.9 |
| SPLADE French, C | 55.3, 72.5, 76.5, 78.3, 79.9, 80.6 |
| SPLADE French, A at 512 | 56.8, 71.3, 75.2, 75.2, 81.0, 80.0, 81.4, 82.0, 82.3 |
| SPLADE French, A, 10 epochs | 55.3, 71.8, 75.2, 77.7, 77.6, 81.0, 82.8, 81.0, 81.5, 81.5, 81.9 |
| SPLADE Dutch, A | 46.7, 62.3, 69.8, 71.7, 73.5, 74.9 |
| SPLADE Dutch, B | 46.7, 61.5, 61.3, 66.2, 67.4, 67.2 |
| SPLADE Dutch, C | 46.7, 60.3, 66.9, 73.2, 72.9, 74.6 |
| SPLADE Dutch, A at 512 | 43.5, 60.8, 1.4, 1.0, 0.9, 0.1, 0.1, 0.5, 9.7 |
| SPLADE Dutch, A, 10 epochs | 46.7, 57.0, 63.3, 64.3, 71.1, 72.5, 73.3, 75.1, 78.8, 78.2, 78.1 |
| DeepImpact pretraining | 51.8, 52.0, 51.1, 52.9 |
| DeepImpact fine-tuning, A | 53.7, 64.7, 66.9, 67.5, 68.9, 68.7 |
| DeepImpact fine-tuning, B | 53.7, 59.2, 63.3, 64.4, 64.7, 64.8 |
| uniCOIL pretraining | 48.2, 51.6, 51.1, 51.6 |
| uniCOIL fine-tuning, A | 53.3, 60.1, 63.2, 66.1, 64.8, 65.2 |
| uniCOIL fine-tuning, B | 53.3, 59.0, 59.5, 60.7, 61.7, 61.6 |
Citer cet article
Murre, D. (2026). Beyond BM25: learned lexical retrieval and training-query similarity in Belgian statute retrieval. Document de travail, 28 novembre 2026. https://doi.org/10.5281/zenodo.24663248 https://lexbound.ai/en/lab/research/beyond-bm25
ORCID: 0009-0008-7246-0053
BibTeX
@misc{murre2026beyondbm25,
author = {Murre, Donald},
orcid = {0009-0008-7246-0053},
title = {Beyond {BM25}: Learned Lexical Retrieval and Training-Query Similarity in {Belgian} Statute Retrieval},
year = {2026},
month = nov,
note = {Working paper},
doi = {10.5281/zenodo.24663248},
url = {https://lexbound.ai/en/lab/research/beyond-bm25}
}