Inverse folding is the computational task of designing an amino acid sequence that will spontaneously fold into a specified, fixed three-dimensional protein backbone structure. Unlike forward folding (e.g., AlphaFold2), which predicts structure from sequence, inverse folding solves the reverse problem: given a desired structural scaffold, identify sequences that stabilize it. This is fundamental to de novo protein design, where novel folds are created for therapeutic or industrial functions.
Glossary
Inverse Folding

What is Inverse Folding?
Inverse folding is the computational task of predicting an amino acid sequence that will stably fold into a specified three-dimensional protein backbone structure, representing the reverse problem of protein structure prediction.
Modern inverse folding models, such as ProteinMPNN, use message-passing neural networks that operate on protein backbone coordinates to autoregressively generate sequences with high native sequence recovery rates. These models learn the sequence-structure relationship by training on the Protein Data Bank (PDB) and evaluating the likelihood that each amino acid identity is compatible with its local structural environment, including backbone dihedral angles and inter-residue distances.
Key Characteristics of Inverse Folding Models
Inverse folding models solve the reverse problem of structure prediction: given a target 3D backbone, they generate amino acid sequences that will stably fold into that structure. These models are foundational for de novo protein design and engineering.
Fixed Backbone Sequence Design
The core computational task is fixed-backbone sequence design. The model takes a rigid 3D backbone scaffold (N, Cα, C coordinates) as input and outputs a probability distribution over the 20 canonical amino acids at each position. Unlike structure prediction, which searches conformational space, inverse folding searches sequence space constrained by a fixed geometry. The objective is to maximize P(sequence | backbone), ensuring the designed sequence has that backbone as its lowest-energy state.
Message-Passing on Protein Graphs
Leading models like ProteinMPNN represent the protein backbone as a k-nearest-neighbors graph where nodes are residues and edges encode spatial relationships. Key architectural features include:
- Message-passing neural networks (MPNNs) that propagate information between spatially adjacent residues
- Encoder-decoder architectures where the encoder processes backbone geometry and the decoder autoregressively generates sequences
- Invariant feature construction using distances, dihedral angles, and relative spatial orientations rather than raw coordinates This graph-based formulation naturally captures the local packing interactions that determine sequence-structure compatibility.
Noise-Augmented Training for Robustness
A defining innovation in models like ProteinMPNN is training with Gaussian noise added to backbone coordinates. This teaches the model to design sequences that fold robustly even when the target backbone is slightly perturbed. Benefits include:
- Increased soluble expression in experimental validation
- Tolerance to backbone inaccuracies from structure prediction models
- Higher sequence recovery rates on native backbones
- Improved performance on flexible loops and surface residues The noise-augmentation strategy effectively encodes a smooth energy landscape around the target structure, producing sequences that are less brittle to minor structural variations.
Autoregressive vs. One-Shot Decoding
Inverse folding models employ two primary decoding strategies:
- Autoregressive decoding: Residues are predicted sequentially (N-to-C terminus), with each prediction conditioned on previously designed residues. This captures epistatic coupling between sequence positions.
- One-shot decoding: All positions are predicted simultaneously in a single forward pass, offering faster inference but potentially missing cooperative interactions. ProteinMPNN uses an autoregressive decoder with a random decoding order during training, which allows it to generate diverse sequence samples for the same backbone—critical for exploring sequence space in design campaigns.
Sequence Recovery as a Benchmark Metric
The primary evaluation metric for inverse folding is native sequence recovery rate—the percentage of positions where the model predicts the wild-type amino acid when given the native backbone. State-of-the-art models achieve:
- ~52-55% recovery on single-chain proteins (ProteinMPNN)
- ~40-45% recovery on protein-protein interfaces
- ~35-40% recovery on antibody CDR loops Importantly, perfect recovery is not the goal; the model should identify alternative sequences that also fold correctly. Perplexity on held-out test sequences and experimental validation through recombinant expression and biophysical characterization provide complementary evaluation.
Integration with Generative Backbone Models
Inverse folding models are increasingly paired with backbone generation models (e.g., RFdiffusion, FrameBuilder) in a two-stage design pipeline:
- A diffusion or hallucination model generates novel backbone structures with desired functional features (binding pockets, symmetry, topology)
- An inverse folding model designs sequences that encode these structures This modular architecture separates the geometric problem (what shape?) from the sequence problem (what amino acids?), enabling plug-and-play protein design where different backbone generators and sequence designers can be combined for specific engineering goals.
Inverse Folding vs. Forward Folding (Structure Prediction)
Comparison of the computational task, input-output mapping, and algorithmic goals of inverse folding versus traditional forward protein structure prediction.
| Feature | Inverse Folding | Forward Folding |
|---|---|---|
Core Task | Sequence design given a backbone structure | Structure prediction given an amino acid sequence |
Input | 3D backbone coordinates (N, Cα, C atoms) | Amino acid sequence (optionally with MSA) |
Output | Amino acid sequence(s) that fold to the target structure | 3D atomic coordinates of the folded protein |
Mathematical Formulation | P(sequence | structure) | P(structure | sequence) |
Primary Evaluation Metric | Sequence recovery rate, experimental folding success | RMSD, TM-score, lDDT-Cα, GDT-TS |
Key Algorithmic Paradigm | Message-passing on k-nearest neighbor graphs (e.g., ProteinMPNN) | Attention over pairwise representations (e.g., IPA in AlphaFold2) |
Training Data | Protein structures from PDB; sequence labels are extracted from native structures | Protein structures from PDB; structures are the prediction targets |
Typical Use Case | Designing novel enzymes, stable biologics, or self-assembling nanomaterials | Determining structure of an uncharacterized natural protein |
Frequently Asked Questions
Clear, technically precise answers to the most common questions about the computational task of designing amino acid sequences that fold into a specified three-dimensional protein backbone structure.
Inverse folding is the computational task of predicting an amino acid sequence that will stably fold into a specified three-dimensional protein backbone structure. It is the reverse problem of protein structure prediction, which maps a sequence to a structure. While AlphaFold2 and similar models solve the forward problem—given a sequence, predict the 3D coordinates—inverse folding models like ProteinMPNN solve the design problem: given a desired backbone scaffold, predict the sequence that encodes it. The distinction is fundamental: structure prediction is an analysis tool for understanding natural proteins, while inverse folding is a generative engineering tool for creating novel proteins with custom architectures, binding interfaces, or catalytic sites that do not exist in nature.
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.
Related Terms
Inverse folding sits at the intersection of generative protein design and structure prediction. These related concepts define the computational and experimental framework for designing sequences that fold into target structures.
ProteinMPNN
A message-passing neural network designed specifically for the inverse folding problem. ProteinMPNN predicts amino acid sequences that will fold into a given backbone structure with high experimental success rates.
- Uses an encoder-decoder architecture with protein backbone features as input
- Achieves 52% native sequence recovery on average, significantly outperforming physics-based methods
- Robust to structural noise, making it suitable for de novo designed scaffolds
- Outputs position-specific amino acid probabilities for downstream optimization
Side-Chain Packing
The computational task of determining the optimal discrete rotameric state for each amino acid side chain on a fixed backbone scaffold. This is a critical post-processing step after inverse folding.
- Searches the rotamer library of statistically preferred side-chain conformations
- Minimizes steric clashes and maximizes favorable van der Waals interactions
- Often coupled with energy minimization to resolve local geometric strain
- Essential for validating that designed sequences are physically realizable
Folding Free Energy (ΔΔG)
The change in thermodynamic stability of a protein upon mutation, calculated as the difference in Gibbs free energy of folding between mutant and wild-type sequences.
- Negative ΔΔG indicates stabilizing mutations that favor the folded state
- Positive ΔΔG indicates destabilizing mutations that may prevent proper folding
- Used to computationally validate inverse folding predictions before experimental testing
- Tools like FoldX and Rosetta ddg_monomer provide rapid in silico ΔΔG estimation
Conformational Ensemble
A collection of structurally distinct states representing the intrinsic dynamic flexibility of a protein. Inverse folding must account for this flexibility rather than targeting a single static structure.
- Proteins exist as ensembles of conformers, not rigid bodies
- Designing for a single snapshot may produce sequences that fail on alternative conformations
- Multi-state design algorithms optimize sequences against multiple backbone states simultaneously
- Critical for designing allosteric proteins and flexible binding interfaces
Deep Mutational Scanning
A high-throughput experimental technique that measures the functional impact of thousands of protein sequence variants simultaneously, generating rich datasets for training and validating inverse folding models.
- Couples massively parallel sequencing with functional selection assays
- Produces comprehensive genotype-phenotype maps for entire protein domains
- Provides ground-truth data on which mutations are tolerated at each position
- Used to benchmark inverse folding algorithms against experimental fitness landscapes
Equivariant Neural Network
A neural network architecture that guarantees its predictions transform predictably under 3D rotations and translations of input coordinates. This property is fundamental to physically consistent inverse folding.
- Ensures that rotating the backbone produces identically rotated sequence predictions
- SE(3) equivariance preserves the geometric relationships between residues
- Contrasts with invariant networks that discard orientation information
- Core architectural principle in models like ProteinMPNN and ESM-IF1

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