ProtSent: Protein Sentence Transformers

summary

Video file (mp4)

The gist

The gist The Protein Sentence Transformers (ProtSent) framework fine-tunes protein language models into general-purpose embedding models by contrastively training them across five heterogeneous

In short

ProtSent fine-tunes protein language models by contrastively training them across five biological relation types: Pfam family membership, AlphaFold structural clusters, STRING interactions, and deep mutational scanning fitness ordering. This process restructures the embedding space so that similar proteins are neighbors. The result is a general-purpose embedding model that significantly improves downstream tasks relying on neighborhood quality.

Key concepts

Contrastive Post-Training Framework
A training method where the model learns to pull similar items closer together in its mathematical representation while pushing dissimilar items apart. ProtSent uses this technique to reshape the protein embeddings so that proteins with similar biological roles or structures are positioned near each other, optimizing the geometry for tasks like retrieval.
Multiple Negatives Ranking Loss (MNRL)
A specific loss function used during training that forces the model to rank a positive pair higher than a set of randomly selected negative examples. In ProtSent, this loss is applied across five different biological datasets simultaneously to ensure the embeddings satisfy multiple similarity criteria at once.
Embedding Neighborhood Quality
This refers to how well the local geometric arrangement of protein embeddings reflects real-world biological relationships. When this quality is high, tasks like finding related proteins or clustering them become much more accurate because the model has learned a meaningful spatial organization based on function and structure.
Structural/Functional Grouping
This describes downstream tasks where the correct answer depends on identifying groups of proteins that share similar physical structures or biological functions. ProtSent shows major improvements in these areas, meaning the trained embeddings are much better at grouping proteins according to their underlying biology.

Terminology used across episodes

This episode discusses

The paper

ProtSent: Protein Sentence Transformers · Read on arXiv

Dan Ofer, Oriel Perets, Michal Linial, Nadav Rappoport

The Hebrew University of Jerusalem · Ben-Gurion University of the Negev

Protein language models produce rich per-residue representations, but the sequence embeddings obtained by mean-pooling them are never trained to place related proteins near one another, so the geometry that retrieval, clustering and nearest-neighbor transfer depend on is never optimized. We present ProtSent, a contrastive post-training framework that supervises a protein language model with three types of biological relation at once, Pfam family co-membership, AlphaFold DB structural clusters and STRING interactions, and with deep mutational scanning fitness ordering as an optional fourth. It needs no structure at training or inference, trains on corpora filtered at 40% sequence identity against the benchmark test sets they most resemble, and is applied to ESM-2 (35M and 150M parameters) and ESM-C (300M). Post-training makes structural family membership recoverable from the frozen embedding without a trained readout: on SCOPe-40, the adjusted Rand index of the 35M model rises from 0.054 (near chance) to 0.507, and family retrieval gains +0.185, +0.190 and +0.424 Recall@1 over the three frozen backbones, with paired bootstrap intervals excluding zero. On the CATH midnight-zone benchmark, homologous-superfamily accuracy rises from 40.7% to 56.7% at 35M and from 43.3% to 62.7% at 150M, more than the 12 points a CATH-supervised model gains over its own base. Against a maximally sensitive HMMER search, alignment keeps the best single hit at both ESM-2 scales, but the embedding leads at ranking depth (MAP 0.705 against 0.607 at 150M) and returns a ranking for every query, including those where alignment finds none. Under a trained linear probe, however, the same embeddings fall below the untuned backbone, as do structure-distilled embeddings against theirs, so the gain in neighborhood structure comes at a cost in linear-probe accuracy. Code and models: https://github.com/oriel9p/ProtSent

Transcript

Introduction to the show: ident: AI Radio. Generated commentary on the latest Artificial Intelligence papers.

Tom: We're looking at the paper: "ProtSent: Protein Sentence Transformers".

Jane: Here's the gist of the paper. The gist The Protein Sentence Transformers (ProtSent) framework fine-tunes protein language models into general-purpose embedding models by contrastively training them across five heterogeneous protein-pair datasets to capture functional and structural similarity, leading to substantial gains on downstream tasks that rely on embedding neighborhood quality.

Tom: How it works The core of ProtSent is a contrastive fine-tuning framework designed to adapt protein language models (PLMs) into general-purpose embedding models by restructuring the embedding space so that semantically similar proteins become neighbors.

Jane: This is achieved by applying MultipleNegativesRankingLoss (MNRL) across five distinct protein-pair datasets using a CoSENT loss to capture continuous fitness landscapes.

Tom: The five sources include (i) Pfam family membership and (ii) structurally derived hard negatives, (iii) AlphaFold DB structural pairs, (iv) StringDB interaction pairs and (v) deep mutational scanning data.

