Beyond Nativeness: Viral Proteins in Protein Language Models

Arthur Bigot, Harmon Bhasin, Core Francisco Park, Eugene Shakhnovich, Dianzhuo Wang

TL;DR

Protein language models (pLMs) organize the biological universe along a dominant "nativeness axis" that separates well-modeled cellular proteins from "out-of-distribution" viral and random sequences. While scaling models makes some viral proteins appear more "native," the underlying embeddings preserve a distinct, linearly separable viral signal that simple reconstruction metrics miss.

What Problem Does This Paper Address?

Protein language models like ESM are the "LLMs of biology," but they suffer from a massive data bias: their training sets are dominated by cellular organisms (bacteria, plants, animals), with viral sequences representing less than 1% of the data.

This raises a fundamental question: Do these models actually "understand" viral proteins, or do they just treat them as "broken" or "low-quality" versions of cellular proteins? If a model has a hard time reconstructing a viral sequence (high perplexity), is that just because it's rare, or because the model hasn't captured the unique evolutionary rules that viruses follow?

Methods

The authors analyze representations across several model families, including ESM2, ESMC, and ESM3 (masked language models), as well as ProGen2 (autoregressive) and EvoDiff (diffusion). Their approach involves:

  • Embedding Geometry: Using Principal Component Analysis (PCA) on mean-pooled protein embeddings to see how different biological groups are organized in high-dimensional space.
  • Perplexity (PPL) as a Proxy: Using masked-reconstruction perplexity as a measure of "nativeness"—essentially asking the model, "How much does this sequence look like what you saw during training?"
  • Linear Probing: Training simple logistic regression heads on top of frozen embeddings to see if "viral-ness" can be extracted as a specific feature, even when the model finds the sequence difficult to model.
  • Meaningless Controls: Comparing real proteins against shuffled sequences and random amino acid strings to define the boundaries of "non-native" space.

Datasets

  • UniRef50: Used to quantify the 119:1 imbalance between cellular and viral clusters in standard pretraining data.
  • Multi-group Biological Dataset: A curated set spanning 10 groups (6 cellular, 4 viral) plus 3 synthetic controls (shuffled/random).
  • Human Viral/Cellular Classification Dataset: A homology-controlled dataset of ~10,000 sequences used to test if models can distinguish human-infecting viruses from human cellular proteins.
  • Post-release Cellular Control: A set of cellular proteins released after the models were trained to prove that "nativeness" is about structural patterns, not just memorizing sequences.

Key Insights and Ideas

  • The Nativeness Axis: The most surprising finding is that the first principal component (PC1) of pLM embeddings is almost entirely dedicated to "nativeness." It explains 54–73% of the variance and correlates nearly perfectly ($\rho > 0.9$) with perplexity. This axis creates a spectrum: Cellular $\rightarrow$ Viral $\rightarrow$ Shuffled $\rightarrow$ Random.
  • Scaling is Selective: As models get bigger, they don't "nativize" all viruses equally. Families with cellular homologs (like Retroviridae, which share features with retrotransposons in our own DNA) move toward the "native" region quickly. Highly divergent viruses stay "non-native" even at massive scales.
  • Signal Beyond Noise: Even when a viral protein "looks" native to the model (low perplexity), the embedding still knows it's a virus. The "viral signal" is preserved as a distinct direction in space that is independent of how "hard" the sequence was to reconstruct.
  • Universal Geometry: This nativeness axis isn't an artifact of one specific training method; it appeared across masked, autoregressive, and diffusion-based models, suggesting it's a fundamental property of how models learn from imbalanced biological data.

Key Results

  • Near-Perfect Classification: Linear probes on embeddings achieved an AUC-ROC of 0.97 to 1.00 for viral vs. cellular classification, significantly outperforming shallow baselines (like amino acid composition).
  • PPL vs. Probes: While larger models make some viruses easier to reconstruct (lowering PPL), the PPL-based zero-shot classifiers actually became less reliable at larger scales. In contrast, the embedding probes stayed at near-ceiling accuracy.
  • Low False Positive Performance: In biosecurity-relevant scenarios (detecting viruses at a 0.1% false positive rate), the embedding probes reached up to 83.4% True Positive Rate, while perplexity-only methods languished below 40%.

Limitations and Future Work

  • Architecture Scope: While the authors tested a few non-ESM models, the bulk of the deep dive focused on the ESM family.
  • The "Why" of Geometry: While the paper identifies that this geometry exists, the exact mathematical mechanism that forces "nativeness" into the first principal component remains unclear.
  • Fine-tuning: The authors suggest that fine-tuning on viral data could "collapse" this axis, potentially making models more reliable for viral engineering or pathogen detection.
  • Cross-Domain Analogies: The authors propose that "underrepresented languages" in LLMs might occupy a similar "low-nativeness" axis, which could be a fruitful area for general AI research.

Summary updated

Abstract

Protein language models are trained on highly imbalanced datasets, raising the question of how they represent underrepresented biological sequences. Using viral proteins as a case study across ESM model families, we identify a dominant nativeness axis in embedding space, aligned with masked-reconstruction perplexity, that orders sequences from well-modeled cellular proteins through viral proteins to shuffled and random sequences. Scaling contracts this axis unevenly across viral families. Despite this, protein language model embeddings retain viral-specific signal: viral proteins remain linearly separable beyond zero-shot perplexity and shallow sequence features. Together, these results suggest that pLM representations are structured by a general notion of nativeness while preserving information specific to distinct biological groups.
BibTeX
@inproceedings{bigot2026beyond,
  author = {Arthur Bigot and Harmon Bhasin and Core Francisco Park and Eugene Shakhnovich and Dianzhuo Wang},
  title = {{Beyond Nativeness: Viral Proteins in Protein Language Models}},
  booktitle = {FM4LS @ ICML},
  year = {2026},
  url = {https://openreview.net/forum?id=4BkYpMJ9zC},
}

Loading related content...

Figure