# US 2024/0203532 A1 · Systems and methods for language modeling of protein engineering

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2024/0203532 A1
- Document ID: US20240203532A1
- Status: Published application
- Kind: A1
- Application number: 18/589,215
- Filed: 2024-02-27
- Published: 2024-06-20
- Earliest claimed: 2020-02-06
- Assignees: Salesforce, Inc.
- Applicants: Salesforce, Inc.
- Inventors: Ali Madani; Bryan McCann; Nikhil Naik
- Web page: https://patentgrep.com/patent/US20240203532A1

## CPC

- G16B 35/10: Design of libraries
- G16B 40/30: Unsupervised data analysis
- G06F 30/20: Design optimisation, verification or simulation (optimisation, verification or simulation of circuit designs G06F30/30)
- G16B 5/20: Probabilistic models
- G16B 15/20: Protein or domain folding
- G16B 20/50: Mutagenesis
- G16B 25/10: Gene or protein expression profiling; Expression-ratio estimation or normalisation
- G16B 30/00: ICT specially adapted for sequence analysis involving nucleotides or amino acids
- G16B 40/20: Supervised data analysis
- G16B 50/10: Ontologies; Annotations
- G06F 2111/08: Probabilistic or stochastic CAD
- G16B: BIOINFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR GENETIC OR PROTEIN-RELATED DATA PROCESSING IN COMPUTATIONAL MOLECULAR BIOLOGY
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

The present disclosure provides systems and methods for controllable protein generation. According to some embodiments, the systems and methods leverage neural network models and techniques that have been developed for other fields, in particular, natural language processing (NLP). In some embodiments, the systems and methods use or employ models implemented with transformer architectures developed for language modeling and apply the same to generative modeling for protein engineering.

## Claims

### Claim 1

A method for protein generation via a neural network based language model based on target protein properties, the method comprising:
receiving, via a communication interface, a data sequence of amino acids and a set of target protein properties;
forming an input sequence of tokens by prepending the set of target protein properties to the data sequence of amino acids;
generating, via the neural network based language model implemented on one or more hardware processors, which is trained on a protein sequence dataset to generate a predicted amino acid sequence according to desired protein properties, a set of scores indicating conditional distributions of a next output token in response to the input sequence of tokens representing the data sequence of amino acids and the set of target protein properties;
sequentially determining a constituent amino acid from the data sequence of amino acids based on the set of scores;
forming an output data sequence of amino acids representing a protein having the target protein properties from the sequentially determined constituent amino acids; and
transmitting, via the communication interface, the output data sequence of amino acids to a protein synthesis facility for synthesizing a new protein having the target protein properties based on the output data sequence of amino acids.

### Claim 2 (depends on 1)

The method of claim 1, wherein the generating the set of scores comprises:
embedding the input sequence of tokens in a sequence of corresponding vectors stacked in a form of an input matrix; and
feeding the input matrix to the neural network based language model having a plurality of attention layers.

### Claim 3 (depends on 2)

The method of claim 2, wherein the plurality of attention layers includes at least one layer that has a first block and a second block sequentially connected to the first block.

### Claim 4 (depends on 3)

The method of claim 3, wherein the first block includes a multi-head attention module with a plurality of heads using a causal mask.

### Claim 5 (depends on 4)

The method of claim 4, further comprising;
normalizing a first input to the first block with layer normalization;
generating, via the multi-head attention module, a multi-head attention distribution from the normalized first input; and
generating a first output of the first block by adding the multi-head attention distribution to the normalized first input.

### Claim 6 (depends on 3)

The method of claim 3, wherein the second block includes a feedforward network with a ReLU activation.

### Claim 7 (depends on 6)

The method of claim 6, further comprising:
normalizing a first output received from the first block with layer normalization;
generating, via the feedforward network, a feedforward distribution from the normalized first output; and
generating a second output of the second block by adding the feedforward distribution to the normalized first output.

### Claim 8 (depends on 2)

The method of claim 2, further comprising:
computing the set of scores from an output of a last layer of the plurality of attention layers with layer normalization; and
computing a first conditional distribution for sampling the constituent amino acids conditioned on the data sequence of amino acids based on the set of scores.

### Claim 9 (depends on 8)

The method of claim 8, wherein the sequentially determining constituent amino acids comprises:
sampling a first constituent amino acid from the data sequence of amino acids based on the first conditional distribution;
adding the first constituent amino acid to the data sequence of amino acids;
updating the input sequence of tokens by re-combining the data sequence of amino acids having the added first constituent amino acid into a context sequence;
generating, from the updated input sequence of tokens, a second conditional distribution for sampling the constituent amino acids; and
sampling a second constituent amino acid from the context sequence based on the second conditional distribution.