Paper summary: Tom: Hey Jane, so we're looking at this paper called ProtSent: Protein Sentence Transformers. The main thing here is that protein language models are good at understanding the sequence of a protein, but when you just pool those representations together to get a single embedding for the whole thing, that embedding doesn't actually capture if two proteins are related in any meaningful way.

Jane: Right, so the thesis seems to be that we need to train these models differently so that when we look at those sequence embeddings, proteins that are similar functionally or structurally end up close together in the vector space. It’s about fixing that geometry problem.

Lu: Exactly. The authors introduce ProtSent as a contrastive fine-tuning framework for adapting protein language models into general-purpose embedding models so they reflect functional and structural similarity across all those different biological contexts.

Meng: So it's not just one type of data they use, right? How do they go about forcing the model to learn that relationship between proteins? I mean, we need to know the mechanics of this contrastive training.

Tom: They use MultipleNegativesRankingLoss across five different protein-pair datasets. That’s what drives the training process: Pfam families, structurally derived hard negatives, AlphaFold DB structural pairs, StringDB interactions, and deep mutational scanning data. It’s a lot of supervision at once.

Jane: So they are using this round-robin sampling across those five sources to supervise the protein language model in this new way. That sounds like they're trying to build a very comprehensive picture of what similarity actually means in biology.

Lu: They emphasize that this training strategy is combined with a CoSENT loss to capture continuous fitness landscapes, which helps them guide the fine-tuning process across those five sources simultaneously. It’s about creating a holistic learning signal rather than just training on one dataset in isolation.

Meng: What are they actually measuring here? I mean, if we're trying to make this model useful for deployment, we need to know what kind of performance gain we're talking about against the baseline PLMs.

Tom: The evaluation is quite specific: they use frozen embeddings and a k-nearest-neighbor probe to measure the embedding neighborhood quality. They chose that because if the contrastive training works, this probe should be the most sensitive detector of improvement in how well those neighborhoods are structured.

Paper summary: Jane: And what kind of results did they get from that? The paper says they see substantial gains on tasks that depend on embedding neighborhood quality, like a plus one hundred five percent on remote homology detection and plus nineteen point nine percent Recall@one on SCOPe-forty structural retrieval for the ESM-two 150M model <ref:2605.06830#pg2,substantial gains on tasks that depend on embedding neighborhood quality>.

Lu: And they show these improvements are consistent across two different model scales: the 35M and the 150M parameters, with similar gains at each scale, which is a big deal for generalization <ref:2605.06830#pg2,these improvements are consistent across two>. They also point out that they provide ablation studies isolating the contribution of each training data source to see what really drives the performance.

Meng: That's good for understanding where we can focus our resources. But if I’m running this at scale, how does it hold up against real traffic? Does this improved neighborhood structure translate into better accuracy when we use a linear probe for querying?

Tom: Well, they found that against a maximally sensitive HMMER search, the alignment keeps the best single hit at both ESM-two scales <ref:2605.06830#pg2>. But the embeddings lead in ranking depth, with a MAP of zero point seven zero five against zero point six zero seven at 150M and they return a ranking for every query, even when alignment finds nothing.

Jane: So even though it doesn't beat the best alignment system perfectly for finding that one exact hit, the embedding itself is doing better at telling us what’s *likely* to be near something else, which is what we want for downstream tasks.

Lu: The paper also notes that under a trained linear probe, the same embeddings fall below an untuned backbone and structure-distilled embeddings against theirs. So, the gain in neighborhood structure comes with a cost in linear-probe accuracy. It’s not all perfect at every single measurement point.

Meng: That trade-off is something I need to consider for production deployment. We need to weigh that improved structural relevance against the raw retrieval speed or precision of a simpler search method we might use on our end.

Tom: So, looking back at ProtSent: Protein Sentence Transformers, the authors are showing a way to fine-tune these huge protein language models into general-purpose embedding models by using contrastive training across five distinct biological relationship datasets.

Paper summary: Jane: The core idea is that this process restructures the embedding space so that semantically similar proteins become neighbors, which then makes retrieval and clustering much more effective for various downstream biological tasks.

Lu: It’s important to remember they are not just looking for one perfect signal; they are using multiple data sources and round-robin sampling to capture a continuous fitness landscape across Pfam families, AlphaFold DB pairs, STRING interactions, structural negatives, and deep mutational scanning data.

Meng: So it’s a comprehensive approach to defining similarity based on structure and function simultaneously. That level of supervision is demanding for the training pipeline.

Tom: And what they’ve shown is that this framework produces substantial gains on tasks dependent on embedding neighborhood quality, like remote homology detection and structural retrieval for SCOPe-forty where they see gains like plus one hundred five percent and plus nineteen point nine percent Recall@one at the 35M scale <ref:2605.06830#pg2,produces substantial gains on tasks>.

Jane: It seems the paper really points to how much better these embeddings are at capturing biological relationships compared to just using standard mean-pooled sequence embeddings from a pre-trained model.

