denkiwakame commited on
Commit
0abfeee
·
verified ·
1 Parent(s): 243219b

Add dataset card

Browse files
Files changed (1) hide show
  1. README.md +364 -0
README.md CHANGED
@@ -1,3 +1,367 @@
1
  ---
2
  license: cc-by-4.0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: cc-by-4.0
3
+ viewer: false
4
+ task_categories:
5
+ - text-retrieval
6
+ - feature-extraction
7
+ tags:
8
+ - approximate-nearest-neighbor-search
9
+ - vector-search
10
+ - vector-database
11
+ - graph-index
12
+ - graph-reordering
13
+ - ann-benchmark
14
+ - cagra
15
+ - nsg
16
+ - diskann
17
+ pretty_name: "Plasma: Graph Indices for Layout-Aware ANNS on GPU"
18
  ---
19
+
20
+ # Plasma — Prebuilt Graph Indices for Layout-Aware ANNS on GPU
21
+
22
+ Companion artifacts for **Plasma** (**P**latform for **L**ayout-**A**ware **S**earch and
23
+ **M**emory **A**rrangement), a unified evaluation framework for graph-based Approximate
24
+ Nearest Neighbor Search on GPU that isolates the effects of **graph index topology** from
25
+ those of **memory layout**.
26
+
27
+ > **TL;DR of the paper** — Decoupling graph topology from memory layout on GPU. Vertex
28
+ > reordering alone yields up to **80% QPS gain at equal recall**.
29
+
30
+ | | |
31
+ |---|---|
32
+ | 📄 Paper | https://openreview.net/forum?id=tF70hyyM6V |
33
+ | 📚 arXiv | https://arxiv.org/abs/2508.15436 |
34
+ | 🌐 Project page | https://omron-sinicx.github.io/plasma |
35
+ | 💻 Code | https://github.com/omron-sinicx/plasma |
36
+
37
+ Plasma compares graph-based ANNS indices under differing memory layouts while collecting
38
+ hardware-level metrics, covering both **classical** (SIFT, GIST, Deep) and **modern
39
+ embeddings** (Yandex T2I, OpenAI, Wikipedia, BioASQ, C4). Since index construction is
40
+ computationally expensive, we release the pre-built indices — **adjacency lists and
41
+ reordering maps** — so that layout and topology can be evaluated on your platforms
42
+ without rebuilding.
43
+
44
+ **This project does not release new vectors; the released files contain graph structure
45
+ only.** The underlying vectors are from their original providers, attributed in full
46
+ under [Source datasets and credits](#source-datasets-and-credits).
47
+
48
+ > ### ⚠️ No vectors are included
49
+ >
50
+ > Every file in this repository contains **integers only** — graph adjacency lists and
51
+ > vertex-ID permutations. **No embedding, feature vector, or any other element of the
52
+ > source corpora is redistributed here.** Index-implementation binaries that embed the
53
+ > raw vectors (`*.faissindex`, `*.diskann.data`, and similar) are deliberately excluded.
54
+ >
55
+ > To use these indices you must obtain the vectors yourself from their original
56
+ > distributors, under those distributors' own terms. See
57
+ > [Reproducing a usable index](#reproducing-a-usable-index).
58
+
59
+ Building these graphs is the expensive part of ANN research — a single 40M-point graph
60
+ takes hours on a GPU. Publishing the graphs (and the reordering permutations derived from
61
+ them) lets others reproduce and compare **graph-reordering / memory-layout** results
62
+ without repeating index construction.
63
+
64
+ ---
65
+
66
+ ## Contents
67
+
68
+ | Index | Description |
69
+ |---|---|
70
+ | `cagra` | GPU-built k-NN graph (NVIDIA CAGRA) |
71
+ | `nsg` | Navigating Spreading-out Graph |
72
+ | `nndescent` | NN-Descent k-NN graph |
73
+ | `diskann` | DiskANN / Vamana graph |
74
+ | `nssg` | Navigating Satellite System Graph — extra, beyond the four evaluated in the paper |
75
+
76
+ Graph-reordering permutations are provided for seven methods:
77
+
78
+ | Method | In the paper |
79
+ |---|---|
80
+ | `gorder` | GOrder |
81
+ | `rcm` | RCM (Reverse Cuthill–McKee) |
82
+ | `hubsort` | Hub Sort |
83
+ | `indegree`, `outdegree` | Degree Sort |
84
+ | `hubcluster`, `random` | extra baselines, beyond the paper's headline set |
85
+
86
+ ### Datasets covered
87
+
88
+ | Dataset | Dim | Metric | Indices | Files | Size |
89
+ |---|---:|---|---|---:|---:|
90
+ | `sift-128-euclidean` | 128 | L2 | cagra, nsg, nssg, nndescent, diskann | 60 | 6.78 GiB |
91
+ | `gist-960-euclidean` | 960 | L2 | cagra, nsg, nssg, nndescent, diskann | 54 | 4.71 GiB |
92
+ | `deep1m-96-euclidean` | 96 | L2 | cagra, nsg, nssg, nndescent, diskann | 54 | 5.32 GiB |
93
+ | `deep10m` | 96 | L2 | cagra, nsg, nndescent, diskann | 18 | 22.10 GiB |
94
+ | `t2i1m-200` | 200 | L2 / IP | cagra, nsg, nssg, nndescent, diskann | 52 | 5.54 GiB |
95
+ | `openai1m-1536-euclidean` | 1536 | L2 | cagra, nsg, nndescent, diskann | 53 | 5.21 GiB |
96
+ | `wikipedia1m-768-ip` | 768 | IP | cagra, nsg, nndescent, diskann | 46 | 4.47 GiB |
97
+ | `wikipedia10m-768-ip` | 768 | IP | nndescent | 11 | 14.95 GiB |
98
+ | `bioasq1m-1024-ip` | 1024 | IP | cagra, nsg, nndescent, diskann | 46 | 4.56 GiB |
99
+ | `bioasq10m-1024-ip` | 1024 | IP | nndescent | 11 | 15.11 GiB |
100
+ | `c45m-1536-ip` | 1536 | IP | nndescent | 11 | 7.34 GiB |
101
+ | `sift_200nn.knng` | 128 | L2 | 200-NN ground-truth graph | 1 | 0.75 GiB |
102
+ | **Phase 1 total** | | | | **417** | **96.84 GiB** |
103
+ | `deep40m-96-euclidean` 🚧 | 96 | L2 | cagra, nndescent | 12 | 66.68 GiB |
104
+ | `deep50m-96-euclidean` 🚧 † | 96 | L2 | nsg | 1 | 9.81 GiB |
105
+ | **Total** | | | | **430** | **173.33 GiB** |
106
+
107
+ > 🚧 **Upload in progress.** The `deep40m` / `deep50m` indices are being added in a
108
+ > follow-up batch. Everything above them is complete.
109
+
110
+ These cover the 12 datasets benchmarked in the paper. († `deep50m` is an extra scale
111
+ point not reported in the paper.) Larger configurations are covered by fewer index types
112
+ simply because not every index could be built at that scale within our compute budget.
113
+
114
+ ---
115
+
116
+ ## File naming
117
+
118
+ ```
119
+ <index>_K<degree>_<dataset>_<metric>[_reordered_<method>][_mapping].<ext>
120
+ ```
121
+
122
+ | Part | Values |
123
+ |---|---|
124
+ | `<index>` | `cagra`, `nsg`, `nssg`, `nndescent`, `diskann` |
125
+ | `K<degree>` | `K32` (almost all), `K64` (a few SIFT configurations) |
126
+ | `<dataset>` | e.g. `sift-128-euclidean`, `bioasq1m-1024-ip` |
127
+ | `<metric>` | `l2` (Euclidean) or `ip` (inner product) |
128
+ | `<method>` | `gorder`, `rcm`, `hubsort`, `hubcluster`, `indegree`, `outdegree`, `random` |
129
+
130
+ Examples:
131
+
132
+ ```
133
+ cagra_K32_deep1m-96-euclidean_l2.adjlist # base graph
134
+ cagra_K32_deep1m-96-euclidean_l2_reordered_gorder_mapping.txt # Gorder permutation
135
+ diskann_K32_bioasq1m-1024-ip_ip_reordered_gorder.adjlist # reordered graph
136
+ diskann_K32_bioasq1m-1024-ip_ip_mapping_gorder.txt # Gorder permutation
137
+ ```
138
+
139
+ Note the two mapping-filename spellings: `..._reordered_<method>_mapping.txt` and
140
+ `..._mapping_<method>.txt`. They are the same kind of file; the difference is only which
141
+ build script emitted it.
142
+
143
+ ### `*.adjlist` — adjacency list (ASCII)
144
+
145
+ ```
146
+ <N> <K> # header: number of vertices, out-degree
147
+ <vertex_id> <neighbor_1> ... <neighbor_K>
148
+ ... # N lines, vertex_id ascending from 0
149
+ ```
150
+
151
+ ### `*_mapping*.txt` — vertex permutation (ASCII)
152
+
153
+ ```
154
+ <N> # header: number of vertices
155
+ <original_id> <new_id>
156
+ ... # N lines, original_id ascending from 0
157
+ ```
158
+
159
+ The mapping is `original → new`. Concretely, for a reordering `m`:
160
+
161
+ ```
162
+ reordered_graph[m[u]] == { m[w] : w in original_graph[u] }
163
+ reordered_vectors[m[u]] == original_vectors[u]
164
+ ```
165
+
166
+ ### `sift_200nn.knng` — binary k-NN graph
167
+
168
+ The exact-search 200-NN graph for SIFT1M, used as ground truth for recall evaluation.
169
+ Stored in TEXMEX **`ivecs`** format — little-endian `int32` throughout, one record per
170
+ query point:
171
+
172
+ ```
173
+ [K=200][id_1] ... [id_200] # repeated N = 1,000,000 times
174
+ ```
175
+
176
+ The file is exactly `1_000_000 * (4 + 200*4) = 804,000,000` bytes.
177
+
178
+ ```python
179
+ knn = np.fromfile("sift_200nn.knng", dtype=np.int32).reshape(-1, 201)[:, 1:]
180
+ ```
181
+
182
+ ---
183
+
184
+ ## Downloading
185
+
186
+ Full download (~173 GiB) is rarely what you want. Fetch only what you need:
187
+
188
+ ```bash
189
+ pip install -U huggingface_hub hf_xet
190
+ ```
191
+
192
+ ```bash
193
+ # One index type, one dataset
194
+ hf download omron-sinicx/plasma --repo-type dataset --local-dir ./plasma \
195
+ --include 'cagra_K32_deep1m-96-euclidean_l2*'
196
+
197
+ # Base graphs only, no reordering permutations
198
+ hf download omron-sinicx/plasma --repo-type dataset --local-dir ./plasma \
199
+ --include '*.adjlist' --exclude '*_reordered_*'
200
+
201
+ # Everything for one dataset, across all index types
202
+ hf download omron-sinicx/plasma --repo-type dataset --local-dir ./plasma \
203
+ --include '*_sift-128-euclidean_l2*'
204
+
205
+ # Just the Gorder permutations
206
+ hf download omron-sinicx/plasma --repo-type dataset --local-dir ./plasma \
207
+ --include '*gorder*.txt'
208
+ ```
209
+
210
+ Check what a pattern would fetch before committing to it with `--dry-run`.
211
+
212
+ ---
213
+
214
+ ## Reproducing a usable index
215
+
216
+ An adjacency list is only half of an index — you need the vectors it was built over.
217
+
218
+ **1. Get the vectors from the original distributor** (see
219
+ [Source datasets and credits](#source-datasets-and-credits)). Use the *same* base vectors, in the
220
+ *same* order, as that section specifies; vertex IDs in the adjacency lists are
221
+ positions in that original ordering.
222
+
223
+ **2. Load the graph.**
224
+
225
+ ```python
226
+ import numpy as np
227
+
228
+ def load_adjlist(path):
229
+ with open(path) as f:
230
+ n, k = map(int, f.readline().split())
231
+ adj = np.empty((n, k), dtype=np.int32)
232
+ for line in f:
233
+ parts = line.split()
234
+ adj[int(parts[0])] = parts[1:]
235
+ return adj
236
+
237
+ def load_mapping(path):
238
+ with open(path) as f:
239
+ n = int(f.readline())
240
+ m = np.empty(n, dtype=np.int32)
241
+ for line in f:
242
+ u, v = line.split()
243
+ m[int(u)] = int(v)
244
+ return m # m[original_id] -> new_id
245
+ ```
246
+
247
+ **3. Apply a reordering** to your vectors so they match a reordered graph:
248
+
249
+ ```python
250
+ vectors = np.load("deep1m_base.npy") # shape (N, D), original order
251
+ m = load_mapping("cagra_K32_deep1m-96-euclidean_l2_reordered_gorder_mapping.txt")
252
+ adj = load_adjlist("cagra_K32_deep1m-96-euclidean_l2.adjlist")
253
+
254
+ reordered_vectors = np.empty_like(vectors)
255
+ reordered_vectors[m] = vectors # reordered_vectors[m[u]] = vectors[u]
256
+ reordered_adj = m[adj[np.argsort(m)]] # relabel and reorder rows
257
+ ```
258
+
259
+ **4. Search.** Feed `reordered_vectors` and `reordered_adj` to your graph-search routine
260
+ (beam search / greedy best-first). The point of the reordering is locality: neighbouring
261
+ vertices land on nearby cache lines and pages — the paper measures the resulting DRAM
262
+ bandwidth utilisation and L1/L2 hit rates alongside recall and QPS.
263
+
264
+ For the full benchmark harness, see the code repository:
265
+ https://github.com/omron-sinicx/plasma
266
+
267
+ ---
268
+
269
+ ## Source datasets and credits
270
+
271
+ The graphs in this repository were built over vectors produced by other people. **We
272
+ redistribute none of those vectors.** Each dataset must be obtained from its original
273
+ provider, under that provider's own terms. Credit belongs to the creators below.
274
+
275
+ ### Classical benchmarks
276
+
277
+ **SIFT1M · GIST1M** — Hervé Jégou, Matthijs Douze, Cordelia Schmid (INRIA / TEXMEX).
278
+ Local SIFT and global GIST descriptors, introduced with *Product Quantization for Nearest
279
+ Neighbor Search* (IEEE TPAMI, 2011).
280
+ Terms: public domain / CC0-equivalent — no usage restrictions stated by the distributor.
281
+ The 1B-scale sibling (BIGANN) is released as **CC0** by Big ANN Benchmarks.
282
+ → http://corpus-texmex.irisa.fr/
283
+
284
+ **DEEP (`deep1m`, `deep10m`, `deep40m`, `deep50m`)** — Artem Babenko and Victor Lempitsky
285
+ (Yandex Research). Subsets of **DEEP1B**: image embeddings taken from the last
286
+ fully-connected layer of a GoogLeNet pretrained on ImageNet classification, introduced in
287
+ *Efficient Indexing of Billion-Scale Datasets of Deep Descriptors* (CVPR, 2016).
288
+ License: **CC BY 4.0** (Big ANN Benchmarks, "Release terms").
289
+ → https://research.yandex.com/blog/benchmarks-for-billion-scale-similarity-search
290
+ → https://big-ann-benchmarks.com/neurips21.html
291
+
292
+ ### Modern embeddings
293
+
294
+ **Yandex Text-to-Image (`t2i1m`)** — Yandex Research. Database vectors are image
295
+ embeddings from Se-ResNeXt-101; queries are textual embeddings from a DSSM variant. A
296
+ deliberately *cross-modal* benchmark, where queries and database points come from
297
+ different distributions.
298
+ License: **CC BY 4.0** (Big ANN Benchmarks, "Release terms").
299
+ → https://big-ann-benchmarks.com/neurips21.html
300
+
301
+ **OpenAI Embed. (`openai1m`)** — text embeddings of the **WikiText** corpus, generated by
302
+ an **OpenAI** embedding model (1536-dim). Obtained via the Big ANN Benchmarks collection.
303
+ Terms: the underlying WikiText corpus is **CC BY-SA 3.0** (derived from Wikipedia);
304
+ OpenAI's terms for model outputs apply to the embeddings themselves.
305
+ → https://big-ann-benchmarks.com/
306
+ → Simhadri et al., *Results of the Big ANN: NeurIPS'23 competition* (2024)
307
+
308
+ The following three come from **VectorDBBench** (Zilliz, 2023), whose *harness* is
309
+ MIT-licensed. VectorDBBench states no unified license for the datasets themselves, so the
310
+ terms of the underlying corpus **and** of the embedding provider both apply.
311
+ → https://github.com/zilliztech/VectorDBBench
312
+
313
+ **Wikipedia (`wikipedia1m`, `wikipedia10m`)** — text embeddings of the **Wikipedia
314
+ corpus**, generated by the **Cohere V2** model (768-dim).
315
+ Terms: Wikipedia text is **CC BY-SA**; Cohere's terms apply to the embeddings.
316
+
317
+ **BioASQ (`bioasq1m`, `bioasq10m`)** — text embeddings of the **BioASQ question-answering
318
+ corpus**, generated by an **OpenAI** model (1024-dim).
319
+ Terms: BioASQ distributes its corpus under its own terms and requires registration;
320
+ OpenAI's terms apply to the embeddings. Verify BioASQ's conditions before use.
321
+ → http://bioasq.org/
322
+
323
+ **C4 (`c45m`)** — text embeddings of the **Colossal Clean Crawled Corpus (C4)**, generated
324
+ by the **Cohere V3** model (1536-dim). C4 was released by AllenAI as a cleaned scrape of
325
+ Common Crawl, introduced with the T5 paper (Raffel et al., JMLR 2020).
326
+ Terms: the C4 corpus is **ODC-BY**, and Common Crawl's terms apply to the scraped content;
327
+ Cohere's terms apply to the embeddings.
328
+ → https://huggingface.co/datasets/allenai/c4
329
+
330
+ ---
331
+
332
+ ## License and credit
333
+
334
+ The contents of *this repository* — the adjacency lists and permutations — are released
335
+ under **CC BY 4.0** by:
336
+
337
+ - **Yutaro Oguri** — The University of Tokyo
338
+ - **Mai Nishimura** — OMRON SINIC X Corporation
339
+ - **Yusuke Matsui** — The University of Tokyo
340
+
341
+ This license covers only the graph structures we computed. It does **not** grant any
342
+ rights to the source corpora, whose underlying vectors are from their original providers
343
+ and remain under those providers' own terms — attributed in full under
344
+ [Source datasets and credits](#source-datasets-and-credits).
345
+
346
+ ---
347
+
348
+ ## Citation
349
+
350
+ > Yutaro Oguri, Mai Nishimura, Yusuke Matsui.
351
+ > **Plasma: A Layout-Aware Benchmark Reveals Memory Layout Matters for Graph-based ANNS on GPU.**
352
+ > The 2nd Workshop on Vector Databases (VecDB) at Very Large Data Bases (VLDB), 2026.
353
+ > *The University of Tokyo · OMRON SINIC X Corporation*
354
+
355
+ ```bibtex
356
+ @inproceedings{oguri2026plasma,
357
+ author = {Yutaro Oguri and Mai Nishimura and Yusuke Matsui},
358
+ title = {Plasma: A Layout-Aware Benchmark Reveals Memory Layout
359
+ Matters for Graph-based ANNS on GPU},
360
+ booktitle = {The 2nd Workshop on Vector Databases (VecDB) at
361
+ Very Large Data Bases (VLDB)},
362
+ year = {2026},
363
+ url = {https://openreview.net/forum?id=tF70hyyM6V},
364
+ eprint = {2508.15436},
365
+ archivePrefix = {arXiv}
366
+ }
367
+ ```