### Claim 10 (depends on 9)

The method of claim 9, wherein the forming the output data sequence of amino acids representing the protein comprises:
repeating sequential sampling until the output protein at a target length is formed.

### Claim 11

A system for protein generation via a neural network based language model, the system comprising:
a communication interface configured to receive a data sequence of amino acids and a set of target protein properties;
a memory configured to store the neural network based language model and a plurality of processor-executable instructions; and
a processor executing the instructions to:
form an input sequence of tokens by prepending the set of target protein properties to the data sequence of amino acids;
generate, via the neural network based language model implemented on the processor, which is trained on a protein sequence dataset to generate a predicted amino acid sequence according to desired protein properties, a set of scores indicating conditional distributions of a next output token in response to the input sequence of tokens representing the data sequence of amino acids and the set of target protein properties;
sequentially determine a constituent amino acid from the data sequence of amino acids based on the set of scores;
form an output data sequence of amino acids representing a protein having the target protein properties from the sequentially determined constituent amino acids; and
wherein the communication interface is configured to transmit the output data sequence of amino acids to a protein synthesis facility for synthesizing a new protein having the target protein properties based on the output data sequence of amino acids.

### Claim 12 (depends on 11)

The system of claim 11, wherein the processor is further configured to generate the set of scores by:
embedding the input sequence of tokens in a sequence of corresponding vectors stacked in a form of an input matrix; and
feeding the input matrix to the neural network based language model having a plurality of attention layers.

### Claim 13 (depends on 12)

The system of claim 12, wherein the plurality of attention layers includes at least one layer that has a first block and a second block sequentially connected to the first block.

### Claim 14 (depends on 13)

The system of claim 13, wherein the first block includes a multi-head attention module with a plurality of heads using a causal mask.

### Claim 15 (depends on 14)

The system of claim 14, wherein the processor is further configured to:
normalize a first input to the first block with layer normalization;
generate, via the multi-head attention module, a multi-head attention distribution from the normalized first input; and
generate a first output of the first block by adding the multi-head attention distribution to the normalized first input.

### Claim 16 (depends on 13)

The system of claim 13, wherein the second block includes a feedforward network with a ReLU activation.

### Claim 17 (depends on 16)

The system of claim 16, wherein the processor is further configured to:
normalize a first output received from the first block with layer normalization;
generate, via the feedforward network, a feedforward distribution from the normalized first output; and
generate a second output of the second block by adding the feedforward distribution to the normalized first output.

### Claim 18 (depends on 12)

The system of claim 12, wherein the processor is further configured to:
compute the set of scores from an output of a last layer of the plurality of attention layers with layer normalization; and
compute a first conditional distribution for sampling the constituent amino acids conditioned on the data sequence of amino acids based on the set of scores.

### Claim 19 (depends on 18)

The system of claim 18, wherein the processor is configured to sequentially determine constituent amino acids by:
sampling a first constituent amino acid from the data sequence of amino acids based on the first conditional distribution;
adding the first constituent amino acid to the data sequence of amino acids;
updating the input sequence of tokens by re-combining the data sequence of amino acids having the added first constituent amino acid into a context sequence;
generating, from the updated input sequence of tokens, a second conditional distribution for sampling the constituent amino acids;
sampling a second constituent amino acid from the context sequence based on the second conditional distribution; and
repeating sequential sampling until the output protein at a target length is formed.

### Claim 20

A process-readable non-transitory storage medium storing processor-executable instructions for protein generation via a neural network based language model, the processor-executable instructions being executable by a processor to perform:
receiving, via a communication interface, a data sequence of amino acids and a set of target protein properties;
forming an input sequence of tokens by prepending the set of target protein properties to the data sequence of amino acids;
generating, via the neural network based language model implemented on one or more hardware processors, which is trained on a protein sequence dataset to generate a predicted amino acid sequence according to desired protein properties, a set of scores indicating conditional distributions of a next output token in response to the input sequence of tokens representing the data sequence of amino acids and the set of target protein properties;
sequentially determining a constituent amino acid from the data sequence of amino acids based on the set of scores;
forming an output data sequence of amino acids representing a protein having the target protein properties from the sequentially determined constituent amino acids; and
transmitting, via the communication interface, the output data sequence of amino acids to a protein synthesis facility for synthesizing a new protein having the target protein properties based on the output data sequence of amino acids.
