File size: 14,320 Bytes
5362ea3
 
bc21475
5362ea3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
bc21475
5362ea3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
bc21475
5362ea3
bc21475
5362ea3
 
 
bc21475
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5362ea3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
---
tags:
- multi-vector
- ColBERT
- PyLate
- sentence-transformers
- sentence-similarity
- feature-extraction
- multilingual
- late-interaction
- retrieval
- pretrained
- loss:Distillation
pipeline_tag: sentence-similarity
library_name: PyLate
license: apache-2.0
base_model:
- lightonai/GTE-ModernColBERT-v1
---
<img src="https://vago-solutions.ai/wp-content/uploads/2025/08/SauerkrautLM-Multi-ModernColBERT.png" width="500" height="auto">
# SauerkrautLM-Multi-ModernColBERT

This model is a multilingual Late Interaction retriever that leverages:

**Continuous Pretraining** with 4.6 billion multilingual tokens using knowledge distillation from state-of-the-art reranker models.
**GTE-ModernColBERT Foundation** building upon the English-focused lightonai/GTE-ModernColBERT-v1 model.
**Multilingual Enhancement** extending English capabilities to European languages through targeted multilingual training.

### 🎯 Core Features and Innovations:

- **Multilingual Continuous Pretraining**: Enhanced with 4,641,714,000 multilingual tokens covering 7 European languages while learning from powerful reranker models

- **English-to-Multilingual Transfer**: Successfully extends the strong English performance of GTE-ModernColBERT to European languages

- **Compressed Architecture**: Maintains the efficient 149M parameter design of ModernColBERT

### 💪 From English Excellence to Multilingual Mastery

Starting from the strong **GTE-ModernColBERT-v1** foundation – a model optimized for English retrieval – we've expanded its capabilities through:
- **4.6 billion multilingual tokens** covering 7 European languages
- **Knowledge distillation** from state-of-the-art reranker models
- **Continuous pretraining** that preserves English strength while adding multilingual capabilities

This creates a truly multilingual retriever that maintains exceptional English performance while delivering strong results across European languages.



## Model Overview

