DisProtEdit: Exploring Disentangled Representations for Multi-Attribute Protein Editing

Max Ku, Sun Sun, Hongyu Guo, Wenhu Chen

TL;DR

DisProtEdit is a controllable protein editing framework that explicitly disentangles structural and functional properties into separate latent subspaces using dual-channel natural language supervision. By replacing standard contrastive losses with cross-modal alignment, uniformity, and an angular Maximum Mean Discrepancy (MMD) objective, it allows researchers to edit a protein’s structure, function, or both via text instructions without unintended attribute interference.

What Problem Does This Paper Address?

Traditional protein engineering through machine learning usually focuses on de novo generation or sequence classification. However, practical protein engineering often requires protein editing—fine-grained, modular modifications, such as altering an enzyme's catalytic activity while preserving its structural fold.

Existing multimodal protein models struggle with this because:

  1. Holistic representations: Most foundation models treat sequences as unified inputs, entangling structure and function into a single latent vector.
  2. Lack of localized control: Prior text-guided editing models struggle to modify one attribute without corrupting others, often degrading the protein overall rather than executing a targeted edit.

Methods

DisProtEdit addresses this challenge by establishing modular semantic channels in a shared latent space:

  • Dual-Channel Encoders: Text descriptions are split into structural and functional components. Two SciBERT models (with MLP projection heads) independently encode these textual streams, while a ProtBERT encoder maps the amino acid sequence into the shared embedding space.
  • Alignment and Uniformity Objectives: Rather than relying on InfoNCE contrastive learning (which requires large batches and suffers from false negatives), the model minimizes the L2 distance between the sequence embedding and the concatenated text embeddings ($\mathcal{L}_A$) and uses a uniformity loss ($\mathcal{L}_U$) to disperse embeddings across the hypersphere.
  • Angular Prior Decomposition (Angular MMD): To prevent structural and functional embeddings from correlating, the latent space is split into two subspaces constrained by an angular parameter $\phi \in [0, \pi/2]$: $$\|X_1\| = \cos\phi, \quad \|X_2\| = \sin\phi$$ The model enforces independent Gaussian priors on these disjoint hyperspheres using Maximum Mean Discrepancy ($\mathcal{L}_D$), ensuring semantic independence in both angle and magnitude.

  • Masked Latent Interpolation & Sequence Decoding: At inference time, editing is performed via spherical linear interpolation (Slerp) with a binary mask $m$ between the protein embedding and the target text embedding, updating only the desired subspace (structure, function, or both). An autoregressive T5 decoder then reconstructs the edited amino acid sequence.

Datasets

  • SwissProtDis (Training): A newly curated multimodal dataset of ~540,000 protein sequences derived from SwissProt. Using GPT-4o, raw annotations were automatically decomposed into distinct, non-overlapping structural and functional text descriptions.
  • Multi-Attribute Editing Benchmark (Evaluation): A newly introduced benchmark of 196 bootstrapped protein sequences with paired combinatorial edit instructions (e.g., $+\alpha\text{-helices}, -\text{Pin1 stability}$).
  • TAPE Benchmark (Evaluation): Used to assess downstream representation quality across secondary structure prediction (SS-3, SS-8), remote homology detection, fluorescence prediction, and stability prediction.

Key Insights and Ideas

  • Single-Stage Alignment Without Modality Gaps: Contrastive models often suffer from a noticeable "modality gap" between text and protein representations that requires secondary fine-tuning. DisProtEdit achieves tight cross-modal alignment and hyperspherical dispersion in a single stage.
  • The Fitness Landscape Asymmetry: Quantitative results reveal that reducing property scores ($-\alpha\text{-helices}$, $-\text{Villin}$) is far easier than increasing them ($+\text{Villin}$, $+\text{Pin1}$). Disruptive mutations are easy to introduce, but stabilizing edits require navigating a highly constrained, rugged fitness landscape.
  • Disentanglement Enhances Editability: Setting the disentanglement weight $\lambda_D = 1.0$ forces the text embeddings into two symmetric, coherent clusters in SVD projections, preventing cross-talk between structural commands and functional properties.

Key Results

  • Multi-Attribute Editing: On the novel combinatorial benchmark, DisProtEdit achieved a both-hit success rate of up to 61.73% (for $+\alpha\text{-helices}, -\text{Pin1}$) and 59.18% (for $-\beta\text{-sheets}, -\text{Villin}$), demonstrating coordinated control over both axes.
  • Single-Attribute Editing: DisProtEdit drastically outperformed ProteinDT on difficult constructive tasks, reaching 56.14% vs. 28.27% on increasing $\alpha$-helices, and 31.58% vs. 9.16% on increasing $\beta$-sheets.
  • General Representation Quality (TAPE): DisProtEdit maintained competitive classification accuracy (SS-Q3: 82.9%; Homology: 0.3133) and established state-of-the-art correlation on regression tasks, achieving 0.5373 Spearman correlation on fluorescence (outperforming ProteinDT’s $0.0167$) and 0.8258 on stability.

Limitations and Future Work

  • LLM Decomposition Noise: Decomposing SwissProt annotations with GPT-4o risks introducing biological hallucinations or minor inaccuracies into the supervision signal.
  • Decoder Overfitting: The T5 decoder exhibits a bias toward memorizing high-frequency sequence motifs from the training set, reducing sequence diversity on rare targets. The authors suggest replacing autoregressive decoders with structure-aware diffusion models in future work.
  • Oracle Evaluation Limitations: Benchmark success relies on pretrained oracle property predictors, which can carry evaluation biases on out-of-distribution sequences.

Summary updated

BibTeX
@inproceedings{ku2025disprotedit,
  author = {Max Ku and Sun Sun and Hongyu Guo and Wenhu Chen},
  title = {{DisProtEdit: Exploring Disentangled Representations for Multi-Attribute Protein Editing}},
  booktitle = {GenBio @ ICML},
  year = {2025},
  url = {https://openreview.net/forum?id=haz6yrfMtE},
}
Figure