TL;DR
EvoIF is a lightweight, data-efficient protein fitness predictor that reframes masked language modeling as Inverse Reinforcement Learning (IRL) on natural evolution. By fusing a geometric sequence–structure encoder with both within-family homology profiles and cross-family inverse folding logits, EvoIF matches or outperforms massive foundation models on the ProteinGym benchmark while training on just 0.15% of the data.
What Problem Does This Paper Address?
Predicting how amino acid substitutions alter protein function (fitness) is essential for protein engineering, drug design, and antibody optimization. Although zero-shot protein language models (pLMs) scored via log-odds have emerged as strong predictors, current paradigms suffer from three major bottlenecks:
- Lack of theoretical grounding: Why does masked language modeling (MLM) correlate with experimental mutational fitness?
- Extreme compute and data scaling: Modern models chase incremental gains by training billions of parameters on trillions of tokens, making them prohibitive to fine-tune or deploy locally.
- Fragmented evolutionary modeling: Multiple Sequence Alignments (MSAs) only capture sequence homology within families, while Inverse Folding (IF) models capture global sequence-structure compatibility across families. Few models synthesize both into a coherent, compact representation.
Methods
EvoIF integrates sequence, 3D structure, and evolutionary priors into a data-efficient architecture:
[Target Sequence + 3D Backbone]
│
├─► Geometric Encoder (ESM-2 + GVP-GNN) ────────┐
│ ▼
├─► Within-Family Profile (Foldseek MSA) ──► Transition Block ──► [Logit Fusion] ──► Calibrated Log-Odds
│ ▲
└─► Cross-Family Profile (ProteinMPNN Logits) ─► Transition Block ──┘
- Theoretical Formulation (Evolution as IRL): Evolution is framed as a Markov Decision Process where natural selection acts as an expert agent maximizing fitness rewards. Extant proteins are expert demonstrations. Maximizing the MLM likelihood mathematically coincides with the Maximum Entropy IRL objective; hence, pLM log-odds directly approximate the relative fitness difference between mutant and wild-type sequences.
- Geometric Sequence–Structure Backbone: EvoIF embeds sequences with ESM-2 (frozen) and models 3D backbone coordinates using SE(3)-equivariant/invariant Geometric Vector Perceptron (GVP) graph networks.
- Dual Evolutionary Profiles:
- Within-family homology profile ($P^{\text{struct}}$): Position-specific amino acid frequency matrices constructed from structural homologs retrieved via Foldseek from AlphaFold DB.
- Cross-family structural profile ($P^{\text{IF}}$): Log-odds/probabilities from an inverse folding model (ProteinMPNN), supplying universal structural–evolutionary constraints.
- Logit-Level Transition & Fusion: Each profile is passed through a lightweight transformer transition layer and added directly to the backbone GVP logits before computing softmax probabilities.
- EvoIF-MSA (Ensemble): When MSAs are available at inference, EvoIF predictions are post-hoc ensembled with GEMME (an epistatic MSA-based model) by summing standardized $z$-scores.
Datasets
- Pre-training: Evaluated on the non-redundant subset of CATH v4.3.0 (30,948 experimental structures)—vastly smaller than typical pLM corpora (e.g., UniRef100).
- Homology Retrieval: Query structures are matched against the AlphaFold Proteome Database using Foldseek.
- Evaluation: Benchmarked on ProteinGym (217 deep mutational scanning assays spanning >2.5 million mutations across clinical, stability, activity, and binding targets, including 23 out-of-distribution assays).
Key Insights and Ideas
- MLM is Maximum-Entropy IRL: Proving that the MLM loss aligns with MaxEnt IRL gives a firm theoretical rationale for why unsupervised token probabilities reflect evolutionary fitness.
- Inverse Folding Provides "Cross-Family" Evolutionary Priors: Inverse folding models trained on diverse backbones internalize physical and evolutionary rules across families. Treating their logits as a static evolutionary profile avoids expensive homology searches while compensating for shallow MSAs.
- Complementarity Over Model Scale: Ablating either profile degrades performance: baseline (0.454 Spearman) $\to$ +structure profile (0.462) $\to$ +IF profile (0.478) $\to$ both profiles (0.489). They provide orthogonal inductive biases (local homology vs. universal structural feasibility).
Key Results
- Competitive with Giant Models: On ProteinGym, EvoIF achieves a 0.489 Spearman correlation (MSA-free), outperforming S2F (0.454) and ESM-IF (0.422). When combined with GEMME (EvoIF-MSA), it achieves 0.518, matching the 16-billion-parameter AIDO Protein-RAG (0.518) and VenusREM (0.518).
- Extreme Data and Compute Efficiency: EvoIF uses 76M trainable parameters and 30K structures (0.15% of the data used by larger models). It trains in roughly 5 hours on 4 $\times$ NVIDIA H800 GPUs—over $900\times$ faster than VenusREM and $10^9\times$ faster than AIDO Protein-RAG.
- Robustness Across Challenging Regimes:
- Viruses: Achieved a massive boost on viral proteins (Spearman 0.534 vs. ESM-2's 0.238), where sparse homologous sequences typically cripple pure sequence models (exemplified in a Spike glycoprotein case study, scoring 0.559 vs. ESM-2's -0.018).
- Epistasis: Remained resilient at higher mutation depths ($\ge 5$ simultaneous mutations), capturing non-linear interactions better than linear additive pLM baselines.
Limitations and Future Work
- Rigid Backbone Assumption: Assumes mutations do not significantly distort the wild-type backbone ($X^{\text{wt}} = X^{\text{mt}}$), which breaks down for large insertions, deletions, or destabilizing mutations.
- No Explicit Side-Chain Modeling: Focuses on $C_\alpha$/backbone geometry rather than full-atom rotamer packing.
- Future Directions: Incorporating side-chain flexibility, extending the MDP/IRL formulation to explicitly model higher-order epistasis, and integrating diffusion-based priors during inference.
Summary updated