Datasets:
id stringlengths 23 47 | indices listlengths 87 2.05k | weights listlengths 87 2.05k |
|---|---|---|
test-environment-aeghhgwpe-pro02b | [
26264,
20600,
14172,
24775,
12960,
19240,
28618,
1810,
20225,
5285,
29206,
687,
4133,
9031,
9540,
30302,
18110,
8296,
12576,
4569,
3794,
23225,
27287,
8692,
675,
2132,
29947,
7595,
23735,
30505,
27231,
30460,
22594,
14091,
9742,
28327,
27691,
... | [
0.177001953125,
0.16455078125,
0.1624755859375,
0.159912109375,
0.1595458984375,
0.1583251953125,
0.15625,
0.1549072265625,
0.149658203125,
0.148681640625,
0.1458740234375,
0.14501953125,
0.1448974609375,
0.1409912109375,
0.138427734375,
0.1376953125,
0.1375732421875,
0.134765625,
... |
test-environment-aeghhgwpe-pro02a | [
25493,
23225,
687,
26264,
1810,
19240,
12960,
9540,
14172,
27822,
8231,
10608,
3553,
22594,
9605,
1709,
26440,
24405,
29644,
29206,
26337,
21136,
6264,
32405,
24939,
16252,
12328,
31277,
27432,
18081,
14130,
30505,
31666,
9976,
19156,
25487,
17... | [
0.17333984375,
0.17041015625,
0.16357421875,
0.163330078125,
0.1617431640625,
0.1583251953125,
0.1488037109375,
0.146240234375,
0.1419677734375,
0.13720703125,
0.133544921875,
0.1331787109375,
0.1295166015625,
0.127197265625,
0.12548828125,
0.125244140625,
0.1248779296875,
0.124572... |
test-environment-aeghhgwpe-pro03b | [
19240,
5197,
1810,
24456,
10771,
18089,
14532,
3823,
23225,
16120,
5541,
1445,
21136,
17647,
1964,
968,
22998,
18744,
3317,
13116,
17896,
4961,
22594,
11891,
32364,
10202,
10822,
8885,
9540,
9605,
14091,
3553,
28864,
26846,
30439,
21773,
18065,... | [
0.1680908203125,
0.165771484375,
0.1558837890625,
0.15283203125,
0.1500244140625,
0.143798828125,
0.1422119140625,
0.140869140625,
0.13623046875,
0.1361083984375,
0.13134765625,
0.1285400390625,
0.128173828125,
0.1260986328125,
0.12286376953125,
0.1219482421875,
0.11871337890625,
0... |
test-environment-aeghhgwpe-pro01a | [
14091,
12960,
26586,
18065,
27287,
12086,
15986,
17896,
4179,
1810,
9540,
4479,
17049,
26265,
25577,
6929,
32405,
13489,
3553,
18970,
18380,
21136,
30901,
3148,
27897,
20169,
27992,
5607,
21292,
17531,
23124,
11052,
17771,
375,
27229,
32364,
23... | [
0.1763916015625,
0.1663818359375,
0.1602783203125,
0.154541015625,
0.1483154296875,
0.145751953125,
0.14453125,
0.1353759765625,
0.1314697265625,
0.1295166015625,
0.126220703125,
0.12359619140625,
0.12298583984375,
0.1226806640625,
0.12261962890625,
0.1224365234375,
0.1221923828125,
... |
test-environment-aeghhgwpe-pro01b | [19240,14091,12960,17759,18065,9540,11052,23225,17896,16544,5278,18970,17000,10656,21136,27287,11007(...TRUNCATED) | [0.1934814453125,0.1451416015625,0.1419677734375,0.13818359375,0.135986328125,0.131591796875,0.12481(...TRUNCATED) |
test-environment-aeghhgwpe-pro04b | [23225,968,584,31495,1694,19240,11950,25981,3802,1810,14172,28093,257,10196,12403,26009,25028,11887,(...TRUNCATED) | [0.17333984375,0.1571044921875,0.152099609375,0.150146484375,0.1385498046875,0.1368408203125,0.13513(...TRUNCATED) |
test-environment-aeghhgwpe-pro03a | [19240,186,18089,1810,14532,32483,16334,23225,24456,3553,21136,26947,9605,968,25493,3317,15794,14546(...TRUNCATED) | [0.1915283203125,0.1812744140625,0.180908203125,0.1695556640625,0.1656494140625,0.1605224609375,0.14(...TRUNCATED) |
test-environment-aeghhgwpe-pro04a | [7724,584,23225,3643,20225,19240,31495,14172,3553,11950,3802,1810,26947,22068,14091,7472,18442,14739(...TRUNCATED) | [0.1783447265625,0.177490234375,0.17626953125,0.169677734375,0.149658203125,0.1485595703125,0.148193(...TRUNCATED) |
test-environment-aeghhgwpe-con03b | [28229,19240,16544,12960,9540,18065,17896,10986,17759,32364,14091,12145,21136,11052,23484,19637,1845(...TRUNCATED) | [0.1844482421875,0.1700439453125,0.1630859375,0.1575927734375,0.156982421875,0.147705078125,0.138305(...TRUNCATED) |
test-environment-aeghhgwpe-con01b | [9540,25493,17759,12960,28327,11052,22594,6882,17771,1810,32364,5962,17896,10901,543,21136,27287,101(...TRUNCATED) | [0.171630859375,0.16162109375,0.15087890625,0.1478271484375,0.146240234375,0.143310546875,0.13793945(...TRUNCATED) |
mSlideOn sparse vectors for MS MARCO passage and BEIR
Pre-computed learned sparse vectors from lightonai/mSlideOn
(revision ef80160) for the MS MARCO v1 passage corpus and the 29 BEIR v1.0.0 corpora
distributed with Anserini, plus their evaluation queries.
Document ids, query ids and texts follow Anserini exactly (BEIR documents are encoded as title + " " + text),
so the vectors drop into Anserini/Pyserini impact indexes. See the
SlideOn & mSlideOn blog post for the models.
Layout
One config per dataset; each row is one document or query:
| column | type | content |
|---|---|---|
id |
string | Anserini docid / qid |
indices |
list | active latents (0–32767), sorted by decreasing weight |
weights |
list | the model's weights, exactly as it outputs them (FP16, no quantization) |
Scores are raw dot products between query and document vectors (no log, no normalization).
Choosing the sparsity (Matryoshka budgets)
mSlideOn was trained with Matryoshka budgets of 512, 1024 or 2048 document latents and 128 or 256 query latents.
Because each row is sorted by weight, keeping the first k entries is exactly the model's max_active_dims=k output:
- documents store the top 2048 latents (the largest trained document budget; docs with fewer active latents keep all of them). Truncating further (e.g. to 512) reduces index size and latency.
- queries are stored unpruned; truncate to the trained query budgets for faster search.
from datasets import load_dataset
docs = load_dataset("lightonai/mSlideOn-sparse-vectors", "beir-v1.0.0-scifact", split="corpus")
k = 512
docs = docs.map(lambda r: {"indices": r["indices"][:k], "weights": r["weights"][:k]})
Anserini
to_anserini.py (in this repo) truncates to top-k, quantizes weights as round(w * 100) (the SPLADE convention;
costs ≤ 0.001 nDCG@10 in our checks) and writes JsonVectorCollection documents and TsvString topics:
python to_anserini.py beir-v1.0.0-scifact/corpus collections/scifact/part0.jsonl.gz --k 512
python to_anserini.py beir-v1.0.0-scifact/queries/test topics.scifact.tsv.gz --query
bin/run.sh io.anserini.index.IndexCollection -collection JsonVectorCollection -input collections/scifact \
-index indexes/scifact.mslideon -generator DefaultLuceneDocumentGenerator -threads 16 -impact -pretokenized
bin/run.sh io.anserini.search.SearchCollection -index indexes/scifact.mslideon -topics topics.scifact.tsv.gz \
-topicReader TsvString -output run.scifact.txt -impact -pretokenized -removeQuery -hits 1000
Citation
@misc{moura2026slideon,
author = {Moura Junior, Paulo Roberto and Sourty, Raphaël},
title = {{SlideOn} \& {mSlideOn}: Sparsified late-interaction and dense retrievers},
year = {2026},
howpublished = {Hugging Face Blog},
url = {https://huggingface.co/blog/lightonai/slideon-mslideon}
}
- Downloads last month
- 517