Literature · AI4PD
ZymCTRL
A conditional language model for generating artificial enzyme sequences from Enzyme Commission numbers.
What ZymCTRL is
ZymCTRL (Enzyme Control) is a conditional language model designed to generate artificial, functional enzyme sequences given a user-specified Enzyme Commission (EC) number. Developed by the AI for Protein Design group at the Centre for Genomic Regulation, the model provides a generative route to novel biocatalysts. The generated proteins are ordered and globular, showing sequence divergence from natural counterparts while matching the catalytic function defined by the user.
The model addresses the challenge of de novo enzyme design by learning the direct statistical associations between enzyme classification codes and primary protein sequences. Trained on over 37 million enzyme sequences from the UniProt database, it captures catalytic relationships across enzyme classes and allows researchers to generate sequences directly in a zero-shot regime or adapt the model to specific sequence families via fine-tuning.
How it works
ZymCTRL uses a decoder-only CTRL Transformer architecture comprising 36 layers, a model dimensionality of 1280, and 738 million parameters. Pre-training was carried out autoregressively on the UniProt enzyme sequence database (July 2022 version) without FASTA headers, prepending tokenized EC numbers to each sequence. Tokenizing the EC classes individually enables the model to infer hierarchical relationships between related catalytic families (for example, sharing early tokens between EC 2.7.1.1 and EC 2.7.1.2).
Pre-training ran for eight epochs across 48 NVIDIA A100 GPUs using the Adam optimizer (beta1 = 0.9, beta2 = 0.999), a learning rate of 0.8e-04, a block size of 1024, and an aggregate batch size of 768. During sequence generation, the model takes an EC prompt and samples completions autoregressively up to the 1024-token context window. Generation outputs can then be evaluated and ranked according to perplexity, with values below 1.5 to 1.75 indicating high-confidence sequences.
Key facts
- Architecture
- Decoder-only CTRL Transformer
- Parameters
- 738 million
- Layers
- 36
- Hidden dimension
- 1280
- Context length
- 1024 tokens
- Training dataset
- 37 million UniProt enzyme sequences with EC annotations (July 2022)
- Hardware used for training
- 48 NVIDIA A100 GPUs
- Optimizer
- Adam (beta1 = 0.9, beta2 = 0.999, learning rate 0.8e-04)
- Input format
- Enzyme Commission (EC) label string
- Output format
- Protein amino acid sequence in FASTA format
What you can use it for
- Zero-shot enzyme sequence generation
- Produce novel candidate sequences for a designated catalytic reaction by conditioning generation directly on an EC number (such as nitrilases under EC 3.5.5.1 or alcohol dehydrogenases under EC 1.1.1.2).
- Low-data catalytic class expansion
- Sample plausible enzyme variants for poorly populated or rare EC classes that contain as few as one or two known representative sequences in nature.
- Targeted enzyme fine-tuning
- Update model weights using proprietary or curated sets—such as directed evolution outcomes, ancestrally reconstructed sequences, or metagenomic finds—to improve candidate quality for a specific class.
Run it here
No installation and no GPU of your own: fill in the inputs and it runs on our servers. Results stay in your browser unless you sign in.
Runs on On-demand GPU
Runs on our servers with on-demand compute. A first run needs time to load the model; active capacity can be reused and scales down when idle.Run this model
ZymCTRL
Strengths and limits
Good at
- Generates globular, ordered artificial enzyme sequences that diverge from known natural sequences while fulfilling the target catalytic class.
- Can generate candidate enzymes in a zero-shot manner without requiring fine-tuning or class-specific re-training.
- Tokenises EC numbers hierarchically so that the model can leverage structural and functional commonalities across shared enzyme branches.
- Capable of generating functional candidates even for sparse enzyme classes with only 1 to 2 natural examples.
Watch out for
- Maximum context length is constrained to 1024 tokens, which truncates or excludes proteins that exceed the available token space.
- Outputs require post-generation filtering by perplexity, with recommendations to discard all but the top 5% of generated sequences.
- Generation on CPUs is slow, requiring dedicated GPU hardware (such as an A40) for practical batch throughput.
Inputs and outputs
You provide
Prompt
The model continues from here.
You get back
The model's completion.
ZymCTRL API
The same run, from your own code: one HTTP request with an API key, billed in the same credits as the Run button. A fast run answers with its outputs; a longer one answers with a poll_url to read.
curl https://corollary-labs.com/api/v1/models/ai4pd-zymctrl/runs \
-H "Authorization: Bearer $COROLLARY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"inputs": {
"text": "<Prompt>"
}
}'Make an API key, then read the models reference.
Licence
Commercial use permitted · apache-2.0
apache-2.0, as the repository declares it. Read by the catalogue intake on 2026-11-28.
Questions
Can I use ZymCTRL commercially?
Commercial use permitted. apache-2.0, as the repository declares it. Read by the catalogue intake on 2026-11-28.
How do I run ZymCTRL without installing anything?
Use the form under “Run it here” on this page: fill in the inputs and press Run model. It runs on our servers on CPU only, typically in 1.1min, and a run costs about 28 credits. Visitors without an account get 1,000 credits a month.
What inputs does ZymCTRL require to generate an enzyme?
It requires an Enzyme Commission (EC) number as a text string (for example, '3.5.5.1'). The EC identifier acts as a control code prompt from which the model autoregressively generates the corresponding protein sequence.
How are generated sequences evaluated and filtered?
Sequences are ranked using perplexity, which reflects the model's confidence in its autoregressive predictions. Lower perplexity scores denote higher quality, and candidates with perplexity values below 1.5 to 1.75 are typically retained.
Can ZymCTRL be trained on custom or proprietary protein sequences?
Yes. While zero-shot generation is the default, the model can be fine-tuned using a FASTA file of custom sequences (ideally at least 200 sequences) grouped into chunks matching the 1024-token block size.
What sequence length limits apply to generated enzymes?
The model operates with a hard maximum context window of 1024 tokens. Because the EC control codes and end tokens occupy space, generated sequences that exceed the remaining token budget are truncated and typically filtered out.
How to cite it
Written from ZymCTRL's own documentation (model card). Statements citing a figure that does not appear there are removed before publication. Licence and running details come from our registry.
