NohTow commited on
Commit
db4d2f0
·
verified ·
1 Parent(s): 5055c5b

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +118 -6
README.md CHANGED
@@ -5,26 +5,113 @@ tags:
5
  - sentence-transformers
6
  - sentence-similarity
7
  - feature-extraction
 
 
 
8
  pipeline_tag: sentence-similarity
9
  library_name: PyLate
10
  ---
11
 
12
- # PyLate
 
13
 
14
- This is a [PyLate](https://github.com/lightonai/pylate) model trained. It maps sentences & paragraphs to sequences of 128-dimensional dense vectors and can be used for semantic textual similarity using the MaxSim operator.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
 
16
  ## Model Details
17
 
18
  ### Model Description
19
  - **Model Type:** PyLate model
20
- <!-- - **Base model:** [Unknown](https://huggingface.co/unknown) -->
21
  - **Document Length:** 300 tokens
22
  - **Query Length:** 32 tokens
23
  - **Output Dimensionality:** 128 tokens
24
  - **Similarity Function:** MaxSim
25
- <!-- - **Training Dataset:** Unknown -->
26
- <!-- - **Language:** Unknown -->
27
- <!-- - **License:** Unknown -->
28
 
29
  ### Model Sources
30
 
@@ -220,6 +307,8 @@ You can finetune this model on your own dataset.
220
 
221
  ### BibTeX
222
 
 
 
223
  ```bibtex
224
  @misc{sourty2026denseonlateon,
225
  title={DenseOn with the LateOn: Open State-of-the-Art Single and Multi-Vector Models},
@@ -229,6 +318,8 @@ You can finetune this model on your own dataset.
229
  }
230
  ```
231
 
 
 
232
  ```bibtex
233
  @inproceedings{DBLP:conf/cikm/ChaffinS25,
234
  author = {Antoine Chaffin and
@@ -255,6 +346,27 @@ You can finetune this model on your own dataset.
255
  }
256
  ```
257
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
258
  <!--
259
  ## Glossary
260
 
 
5
  - sentence-transformers
6
  - sentence-similarity
7
  - feature-extraction
8
+ license: apache-2.0
9
+ language:
10
+ - en
11
  pipeline_tag: sentence-similarity
12
  library_name: PyLate
13
  ---
14
 
15
+ <div align="center">
16
+ <img src="https://cdn-uploads.huggingface.co/production/uploads/609bbe2f4932693ca2009d6a/kbQOAarw0eaApow3M9HIl.png" alt="LightOn" width="512">
17
 
18
+ [![Website](https://img.shields.io/badge/LightOn-Website-blue?logo=google-chrome)](https://lighton.ai)
19
+ [![LinkedIn](https://img.shields.io/badge/LightOn-LinkedIn-0A66C2?logo=linkedin)](https://www.linkedin.com/company/lighton/)
20
+ [![X](https://img.shields.io/badge/@LightOnIO-X-black?logo=x)](https://x.com/LightOnIO)
21
+
22
+ 📚 [Collection](https://huggingface.co/collections/lightonai/denseon-and-lateon) | 📝 [Blog](https://huggingface.co/blog/lightonai/denseon-lateon)
23
+
24
+ </div>
25
+
26
+ <h1 align="center">LateOn-unsupervised</h1>
27
+
28
+ <h3 align="center">State-of-the-Art ColBERT Retrieval Model by LightOn</h3>
29
+
30
+ <p align="center">
31
+ <a href="https://huggingface.co/lightonai/DenseOn">DenseOn</a> |
32
+ <a href="https://huggingface.co/lightonai/LateOn">LateOn</a> |
33
+ <a href="https://github.com/lightonai/pylate">PyLate</a> |
34
+ <a href="https://github.com/lightonai/fast-plaid">FastPLAID</a>
35
+ </p>
36
+
37
+ > 🎯 **TL;DR**: The intermediate ColBERT checkpoint produced by **Stage 1 only** (unsupervised contrastive pre-training) of the LateOn pipeline Released as a **strong starting point for your own supervised fine-tuning, knowledge distillation, or downstream adaptation**.
38
+
39
+ ## About the LateOn / DenseOn Family
40
+
41
+ State-of-the-art retrieval is increasingly dominated by closed models, either hidden behind APIs or trained on undisclosed data. This blocks reproducibility, prevents study of possible data leakage, and gatekeeps progress to a handful of private labs. We thus decided to gather and curate a large amount of data and explore various mixtures. We release all the data used in our explorations:
42
+ - [Gathered pre-training data](https://huggingface.co/datasets/lightonai/embeddings-pre-training), 1.4B query-documents pairs alongside annotations used for non-destructive filtering (structural filtering, deduplication, cross-encoder pair relevancy)
43
+ - [Best pre-training mixture](https://huggingface.co/datasets/lightonai/embeddings-pre-training-curated) found with already applied filters
44
+ - [Fine-tuning datasets](https://huggingface.co/datasets/lightonai/embeddings-fine-tuning) with query, positive and 2048 mined documents alongside their scores for 1.88M samples.
45
+
46
+ Based on our findings, we trained LateOn (multi-vector/ColBERT) and DenseOn (single vector/dense) models on a proprietary Apache 2.0-compatible training dataset and release those models as well.
47
+ Both are built on the [ModernBERT](https://huggingface.co/answerdotai/ModernBERT-base) backbone at 149M parameters, a size we believe sits at the sweet spot: large enough to handle real-world queries and documents, small enough to serve at high throughput in latency-sensitive production systems.
48
+ For more information, please read our [blogpost](https://huggingface.co/blog/lightonai/denseon-lateon).
49
+
50
+ ## LateOn-unsupervised
51
+
52
+ LateOn-unsupervised is the output of the **first stage** of the [LateOn](https://huggingface.co/lightonai/LateOn) training pipeline. It has been pre-trained on a large, filtered corpus of query-document pairs using in-batch contrastive learning, but has **not** yet been fine-tuned with mined hard negatives.
53
+
54
+ For most production use cases, you should use the **fully-trained [LateOn](https://huggingface.co/lightonai/LateOn)** instead. This unsupervised checkpoint is intended for:
55
+
56
+ - Researchers studying what each pipeline stage contributes
57
+ - Practitioners who want to fine-tune on their own domain-specific data
58
+ - Distillation experiments where you want to start from a strong but un-aligned base
59
+ - Anyone running their own ablations on hard-negative mining strategies
60
+
61
+
62
+ ## Results
63
+
64
+ ### BEIR (14 datasets, NDCG@10)
65
+
66
+ | Model | Average | Size (M) | Embed dim | ArguAna | CQADupstackRetrieval | ClimateFEVER | DBPedia | FEVER | FiQA2018 | HotpotQA | MSMARCO | NFCorpus | NQ | QuoraRetrieval | SCIDOCS | SciFact | TRECCOVID | Touche2020 |
67
+ |---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
68
+ | [ColBERTv2](https://huggingface.co/colbert-ir/colbertv2.0) | 48.63 | 110 | 128 | 46.50 | *38.30* | 17.60 | 45.20 | 78.50 | 35.40 | 67.50 | *46.00* | 33.70 | 52.40 | 85.50 | 15.40 | 68.90 | 72.60 | 26.00 |
69
+ | [Jina-ColBERT-v2](https://huggingface.co/jinaai/jina-colbert-v2) | 51.85 | 600 | 128 | 36.60 | *40.80* | 23.90 | 47.10 | 80.50 | 40.80 | 76.60 | **46.90** | 34.60 | **64.00** | 88.70 | 18.60 | 67.80 | 83.40 | 27.40 |
70
+ | [ColBERT-small](https://huggingface.co/answerdotai/answerai-colbert-small-v1) | 53.79 | 33 | 96 | 50.09 | 38.75 | 33.07 | 45.58 | 90.96 | 41.15 | 76.11 | 43.50 | 37.30 | 59.10 | 87.72 | 18.42 | 74.77 | 84.59 | 25.69 |
71
+ | [GTE-ModernColBERT-v1](https://huggingface.co/lightonai/GTE-ModernColBERT-v1) | 54.75 | 149 | 128 | 47.52 | 41.08 | 31.33 | 47.56 | 87.67 | 45.25 | 77.48 | 45.60 | 37.83 | 61.62 | 86.71 | 19.22 | 76.33 | **84.84** | 31.25 |
72
+ | [ColBERT-Zero](https://huggingface.co/lightonai/ColBERT-Zero) | 55.39 | 149 | 128 | **52.82** | 41.41 | 35.90 | 47.43 | 90.52 | 42.50 | 79.45 | 45.95 | 37.21 | 61.82 | 85.19 | 19.84 | 76.33 | 78.27 | **36.24** |
73
+ | [LateOn-unsupervised](https://huggingface.co/lightonai/LateOn-unsupervised) | 50.11 | 149 | 128 | 43.12 | **47.71** | 18.76 | 43.36 | 65.74 | 51.94 | 68.17 | 37.51 | 37.15 | 58.41 | 89.48 | 21.13 | **76.89** | 69.81 | 22.53 |
74
+ | [LateOn](https://huggingface.co/lightonai/LateOn) | **57.22** | 149 | 128 | 50.52 | 47.36 | **39.67** | 45.99 | **92.02** | **53.12** | **79.98** | 45.67 | 37.79 | 63.91 | **89.67** | **21.90** | 76.61 | 83.60 | 30.52 |
75
+
76
+ LateOn achieves 57.22 average NDCG@10, becoming the first ColBERT (and sub 150M parameter) model to break the 57 mark on BEIR by surpassing the previous best ColBERT model (ColBERT-Zero at 55.32) by almost two points and exceeding GTE-ModernColBERT-v1 by two point and a half, despite sharing the same backbone.
77
+ It is worth noting that we achieve this performance only with contrastive data and without the use of the prompt (which has been shown to be beneficial in the ColBERT-Zero study but makes it harder and more expensive to use). This work was focused on an exploration of contrastive data, but we believe we can achieve much stronger results through a KD phase and the addition of prompts to serve as query expansion.
78
+ Given such strong performances, one fair concern would be overfitting to BEIR. As highlighted in the decontaminated BEIR experiments, our models stay very strong on benches curated from any possible data leakage, especially in the multi-vector case and contrary to some other models.
79
+
80
+ ### Decontaminated BEIR (12 datasets, NDCG@10)
81
+
82
+ Standard benchmarks risk overestimating model quality when training data overlaps with evaluation corpora. This is a non-negligible risk in our case, as our mixture explorations are mostly built on BEIR evaluation. To quantify this and ensure that our model has not memorized possible leakage, we built decontaminated versions of the BEIR datasets by removing samples found in both the mGTE training dataset and in our internal training datasets.
83
+ Since many retrieval models draw from similar public sources (Wikipedia, MS MARCO, Common Crawl, academic corpora), we expect significant overlap across models and believe the decontaminated benchmarks provide a meaningful, if imperfect, stress test. The decontaminated datasets are publicly available on HuggingFace.
84
+
85
+
86
+ Despite being in the toughest position (as the decontamination is based on our data), LateOn and DenseOn stay consistent under decontamination.
87
+ LateOn keeps its #1 position and DenseOn stays in the top four (only falling behind our other strong multi-vector model, ColBERT-Zero). Neither model flinches, which is direct evidence of generalization rather than overfitting.
88
+
89
+ More broadly, ColBERT models seems to generalize better under decontamination: all three ColBERT models hold or improve their ranking, and they take 2 of the top 3 decontaminated positions. Although DenseOn holds strong, some dense models are hit harder, for example `GTE-ModernBERT`, dropping from 8th to last, which is particularly interesting considering our base mixture is derived from theirs. This highlights the strength of our curation methodology. While other models such as `Qwen3-Embedding-0.6B` also drop some ranks, hinting at an overlap with the BEIR evaluation, it is worth noting that newer models, such as the new `jina-embeddings-v5` and `pplx-embed-v1-0.6b` seems to exhibit stronger evidence of generalization rather than overfitting.
90
+
91
+ <div align="center">
92
+ <img src="https://cdn-uploads.huggingface.co/production/uploads/61dd91afdb45389905634d35/9kMmY66jIZsLxrQ6a7v3L.png" alt="LightOn" width="1024">
93
+ </div>
94
+
95
+ ## Related Checkpoints
96
+
97
+ | Model | Stage | Link |
98
+ |:---|:---|:---|
99
+ | **LateOn-unsupervised** *(this card)* | Pre-training only | [`lightonai/LateOn-unsupervised`](https://huggingface.co/lightonai/LateOn-unsupervised) |
100
+ | LateOn | Pre-training + fine-tuning *(recommended)* | [`lightonai/LateOn`](https://huggingface.co/lightonai/LateOn) |
101
+ | DenseOn-unsupervised | Single-vector counterpart, pre-training only | [`lightonai/DenseOn-unsupervised`](https://huggingface.co/lightonai/DenseOn-unsupervised) |
102
+ | DenseOn | Single-vector counterpart, full pipeline | [`lightonai/DenseOn`](https://huggingface.co/lightonai/DenseOn) |
103
 
104
  ## Model Details
105
 
106
  ### Model Description
107
  - **Model Type:** PyLate model
108
+ - **Base model:** [ModernBERT-base](https://huggingface.co/answerdotai/ModernBERT-base)
109
  - **Document Length:** 300 tokens
110
  - **Query Length:** 32 tokens
111
  - **Output Dimensionality:** 128 tokens
112
  - **Similarity Function:** MaxSim
113
+ - **Language:** English
114
+ - **License:** Apache 2.0
 
115
 
116
  ### Model Sources
117
 
 
307
 
308
  ### BibTeX
309
 
310
+ #### DenseOn and LateOn
311
+
312
  ```bibtex
313
  @misc{sourty2026denseonlateon,
314
  title={DenseOn with the LateOn: Open State-of-the-Art Single and Multi-Vector Models},
 
318
  }
319
  ```
320
 
321
+ #### PyLate
322
+
323
  ```bibtex
324
  @inproceedings{DBLP:conf/cikm/ChaffinS25,
325
  author = {Antoine Chaffin and
 
346
  }
347
  ```
348
 
349
+ #### Sentence Transformers
350
+
351
+ ```bibtex
352
+ @inproceedings{reimers-2019-sentence-bert,
353
+ title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
354
+ author = "Reimers, Nils and Gurevych, Iryna",
355
+ booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
356
+ month = "11",
357
+ year = "2019",
358
+ publisher = "Association for Computational Linguistics",
359
+ url = "https://arxiv.org/abs/1908.10084"
360
+ }
361
+ ```
362
+
363
+ ## Acknowledgements
364
+
365
+ We thank Xin Zhang, Zach Nussbaum, Tom Aarsen, Bo Wang, Eugene Yang, Benjamin Clavié, Nandan Thakur, Oskar Hallström and Iacopo Poli for their valuable contributions and feedback. We are grateful to the teams behind Sentence Transformers and the BEIR benchmark, and to the open-source retrieval community, in particular the authors of Nomic Embed.
366
+
367
+ This work was granted access to the HPC resources of IDRIS under GENCI allocations AS011016449, A0181016214, and A0171015706 (Jean Zay supercomputer). We also acknowledge the Barcelona Supercomputing Center (BSC-CNS) for providing access to MareNostrum 5 under EuroHPC AI Factory Fast Lane project EHPC-AIF-2025FL01-445.
368
+
369
+
370
  <!--
371
  ## Glossary
372