Protein Language Models Fail To Capture Contact Predictions Under Invariant Relabeling

Paarth Batra, Aryan KeluskararXiv 2026

This paper, recently presented at the NeurIPS 2026 "I Can’t Believe It’s Not Better" workshop, challenges a fundamental assumption in computational biology: that Protein Language Models (pLMs) predict protein structure by learning the same "coevolutionary" signals as classical statistical methods. By introducing a clever diagnostic test called invariant relabeling, the authors demonstrate that these neural networks rely heavily on specific amino acid identities—a shortcut they term "alphabet anchoring"—rather than pure statistical patterns.

TL;DR

While protein language models (pLMs) are remarkably accurate at predicting protein contacts, they fail a simple test of statistical invariance that classical models pass easily. By consistently swapping amino acid "letters" in a way that preserves all evolutionary statistics, the authors show that pLMs collapse because they are "anchored" to specific residue identities rather than learning pure coevolution.

What Problem Does This Paper Address?

In biology, if two positions in a protein sequence "coevolve" (meaning they tend to mutate together over millions of years), it usually implies they are physically touching in the 3D structure. Classical methods, like Potts models, use Multiple Sequence Alignments (MSAs) to extract these signals.

Modern pLMs like ESM-2 can predict these contacts with incredible accuracy from just a single sequence. The field has largely assumed this is because the models have internalized the same coevolutionary physics as classical methods. However, neural networks are notorious for finding "shortcuts." This paper asks: Are pLMs actually performing coevolutionary inference, or are they just very good at pattern-matching specific amino acid sequences?

Methods

The authors introduce a diagnostic framework based on global bijective relabeling. Imagine a secret code where every 'A' (Alanine) is replaced by 'W' (Tryptophan), every 'C' by 'G', and so on, consistently across an entire dataset.

Mathematically, this transformation leaves "alignment-level" information—like column entropy and pairwise mutual information—completely unchanged. A model that truly relies on coevolutionary statistics should be invariant to this change; it shouldn't matter if the residues are called A and B or X and Y, as long as their relationship is the same.

The authors tested three relabeling regimes:

  1. Random: A uniform shuffle of the amino acid alphabet.
  2. In-class: Swapping residues only within biochemical groups (e.g., swapping one hydrophobic residue for another).
  3. Cross-class: Forcing residues to swap into different biochemical groups.

They compared several pLM architectures (ESM-2, MSA Transformer, AMPLIFY) against classical Potts models.

Figure 1: A global relabeling of the amino-acid alphabet leaves every alignment statistic intact and destroys the pLM’s contact map. (a) The intervention: one bijection π on the twenty amino acids, applied to every residue of every sequence. Both ∆s are measured on 4,000 sequences of the ubiquitin family alignment. (b) The result on the same input. Lower triangle: long-range contacts of the deposited chain (1UBQ_A); upper triangle: each model’s own top-L/2 prediction, over the candidate pairs the alignment covers. Potts returns a bit-identical score matrix (max|∆S| = 2×10−14, Proposition 2), while ESM-2 650M keeps 2 of its own 38 contacts (overlap 0.05, chance 0.025).

Datasets

The study evaluated models on:

  • Nine diverse proteins (including ubiquitin and cytochrome c) with known structures from the PDB.
  • Pfam family alignments to provide the evolutionary context needed for classical models.
  • ProteinGym, a benchmark for predicting how mutations affect protein function (variant effect prediction).

Key Insights and Ideas

  • Alphabet Anchoring: This is the paper's core concept. pLMs are "anchored" to the canonical identities of amino acids. They don't just see "Position 1 and Position 10 are correlated"; they see "Position 1 is a Leucine, and I know Leucines like to be near Valines."
  • The Mechanistic Gap: Classical Potts models are provably invariant to relabeling. pLMs are not. This proves that pLMs and classical models are using fundamentally different mechanisms to arrive at the same contact predictions.
  • Biochemistry as a Prior: pLMs are much more tolerant of "In-class" swaps than "Random" ones. This suggests that larger models have learned biochemical similarity (e.g., they know that I, V, L, and M are similar), but they still require the original "alphabet" to function correctly.
  • Scale is Not a Cure: Increasing model size from 8 million to 3 billion parameters makes the models better at recognizing biochemical classes, but it does not make them invariant. Even the largest models fail the random relabeling test.

Key Results

  • Performance Collapse: When the alphabet is randomly relabeled, ESM-2 650M’s contact overlap drops to a staggering 0.015 (essentially zero), whereas the classical Potts model remains at 1.000 (perfectly invariant).
  • Accuracy Cost: On the protein ubiquitin, ESM-2 is normally 2.33x more precise than a Potts model. Under relabeling, its precision craters to just 0.17x of the Potts baseline.
  • Robustness to Chemistry: In-class relabeling (preserving biochemistry) maintained an overlap of 0.655, showing that the models rely on biochemical categories as a crutch.
Figure 2: Overlap falls as more residues are relabeled. Note how "In-class" swaps (blue) are much better tolerated than "Random" swaps (red), but both eventually degrade.

Limitations and Future Work

The authors acknowledge several limitations:

  • Scope: The study focused on a relatively small set of nine short, single-domain proteins. It’s unclear if these findings hold for massive, multi-domain complexes.
  • Training Data: They tested publicly available pre-trained checkpoints. They did not test whether a model trained from scratch on relabeled data would learn to be invariant (though they argue our current models, used in practice, are the ones that matter).
  • Necessary vs. Sufficient: Passing the relabeling test is a necessary condition for pure coevolutionary inference, but not a sufficient one. A model could pass the test and still use other non-biological shortcuts.

This work serves as a cautionary tale for "neural black boxes" in biology: just because a model gets the right answer doesn't mean it's learning the right reasons.

Summary updated

BibTeX
@misc{batra2026protein,
  author = {Paarth Batra and Aryan Keluskar},
  title = {{Protein Language Models Fail To Capture Contact Predictions Under Invariant Relabeling}},
  year = {2026},
  eprint = {2611.16881},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.16881},
}
Figure