Lu: And they show these improvements are consistent across both the 35M and 150M model sizes, which suggests this method is robust regardless of the initial size of the protein language model you start with <ref:2605.06830#pg2,these improvements are consistent across>.

Meng: That consistency is valuable for us because it means we don't have to worry about picking a specific parameter count just to get a decent result.

Tom: They also provide ablation studies that show exactly how much each piece of data contributes, and they found that removing the Pfam family pairs caused the largest degradation, reducing improved tasks from sixteen down to fifteen and the mean improvement from plus six point seven percent down to plus four point six percent.

Jane: So while everything helps, the Pfam family membership seems to be a really strong anchor for defining that biological similarity space in this model.

Lu: Conversely, training without the hard negatives dataset yielded an interesting result where twenty of twenty-three tasks improved over the baseline, which is higher than the sixteen for the full model and had a mean delta of plus seven point nine percent instead of plus six point seven percent.

Paper summary: Meng: That’s surprising because we usually expect hard negatives to provide a lot of signal, but it suggests that perhaps other types of supervision are more critical for broad performance gains in this context.

Tom: They also mention the auxiliary Deep Mutational Scanning loss modestly reduces performance, improving fifteen out of twenty-three tasks by plus five point eight percent compared to the full set, which shows that even supplementary signals add a steady benefit without hurting broader embedding quality too much.

Jane: So what this means for people who just listen to the show is that we’re seeing a new way to structure AI embeddings where similarity isn't just about sequence matching, but about learning those complex functional and structural relationships from multiple biological sources.

Lu: The implication is that these fine-tuned embeddings can be used across a much wider variety of applications—function, engineering, mutation—because they are better organized in that five-dimensional space.

Meng: For deployment, this means we could potentially use this model to pre-filter massive datasets before running expensive simulations or experiments, because the initial embedding quality is much higher.

Tom: It’s a lot of work to set up this contrastive fine-tuning pipeline with all those five data sources and the round-robin sampling, but they release the models and code, which makes it accessible for researchers to try out.

Jane: So when we talk about ProtSent: Protein Sentence Transformers, we're talking about taking a protein language model and making it a general-purpose embedding tool by contrastively training it against these five biological relationship types to optimize its neighborhood structure.

Lu: This work is reaching for the idea of creating representation learning that inherently encodes biological knowledge in a way that improves transferability across diverse tasks, not just sequence similarity.

Meng: It’s about making the embeddings useful for things like variant-effect prediction or enzyme fitness, which are complex predictions where having good neighborhood context really helps.

Tom: The authors have provided the models and training recipe, and they show that this framework can improve on benchmarks like SCOPe-forty by over nineteen percent Recall@one at the 35M scale <ref:2605.06830#pg2>.

Jane: So, to wrap up, ProtSent is about using a rich set of biological signals to make protein embeddings much smarter neighbors for any search or clustering task you throw at them.

Conclusion: Tom: So we're wrapping up on ProtSent, which stands for Protein Sentence Transformers, and it's basically taking these protein language models and fine-tuning them into general embedding models by training them against five different biological relationship datasets to fix the way those embeddings are structured.

Jane: That’s a lot of data sources—Pfam families, AlphaFold structural clusters, StringDB interactions—and the whole point is that instead of just getting a random vector for a protein, we get one that knows how similar it is to others based on function and structure.

Lu: The authors are using multiple negative ranking loss across all those sources to make sure the proteins they put far apart in training end up being far apart in the final embedding space. They’re trying to optimize the geometry itself rather than just the prediction task.

Meng: From a deployment standpoint, what I'm hearing is that this framework aims to make those embeddings so good at grouping similar proteins that downstream tasks—like finding a structural neighbor or predicting how a mutation will affect stability—get much better results because the input data is already organized correctly.

Tom: Exactly. They show substantial gains on things like structural family membership and homologous superfamily accuracy, with improvements measured in percentages on benchmarks like SCOPe-forty.

Jane: And the main thing I want to tell you as a listener is that this isn't just about getting a higher score; it’s about changing how we search for proteins in the future, making retrieval much more reliable based on biological context.

Lu: The consistency across different model sizes, like thirty-five million and one hundred fifty million parameters, suggests this is a robust way to inject biological knowledge into the representation learning process.

Meng: If this works well at scale, it means we could pre-filter massive amounts of protein data before running expensive simulations or experiments because the initial embedding quality is already high.

Tom: It’s a lot of work setting up that contrastive training pipeline with all those five data sources and the round-robin sampling, but they’ve made the models and code available for everyone to try out.

Jane: So ProtSent is about using these rich biological signals to make protein embeddings much smarter neighbors for any search or clustering task you throw at them, which opens up some serious possibilities for how we analyze protein data.

More episodes

← Home