Upload vidore3_finance_neomme_260m_li: NeoMME-260M late-interaction multi-vector embeddings
Browse files- README.md +160 -0
- doc_ids.npy +3 -0
- doclens.npy +3 -0
- documents.npy +3 -0
- gt_top100.tsv +0 -0
- qrels.test.tsv +0 -0
- queries.npy +3 -0
- queries_ids.npy +3 -0
- query_lens.npy +3 -0
README.md
ADDED
|
@@ -0,0 +1,160 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
pretty_name: vidore3_finance_neomme_260m_li
|
| 3 |
+
license: cc-by-4.0
|
| 4 |
+
tags:
|
| 5 |
+
- multi-vector
|
| 6 |
+
- late-interaction
|
| 7 |
+
- colbert
|
| 8 |
+
- embeddings
|
| 9 |
+
- retrieval
|
| 10 |
+
- image
|
| 11 |
+
---
|
| 12 |
+
|
| 13 |
+
# vidore3_finance_neomme_260m_li
|
| 14 |
+
|
| 15 |
+
Multi-vector (late-interaction) embeddings of **ViDoRe finance** (`vidore/finance`), encoded with
|
| 16 |
+
**[Hcompany/NeoMME-260M-Retriever-ST-late](https://huggingface.co/Hcompany/NeoMME-260M-Retriever-ST-late)** at revision `023be2a8ab9d797f5aa76f5bf8b5dde78d819659`.
|
| 17 |
+
|
| 18 |
+
**Source data:** Hugging Face dataset [`vidore/vidore_v3_finance_en`](https://huggingface.co/datasets/vidore/vidore_v3_finance_en) at revision `7f432c176d82e27546501ad8064a713ac3071809`, configs `corpus` / `queries` / `qrels`, split `test`, loaded with `datasets`. Document, query and qrel ids are the source's own ids,
|
| 19 |
+
unchanged.
|
| 20 |
+
|
| 21 |
+
Every document is one variable-length set of 128-d vectors; every query is one variable-length
|
| 22 |
+
set of 128-d vectors. Documents and queries are stored at different precisions (fp16 and fp32
|
| 23 |
+
respectively), see [Encoding](#encoding).
|
| 24 |
+
|
| 25 |
+
## Files
|
| 26 |
+
|
| 27 |
+
| file | dtype | shape | contents |
|
| 28 |
+
|---|---|---|---|
|
| 29 |
+
| `documents.npy` | float16 (`<f2`) | `[9,608,572, 128]` | every document vector, concatenated document by document (2,345.8 MiB) |
|
| 30 |
+
| `doclens.npy` | int32 | `[2,942]` | vectors per document; `cumsum` gives offsets |
|
| 31 |
+
| `doc_ids.npy` | `<U4` | `[2,942]` | original document ids |
|
| 32 |
+
| `queries.npy` | float32 (`<f4`) | `[1,854, 94, 128]` | query vectors, zero-padded at the end (85.1 MiB) |
|
| 33 |
+
| `query_lens.npy` | int32 | `[1,854]` | true vectors per query, before padding |
|
| 34 |
+
| `queries_ids.npy` | `<U4` | `[1,854]` | original query ids |
|
| 35 |
+
| `qrels.test.tsv` | text | 8,766 rows | TREC qrels, `qid \t 0 \t docid \t relevance`, no header |
|
| 36 |
+
| `gt_top100.tsv` | text | 185,400 rows | exact MaxSim top-100, see below |
|
| 37 |
+
|
| 38 |
+
All positional indices (`gt_top100.tsv`, and the row order of every `.npy` file) refer to the order
|
| 39 |
+
of `doc_ids.npy` and `queries_ids.npy`. Reordering either file invalidates `gt_top100.tsv`.
|
| 40 |
+
|
| 41 |
+
## Statistics
|
| 42 |
+
|
| 43 |
+
| | |
|
| 44 |
+
|---|---|
|
| 45 |
+
| documents | 2,942 |
|
| 46 |
+
| document vectors | 9,608,572 |
|
| 47 |
+
| vectors per document (min / median / mean / max) | 3266 / 3266 / 3266.0 / 3266 |
|
| 48 |
+
| queries | 1,854 |
|
| 49 |
+
| vectors per query (min / median / max) | 18 / 36 / 94 |
|
| 50 |
+
| queries with at least one qrel | 1,854 |
|
| 51 |
+
| qrels rows | 8,766 |
|
| 52 |
+
| embedding dimension | 128 |
|
| 53 |
+
|
| 54 |
+
## Encoding
|
| 55 |
+
|
| 56 |
+
| | |
|
| 57 |
+
|---|---|
|
| 58 |
+
| model | [Hcompany/NeoMME-260M-Retriever-ST-late](https://huggingface.co/Hcompany/NeoMME-260M-Retriever-ST-late) |
|
| 59 |
+
| model revision | `023be2a8ab9d797f5aa76f5bf8b5dde78d819659` |
|
| 60 |
+
| library | sentence-transformers 6.0.1 `MultiVectorEncoder` (transformers 5.17.0, torch 2.11.0+cu126) |
|
| 61 |
+
| document compute dtype | float16 (model weights loaded at this dtype for the document pass) |
|
| 62 |
+
| document storage dtype | fp16 |
|
| 63 |
+
| query compute dtype | float32 (model weights loaded at this dtype for the query pass) |
|
| 64 |
+
| query storage dtype | fp32 |
|
| 65 |
+
| normalization | L2, by the model's own `Normalize` module, before the storage cast |
|
| 66 |
+
| document truncation | none (`document_length` unset; model limit 16,384 tokens, longest document here 3,266 vectors, so nothing hit it) |
|
| 67 |
+
| query truncation | none (checkpoint default; `query_length` unset) |
|
| 68 |
+
| document skiplist | none (empty `skiplist_words`): every document token is kept, so doclens is the real token count |
|
| 69 |
+
| document input | page image, one vector per image patch plus layout tokens; processor default resizing |
|
| 70 |
+
| query input | query text, stripped of surrounding whitespace, formatted by the model's own query prompt/template |
|
| 71 |
+
| query vectors | every vector the model emits for the query is kept, including any query-expansion tokens its template adds; `query_lens` counts them all |
|
| 72 |
+
| document padding | none: `documents.npy` holds real vectors only, `sum(doclens) == n_tokens` |
|
| 73 |
+
| query padding | rows at or beyond `query_lens[i]` in `queries.npy[i]` are exactly zero |
|
| 74 |
+
| token_ids | not provided: image-patch vectors have no vocabulary ids (only placeholder ids) |
|
| 75 |
+
|
| 76 |
+
## Ground truth: `gt_top100.tsv`
|
| 77 |
+
|
| 78 |
+
Exact brute-force MaxSim top-100 per query over the full corpus, from the vectors in this repo.
|
| 79 |
+
No header; tab-separated `qidx docidx rank score`:
|
| 80 |
+
|
| 81 |
+
- `qidx`: 0-based row into `queries_ids.npy` / `queries.npy`
|
| 82 |
+
- `docidx`: 0-based position into `doc_ids.npy` / `doclens.npy`
|
| 83 |
+
- `rank`: 1-based, descending score
|
| 84 |
+
- `score`: `sum over the query's query_lens[qidx] vectors of max over the document's vectors of the
|
| 85 |
+
dot product`, computed in fp32 with the fp16 document vectors upcast to fp32. Expansion vectors
|
| 86 |
+
are included in the sum. Printed to 6 decimals.
|
| 87 |
+
|
| 88 |
+
**Self-matches are included.** 55 of 1,854 queries are themselves corpus documents with the same id and retrieve that document (typically at rank 1). This is the raw nearest-neighbour list; BEIR's evaluation drops such pairs (`ignore_identical_ids`), so exclude them before scoring against qrels.
|
| 89 |
+
|
| 90 |
+
## Retrieval quality
|
| 91 |
+
|
| 92 |
+
Sanity check of the vectors, not a leaderboard number: exact MaxSim over the full corpus scored
|
| 93 |
+
against `qrels.test.tsv` with ir_measures, with query-id == doc-id pairs dropped as BEIR does.
|
| 94 |
+
|
| 95 |
+
| nDCG@10 | Recall@100 | MRR@10 | MAP |
|
| 96 |
+
|---|---|---|---|
|
| 97 |
+
| 0.5641 | 0.8664 | 0.6788 | 0.4864 |
|
| 98 |
+
|
| 99 |
+
## Loading
|
| 100 |
+
|
| 101 |
+
```python
|
| 102 |
+
import numpy as np
|
| 103 |
+
|
| 104 |
+
documents = np.load("documents.npy", mmap_mode="r") # [n_tokens, 128] float16
|
| 105 |
+
doclens = np.load("doclens.npy") # [n_docs] int32
|
| 106 |
+
offsets = np.concatenate([[0], np.cumsum(doclens)])
|
| 107 |
+
doc_ids = np.load("doc_ids.npy") # [n_docs] str
|
| 108 |
+
|
| 109 |
+
def document(i):
|
| 110 |
+
return documents[offsets[i]:offsets[i + 1]] # [doclens[i], 128]
|
| 111 |
+
|
| 112 |
+
queries = np.load("queries.npy") # [n_queries, 94, 128] float32
|
| 113 |
+
query_lens = np.load("query_lens.npy") # [n_queries] int32
|
| 114 |
+
query_ids = np.load("queries_ids.npy") # [n_queries] str
|
| 115 |
+
|
| 116 |
+
def query(j):
|
| 117 |
+
return queries[j, :query_lens[j]] # [query_lens[j], 128]
|
| 118 |
+
|
| 119 |
+
def maxsim(q, d):
|
| 120 |
+
return (q @ d.astype(np.float32).T).max(axis=1).sum()
|
| 121 |
+
```
|
| 122 |
+
|
| 123 |
+
## Validation
|
| 124 |
+
|
| 125 |
+
Checks run by the exporter on the files exactly as written here:
|
| 126 |
+
|
| 127 |
+
- ✅ file set — missing=[] extra=[]
|
| 128 |
+
- ✅ documents.npy dtype/shape — <f2 (9608572, 128)
|
| 129 |
+
- ✅ doclens.npy dtype/shape — <i4 (2942,)
|
| 130 |
+
- ✅ doc_ids.npy is a string array — <U4 (2942,)
|
| 131 |
+
- ✅ queries.npy dtype/shape — <f4 (1854, 94, 128)
|
| 132 |
+
- ✅ query_lens.npy dtype/shape — <i4 (1854,)
|
| 133 |
+
- ✅ queries_ids.npy is a string array — <U4 (1854,)
|
| 134 |
+
- ✅ sum(doclens) == n_tokens — 9608572 vs 9608572
|
| 135 |
+
- ✅ no empty documents — min doclen 3266
|
| 136 |
+
- ✅ len(doc_ids) == len(doclens) == corpus size — 2942, 2942, 2942
|
| 137 |
+
- ✅ doc_ids unique and in corpus order
|
| 138 |
+
- ✅ query arrays aligned — 1854, 1854, 1854
|
| 139 |
+
- ✅ queries_ids in dataset order
|
| 140 |
+
- ✅ max(query_lens) == queries.shape[1]
|
| 141 |
+
- ✅ query padding is exactly zero
|
| 142 |
+
- ✅ doc and query dim agree — 128 / 128
|
| 143 |
+
- ✅ document vectors unit-norm (100k sample) — norm range [0.9995, 1.0006]
|
| 144 |
+
- ✅ query vectors unit-norm — norm range [1.000000, 1.000000]
|
| 145 |
+
- ✅ all vectors finite
|
| 146 |
+
- ✅ qrels.test.tsv is 4-col TREC matching the dataset — 8766 rows
|
| 147 |
+
- ✅ gt_top100.tsv has k rows per query — 185400 rows, k=100
|
| 148 |
+
- ✅ gt rows grouped by qidx with ranks 1..k and descending scores
|
| 149 |
+
- ✅ gt indices in range
|
| 150 |
+
- ✅ gt scores reproduce from these files (16 queries, fp32 MaxSim) — max |diff| 1.53e-05
|
| 151 |
+
- ✅ gt top-k is exact (no excluded doc outscores rank k) — max margin -1.05e-04
|
| 152 |
+
- ✅ re-encoded docs match stored rows (4 docs) — lengths match, min token cosine 0.9901
|
| 153 |
+
- ✅ re-encoded queries match stored rows (8 queries) — lengths match, min token cosine 1.000000
|
| 154 |
+
|
| 155 |
+
## Provenance
|
| 156 |
+
|
| 157 |
+
| | |
|
| 158 |
+
|---|---|
|
| 159 |
+
| exported | 2026-09-23 |
|
| 160 |
+
| hardware | Tesla V100S-PCIE-32GB |
|
doc_ids.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fd926ca84c57699e379e53d6324bb6cdbafc9041c1b9f5a310d2a1af07a8ea9f
|
| 3 |
+
size 47200
|
doclens.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d5bc3f7fdf4198fc09c4ed10cec81f14396f2e538da72e876ae83f7fdbfdfafa
|
| 3 |
+
size 11896
|
documents.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:54efa6547128e65dfbf5c7d96907fe38841acae1aaa6c15326ff4e1feea47ad8
|
| 3 |
+
size 2459794560
|
gt_top100.tsv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
qrels.test.tsv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
queries.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:69572ce6e0e82dee0e70c57a8ea9006ab96d4216d9ec0a6ff5e2b9fbe40ea525
|
| 3 |
+
size 89229440
|
queries_ids.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b8770a9d2947a80939496c67a2c7bfd4f996c80b01e459103ed52908941b6717
|
| 3 |
+
size 29792
|
query_lens.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:84be48276e4f8cbc970db39f8bf7938e6cfd4360fe945ccb5a8898b2ae7b7059
|
| 3 |
+
size 7544
|