TL;DR
Engineering a better protein requires making multiple coordinated mutations at once—pushing a sequence toward a desired trait without accidentally unfolding it into biological gibberish. APEX is a training-free, plug-and-play algorithm that pairs any frozen generative protein model with a property predictor to figure out both where to mutate and what amino acids to put there. It achieves higher predicted gains in stability, solubility, and binding than existing methods while keeping the resulting proteins structurally and evolutionarily plausible.
What Problem Does This Paper Address?
Suppose you want to make an enzyme survive higher temperatures or dissolve better. Single amino-acid swaps rarely give big improvements, so protein engineers look for higher-order variants—sequences with several simultaneous mutations (say, a strict wet-lab budget of 8 or 16 edits).
This creates a nasty combinatorial trap. First, mutations interact (epistasis): two edits that look great individually might ruin the protein together, while two seemingly useless edits might unlock a massive gain when combined. Second, there is a tug-of-war between plausibility and optimization:
- Generative protein models know what natural, foldable proteins look like, but usually rely on reward-blind heuristics (like model uncertainty) to pick mutation sites.
- Reward-guided search methods aggressively optimize property predictors, often "reward hacking" their way off the natural protein manifold—producing sequences with high predicted scores that would never fold in a test tube.
How do you make exact-budget, multi-site edits that account for mutation interactions and stay anchored to biological reality, without retraining anything?
Methods
The authors introduce APEX (Anchored Protein Engineering via quantized eXpectation), an inference-time pipeline that decouples where to edit from what to substitute, using a frozen base generative model and a differentiable reward model.
- Phase I: Anchor Selection (Where to mutate). APEX uses reward gradients across randomly masked contexts to shortlist sensitive positions. On that shortlist, it probes single-site effects and pairwise reward interactions—checking whether pairs of sites cooperate or interfere under the reward model. A subset solver then picks the exact $B$ "anchor" sites maximizing individual and pairwise gains.
- Phase II: Anchored Tilted Decoding (What to substitute). Starting from the base model's amino-acid probability distributions at the chosen anchors, APEX nudges ("tilts") those logits along the reward gradient. Because amino acids are discrete tokens (blocking standard backpropagation), APEX adapts a straight-through quantized-expectation trick: the forward pass snaps soft probability expectations to the nearest discrete amino-acid embedding, while gradients flow smoothly backward through the soft expectation.
- Optional Iterative Refinement. For extra test-time compute, APEX can revert the weakest mutations and re-solve them in the updated sequence context while keeping the total mutation budget fixed.
Crucially, APEX only ever asks the base model for per-position amino-acid probabilities—a universal primitive. That means the exact same code works out-of-the-box on masked language models (ESM-2), discrete diffusion models (DPLM), and structure-conditioned inverse-folding networks (LigandMPNN, SolubleMPNN).
Datasets
APEX is evaluated in a one-shot, fixed-budget setting (no iterative wet-lab acquisition loops) across existing benchmarks:
- Thermostability & Solubility: Splits from Huang et al. (2025) (100 source proteins per split, budgets $B \in \{8, 16\}$), using reward predictors trained on Meltome melting temperatures (following TemBERTure) and DeepSol, respectively.
- GB1 Binding: The Olson 2014 deep mutational scanning (DMS) dataset for the 55-residue B1 domain of protein G ($B=2$), using a ProteinNPT reward model and checking designs against experimentally measured fitness.
- T4 Lysozyme Case Study: Starting from PDB
2LZM($B \in \{8, 16\}$), testing whether APEX recovers 31 experimentally characterized stabilizing mutations from literature.
Key Insights and Ideas
- Choosing where to edit does most of the heavy lifting. Ablations show that tilting amino-acid choices at random sites fails badly—to climb the reward at bad locations, the optimizer is forced off the natural protein prior. Conversely, picking smart anchors via Phase I and just accepting the base model's default substitutions already captures 55–78% of the full reward gain.
- Pairwise interaction terms matter. Dropping the second-order interaction score ($\alpha = 0$) cuts reward gains by 16–33%, proving that explicitly modeling how pairs of sites cooperate catches synergies that first-order gradients miss.
- Unanchored baselines "cheat" via compositional collapse. Reward-steering baselines often hack predictors by spamming a single favored amino acid—for instance, activation steering (SPLM) turns almost every mutated site into Leucine, while GGS overuses Tryptophan. Because APEX initializes every step at the base model's local probabilities, its edits remain chemically conservative and context-dependent.
Key Results
- Thermostability (
THERM-LOW): At $B=16$, APEX boosts predicted melting temperature by +14.43 °C (87% success rate), beating the strongest baseline (PEX, +11.79 °C). More importantly, APEX is the only reward-guided method whose sequences become more likely under ESM-2 (+0.12 $\Delta$PLL) while losing just 0.5 pLDDT points of structural confidence (baselines lose 3.2–5.0 points). These gains hold even when re-scored by an unseen predictor architecture. - Solubility (
SOL-LOW): At $B=16$, APEX achieves the highest solubility probability gain (+0.326, 81% success) while preserving structural confidence (74.6 pLDDT vs. 65.9 for SPLM). - Experimental Overlap: On GB1 ($B=2$), 98% of APEX's designs clear the high-fitness experimental DMS threshold ($\ln W > 1.0$). On T4 lysozyme ($B=16$), 60% of APEX designs recover known literature-stabilizing mutations, compared to 30–48% for reward-guided baselines.
Limitations and Future Work
- In-silico evaluation: The primary thermostability and solubility gains are predictions from learned evaluators, and the GB1 lookup is retrospective (since the reward model trained on that DMS). Prospective wet-lab experiments are still required to verify that multi-mutant designs fold and function as predicted.
- Pairwise ceiling: Phase I captures single-site and pairwise interactions, leaving three-way or higher-order epistatic interactions as unmodeled residuals. Additionally, full details on broader impacts and limitations are deferred to Appendix E (not included in the main text).
Summary updated