Synthyra
Research

Research

7 min read

Accidental Taxonomists: When Protein Models Learn the Wrong Shortcut

Random negative sampling in multi-species interaction datasets creates a taxonomy shortcut that protein language models are well equipped to exploit. Constraining negatives to the same species removes it, and the reported performance falls by two thirds.

Logan Hallee

October 24, 2025

Two negative-sampling strategies compared on their own validation sets and on a shared harder test set
The model that looks twice as good on its own validation set is the worse model when both face the same same-species test. That gap is the shortcut being taken away.

A protein interaction model is supposed to answer a biological question: are these two proteins likely to bind? In a multi-species dataset, it can quietly be handed a much easier one: did these two proteins come from the same organism?

That substitution is the accidental taxonomist problem. Nobody designs it in. It emerges from a reasonable-looking decision about how to build negative examples, and protein language models are very well equipped to exploit it.

Where the shortcut comes from

Curated interaction databases are positive-first. They record pairs that have been observed to interact. They almost never record pairs that have been tested and found not to interact, because that is not what most papers report. Negatome, the main curated source of real negatives, contributes about 6,000 non-interacting pairs across all of its splits, against hundreds of thousands of positives elsewhere.

So the standard workaround is to manufacture negatives by pairing proteins that are not known to interact. This is defensible. Most protein pairs really do not interact, so a random pair is very likely a true negative.

The trouble is what else changes when you shuffle.

Share of intra-species and inter-species pairs among BioGRID positives and shuffled negatives
Figure 1. Taxonomic composition of BioGRID. Positive pairs are overwhelmingly within one organism because that is how interactions are studied. Negatives generated by shuffling the protein columns are mostly across organisms. Shuffled figure is the mean over 100 shuffles (standard deviation 0.02 percent).

Interactions are studied within an organism. So positives inherit that structure: 96.5 percent of BioGRID positives are intra-species. Shuffling ignores the structure entirely and draws from the whole multi-species pool, which is 31.8 percent intra-species. The label and the taxonomy are now correlated, and the correlation is large.

In plain terms

Imagine training a model to tell cats from dogs, but every cat photo was taken indoors and every dog photo outdoors. The model will get very good scores. It will also have learned "indoors or outdoors," and it will fall apart the first time it sees a dog on a sofa.

How far the shortcut alone gets you

This is quantifiable without training anything. Simulate a classifier that has no idea what an interaction is and can only answer "same species?" Give it the BioGRID ratios, run it on a balanced set of 100,000 examples, and score it as if it were an interaction model.

Metrics for a simulated classifier that only detects whether two proteins share a species
Figure 2. A simulated perfect taxonomic classifier, scored as though it were a protein interaction predictor. It never sees an interaction feature. On a balanced 100,000-example set built from BioGRID ratios it still reports 0.824 accuracy, 0.845 F1, 0.822 ROC AUC, and 0.675 MCC.

What pure taxonomy detection scores

0.822

ROC AUC

No interaction features used

0.845

F1

Driven by 0.965 recall

0.675

MCC

On a balanced 100,000-example set

Those are respectable-looking numbers. Any published result in that range on a shuffled-negative multi-species dataset is consistent with a model that has learned nothing about binding at all.

Can the model actually see taxonomy?

A shortcut only matters if the model can take it. So the second question is whether protein language model embeddings carry enough phylogenetic signal to support it.

Best probe F1 for predicting taxonomic rank from frozen protein embeddings, from domain down to species
Figure 3. A small probe trained on frozen embeddings, predicting taxonomic origin at each rank. Performance falls as the label set grows, from three domain classes to 618 species classes. The model achieving each best score is named beneath the point.

At the domain level this is nearly solved: 0.97 F1 across Archaea, Bacteria, and Eukarya. It degrades as the rank gets finer, down to 0.18 F1 across 618 species classes, which is far from reliable but far above the 0.00 a random baseline achieves.

Species-level classification is not the relevant test, though. Interaction models never see one protein; they see two. So the sharper probe is the paired binary question: given two sequences, are they from the same organism?

That is where the number gets uncomfortable. Most protein language models exceed 0.8 F1 on it, and ESMC-600M reaches 0.87. Even the homology controls exceed 0.7. The shortcut is not hypothetical. It is sitting in the embedding, ready to use.

Taking it away

The fix follows directly: when you build a negative, draw the two proteins from the same species as the positive pair. Same-species sampling makes the negatives taxonomically indistinguishable from the positives, so the shortcut carries no information.

Five models per strategy are trained on matched datasets. Same 4,523,432 training examples, same balanced label distribution, same 76,045 unique sequences, same frozen ESMC-600M encoder. They differ only in how negatives were drawn.

