allisonzz commited on
Commit
66964f9
·
verified ·
1 Parent(s): 2aaa818

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +87 -0
README.md ADDED
@@ -0,0 +1,87 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ task_categories:
4
+ - feature-extraction
5
+ language:
6
+ - en
7
+ tags:
8
+ - embeddings
9
+ - vector-database
10
+ - migration
11
+ - retrieval
12
+ - ms-marco
13
+ - beir
14
+ pretty_name: Embedding Migration Results
15
+ size_categories:
16
+ - n<1K
17
+ ---
18
+
19
+ # Embedding Migration Results
20
+
21
+ Experimental results from testing whether vector databases can be migrated to new embedding models **without re-embedding the entire corpus**.
22
+
23
+ ## Overview
24
+
25
+ We embedded ~1M MS MARCO passages with 6 embedding models across 3 dimensionalities (768, 1024, 2560), trained linear translators between every pair of embedding spaces, and measured recall@10 ratio (translated / native ceiling).
26
+
27
+ ## Models
28
+
29
+ | Model | Dim | Prefix |
30
+ |---|---|---|
31
+ | intfloat/e5-base-v2 | 768 | query/passage |
32
+ | BAAI/bge-base-en-v1.5 | 768 | query only |
33
+ | Alibaba-NLP/gte-base-en-v1.5 | 768 | none |
34
+ | nomic-ai/nomic-embed-text-v1.5 | 768 | search_query/search_document |
35
+ | Qwen/Qwen3-Embedding-0.6B | 1024 | instruction format |
36
+ | Qwen/Qwen3-Embedding-4B | 2560 | instruction format |
37
+
38
+ ## Files
39
+
40
+ | File | Evaluations | Description |
41
+ |---|---|---|
42
+ | `msmarco_procrustes.json` | 30 | Orthogonal Procrustes / least-squares on MS MARCO 1M |
43
+ | `msmarco_ridge.json` | 30 | Ridge regression on MS MARCO 1M |
44
+ | `beir_scifact_procrustes.json` | 30 | Procrustes/LS evaluated on BEIR SciFact |
45
+ | `beir_scifact_ridge.json` | 30 | Ridge evaluated on BEIR SciFact |
46
+ | `beir_fiqa_procrustes.json` | 30 | Procrustes/LS evaluated on BEIR FiQA |
47
+ | `beir_fiqa_ridge.json` | 30 | Ridge evaluated on BEIR FiQA |
48
+ | `beir_nfcorpus_procrustes.json` | 30 | Procrustes/LS evaluated on BEIR NFCorpus |
49
+ | `beir_nfcorpus_ridge.json` | 30 | Ridge evaluated on BEIR NFCorpus |
50
+ | `fewshot_curve.json` | 84 | Few-shot learning curve (50-5000 training examples) |
51
+ | `relative_repr.json` | 30 | Relative representations baseline (Moschella et al. 2023) |
52
+
53
+ **Total: 354 evaluations**
54
+
55
+ ## Key Results
56
+
57
+ - **50 paired examples** is enough for 95%+ native performance on compatible model pairs
58
+ - **Prefix mismatch** (not dimension mismatch) is the dominant failure mode
59
+ - **Ridge regression** rescues prefix-mismatched pairs (E5→GTE: 0.090 → 0.814)
60
+ - **Cross-domain generalization** holds for same-family pairs, degrades 10-30% for mismatched pairs
61
+ - **Relative representations** fail at retrieval scale (negative result)
62
+
63
+ ## Schema
64
+
65
+ Each JSON file contains an array of evaluation records. Common fields:
66
+
67
+ ```json
68
+ {
69
+ "source": "model/name",
70
+ "target": "model/name",
71
+ "method": "procrustes|ridge|relative_repr",
72
+ "src_dim": 768,
73
+ "tgt_dim": 768,
74
+ "recall@10_translated": 0.862,
75
+ "recall@10_native_target": 0.885,
76
+ "ratio": 0.974,
77
+ "train_size": 5000
78
+ }
79
+ ```
80
+
81
+ ## Citation
82
+
83
+ If you use these results, please link to the GitHub repository.
84
+
85
+ ## License
86
+
87
+ MIT