**Model:** `VAGOsolutions/SauerkrautLM-Multi-ModernColBERT`\
**Base:** Continuous pretrained from [lightonai/GTE-ModernColBERT-v1](https://huggingface.co/lightonai/GTE-ModernColBERT-v1) using knowledge distillation\
**Architecture:** PyLate / ColBERT (Late Interaction) with ModernBERT backbone\
**Languages:** Multilingual (optimized for 7 European languages: German, English, Spanish, French, Italian, Dutch, Portuguese)\
**License:** Apache 2.0\
**Model Size:** 149M parameters 
**Additional Training:** 4.6B multilingual tokens via knowledge distillation

### Model Description
- **Model Type:** Multi-vector embedding model with innovative Late Interaction architecture
- **Document Length:** 8192 tokens (32× longer than traditional BERT models)
- **Query Length:** 256 tokens (optimized for complex, multi-part queries)
- **Output Dimensionality:** 128 tokens (efficient vector representation)
- **Similarity Function:** MaxSim (enables precise token-level matching)
- **Training Method:** Continuous pretraining with knowledge distillation

### Architecture

```
ColBERT(
  (0): Transformer(CompressedModernBertModel)
  (1): Dense(384 -> 128 dim, no bias)
)
```

## 🔬 Technical Innovations in Detail

### Multilingual Continuous Pretraining

Our approach transforms an English-specialized model into a multilingual powerhouse:

1. **Base Model Selection**: Starting with GTE-ModernColBERT-v1, which provides state-of-the-art English retrieval
2. **Multilingual Enhancement**: 4,641,714,000 tokens across 7 European languages
3. **Knowledge Distillation**: Learning from state-of-the-art reranker models throughout the training
4. **Balanced Training**: Ensuring strong multilingual capabilities without degrading English performance

### Architectural Advantages

SauerkrautLM-Multi-ModernColBERT leverages:

- **ModernBERT Efficiency**: Compressed architecture with 149M parameters
- **Late Interaction Benefits**: Token-level matching for precise retrieval
- **Cross-lingual Transfer**: Successfully extends English capabilities to multiple languages
- **Maintained Performance**: Preserves the strong English foundation while adding languages

This architecture combines the efficiency of ModernColBERT with true multilingual capabilities.

---

## 🔬 Benchmarks: Multilingual Retrieval Performance

Our evaluation demonstrates strong multilingual retrieval performance, successfully extending GTE-ModernColBERT's English excellence to European languages.

### NanoBEIR Europe (multilingual retrieval)

Average nDCG@10 across seven European languages, showing the effectiveness of our multilingual continuous pretraining:

| Language | nDCG@10 | Performance Notes |
| -------- | -------- | ----------------- |
| en       | **67.70** | Maintains exceptional English performance from base model |
| de       | 51.21    | Strong german language transfer |
| es       | 54.73    | Excellent spanish language capabilities |
| fr       | 54.44    | Consistent cross-lingual performance |
| it       | 53.87    | Balanced multilingual representation |
| nl       | 52.15    | Effective on closely related languages |
| pt       | 53.80    | Maintains quality across language families |

**Key Observations:**
- **Preserved English Excellence**: The continuous pretraining maintains the exceptional English performance (67.70 nDCG@10) from GTE-ModernColBERT
- **Strong Multilingual Addition**: All non-English languages achieve strong performance (51-55 nDCG@10)
- **Successful Transfer**: The model effectively transfers English capabilities to European languages
- **Balanced Performance**: Consistent results across different language families

---

### Why SauerkrautLM-Multi-ModernColBERT Matters for Production

- **Strong language capabilities for european languages**: Maintains state-of-the-art English while adding languages
- **Efficient Architecture**: 149M parameters deployable on standard infrastructure
- **True Multilingual**: Single model for 7 European languages
- **Knowledge Distillation Benefits**: Learns from models many times its size
- **Drop-in Replacement**: Can replace English-only ColBERT models with multilingual support

This model serves as an excellent solution for:
- Organizations expanding from English to European markets
- Multilingual search systems requiring strong English
- Cross-lingual retrieval applications
- Systems needing efficient multilingual models

---

### Real-World Applications

The combination of strong English foundation and multilingual capabilities enables:

1. **Global Search Systems**: Single model for international deployments
2. **E-commerce Expansion**: English-first companies entering European markets
3. **Multilingual Documentation**: Technical documentation search across languages
4. **Customer Support**: Unified search across multilingual knowledge bases
5. **Research Applications**: Cross-lingual academic literature retrieval

## 📈 Summary: English Excellence, Multilingual Capability

SauerkrautLM-Multi-ModernColBERT demonstrates how continuous pretraining can successfully extend an English-specialized model to multiple languages. By combining:

- **GTE-ModernColBERT's strong English foundation**
- **4.6 billion tokens of multilingual training**
- **Knowledge distillation from advanced rerankers**
- **Efficient ModernBERT architecture**

We've created a model that excels in English (67.70 nDCG@10) while delivering strong performance across all European languages. This makes it an ideal choice for organizations that need both exceptional English retrieval and comprehensive multilingual support in a single, efficient model.

---

# Model

This is a multi-vector (ColBERT-style late interaction) embedding model. It maps sentences & paragraphs to sequences of 128-dimensional dense vectors and can be used for semantic textual similarity using the MaxSim operator.


## Usage

### Sentence Transformers

This model can be used with [Sentence Transformers](https://www.sbert.net/) as a multi-vector (ColBERT-style late interaction) retriever via the `MultiVectorEncoder`:

```bash
pip install "sentence-transformers>=6.0.0"
```

```python
from sentence_transformers import MultiVectorEncoder

model = MultiVectorEncoder("VAGOsolutions/SauerkrautLM-Multi-ModernColBERT")

query = "Welcher Planet ist als der Rote Planet bekannt?"
documents = [
    "Venus wird wegen ihrer ähnlichen Größe und Nähe oft als Erdzwilling bezeichnet.",
    "Mars, bekannt für sein rötliches Aussehen, wird oft als der Rote Planet bezeichnet.",
    "Jupiter, der größte Planet in unserem Sonnensystem, hat einen markanten roten Fleck.",
    "Saturn, berühmt für seine Ringe, wird manchmal für den Roten Planeten gehalten.",
]

query_embeddings = model.encode_query(query)
document_embeddings = model.encode_document(documents)
print(query_embeddings.shape, document_embeddings[0].shape)
# (32, 128) (29, 128)

# MaxSim late-interaction scoring (higher is more relevant)
scores = model.similarity(query_embeddings, document_embeddings)
print(scores)
# tensor([[28.7305, 29.5820, 29.0117, 29.1172]])
```

### PyLate

First install the PyLate library:

```bash
pip install -U pylate
```

### Retrieval

PyLate provides a streamlined interface to index and retrieve documents using ColBERT models. The index leverages the Voyager HNSW index to efficiently handle document embeddings and enable fast retrieval.

#### Indexing documents

First, load the ColBERT model and initialize the Voyager index, then encode and index your documents:

```python
from pylate import indexes, models, retrieve

# Step 1: Load the ColBERT model
model = models.ColBERT(
    model_name_or_path="VAGOsolutions/SauerkrautLM-Multi-ModernColBERT",
)

# Step 2: Initialize the Voyager index
index = indexes.Voyager(
    index_folder="pylate-index",
    index_name="index",
    override=True,  # This overwrites the existing index if any
)

# Step 3: Encode the documents
documents_ids = ["1", "2", "3"]
documents = ["document 1 text", "document 2 text", "document 3 text"]

documents_embeddings = model.encode(
    documents,
    batch_size=32,
    is_query=False,  # Ensure that it is set to False to indicate that these are documents, not queries
    show_progress_bar=True,
)

# Step 4: Add document embeddings to the index by providing embeddings and corresponding ids
index.add_documents(
    documents_ids=documents_ids,
    documents_embeddings=documents_embeddings,
)
```

Note that you do not have to recreate the index and encode the documents every time. Once you have created an index and added the documents, you can re-use the index later by loading it:

```python
# To load an index, simply instantiate it with the correct folder/name and without overriding it
index = indexes.Voyager(
    index_folder="pylate-index",
    index_name="index",
)
```

#### Retrieving top-k documents for queries

Once the documents are indexed, you can retrieve the top-k most relevant documents for a given set of queries.
To do so, initialize the ColBERT retriever with the index you want to search in, encode the queries and then retrieve the top-k documents to get the top matches ids and relevance scores:

```python
# Step 1: Initialize the ColBERT retriever
retriever = retrieve.ColBERT(index=index)

# Step 2: Encode the queries
queries_embeddings = model.encode(
    ["query for document 3", "query for document 1"],
    batch_size=32,
    is_query=True,  #  # Ensure that it is set to False to indicate that these are queries
    show_progress_bar=True,
)

# Step 3: Retrieve top-k documents
scores = retriever.retrieve(
    queries_embeddings=queries_embeddings,
    k=10,  # Retrieve the top 10 matches for each query
)
```

### Reranking
If you only want to use the ColBERT model to perform reranking on top of your first-stage retrieval pipeline without building an index, you can simply use rank function and pass the queries and documents to rerank:

```python
from pylate import rank, models

queries = [
    "query A",
    "query B",
]

documents = [
    ["document A", "document B"],
    ["document 1", "document C", "document B"],
]

documents_ids = [
    [1, 2],
    [1, 3, 2],
]

model = models.ColBERT(
    model_name_or_path="VAGOsolutions/SauerkrautLM-Multi-ModernColBERT",
)

queries_embeddings = model.encode(
    queries,
    is_query=True,
)

documents_embeddings = model.encode(
    documents,
    is_query=False,
)

reranked_documents = rank.rerank(
    documents_ids=documents_ids,
    queries_embeddings=queries_embeddings,
    documents_embeddings=documents_embeddings,
)
```
## Citation

### BibTeX

#### SauerkrautLM‑Multi‑ModernColBERT

```bibtex
@misc{SauerkrautLM-Multi-ModernColBERT,
  title={SauerkrautLM-Multi-ModernColBERT},
  author={David Golchinfar},
  url={https://huggingface.co/VAGOsolutions/SauerkrautLM-Multi-ModernColBERT},
  year={2025}
}
```

#### GTE-ModernColBERT

```bibtex
@misc{GTE-ModernColBERT,
title={GTE-ModernColBERT},
author={Chaffin, Antoine},
url={https://huggingface.co/lightonai/GTE-ModernColBERT-v1},
year={2025}
}
```

#### Sentence Transformers

```bibtex
@inproceedings{reimers-2019-sentence-bert,
  title = {Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks},
  author = {Reimers, Nils and Gurevych, Iryna},
  booktitle = {Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing},
  month = {11},
  year = {2019},
  publisher = {Association for Computational Linguistics},
  url = {https://arxiv.org/abs/1908.10084}
}
```

#### PyLate

```bibtex
@misc{PyLate,
  title={PyLate: Flexible Training and Retrieval for Late Interaction Models},
  author={Chaffin, Antoine and Sourty, Raphaël},
  url={https://github.com/lightonai/pylate},
  year={2024}
}
```


## Acknowledgements
We thank the PyLate team for providing the training framework that made this work possible, and the LightOn AI team for creating the excellent GTE-ModernColBERT base model.

<!--
## Glossary

*Clearly define terms in order to be accessible across audiences.*
-->

<!--
## Model Card Authors

*Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
-->

<!--
## Model Card Contact

*Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
-->