MCC for random-negative and same-species-negative models on their own validation sets and a shared test set
Figure 4. Mean MCC over five training runs per strategy. Each model is first scored on the validation set matched to its own sampling scheme, then both are scored on the same same-species test set. Both differences are significant at p below 0.0001.

On its own validation set the random-negative model reports 0.71 MCC against the same-species model's 0.39, which would normally be read as a decisive win. On the shared same-species test set the ordering reverses: 0.23 against 0.34.

The training dynamics show the same thing from another angle. Random-negative models drive their average predicted probability on positives to 0.94, while same-species models plateau at 0.75. Both converge to roughly 0.5 on negatives. Confidently pushing positive logits up while remaining undecided on negatives is what reward hacking looks like when the reward has an exploitable seam in it.

The shortcut is not the whole story

An MCC of 0.23 is well above random, equivalent to about 62 percent accuracy and 0.63 AUROC. Random-negative models do learn real interaction signal. Too much of the reported performance was taxonomy, but not all of it.

The held-out check

One more evaluation, on a separate curated set with a taxonomy-aware split.

ROC AUC with bootstrap intervals for both sampling strategies on the full test set and its intra-species subset
Figure 5. ROC AUC on the BioGRID-MV held-out test set with 95 percent bootstrap intervals. On the intra-species subset, where no taxonomic signal is available, the random-negative model collapses to chance while the same-species model holds.

On the intra-species subset the same-species model reaches 0.81 ROC AUC and the random-negative model reaches 0.49, which is a coin flip (DeLong Z = 11.37, p below 10⁻¹⁵). Strip the taxonomy away and one model keeps working while the other stops entirely.

The result that cuts the other way

The obvious conclusion would be to stop using multi-species data. The opposite is true.

The best same-species multi-species model reaches 0.37 MCC, roughly 23 percent above the best reported result on the leakage-controlled single-species Bernett benchmark (0.30 MCC). So multi-species data does help, once the sampling is fixed. The problem was never the diversity. It was the seam that diversity opened up.

That comparison is suggestive rather than definitive. The two datasets draw from different sources (BioGRID against HIPPIE), roughly 45 percent of Bernett's positives overlap with BioGRID, and the multi-species set is substantially larger, so part of the gain could be scale rather than phylogenetic breadth. A size-matched control would separate the two.

Where both approaches fail

The most striking negative result is one neither strategy solves. On the held-out set, 1,091 positives were interspecies pairs, dominated by human-SARS-CoV-2 interactions. The same-species model called zero of them positive. The random-negative model called two. Both assigned them a mean probability near 0.46.

Host-pathogen interaction is among the most biomedically interesting corners of this field, and both models are simply blind to it. Same-species sampling fixes the confounder; it does not create competence on a task that was never in the training distribution. That gap is what Synteract-4's interspecies work goes after directly, and even there the result is clearing the random floor rather than solving the problem.

Terms used here

MCC. Matthews correlation coefficient. A balanced binary-classification score that, unlike accuracy, does not reward always guessing the majority class.
Intra-species pair. Two proteins from the same organism. An inter-species pair spans two, such as a human protein and a viral one.
Probe. A small classifier trained on frozen embeddings. If it succeeds, the information was already in the representation rather than being learned by the probe.
Shortcut learning. When a model solves a task using a correlation that holds in the dataset but not in the world, so it scores well and generalizes badly.

The general lesson

The pattern is clearest in interaction prediction because the negatives have to be manufactured. It is not confined there.

Any supervised protein dataset can carry hidden correlation between labels and taxonomy, organism of origin, assay source, curation practice, or sequence redundancy. Enzyme classification, localization, stability, and phenotype labels can all inherit unwanted structure when one taxonomic region dominates one label.

The practical rule is short: if taxonomy could explain the label, control for taxonomy. And treat implausibly strong results with suspicion. Above roughly 0.95 AUC or 0.8 MCC on a rigorously constructed interaction dataset, leakage or a confounder is the more likely explanation than a breakthrough.

This is also why a model description should not stop at the architecture. The data design is part of the model's behavior, and it is usually the part that decides what the model actually learned.

Source

Preparing for journal submission.

Continue reading

Related research

Research · October 10, 2025

Atlas: Making Protein Screens Searchable

A proteome is a quadratic object. Atlas exists so that asking a question about all of it costs about as much as asking one question.

Research · September 18, 2025

Synteract-4: Interaction Prediction as Retrieval

Making the embedding itself the interaction score turns a proteome-wide screen from 185 million model calls into 19,226.

Synthyra

Optimize the outcome, not the interface.

Biological design programs selected on the predicted state of the system, not the quality of one contact.

Platform

DiscoverDemosModelsAPI

Company

NewsOur VisionTeamContactOpen sourceSign in

© 2026 Synthyra. All rights reserved.

TermsPrivacy