AI Navigate

Protein Counterfactuals via Diffusion-Guided Latent Optimization

arXiv cs.LG / 3/12/2026

💬 OpinionIdeas & Deep AnalysisModels & Research

Key Points

  • The paper introduces MCCOP, a framework that computes minimal, biologically plausible sequence edits to flip a protein model's prediction to a desired target state.
  • It operates in a continuous joint sequence-structure latent space and uses a pretrained diffusion model as a manifold prior to balance validity, proximity, and plausibility.
  • MCCOP is evaluated on GFP fluorescence rescue, thermodynamic stability enhancement, and E3 ligase activity recovery, producing sparser and more plausible counterfactuals than discrete or continuous baselines.
  • The recovered mutations align with known biophysical mechanisms, supporting interpretability and potential for hypothesis-driven protein design, with code publicly available on GitHub.

Abstract

Deep learning models can predict protein properties with unprecedented accuracy but rarely offer mechanistic insight or actionable guidance for engineering improved variants. When a model flags an antibody as unstable, the protein engineer is left without recourse: which mutations would rescue stability while preserving function? We introduce Manifold-Constrained Counterfactual Optimization for Proteins (MCCOP), a framework that computes minimal, biologically plausible sequence edits that flip a model's prediction to a desired target state. MCCOP operates in a continuous joint sequence-structure latent space and employs a pretrained diffusion model as a manifold prior, balancing three objectives: validity (achieving the target property), proximity (minimizing mutations), and plausibility (producing foldable proteins). We evaluate MCCOP on three protein engineering tasks - GFP fluorescence rescue, thermodynamic stability enhancement, and E3 ligase activity recovery - and show that it generates sparser, more plausible counterfactuals than both discrete and continuous baselines. The recovered mutations align with known biophysical mechanisms, including chromophore packing and hydrophobic core consolidation, establishing MCCOP as a tool for both model interpretation and hypothesis-driven protein design. Our code is publicly available at github.com/weroks/mccop.