Evolutionary Scale Modeling (ESM-2) is a large transformer-based protein language model (pLM) developed by Meta AI, trained using a masked language modeling (MLM) objective on hundreds of millions of protein sequences spanning the tree of life. The model learns to predict randomly masked amino acids from their surrounding sequence context, forcing it to internalize the grammar of protein folding, sequence conservation patterns, and evolutionary constraints without any explicit structural supervision.
Glossary
Evolutionary Scale Modeling (ESM-2)

What is Evolutionary Scale Modeling (ESM-2)?
A family of large-scale protein language models from Meta AI that uses masked language modeling on millions of evolutionarily diverse sequences to capture deep structural, functional, and evolutionary information within learned protein representations.
The emergent capabilities of ESM-2 include state-of-the-art zero-shot mutation prediction, where the model scores the functional impact of a mutation by measuring the change in sequence likelihood, and high-resolution contact prediction directly from its attention heads. The architecture scales to 15 billion parameters, enabling the generation of rich, transferable embeddings that capture homology detection signals and biophysical properties, making it a foundational tool for in-silico mutagenesis and de novo protein design.
Key Features of ESM-2
Evolutionary Scale Modeling 2 (ESM-2) is Meta AI's flagship protein language model that scales to 15 billion parameters, using a transformer architecture trained on the UniRef50 database to learn deep representations of protein sequence, structure, and function directly from evolutionary data.
Masked Language Modeling Pre-Training
ESM-2 is trained using a masked language modeling (MLM) objective on millions of evolutionarily diverse protein sequences. During training, random amino acid residues are masked, and the model learns to predict the original residue from the surrounding sequence context. This forces the model to internalize the biochemical grammar of proteins—including residue co-evolution patterns, secondary structure propensities, and functional site constraints—without any explicit structural supervision. The resulting representations capture deep evolutionary information that generalizes across diverse downstream tasks.
Rotary Position Embeddings (RoPE)
ESM-2 replaces traditional absolute position encodings with Rotary Position Embeddings (RoPE), which encode positional information by rotating the query and key vectors in the self-attention mechanism. This approach naturally captures the relative distance between amino acid residues rather than their absolute positions, enabling the model to generalize to sequence lengths unseen during training. RoPE is particularly well-suited for protein sequences, where the functional relationship between residues depends on their spatial proximity in the folded structure, not their linear separation.
Scale-Driven Emergent Structure Prediction
A defining discovery of the ESM family is that protein structure prediction emerges as a property of scale. As ESM-2 scales from 8 million to 15 billion parameters, the attention heads spontaneously learn to represent residue-residue contacts in three-dimensional space. The 15B parameter ESM-2 achieves atomic-resolution structure prediction directly from its internal representations using a lightweight folding head, without requiring multiple sequence alignments (MSAs) or template-based inputs. This enables single-sequence structure prediction at speeds orders of magnitude faster than traditional methods.
Zero-Shot Variant Effect Prediction
ESM-2 can predict the functional impact of amino acid mutations without any task-specific fine-tuning. By computing the log-likelihood ratio between the wild-type and mutated sequences under the model's learned distribution, ESM-2 produces a zero-shot mutation score that correlates strongly with experimental measurements of protein stability and pathogenicity. This capability enables:
- Variant prioritization for clinical genomics
- Stability engineering for industrial enzymes
- Pathogenicity screening for rare disease variants
- Deep mutational scanning in silico
UniRef50 Training Data
ESM-2 is trained on the UniRef50 dataset, a clustered version of the UniProt knowledgebase that groups sequences at 50% sequence identity. This clustering reduces redundancy while preserving the vast diversity of the protein universe, exposing the model to approximately 65 million unique protein sequences spanning all domains of life. The use of UniRef50 ensures that the model learns generalizable features rather than memorizing near-duplicate sequences, improving its ability to generalize to novel proteins and distant homologs.
Attention-Based Interpretability
The self-attention mechanism in ESM-2 provides a built-in interpretability tool for biological discovery. Attention heatmaps reveal which residues the model considers most relevant for a given prediction, often corresponding to:
- Catalytic sites in enzyme active sites
- Binding interfaces in protein-protein interactions
- Allosteric networks that transmit conformational signals
- Evolutionarily coupled residues that co-vary across species These attention patterns can guide mutagenesis experiments and reveal functional mechanisms without wet-lab screening.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Frequently Asked Questions
Explore the architecture, training methodology, and practical applications of Meta AI's Evolutionary Scale Modeling family of protein language models.
Evolutionary Scale Modeling (ESM-2) is a family of large-scale protein language models developed by Meta AI that uses a masked language modeling objective on millions of evolutionarily diverse protein sequences. The primary architectural advancement over its predecessor, ESM-1b, is the replacement of learned absolute positional embeddings with Rotary Position Embeddings (RoPE). This change enables ESM-2 to generalize to sequences longer than those seen during training and improves its ability to capture long-range residue-residue interactions. ESM-2 was released in multiple parameter sizes—ranging from 8 million to 15 billion parameters—with the largest variant, ESM-2 15B, demonstrating that scaling model size directly improves the resolution of internal structural representations, including atomic-level contact prediction without any structural supervision.
Related Terms
Key concepts and architectures that contextualize Evolutionary Scale Modeling (ESM-2) within the broader landscape of protein language models and deep learning for biology.
Protein Language Model (pLM)
A transformer model trained on massive databases of protein amino acid sequences using self-supervised objectives. It learns the underlying grammar of protein structure and function to generate informative embeddings. ESM-2 is a specific, highly performant instance of a pLM. These models treat amino acid sequences analogously to natural language text, capturing long-range dependencies and residue-residue interactions that dictate folding.
Masked Language Modeling (MLM)
The core self-supervised pre-training objective used by ESM-2. A random subset of amino acids in a protein sequence is masked, and the model learns to predict the original residues from the surrounding evolutionary context. This forces the model to learn fundamental sequence conservation patterns, biochemical constraints, and structural couplings without requiring any labeled structural data.
Zero-Shot Mutation Prediction
A key capability of ESM-2 where the model predicts the effect of a mutation using only the difference in sequence likelihood (log-odds ratio) between the wild-type and mutant sequences. No supervised fine-tuning on labeled variant effect data is required. This enables:
- Variant effect scoring for clinical genomics
- In-silico deep mutational scanning
- Identification of pathogenic mutations in proteins of unknown structure
Contact Prediction
The task of determining which pairs of amino acid residues are in close spatial proximity within a folded protein's 3D structure. This capability emerges in the attention heads of ESM-2 during pre-training. The resulting contact maps are foundational for de novo structure prediction and are derived directly from the co-evolutionary signal captured in the model's self-attention weights.
Rotary Position Embedding (RoPE)
The positional encoding method used in ESM-2's transformer architecture. RoPE encodes position by rotating the query and key vectors, naturally capturing the relative distance between amino acid residues. This allows ESM-2 to extrapolate to longer protein sequences than those seen during training and effectively model long-range interactions between distal residues.
Sequence Conservation
A measure of the degree to which an amino acid position remains unchanged across evolutionary time. ESM-2 learns this fundamental signal during self-supervised pre-training on millions of diverse sequences. Positions with high conservation scores in the model's representations correlate strongly with functional importance, such as active sites, binding interfaces, and structurally critical core residues.

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.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us