Files changed (1) hide show
  1. README.md +70 -39
README.md CHANGED
@@ -4,64 +4,95 @@ license: apache-2.0
4
  language:
5
  - en
6
  ---
7
-
8
- # PubMed-Multi-Vector
9
 
10
  ## Overview
11
- This dataset is a large slice of pre-embedded PubMed abstracts -- embedded with BGE-M3. It is designed to benchmark hybrid retrieval methods with corpus variables held constant. It generates dense, sparse, and ColBERT-style multi-vector representations over the exact same text corpus, accumulating over 8.37 billion multi-vector tokens across nearly 35 TB of data.
12
 
13
- The dataset includes:
 
 
 
 
 
 
 
14
 
15
- - **23.9M dense embeddings**
16
- - **23.9M sparse embeddings**
17
- - **8.37B multi-vector token embeddings**
18
- - **Exact top-1000 ground truth for dense, sparse, and filtered retrieval**
 
 
 
 
19
 
20
  ## Dataset Contents
21
 
22
- Each row carries the document's dense and sparse embeddings, and all eight FineWeb source fields are retained verbatim:
 
 
23
 
24
- | Field | Type | Notes |
25
- | --- | --- | --- |
26
- | `id` | `string` | Unique document identifier |
27
  | `title` | `string` | Article title |
28
- | `content` | `string` | Main article text or abstract |
29
- | `contents` | `string` | Alternative or full document text |
30
- | `PMID` | `int64` | PubMed Unique Identifier |
31
- | `source_file_name` | `string` | Origin source file path |
32
- | `source_row_number` | `int64` | Line/row index within the source file |
33
- | `bge_m3_dense_embedding` | `list<float>` | BGE-M3 dense vector representation |
34
- | `bge_m3_sparse_embedding` | `struct<indices: list<uint32>, values: list<float>>` | BGE-M3 sparse token weights (lexical indices and values) |
35
- | `bge_m3_multivector_embedding` | `list<list<float>>` | BGE-M3 multi-vector representation (ColBERT-style multi-token embeddings) |
36
 
37
  ### Embeddings
