Importance Weighted Expectation-Maximization for Protein Sequence Design
Abstract
Designing protein sequences with desired biological function is crucial in biology and chemistry. Recent machine learning methods use a surrogate sequence-function model to replace the expensive wet-lab validation. How can we efficiently generate diverse and novel protein sequences with high fitness? In this paper, we propose IsEM-Pro, an approach to generate protein sequences towards a given fitness criterion. At its core, IsEM-Pro is a latent generative model, augmented by combinatorial structure features from a separately learned Markov random fields (MRFs). We develop an Monte Carlo Expectation-Maximization method (MCEM) to learn the model. During inference, sampling from its latent space enhances diversity while its MRFs features guide the exploration in high fitness regions. Experiments on eight protein sequence design tasks show that our IsEM-Pro outperforms the previous best methods by at least 55% on average fitness score and generates more diverse and novel protein sequences.
1 Introduction
Protein engineering aims to discover protein variants with desired biological function, such as fluorescence intensity (Biswas et al., 2021), enzyme activity (Fox et al., 2007), and therapeutic efficacy (Lagassé et al., 2017). Protein sequences embody their function through spontaneous folding of amino-acid sequences into three dimensional structures (Go, 1983; Chothia, 1984; Starr & Thornton, 2017). The map** from protein sequence to functional property forms a protein fitness landscape that characterizes the protein functional levels, such as the capability to catalyze reaction or bind a specific ligand (Romero & Arnold, 2009; Ren et al., 2022). Traditional approaches to design a specific protein with desired fitness objective involve obtaining protein variants by random mutagenesis (Labrou, 2010) or recombination in laboratory experiments (Ma et al., 2003). These variants are screened and selected in wet-lab experiments (Arnold, 1998) as illustrated in Figure 2.
![Refer to caption](extracted/5698639/Fujiyama.png)
(a) Fujiyama landscape.
![Refer to caption](extracted/5698639/badlands.png)
(b) Badlands landscape.
![Refer to caption](x1.png)
However, these approaches requires iterative cycles of random mutagenesis and wet-lab validation, which are both money-consuming and time-intensive. Recent machine learning methods attempt to build a surrogate model of protein fitness landscape to accelerate expensive wet-lab screening (Luo et al., 2021; Meier et al., 2021). How can we efficiently discover satisfactory proteins over the exponentially large discrete space? Ideal protein molecules should be novel, diverse and exhibit high fitness. On one hand, designing novel and diverse protein sequences can uncover new functions and also lead to functional diversification (Singh et al., 2016). On the other hand, in addition to the evolutionary pressure for a protein to conserve specific positions of its sequence for function, the diversification of protein sequences can avoid undesired inter-domain association such as misfolding (Wright et al., 2005).
In this paper, we propose an Importance sampling based Expectation-Maximization (EM) method to efficiently design novel, diverse and desirable Protein sequences (IsEM-Pro). Specifically, we introduce a latent variable in the generative model to capture the inter-dependencies in protein sequences. Sampling in latent space leads to more diverse candidates and can escape from locally optimal fitness regions. Instead of using standard variational inference models such as variational auto-encoder (VAE) (Kingma & Welling, 2013), we leverage importance sampling inside the EM algorithm to learn the latent generative model. As illustrated in Figure 1, our approach can navigate through multiple local optimum, and yield better overall performance. We further incorporate combinatorial structure of amino acids in protein sequences using Markov random fields (MRFs). It guides the model towards higher fitness landscape, leading to faster uphill path to desired proteins.
We carry out extensive experiments on eight protein sequence design tasks and compare the proposed method with previous strong baselines. The contribution of this paper are listed as follows:
-
•
We propose a structure-enhanced latent generative model for protein sequence design.
-
•
We develop an efficient method to learn the proposed generative model, based on importance sampling inside the EM algorithm.
-
•
Experiments on eight protein datasets with different objectives demonstrate that our IsEM-Pro generates protein sequences with at least 55% higher average fitness score and higher diversity and novelty than previous best methods. Further analyse show that the protein sequences designed by our model can fold stably, giving empirical evidence that our proposed IsEM-Pro has the ability to generate real proteins.
2 Background
In this section, we review protein sequence design and basic variational inference.
2.1 Protein Sequence Design upon Wild-Type
The protein sequence design problem is to search for a sequence with desired property in the sequence space , where denotes the vocabulary of amino acids and L denotes the desired sequence length. The target is to find a protein sequence with highest fitness given by a protein fitness function , which can be measured through wet-lab experiments. Wild-type refers to protein occurring in nature. Evolutionary search based methods are widely used (Bloom & Arnold, 2009; Arnold, 2018; Angermueller et al., 2019; Ren et al., 2022). They use wild-type sequence as starting point during iterative search. In this paper, we do not focus on the modification upon the wild-type sequence, but aim to efficiently generate novel and diverse sequences with improved protein functional properties.
2.2 Monte Carlo Expectation-Maximization
A latent generative model assumes data x (e.g. a protein sequence) is generated from a latent variable z. A classic algorithm to learn a latent generative model is Monte Carlo expectation-maximization (MCEM). The optimization procedure for maximizing the log marginal likelihood is to alternate between expectation step (E-step) and maximization step (M-step) (Neal & Hinton, 1998; Jordan et al., 1999). EM directly targets the log marginal likelihood of an observation x by involving a variational distribution :
(1) |
where is the true posterior distribution and is the joint distribution, composed of the conditional likelihood and the prior . In MCEM, E-step samples a set of z from to estimate the expectation 1 using Monte Carlo method, and then M-step fits the model parameters by maximizing the Monte Carlo estimation (Levine & Casella, 2001). It can be proved that this process will never decease the log marginal likelihood (Dieng & Paisley, 2019). We will develop our method based on this MCEM framework.
3 Proposed Method: IsEM-Pro
In this section, we describe our method in detail. We will first present the probabilistic model and its learning algorithm. To make the learning more efficient, we describe how to uncover and use the potential constraints conveyed in the protein sequences.
3.1 Problem Formulation
Our goal is to search over a space of discrete protein sequences – consists of 20 amino acids and is the sequence length – for sequence that maximizes a given fitness function . Let the fitness value , given a predefined threshold , we define a conditional likelihood function:
(2) |
where represents the event that the fitness of x is ideal (). Using to denote the protein distribution in nature, we assume we have access to a set of observations of x drawn from it. We also assume a class of generative models that can be trained with these samples and can approximate well. Since the search space is exponentially large (O()), random search would be time-intensive. We formulate the protein design problem as generating satisfactory sequences from the posterior distribution :
(3) |
where is a normalization constant which does not rely on x. Protein sequences generated from are not only more likely to be real proteins, but also have higher functional scores (i.e., fitness). The higher the is, the higher fitness the discovered protein sequences have.
3.2 Probabilistic Model
Directly generating satisfactory sequences from the posterior distribution is highly efficient compared with randomly search over the exponentially discrete space. However, realizing this idea is difficult as computing needs an integration over all possible x, which is intractable. Instead, we propose to learn a proposal distribution with learnable parameter to approximate . Following Brookes et al. (2019), to find the optimal of the proposal distribution, we choose to minimize the KL divergence between the posterior distribution and the proposal distribution :
(4) |
where is the entropy of and can be dropped because it does not matter .
Diversity is a key consideration in our protein design procedure, which not only satisfies the diverse nature of species, but also can reduce undesired inter-domain misfolding (Wright et al., 2005). In order to promote the diversity of the designed protein sequences, we introduce a latent variable z into our model to capture the high-order dependencies among amino acids in protein sequences. Thus our final goal is to maximize the log marginal likelihood of sequence x from the posterior distribution integrating over z:
(5) |
where the second equality is the EM objective defined in Equation 1 with approximate posterior distribution . is jointly learned with by maximizing the above expectation.
3.3 Importance Weighted EM
To maximize the objective defined in Equation 5, we plan to learn our proposal distribution through importance sampling based EM, of which the sampling procedure and iterative optimization process can lead to a better estimate (Figure 1 (b)), resulting in novel and diverse proteins with higher fitness.
Since we can not directly sample from due to the intractable integration factor , we choose to approximate the expectation using importance sampling with proposal distribution (Neal, 2001; Dieng & Paisley, 2019) as used in Brookes et al. (2019). Because is only conditioned on x, we have . We assume the latent variable z in and are defined on the same latent space and have the same prior . Then the final objective in Equation 5 can be reformulated as:
(6) |
The first equality is due to the importance sampling, the second equality holds because is an integration over z and does not rely on z and we use a trick proposed by Brookes et al. (2019). In the third equality, is a constant which does not rely on and , and will be dropped in the following learning process.
We use importance sampling based EM to approximate the above objective (Hastings, 1970; Levine & Casella, 2001) with joint samples .
Specifically, at iteration t, the optimization process can be reformulated as :
E-step:
(7) |
M-step:
(8) |
where is the unnormalized importance weight, and N is the sample size.
Through the combined sampling procedure and iterative optimization process, we can obtain a good proposal distribution , from which we can generate satisfactory sequences with small time cost.
3.4 Guiding Model Climbing through Combinatorial Structure
As shown in previous work, the combinatorial structure of amino acids in protein sequences can be learned from a generative graphical model Markov random fields (MRFs) fitted on the sequences from the same family (Hopf et al., 2017; Luo et al., 2021). These structure constraints are the results of the evolutionary process under natural selection and may reveal clues on which amino-acid combinations are more favorable than others. Thus we incorporate these features into our model to guide it towards higher fitness landscape to faster find desired protein sequences.
Given a protein sequence with amino acids, the generative model generates it with likelihood where is a normalization constant and E(x) is the corresponding energy function, which is defined as the sum of all pairwise constraints and single-site constraints as follows:
(9) |
where denotes the single-site constraint of at position i and denotes the pairwise constraint of and at position i, j. The above graphical model is illustrated in Figure 3.
We train the model following CCMpred (Seemayer et al., 2014) using a pseudo-likelihood (provided in Appendix E) combined with Ridge regularization to make the learning of easier. But different from them, we additionally add a lasso regularizer to the training objective to make the graph sparse, of which the regularization coefficients are set to the same values as the ridge regularizer:
(10) |
where is the vector of the single-site constraints of the 20 amino acids at position i, and is the vector of all possible pairwise constraints at position i, j. Following (Kamisetty et al., 2013), we set and .
![Refer to caption](x2.png)
After training the MRFs, we can encode a protein sequence x with the learned constraints. Specifically, we first encode the i-th amino acid by concatenating its corresponding single-site constraint as well as the possible pairwise ones:
(11) |
where gathers the 20 amino acids for any position . Then we map to the amino-acid embedding space with trainable parameter , and add the mapped vector to the original amino-acid embedding to get the final feature vector as our model input:
(12) |
which means for the autoregressive Transformer decoder, the first token input is set the sampled latent vector and the input for other position is set to the combinatorial structure augmented feature vector of last token.
At iteration t in MCEM, the learning process for the combinatorial structure enhanced latent generative model becomes:
E-step:
(13) |
M-step:
(14) |
is fixed during latent generative model learning and we omit it in the following parts to make description simple. The overall learning algorithm is given in Appendix B.2.
4 Experiments
In this section, we conduct extensive experiments to validate the effectiveness of our proposed IsEM-Pro on protein sequence design task.
4.1 Implementation Details
Our model is built based on Transformer (Vaswani et al., 2017) with -layer encoder initialized by ESM-2 (Lin et al., 2022)111https://dl.fbaipublicfiles.com/fairesm/models/esm2_t6_8M_UR50D.pt and -layer decoder with random initialization, of which the encoder parameters are fixed during training process. Thus the MRFs features are only incorporated in decoder. The model hidden size and feed-forward hidden size are set to and respectively as ESM-2. We use the [CLS] representation from the last layer of encoder to calculate the mean and variance vectors of the latent variable through single-layer map**. Then the sampled latent vector is used as the first token input of decoder. The latent vector size is correspondingly set to . We first train a VAE model as for epochs and is initialized by . The number of iterative process in the importance sampling based VEM is set to . The protein combinatorial structure constraints are learned on the training sequences for each dataset instead of real multiple sequence alignments (MSAs) to keep a fair comparison.
The mini-batch size and learning rate are set to tokens and e- respectively. The model is trained with NVIDIA RTX A GPU card. We apply Adam algorithm (Kingma & Ba, 2014) as the optimizer with a linear warm-up over the first steps and linear decay for later steps. We randomly split each dataset into training/validation sets with the ratio of :. We run all the experiments for five times and report the average scores. More experimental settings are given in Appendix B.1.
In inference, we design protein sequences by taking the wild-type as encoder input and the latent vector is sampled from prior distribution . The sequences are decoded using sampling strategy with top-. The candidate number is set to K= following the setting of Jain et al. (2022) on the GFP dataset.
4.2 Datasets
Following Ren et al. (2022), we evaluate our method on the following eight protein engineering benchmarks:
(1) Green Fluorescent Protein (avGFP): The goal is to design sequences with higher log-fluorescence intensity values. We collect data following Sarkisyan et al. (2016).
(2) Adeno-Associated Viruses (AAV): The target is to generate amino-acid segment (position ) for higher gene therapeutic efficiency. We collect data following Bryant et al. (2021).
(3) TEM-1 -Lactamase (TEM): The goal is to design high thermodynamic-stable sequences. We merge the data from Firnberg et al. (2014).
(4) Ubiquitination Factor Ube4b (E4B): The objective is to design sequences with higher enzyme activity. We gather data following Starita et al. (2013).
(5) Aliphatic Amide Hydrolase (AMIE): The goal is to produce amidase sequences with higher enzyme activity. We merge data following Wrenbeck et al. (2017).
(6) Levoglucosan Kinase (LGK): The target is to optimize LGK protein sequences with improved enzyme activity. We collect data following Klesmith et al. (2015).
(7) Poly(A)-binding Protein (Pab1): The goal is to design sequences with higher binding fitness to multiple adenosine monophosphates. We gather data following Melamed et al. (2013).
(8) SUMO E2 Conjugase (UBE2I): We aim to find human SUMO E2 conjugase with higher growth rescue rate. Data are obtained following Weile et al. (2017).
The detailed data statistics, including protein sequence length, data size and data source are provided in Appendix A.
Models | avGFP | AAV | TEM | E4B | AMIE | LGK | Pab1 | UBE2I | Average |
---|---|---|---|---|---|---|---|---|---|
CMA-ES | |||||||||
FBGAN | |||||||||
DbAS | |||||||||
CbAS | |||||||||
PEX | |||||||||
GFlowNet-AL | |||||||||
ESM-Search | |||||||||
\hdashlineIsEM-Pro | 6.185 | 4.813 | 1.850 | 5.737 | 0.062 | 0.035 | 2.923 | 4.536 | 3.267 |
– w/o ESM | |||||||||
– w/o ISEM | |||||||||
– w/o MRFs | |||||||||
– w/o LV |
Models | avGFP | AAV | TEM | E4B | AMIE | LGK | Pab1 | UBE2I | Average |
---|---|---|---|---|---|---|---|---|---|
CMA-ES | 225.12 | ||||||||
FBGAN | |||||||||
DbAS | |||||||||
CbAS | |||||||||
PEX | |||||||||
GFlowNet-AL | 25.57 | 266.43 | |||||||
ESM-Search | |||||||||
\hdashlineIsEM-Pro | 91.35 | 293.30 | 405.99 | 68.27 | 178.15 | ||||
– w/o ESM | |||||||||
– w/o ISEM | |||||||||
– w/o MRFs | 143.29 | ||||||||
– w/o LV |
Models | avGFP | AAV | TEM | E4B | AMIE | LGK | Pab1 | UBE2I | Average |
---|---|---|---|---|---|---|---|---|---|
CMA-ES | |||||||||
FBGAN | |||||||||
DbAS | |||||||||
CbAS | |||||||||
PEX | |||||||||
GFlowNet-AL | |||||||||
ESM-Search | |||||||||
\hdashlineIsEM-Pro | 226.31 | 23.81 | 270.27 | 96.57 | 332.23 | 420.93 | 70.09 | 153.27 | 199.18 |
– w/o ESM | |||||||||
– w/o ISEM | |||||||||
– w/o MRFs | |||||||||
– w/o LV |
![Refer to caption](x3.png)
(a) avGFP and E4B
![Refer to caption](x4.png)
(a) AAV and TEM
![Refer to caption](x5.png)
(b) AMIE and LGK
![Refer to caption](x6.png)
(c) Pab1 and UBE2I
4.3 Baseline Models
We compare our method against the following representative baselines: (1) CMA-ES (Hansen & Ostermeier, 2001) is a famous evolutionary search algorithm. (2) FBGAN proposed by Gupta & Zou (2019) is a novel feedback-loop architecture with generative model GAN. (3) DbAS (Brookes & Listgarten, 2018) is a probabilistic modeling framework and uses adaptive sampling algorithm. (4) CbAS (Brookes et al., 2019) improves on DbAS by conditioning on the desired properties. (5) PEX proposed by Ren et al. (2022) is a model-guided sequence design algorithm using proximal exploration. (6) GFlowNet-AL (Jain et al., 2022) applies GFlowNet to design biological sequences. We use the implementations of CMA-ES, DbAS and CbAS provided in Trabucco et al. (2022) and for other baselines, we apply their released codes. To better analyze the influence of different components in our model, we also conduct ablation tests as follows: (1) IsEM-Pro-w/o-ESM removes ESM-2 as encoder initialization. (2) IsEM-Pro-w/o-ISEM removes iterative optimization process. (3) IsEM-Pro-w/o-MRFs removes MRFs features and iterative optimization process. (4) IsEM-Pro-w/o-LV removes latent variable, MRFs features and iterative optimization process. (5) ESM-Search samples sequences from the softmax distribution obtained by finetuning ESM-2 on the protein datasets and taking the wild-type as input.
4.4 Evaluation Metrics
We use three automatic metrics to evaluate the performance of the designed sequences: (1) MFS: Maximum fitness score. The oracle model adopted to evaluate MFS is described in Appendix B.1; (2) Diversity proposed by Jain et al. (2022) is used to evaluate how different the designed candidates are from each other; (3) Novelty proposed by Jain et al. (2022) is used to evaluate how different the proposed candidates are from the sequences in training data.
4.5 Main Results
Table 1, 2 and 3 respectively report the maximum fitness scores, diversity scores and novelty scores of all models.
IsEM-Pro achieves the highest fitness scores on all protein families and outperforms the previous best method GFlowNet-AL by 55% on average (Table 1). The reasons are two-folds. On one hand, the importance sampling based VEM can help our model to navigate to a better region instead of getting trapped in a worse local optima. On the other hand, the combinatorial structure features help to recognize the preferred mutation patterns which have higher success rate under the nature selection pressure, potentially leading to sequences with higher fitness scores.
IsEM-Pro achieves the highest average diversity score over the eight tasks (Table 2). Our model gains the highest diversity on out of tasks while GFlowNet-AL gains o and CMA-ES gains . It indicates that though involving combinatorial structure constraints can give the guidance for preferred protein patterns, it might also limit the sequence design to these patterns to some extent. The involved latent variable can capture complex inter-dependencies among amino acids, which benefits for more diverse protein design.
IsEM-Pro can design more novel protein sequences on all datasets (Table 3). Our model achieves higher novelty scores on all datasets due to the reason that more new samples are involved during the importance sampling based iterative optimization process, which is beneficial for more novel protein design.
4.6 Ablation Study
Bottom halves of Table 1, 2 and 3 report the results of ablation tests. IsEM-Pro-w/o-MRFs improves the average diversity and novelty scores by as much as x compared with IsEM-Pro-w/o-LV, which demonstrates that introducing a latent variable can significantly help to generate diverse proteins. IsEM-Pro-w/o-MRFs achieves higher maximum fitness scores than IsEM-Pro-w/o-ESM on all datasets, validating that adopting a pretrained protein language model as the encoder helps to design more satisfactory protein sequences. However, directly finetuning ESM-2 to sample candidates (ESM-Search) drops points on average fitness score compared with taking ESM-2 as an encoder (IsEM-Pro-w/o-MRFs), demonstrating that ESM-2 is not suitable for direct sequence design. Incorporating combinatorial structure features can further improve the fitness of the designed proteins (IsEM-Pro-w/o-ISEM V.S. IsEM-Pro-w/o-MRFs), based on which learning the proposal distribution by importance sampling based VEM can better promote more desirable, diverse and novel protein generation.
5 Analysis
In this section, we will make rigorous analyse to demonstrate the effectiveness of our method from different aspects.
![Refer to caption](x7.png)
(a) -D visualization of sequence with highest fitness.
![Refer to caption](x8.png)
(b) Superposition of fluorescent proteins in top-5 templates.
Methods | MFS | Diversity | Novelty |
---|---|---|---|
Latent-Add | |||
Latent-Memory | 219.00 | ||
IsEM-Pro | 6.185 | 226.31 |
5.1 Approximate KL Divergence
To validate how close the proposal distribution is to the posterior distribution , we calculate the KL divergence through Monte Carlo approximation. Here we calculate the KL divergence between and as we have proven in Lemma (provided in Appendix C.2) that the sampling difference between these two distributions can be bounded under this divergence. We leverage an unbiased and low-variance estimator (proof shown in Appendix C.1) to approximate KL divergence as follows:
(15) |
where . The approximate KL divergence on eight protein datasets over k-k samples are illustrated in Figure 4. From the figure, we can see that the variance of KL divergence is very small over different sample size for all datasets. Besides, the KL divergence finally arrives at a small value, such as for E4B and for avGFP. It gives empirical evidence that when we sample from the ultimate , it has minor difference compared with sampling from the posterior distribution .
5.2 Effect of VAE Implementation Method
Next, we study the effect of different implementation schemes of involving a latent variable with a pretrained encoder. Some works have tried adding the latent representation to the original embedding layer (Latent-Add) or using it as an additional memory (Latent-Memory) when adopting a pretrained language model as encoder (Li et al., 2020). We also implement our model with these two schemes, and evaluate the model performance on avGFP dataset. Table 4 shows that our method, which takes the latent representation as the first token input of decoder, achieves a higher fitness and novelty scores though with a mild decrease on diversity.
5.3 Case Study
To gain an insight on how well the designed proteins are, we analyze the generated avGFP sequence with highest fitness in detail using Phyre2 tool (Kelley et al., 2015). Figure 5 (a) illustrates the generated variant can fold stably. According to the software, the most similar protein is Cytochrome b562 integral fusion with enhanced green fluorescent protein (EGFP) (Edwards et al., 2008). There are 227 residues ( 96% of the candidate sequence) have been modeled with 100.0% confidence by using this protein as template. Details are given in Appendix D. Figure 5(b) visualizes the superposition of the top-5 most similar templates to our sequence in the protein data bank, which are all fluorescent proteins and show highly consistent structure in most regions, validating that our model can design a real fluorescent protein.
6 Related Work
Machine Learning for Protein Fitness Landscape Prediction. Machine learning has been increasingly used for modeling protein fitness landscape, which is crucial for protein engineering. Some work leverage co-evolution information from multiple sequence alignments to predict fitness scores (Kamisetty et al., 2013; Luo et al., 2021). Melamed et al. (2013) propose to construct a deep latent generative model to capture higher-order mutations. Meier et al. (2021) propose to use pretrained protein language models to enable zero-shot prediction. The learned protein landscape models can be used to replace the expensive wet-lab validation to screen enormous designed sequences (Rao et al., 2019; Ren et al., 2022).
Methods for Protein Sequence Design. Protein sequence design has been studied with a wide variety of methods, including traditional directed evolution (Arnold, 1998; Dalby, 2011; Packer & Liu, 2015; Arnold, 2018) and machine learning methods. The mainly used machine learning algorithms include reinforcement learning (Angermueller et al., 2019; Jain et al., 2022), Bayesian optimization (Belanger et al., 2019; Moss et al., 2020; Terayama et al., 2021), search using deep generative models (Brookes & Listgarten, 2018; Brookes et al., 2019; Madani et al., 2020; Kumar & Levine, 2020; Das et al., 2021; Hoffman et al., 2022; Melnyk et al., 2021; Ren et al., 2022) adaptive evolution methods (Hansen, 2006; Swersky et al., 2020; Sinai et al., 2020) as well as likelihood-free inference (Zhang et al., 2021).
Extending Brookes et al. (2019), we propose importance sampling based Monte Carlo EM to learn a latent generative model which is enhanced by combinatorial structure features of protein space. The whole framework can not only help the generative model to climb to a better region in either Fujiyama landscape or Badlands landscape (Kauffman & Weinberger, 1989), but also significantly promote design diversity and novelty.
7 Conclusion
This paper proposes IsEM-Pro, a latent generative model for protein sequence design, which incorporates additional combinatorial structure features learned by MRFs. We use importance weighted EM to learn the model, which can not only enhance design diversity and novelty, but also lead to protein sequences with higher fitness. Experimental results on eight protein sequence design tasks show that our method outperforms several strong baselines on all metrics.
References
- Angermueller et al. (2019) Angermueller, C., Dohan, D., Belanger, D., Deshpande, R., Murphy, K., and Colwell, L. Model-based reinforcement learning for biological sequence design. In International conference on learning representations, 2019.
- Arnold (1998) Arnold, F. H. Design by directed evolution. Accounts of chemical research, 31(3):125–131, 1998.
- Arnold (2018) Arnold, F. H. Directed evolution: bringing new chemistry to life. Angewandte Chemie International Edition, 57(16):4143–4148, 2018.
- Belanger et al. (2019) Belanger, D., Vora, S., Mariet, Z., Deshpande, R., Dohan, D., Angermueller, C., Murphy, K., Chapelle, O., and Colwell, L. Biological sequences design using batched bayesian optimization. 2019.
- Biswas et al. (2021) Biswas, S., Khimulya, G., Alley, E. C., Esvelt, K. M., and Church, G. M. Low-n protein engineering with data-efficient deep learning. Nature methods, 18(4):389–396, 2021.
- Bloom & Arnold (2009) Bloom, J. D. and Arnold, F. H. In the light of directed evolution: pathways of adaptive protein evolution. Proceedings of the National Academy of Sciences, 106(supplement_1):9995–10000, 2009.
- Brookes et al. (2019) Brookes, D., Park, H., and Listgarten, J. Conditioning by adaptive sampling for robust design. In International conference on machine learning, pp. 773–782. PMLR, 2019.
- Brookes & Listgarten (2018) Brookes, D. H. and Listgarten, J. Design by adaptive sampling. arXiv preprint arXiv:1810.03714, 2018.
- Bryant et al. (2021) Bryant, D. H., Bashir, A., Sinai, S., Jain, N. K., Ogden, P. J., Riley, P. F., Church, G. M., Colwell, L. J., and Kelsic, E. D. Deep diversification of an aav capsid protein by machine learning. Nature Biotechnology, 39(6):691–696, 2021.
- Chothia (1984) Chothia, C. Principles that determine the structure of proteins. Annual review of biochemistry, 53(1):537–572, 1984.
- Csiszár & Körner (2011) Csiszár, I. and Körner, J. Information theory: coding theorems for discrete memoryless systems. Cambridge University Press, 2011.
- Dalby (2011) Dalby, P. A. Strategy and success for the directed evolution of enzymes. Current opinion in structural biology, 21(4):473–480, 2011.
- Das et al. (2021) Das, P., Sercu, T., Wadhawan, K., Padhi, I., Gehrmann, S., Cipcigan, F., Chenthamarakshan, V., Strobelt, H., Dos Santos, C., Chen, P.-Y., et al. Accelerated antimicrobial discovery via deep generative models and molecular dynamics simulations. Nature Biomedical Engineering, 5(6):613–623, 2021.
- Dieng & Paisley (2019) Dieng, A. B. and Paisley, J. Reweighted expectation maximization. arXiv preprint arXiv:1906.05850, 2019.
- Edwards et al. (2008) Edwards, W. R., Busse, K., Allemann, R. K., and Jones, D. D. Linking the functions of unrelated proteins using a novel directed evolution domain insertion method. Nucleic acids research, 36(13):e78–e78, 2008.
- Firnberg et al. (2014) Firnberg, E., Labonte, J. W., Gray, J. J., and Ostermeier, M. A comprehensive, high-resolution map of a gene’s fitness landscape. Molecular biology and evolution, 31(6):1581–1592, 2014.
- Fox et al. (2007) Fox, R. J., Davis, S. C., Mundorff, E. C., Newman, L. M., Gavrilovic, V., Ma, S. K., Chung, L. M., Ching, C., Tam, S., Muley, S., et al. Improving catalytic function by prosar-driven enzyme evolution. Nature biotechnology, 25(3):338–344, 2007.
- Go (1983) Go, N. Theoretical studies of protein folding. Annual review of biophysics and bioengineering, 12(1):183–210, 1983.
- Gupta & Zou (2019) Gupta, A. and Zou, J. Feedback gan for dna optimizes protein functions. Nature Machine Intelligence, 1(2):105–111, 2019.
- Hansen (2006) Hansen, N. The cma evolution strategy: a comparing review. Towards a new evolutionary computation, pp. 75–102, 2006.
- Hansen & Ostermeier (2001) Hansen, N. and Ostermeier, A. Completely derandomized self-adaptation in evolution strategies. Evolutionary computation, 9(2):159–195, 2001.
- Hastings (1970) Hastings, W. K. Monte carlo sampling methods using markov chains and their applications. 1970.
- Higgins et al. (2016) Higgins, I., Matthey, L., Pal, A., Burgess, C., Glorot, X., Botvinick, M., Mohamed, S., and Lerchner, A. beta-vae: Learning basic visual concepts with a constrained variational framework. 2016.
- Hoffman et al. (2022) Hoffman, S. C., Chenthamarakshan, V., Wadhawan, K., Chen, P.-Y., and Das, P. Optimizing molecules using efficient queries from property evaluations. Nature Machine Intelligence, 4(1):21–31, 2022.
- Hopf et al. (2017) Hopf, T. A., Ingraham, J. B., Poelwijk, F. J., Schärfe, C. P., Springer, M., Sander, C., and Marks, D. S. Mutation effects predicted from sequence co-variation. Nature biotechnology, 35(2):128–135, 2017.
- Jain et al. (2022) Jain, M., Bengio, E., Hernandez-Garcia, A., Rector-Brooks, J., Dossou, B. F., Ekbote, C. A., Fu, J., Zhang, T., Kilgour, M., Zhang, D., et al. Biological sequence design with gflownets. In International Conference on Machine Learning, pp. 9786–9801. PMLR, 2022.
- Jordan et al. (1999) Jordan, M. I., Ghahramani, Z., Jaakkola, T. S., and Saul, L. K. An introduction to variational methods for graphical models. Machine learning, 37(2):183–233, 1999.
- Kamisetty et al. (2013) Kamisetty, H., Ovchinnikov, S., and Baker, D. Assessing the utility of coevolution-based residue–residue contact predictions in a sequence-and structure-rich era. Proceedings of the National Academy of Sciences, 110(39):15674–15679, 2013.
- Kauffman & Weinberger (1989) Kauffman, S. A. and Weinberger, E. D. The nk model of rugged fitness landscapes and its application to maturation of the immune response. Journal of theoretical biology, 141(2):211–245, 1989.
- Kelley et al. (2015) Kelley, L. A., Mezulis, S., Yates, C. M., Wass, M. N., and Sternberg, M. J. The phyre2 web portal for protein modeling, prediction and analysis. Nature protocols, 10(6):845–858, 2015.
- Kingma & Ba (2014) Kingma, D. P. and Ba, J. Adam: A method for stochastic optimization. 2014.
- Kingma & Welling (2013) Kingma, D. P. and Welling, M. Auto-encoding variational bayes. arXiv preprint arXiv:1312.6114, 2013.
- Klesmith et al. (2015) Klesmith, J. R., Bacik, J.-P., Michalczyk, R., and Whitehead, T. A. Comprehensive sequence-flux map** of a levoglucosan utilization pathway in e. coli. ACS synthetic biology, 4(11):1235–1243, 2015.
- Kumar & Levine (2020) Kumar, A. and Levine, S. Model inversion networks for model-based optimization. Advances in Neural Information Processing Systems, 33:5126–5137, 2020.
- Labrou (2010) Labrou, N. E. Random mutagenesis methods for in vitro directed enzyme evolution. Current Protein and Peptide Science, 11(1):91–100, 2010.
- Lagassé et al. (2017) Lagassé, H. D., Alexaki, A., Simhadri, V. L., Katagiri, N. H., Jankowski, W., Sauna, Z. E., and Kimchi-Sarfaty, C. Recent advances in (therapeutic protein) drug development. F1000Research, 6, 2017.
- Levine & Casella (2001) Levine, R. A. and Casella, G. Implementations of the monte carlo em algorithm. Journal of Computational and Graphical Statistics, 10(3):422–439, 2001.
- Li et al. (2020) Li, C., Gao, X., Li, Y., Peng, B., Li, X., Zhang, Y., and Gao, J. Optimus: Organizing sentences via pre-trained modeling of a latent space. arXiv preprint arXiv:2004.04092, 2020.
- Lin et al. (2022) Lin, Z., Akin, H., Rao, R., Hie, B., Zhu, Z., Lu, W., Smetanin, N., dos Santos Costa, A., Fazel-Zarandi, M., Sercu, T., Candido, S., et al. Language models of protein sequences at the scale of evolution enable accurate structure prediction. bioRxiv, 2022.
- Luo et al. (2021) Luo, Y., Jiang, G., Yu, T., Liu, Y., Vo, L., Ding, H., Su, Y., Qian, W. W., Zhao, H., and Peng, J. Ecnet is an evolutionary context-integrated deep learning framework for protein engineering. Nature communications, 12(1):1–14, 2021.
- Ma et al. (2003) Ma, J. K., Drake, P. M., and Christou, P. The production of recombinant pharmaceutical proteins in plants. Nature reviews genetics, 4(10):794–805, 2003.
- Madani et al. (2020) Madani, A., McCann, B., Naik, N., Keskar, N. S., Anand, N., Eguchi, R. R., Huang, P.-S., and Socher, R. Progen: Language modeling for protein generation. arXiv preprint arXiv:2004.03497, 2020.
- Meier et al. (2021) Meier, J., Rao, R., Verkuil, R., Liu, J., Sercu, T., and Rives, A. Language models enable zero-shot prediction of the effects of mutations on protein function. Advances in Neural Information Processing Systems, 34:29287–29303, 2021.
- Melamed et al. (2013) Melamed, D., Young, D. L., Gamble, C. E., Miller, C. R., and Fields, S. Deep mutational scanning of an rrm domain of the saccharomyces cerevisiae poly (a)-binding protein. Rna, 19(11):1537–1551, 2013.
- Melnyk et al. (2021) Melnyk, I., Das, P., Chenthamarakshan, V., and Lozano, A. Benchmarking deep generative models for diverse antibody sequence design. arXiv preprint arXiv:2111.06801, 2021.
- Moss et al. (2020) Moss, H., Leslie, D., Beck, D., Gonzalez, J., and Rayson, P. Boss: Bayesian optimization over string spaces. Advances in neural information processing systems, 33:15476–15486, 2020.
- Neal (2001) Neal, R. M. Annealed importance sampling. Statistics and computing, 11(2):125–139, 2001.
- Neal & Hinton (1998) Neal, R. M. and Hinton, G. E. A view of the em algorithm that justifies incremental, sparse, and other variants. In Learning in graphical models, pp. 355–368. Springer, 1998.
- Packer & Liu (2015) Packer, M. S. and Liu, D. R. Methods for the directed evolution of proteins. Nature Reviews Genetics, 16(7):379–394, 2015.
- Rao et al. (2019) Rao, R., Bhattacharya, N., Thomas, N., Duan, Y., Chen, P., Canny, J., Abbeel, P., and Song, Y. Evaluating protein transfer learning with tape. Advances in neural information processing systems, 32, 2019.
- Ren et al. (2022) Ren, Z., Li, J., Ding, F., Zhou, Y., Ma, J., and Peng, J. Proximal exploration for model-guided protein sequence design. bioRxiv, 2022.
- Rives et al. (2021) Rives, A., Meier, J., Sercu, T., Goyal, S., Lin, Z., Liu, J., Guo, D., Ott, M., Zitnick, C. L., Ma, J., et al. Biological structure and function emerge from scaling unsupervised learning to 250 million protein sequences. Proceedings of the National Academy of Sciences, 118(15):e2016239118, 2021.
- Romero & Arnold (2009) Romero, P. A. and Arnold, F. H. Exploring protein fitness landscapes by directed evolution. Nature reviews Molecular cell biology, 10(12):866–876, 2009.
- Sarkisyan et al. (2016) Sarkisyan, K. S., Bolotin, D. A., Meer, M. V., Usmanova, D. R., Mishin, A. S., Sharonov, G. V., Ivankov, D. N., Bozhanova, N. G., Baranov, M. S., Soylemez, O., et al. Local fitness landscape of the green fluorescent protein. Nature, 533(7603):397–401, 2016.
- Seemayer et al. (2014) Seemayer, S., Gruber, M., and Söding, J. Ccmpred—fast and precise prediction of protein residue–residue contacts from correlated mutations. Bioinformatics, 30(21):3128–3130, 2014.
- Sinai et al. (2020) Sinai, S., Wang, R., Whatley, A., Slocum, S., Locane, E., and Kelsic, E. D. Adalead: A simple and robust adaptive greedy search algorithm for sequence design. arXiv preprint arXiv:2010.02141, 2020.
- Singh et al. (2016) Singh, A., Pandey, A., Srivastava, A. K., Tran, L.-S. P., and Pandey, G. K. Plant protein phosphatases 2c: from genomic diversity to functional multiplicity and importance in stress management. Critical Reviews in Biotechnology, 36(6):1023–1035, 2016.
- Starita et al. (2013) Starita, L. M., Pruneda, J. N., Lo, R. S., Fowler, D. M., Kim, H. J., Hiatt, J. B., Shendure, J., Brzovic, P. S., Fields, S., and Klevit, R. E. Activity-enhancing mutations in an e3 ubiquitin ligase identified by high-throughput mutagenesis. Proceedings of the National Academy of Sciences, 110(14):E1263–E1272, 2013.
- Starr & Thornton (2017) Starr, T. N. and Thornton, J. W. Exploring protein sequence–function landscapes. Nature biotechnology, 35(2):125–126, 2017.
- Swersky et al. (2020) Swersky, K., Rubanova, Y., Dohan, D., and Murphy, K. Amortized bayesian optimization over discrete spaces. In Conference on Uncertainty in Artificial Intelligence, pp. 769–778. PMLR, 2020.
- Terayama et al. (2021) Terayama, K., Sumita, M., Tamura, R., and Tsuda, K. Black-box optimization for automated discovery. Accounts of Chemical Research, 54(6):1334–1346, 2021.
- Trabucco et al. (2022) Trabucco, B., Geng, X., Kumar, A., and Levine, S. Design-bench: Benchmarks for data-driven offline model-based optimization. In International Conference on Machine Learning, pp. 21658–21676. PMLR, 2022.
- Vaswani et al. (2017) Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A. N., Kaiser, Ł., and Polosukhin, I. Attention is all you need. Advances in neural information processing systems, 30, 2017.
- Weile et al. (2017) Weile, J., Sun, S., Cote, A. G., Knapp, J., Verby, M., Mellor, J. C., Wu, Y., Pons, C., Wong, C., van Lieshout, N., et al. A framework for exhaustively map** functional missense variants. Molecular systems biology, 13(12):957, 2017.
- Wrenbeck et al. (2017) Wrenbeck, E. E., Azouz, L. R., and Whitehead, T. A. Single-mutation fitness landscapes for an enzyme on multiple substrates reveal specificity is globally encoded. Nature communications, 8(1):1–10, 2017.
- Wright et al. (2005) Wright, C. F., Teichmann, S. A., Clarke, J., and Dobson, C. M. The importance of sequence diversity in the aggregation and evolution of proteins. Nature, 438(7069):878–881, 2005.
- Zhang et al. (2021) Zhang, D., Fu, J., Bengio, Y., and Courville, A. Unifying likelihood-free inference with black-box sequence design and beyond. arXiv preprint arXiv:2110.03372, 2021.
Appendix A Data Statistics
We provide the detailed data statistics in the following table, including protein sequence length, data size and data source. We have checked and cleaned the data and make sure the data do not contain personally identifiable information or offensive content.
Protein | Length | Size | Data Source |
---|---|---|---|
avGFP | https://figshare.com/articles/dataset/Local_fitness_landscape_of_the_green_fluorescent_protein | ||
AAV | https://github.com/churchlab/Deep_diversification_AAV | ||
TEM | https://github.com/facebookresearch/esm/tree/main/examples/data | ||
E4B | https://figshare.com/articles/dataset | ||
AMIE | https://figshare.com/articles/dataset/Normalized_fitness_values_for_AmiE_selections/3505901/2 | ||
LGK | https://figshare.com/articles/dataset | ||
Pab1 | https://figshare.com/articles/dataset | ||
UBE2I | http://dalai.mshri.on.ca/ jweile/projects/dmsData/ |
Appendix B More Implementation Details
B.1 Additional Experimental Settings
We apply the annealing schedule for the KL term during training process following -VAE (Higgins et al., 2016) to prevent posterior collapse. Specifically, the KL term coefficient starts from and is gradually increased to as training goes on. At each iteration in importance sampling based EM learning process, the number of samples from current is set to % of the training data size.
Following (Ren et al., 2022), We construct the oracle model by adopting the features produced by ESM-1b (Rives et al., 2021) with dimension and finetuning an Attention1D decoder to predict the fitness values. Since Brookes et al. (2019) state that the results are insensitive when is set in the range [, ]-th percentile of the fitness scores in the training set, we set to -th percentile of the fitness values in the training data to accommodate more diversity.
B.2 Importance Weighted EM Learning Algorithm
Appendix C Approximate KL Divergence
C.1 Proof of the Unbiased and Low-Variance Estimator
Letting , we have:
(16) |
Therefore, this estimator for KL divergence is unbiased.
Assuming , since is a convex function and it achieves the minimum value when , we have:
(17) |
Thus, is always larger than or equals to . Instead, in the original KL divergence, would be negative for half of the samples. Therefore, has lower variance compared to the original one.
C.2 Theoretical Understanding
We can prove that under acceptable KL divergence, the samples from the proposal distribution can be bound within a reasonable sampling error with samples from the posterior distribution .
Lemma C.1.
If the KL divergence between two distributions P and Q is less than a small positive value , then the sampling probability difference between P and Q will be bounded by for each sample x.
Proof.
Let be the total variation distance between P and Q, due to the Pinsker’s inequality (Csiszár & Körner, 2011), we have:
(18) |
∎
The first equality holds when the measurable space is discrete as is the case in this paper. The second inequality is tight if and only if , and then there is no difference between sampling from and .
From the above analysis, we can get:
(19) |
When approaches , the sampling difference between and would be very minor.
Appendix D Case Study
Figure 6 illustrates the complete sequence and secondary structure analyse of our designed protein of avGFP compared with Cytochrome b562 integral fusion with enhanced green fluorescent protein (EGFP). From the figure, we can see that there are much overlap between our designed protein sequence and the chain B of Cytochrome b562 integral fusion with EGFP. It gives empirical evidence that the green fluorescent protein generated by our model is highly likely to be a real protein compared with the proteins we already know. But whether the designed sequences can accelerate wet-lab experiments still need more exploration as we can not 100% trust it.
![Refer to caption](extracted/5698639/ss.png)
Appendix E Pseudo-Likelihood for Combinatorial Structure Learning
We train the Markov random fields using a pseudo-likelihood as CCMpred (Seemayer et al., 2014) additionally combined with the Lasso regularization and Ridge regularization. The pseudo-likelihood is given in the following Equation:
(20) |
where denotes the vocabulary of amino acids.