Inferensys

Glossary

Evolutionary Scale Modeling (ESM)

A modeling paradigm that leverages deep learning on vast protein or DNA sequence alignments to capture evolutionary constraints, enabling structure and function prediction from sequence alone.
ML engineer managing model training cluster on laptop, GPU utilization visible, technical deep learning setup.
PROTEIN LANGUAGE MODELING

What is Evolutionary Scale Modeling (ESM)?

A modeling paradigm that leverages deep learning on vast protein sequence alignments to capture evolutionary constraints, enabling structure and function prediction from sequence alone.

Evolutionary Scale Modeling (ESM) is a deep learning paradigm that trains large transformer-based language models on massive, unlabeled protein sequence databases to capture the statistical patterns of evolutionary variation across millions of organisms. By learning to predict masked amino acids from their surrounding sequence context, ESM models internalize the structural and functional constraints that govern protein biology, effectively converting evolutionary data into a predictive computational model.

The resulting representations serve as a powerful foundation for downstream tasks including zero-shot variant effect prediction, where the model's surprise at a mutation correlates with its functional impact, and atomic-resolution structure prediction directly from a single sequence. This paradigm demonstrates that the information required for protein folding and function is latent within the evolutionary record and can be unlocked through self-supervised learning at scale.

ESM CAPABILITIES

Key Features of Evolutionary Scale Modeling

Evolutionary Scale Modeling (ESM) leverages deep learning on massive protein sequence alignments to capture structural, functional, and evolutionary constraints directly from primary sequence data.

01

Masked Language Modeling on Evolution

ESM models are pretrained using a masked language modeling (MLM) objective on large, diverse protein sequence databases such as UniRef. During training, random amino acids are masked, and the model learns to predict the original residue from the surrounding sequence context. This forces the network to internalize the complex grammar of protein sequences, including evolutionary covariation, biochemical constraints, and structural propensities. Unlike traditional methods that require multiple sequence alignments (MSAs) as input, ESM captures this co-evolutionary information within its learned parameters, enabling single-sequence structure prediction.

250M+
Protein sequences in training
02

Single-Sequence Structure Prediction

A defining capability of ESM models is the ability to predict three-dimensional protein structure directly from a single amino acid sequence, without requiring a multiple sequence alignment (MSA). The model's attention heads have been shown to represent contacts between residues that are proximal in the folded 3D structure. By interpreting these attention patterns as a proxy for residue-residue distance constraints, ESM-fold can generate accurate structural predictions. This single-sequence approach dramatically accelerates inference, making it feasible to predict structures for metagenomic proteins and other sequences for which deep MSAs cannot be constructed.

< 1 min
Inference per sequence
03

Zero-Shot Variant Effect Prediction

ESM models can assess the functional impact of amino acid substitutions without any task-specific fine-tuning. The zero-shot variant effect score is computed as the log-likelihood ratio between the reference (wild-type) and alternate (mutant) amino acids at a given position, conditioned on the surrounding sequence context. This approach leverages the model's learned distribution over natural protein sequences: mutations that are highly probable under the model are considered benign, while those that are improbable are predicted to be deleterious. This capability enables high-throughput in silico mutagenesis and clinical variant interpretation.

~0.6
Median correlation with deep mutational scans
04

Attention-Based Contact Prediction

The self-attention mechanisms within ESM's Transformer layers learn to attend strongly to residue pairs that are in spatial contact within the folded protein structure. By extracting and interpreting these attention patterns, the model generates a contact map that serves as a foundation for structure prediction. Key features include:

  • Symmetrization of raw attention matrices to enforce reciprocal contact predictions
  • Regression from multi-head attention to a single probability of contact
  • Long-range contact capture between residues separated by hundreds of positions in the linear sequence This learned representation of evolutionary covariation is what enables single-sequence structure prediction.
05

Scalable Protein Representation Learning

ESM models produce contextualized residue-level embeddings that encode biochemical properties, structural context, and evolutionary information into dense vector representations. These embeddings serve as transferable features for a wide range of downstream tasks, including:

  • Protein function prediction (Gene Ontology term classification)
  • Subcellular localization prediction
  • Protein-protein interaction site identification
  • Thermostability and biophysical property prediction The embeddings capture information that generalizes across protein families, enabling strong performance even on understudied proteins with limited experimental annotations.
15B
Parameters in ESM-2 (largest variant)
06

Metagenomic Structure Atlas

The single-sequence inference speed of ESM-fold enables structural characterization of proteins at an unprecedented scale. This has been applied to metagenomic datasets—genetic material recovered directly from environmental samples—to predict structures for hundreds of millions of previously uncharacterized proteins. This capability reveals the structural diversity of the microbial dark proteome, uncovering novel folds and functional sites that are absent from curated databases. The resulting structural atlas provides a resource for enzyme discovery, drug target identification, and understanding the functional potential of microbial communities.

600M+
Metagenomic structures predicted
EVOLUTIONARY SCALE MODELING

Frequently Asked Questions

Clear, technically precise answers to the most common questions about applying deep learning to protein and DNA sequence alignments for structure and function prediction.

Evolutionary Scale Modeling (ESM) is a deep learning paradigm that trains large transformer-based language models on massive, unlabeled protein or DNA sequence alignments to capture the statistical patterns of evolution. The core mechanism is masked language modeling (MLM), where random amino acids or nucleotides in a sequence are masked, and the model learns to predict the original residue from its bidirectional context. By training on millions of diverse sequences across the tree of life, the model internalizes the constraints imposed by evolution—such as which mutations are tolerated at a given position and which pairs of residues must co-vary to maintain structural stability. The resulting internal representations serve as a powerful, unsupervised feature extractor. A single forward pass through a pretrained ESM model can predict secondary structure, contact maps, and the functional effects of mutations without any task-specific training data, effectively turning evolutionary history into a computational oracle for protein biology.

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.