38
- Each document is represented using [BAAI/bge-m3](https://huggingface.co/BAAI/bge-m3).
39
 
40
- - **Dense:** 1024 dimensions; Vectors are unit-norm. Compare with cosine, or equivalently dot product; do not re-normalize.
41
- - **Sparse:** BM25-style sparse embeddings for hybrid-retrieval.
42
- - **Multivector:** ColBERT-style dense multi-vectr embeddings for advaced reranking and rescoring workloads.
43
 
44
- ### Intended Uses
 
 
45
 
46
- PubMed-Multi-Vector is intended for large-scale evaluation of:
47
 
48
- - dense vector search
49
- - sparse vector search
50
- - multi vector search
51
- - hybrid retrieval
52
- - vector database ingestion and indexing
53
- - approximate nearest-neighbor algorithms
54
- - distributed retrieval systems
55
 
56
- It is also useful for work that needs a very large embedded corpus rather than a retrieval benchmark: quantization and compression studies, index-build cost and memory-footprint measurement, sharding and routing strategies, embedding-space analysis at web scale, and cost/recall trade-off curves where 10B vectors make the trade-off visible in a way 1M-vector benchmarks do not.
57
 
 
58
 
59
- ## Licensing
 
 
 
 
 
 
 
 
 
 
 
 
60
 
61
- We release this dataset under the Apache 2.0 license
 
 
 
 
 
 
 
 
 
 
 
 
 
62
 
63
  ## Acknowledgments
64
- This dataset would not exist without the upstream work it is built on:
65
 
66
- - **HuggingFace**
67
- - **SkyPilot**
 
 
 
 
4
  language:
5
  - en
6
  ---
7
+ # PubMed-MultiVector (PubMed-VE)
 
8
 
9
  ## Overview
 
10
 
11
+ **PubMed-VE** is a retrieval benchmark built from [PubMed abstracts](https://huggingface.co/datasets/MedRAG/pubmed) using [BGE-M3](https://huggingface.co/BAAI/bge-m3).
12
+
13
+ Each document is represented in all three formats produced by BGE-M3:
14
+
15
+ - **~24 million dense embeddings**
16
+ - **~24 million sparse embeddings**
17
+ - **~8.77B multi-vector (token-level) embeddings**
18
+
19
 
20
+
21
+ |Statistic |Value |
22
+ |---|---|
23
+ | Documents | 23,898,701 |
24
+ | Queries | 1,000 |
25
+ | Ground truth | exact top-1000, one list per modality (dense / sparse / multi-vector) |
26
+ | Embeddings | [`BAAI/bge-m3`](https://huggingface.co/BAAI/bge-m3) (dense 1024-d, sparse lexical weights, ColBERT-style multi-vector) |
27
+ | Corpus size | ~35 TiB |
28
 
29
  ## Dataset Contents
30
 
31
+ The corpus is [`MedRAG/pubmed`](https://huggingface.co/datasets/MedRAG/pubmed), which consists of 23,898,701 documents.
32
+
33
+ Each row contains the following fields:
34
 
35
+ | **Field** | **Type** | **Notes** |
36
+ |---|---|---|
37
+ | `id` | `string` | MedRAG snippet ID |
38
  | `title` | `string` | Article title |
39
+ | `content` | `string` | Abstract text |
40
+ | `contents` | `string` | Title + abstract |
41
+ | `PMID` | `int64` | PubMed ID |
42
+ | `source_file_name` | `string` | Source file in the MedRAG corpus |
43
+ | `source_row_number` | `int64` | Row within the MedRAG source file |
44
+ | `bge_m3_dense_embedding` | `list<float32>` | 1024-D dense vector |
45
+ | `bge_m3_sparse_embedding` | `struct<indices: list<uint32>, values: list<float32>>` | Sparse lexical weights |
46
+ | `bge_m3_multivector_embedding` | `list<list<float32>>` | 1024-D vector per token |
47
 
48
  ### Embeddings
 
49
 
50
+ Each PubMed abstract is represented using BGE-M3 in three retrieval modalities:
 
 
51
 
52
+ - **Dense:** 1024D float32 embeddings.
53
+ - **Sparse:** BGE-M3 lexical weights over the XLM-RoBERTa vocabulary (250,002 tokens). Indices are token ids, values are float32 weights.
54
+ - **Multi-vector:** A set of multi-vectors, where there is one 1024-d float32 vector per input token, ColBERT-style.
55
 
56
+ All three vectors are produced in a single forward pass per document by the same BGE-M3 checkpoint, so the dense, sparse, and multi-vector views of a document are exactly consistent with one another.
57
 
 
 
 
 
 
 
 
58
 
59
+ ### Queries and Ground Truth
60
 
61
+ The benchmark includes ground truth at k=1000 for 1,000 queries sampled from [MTEB's raw bioRxiv dataset](https://huggingface.co/datasets/mteb/raw_biorxiv). Each query is the **title** of an existing bioRxiv preprint, embedded in dense, sparse, and multi-vector form, modeling a literature-review workflow in which a paper is used to retrieve related PubMed literature. Queries are short relative to the corpus, which makes the benchmark a asymmetric short-query / long-document retrieval task rather than a document-to-document similarity task. [Supernova](https://github.com/qdrant-labs/supernova) was used to compute exact, brute-force ground truth. Note that multi-vector ground truth uses MaxSim to determine relevance.
62
 
63
+ Each row in the queries files contain the following columns:
64
+
65
+ | Column | Type | Description |
66
+ |---|---|---|
67
+ | `query_id` | `string` | `q00000` … `q00999` |
68
+ | `query` | `string` | bioRxiv preprint title |
69
+ | `doc_id` | `string` | Source bioRxiv DOI, e.g. `10.1101/181198` |
70
+ | `category` | `string` | bioRxiv subject category |
71
+ | `bge_m3_dense_embedding` | `list<float>` | 1024-d, L2-normalized |
72
+ | `bge_m3_sparse_embedding` | `struct<indices: list<uint32>, values: list<float>>` | Lexical weights |
73
+ | `bge_m3_multivector_embedding` | `list<list<float>>` | One 1024-d vector per token |
74
+ | `hit_ids` | `list<string>` | Top-1000 PMIDs, best first |
75
+ | `hit_scores` | `list<float>` | Parallel similarity scores, non-increasing |
76
 
77
+
78
+ ## Intended Uses
79
+
80
+ PubMed-VE is intended for evaluating and comparing dense, sparse, multi-vector, hybrid, and multi-stage retrieval systems over a common scientific corpus.
81
+
82
+ Because the three modalities share a corpus, a query set, and an embedding model, differences in measured quality are attributable to the retrieval method rather than to the data or the encoder. Concretely, it supports:
83
+
84
+ - Recall@k against exact ground truth for an ANN index, per modality, at any k up to 1000.
85
+ - Modality comparison -- dense vs. sparse vs. multi-vector on identical inputs.
86
+ - Hybrid retrieval -- score fusion, reciprocal-rank or other result fusion, and multi-stage pipelines (e.g. dense or sparse candidate generation followed by MaxSim reranking), each with an exact reference to measure against.
87
+
88
+
89
+ ## Licensing
90
+ We release this dataset under the Apache 2.0 license.
91
 
92
  ## Acknowledgments
 
93
 
94
+ We thank [HuggingFace](https://huggingface.co/) for providing a grant to offset a portion of the cost of hosting this dataset. Additionally, this benchmark would not exist without the upstream work it builds on:
95
+
96
+ - Xiong, Jin, Lu, and Zhang for the [MedRAG](https://github.com/Teddy-XiongGZ/MedRAG) PubMed corpus, and the U.S. National Library of Medicine for maintaining and distributing PubMed.
97
+ - bioRxiv and the preprint authors whose titles form the query set, and the **MTEB** team for the `raw_biorxiv` collection.
98
+ - BAAI for releasing [BGE-M3](https://huggingface.co/BAAI/bge-m3).