Contrastively fine-tuned
ESM-2 150M protein language model, producing fixed-length embeddings where biological similarity maps to embedding proximity.
ProtSent applies contrastive fine-tuning using the
SentenceTransformers framework with MultipleNegativesRankingLoss (MNRL) and CoSENT on ESM-2 backbones.
This model was trained on five complementary data sources with round-robin sampling:
1from sentence_transformers import SentenceTransformer
2
3model = SentenceTransformer("oriel9p/protsent-esm2-150M")
4
5sequences = [
6 "MKTLLLTLVVVTIVCLDLGYT",
7 "MKTLLLTLVVVTIVCLDLGYN", # similar
8 "AGWYRSPQEGLKPVDTFKDIV", # different
9]
10
11embeddings = model.encode(sequences)
1from sentence_transformers.util import cos_sim
2
3similarities = cos_sim(embeddings[0], embeddings[1:])
4print(similarities)
KNN probe (k=3, Euclidean) evaluation on 23 downstream tasks. ProtSent 150M improves 15 of 23 tasks over baseline ESM-2 150M.
Selected highlights vs. baseline ESM-2 150M:
General-purpose protein embeddings for downstream tasks including classification, regression, retrieval, clustering, and similarity search. The embeddings capture evolutionary, structural, and functional relationships. The 150M model offers the strongest retrieval and structural classification performance.
1@article{ofer2026protsent,
2 title={ProtSent: Protein Sentence Transformers},
3 author={Ofer, Dan and Perets, Oriel and Linial, Michal and Rappoport, Nadav},
4 journal={arXiv:2605.06830},
5 year={2026}
6}