SciEvidence Papers

PAPERCommunity contribution

  • Research Article
  • Protein engineering
  • Nature

Programmable design of functional proteins from natural language

Fengyuan Dai, Yudian Zhu, Xibin Zhou, Jin Su, Yuliang Fan, Qingsong Tan, Hui Qian, Zhe Zhang, Chenchen Han, Yajie Wang, Anping Zeng, Chunjun Zhan, Jianming Liu & Fajie Yuan, Fengyuan Dai, Shiyang You, Xiaoxiao Ma, Xianjun Deng, Letong Yu & Hongyuan Lu, Yuan Gao, Lihao Fu & Tong Si, Chentong Wang, Yan He, Yitao Ke, Xing Chang & Longxing Cao, Liangzhen Zheng & Sheng Wang, Yuan Ji, Kexin Hao & Jing Zhao, Anping Zeng, Jianming Liu & Fajie Yuan, Shunzhi Wang

nature10.1038/s41586-026-11205-zView paper

Abstract

Programming biological function—designing bespoke proteins to perform specified molecular tasks—is a foundational goal of molecular engineering. However, current design models remain fundamentally limited1,2,3: they typically require either natural proteins as starting points for optimization or manual reformulation of functional goals as geometric and sequence-level constraints to guide candidate generation. Here we introduce Pinal, a 16-billion-parameter foundation model that designs candidate proteins from natural-language descriptions of desired function. Trained on 1.7 billion synthetically annotated protein–text pairs, Pinal links functional intent to protein sequence and structure. In computational evaluations, generated candidates combined high predicted foldability with functional-description alignment and sequence diversity, providing a basis for prioritizing experimentally testable designs. We applied Pinal to four distinct design tasks—a fluorescent protein, a polyethylene terephthalate hydrolase, an alcohol dehydrogenase and a metabolic H-protein—and experimentally observed the intended function in each case, including catalytic activity for both designed enzymes. Without iterative experimental optimization, a Pinal-designed H-protein increased product titre by 1.7-fold relative to the corresponding native Escherichia coli H-protein in a multi-enzyme CO2 fixation pathway. These findings support natural language as a high-level interface for candidate generation in protein design, enabling programmable exploration with reduced reliance on manually specified structural or sequence constraints.

The ambition to program biological function—creating bespoke proteins for applications in medicine, sustainability and industry—is a longstanding goal of molecular engineering. For decades, this quest has been shaped by two complementary philosophies: mimicking natural selection through directed evolution4,5,6,7,8,9 or applying first principles of physics and chemistry to design proteins de novo using computational tools such as Rosetta10,11,12,13,14,15,16. Recent advances in artificial intelligence (AI), particularly deep generative models, have enabled an emerging design paradigm in which models learn from protein sequences17,18,19, structures3,20,21,22,23,24,25,26 and functional annotations27,28 to generate proteins under diverse design objectives.

Yet, despite this progress, a central bottleneck persists. The dialogue between the human scientist and the protein design algorithm often remains mediated through formalized technical specifications, including structural constraints1,20,29,30, site-level mutational instructions31,32 and family-specific parameters2,27,33. Translating a high-level functional goal—such as a plastic-degrading enzyme or a fluorescent imaging reporter—into a precise, machine-readable design problem therefore often requires substantial computational effort and specialized design expertise. This technical barrier limits broad access to protein design and constrains the space of functions that can be explored.

Here, we introduce Pinal—a generative protein foundation model that provides a natural-language interface for protein design ( http://www.denovo-pinal.com/ , Fig. 1 ). Pinal translates high-level functional descriptions into candidate protein sequences, thereby reducing reliance on manually specified structural templates or geometric constraints. Powered by a 16-billion-parameter architecture trained on a synthetic corpus of 1.7 billion protein–text pairs, Pinal exhibits strong scaling trends, with performance improving with both model and data scale. Across computational benchmarks, Pinal-generated candidates exhibited predicted folding metrics comparable to those of reference natural proteins, while showing markedly improved alignment with intended functional descriptions compared with related text- or prompt-conditioned protein-generation baselines. Further analyses revealed sequence-level diversity across various enzyme-family contexts and identified candidates with predicted structural novelty, suggesting that natural-language guidance can support broad exploration of the protein design space.

Fig. 1: Pinal is a generative foundation model that uses a two-stage design process and large-scale training data to learn the text-to-protein link. a , Protein sequence compared with structure space in the Swiss-Prot database. The 65,733 sequence clusters (30% identity) map to 21,368 structure clusters, demonstrating greater structural conservation. Each circle is a cluster; its size is proportional to the protein count. b , Next-token prediction accuracy on Swiss-Prot. Blue indicates text-to-structure generation and red indicates text-to-sequence generation. The training and validation sets are split by 30% sequence identity. Accuracy on each set is denoted by ‘train’ and ‘valid’. c , The chain rule decomposes text-to-protein design into two sequential stages mediated by an intermediate structural representation. d , Pinal model architecture. T2struct modules are outlined in red and SaProt-T modules in blue. Text Encoder 1 is initialized from pretrained T5, and Text Encoder 2 from pretrained PubMedBERT. e , Visualization of the distribution of human-reviewed Swiss-Prot data (545,000 proteins, 27 million protein–text pairs, red) and our synthetic dataset (135 million proteins, 1.7 billion protein–text pairs, grey) in a low-dimensional space, obtained by t -SNE reduction of the ProTrek embeddings. The synthetic dataset vastly expands protein design-space coverage, encompassing and extending beyond human-annotated data.
Fig. 1: Pinal is a generative foundation model that uses a two-stage design process and large-scale training data to learn the text-to-protein link. a , Protein sequence compared with structure space in the Swiss-Prot database. The 65,733 sequence clusters (30% identity) map to 21,368 structure clusters, demonstrating greater structural conservation. Each circle is a cluster; its size is proportional to the protein count. b , Next-token prediction accuracy on Swiss-Prot. Blue indicates text-to-structure generation and red indicates text-to-sequence generation. The training and validation sets are split by 30% sequence identity. Accuracy on each set is denoted by ‘train’ and ‘valid’. c , The chain rule decomposes text-to-protein design into two sequential stages mediated by an intermediate structural representation. d , Pinal model architecture. T2struct modules are outlined in red and SaProt-T modules in blue. Text Encoder 1 is initialized from pretrained T5, and Text Encoder 2 from pretrained PubMedBERT. e , Visualization of the distribution of human-reviewed Swiss-Prot data (545,000 proteins, 27 million protein–text pairs, red) and our synthetic dataset (135 million proteins, 1.7 billion protein–text pairs, grey) in a low-dimensional space, obtained by t -SNE reduction of the ProTrek embeddings. The synthetic dataset vastly expands protein design-space coverage, encompassing and extending beyond human-annotated data.

We evaluated Pinal across four protein design tasks: a green fluorescent protein (GFP), a polyethylene terephthalate hydrolase (PETase), an alcohol dehydrogenase (ADH) and a metabolic H-protein. Experimental validation identified functional designs across all four tasks, including catalytic activity for both designed enzymes. Notably, in the H-protein case, a candidate generated without any iterative experimental optimization achieved a higher product titre than the native Escherichia coli H-protein when incorporated into a multi-enzyme CO2 fixation pathway. Together, these results establish Pinal as a practical route to protein design, lowering the barrier between functional intent and molecular implementation across diverse applications.

The Pinal network

The architecture of Pinal is motivated by the idea that protein structure can serve as a compact and functionally informative intermediate representation between natural-language specifications and amino acid sequences, as protein structures are often more conserved than their corresponding sequences34. As an initial test of this representation choice, we performed a controlled preliminary comparison using Swiss-Prot-scale protein–text pairs with high-quality, curated functional annotations (Fig. 1a,b and Methods, section ‘Preliminary experiments of text-to-sequence and text-to-structure generation’). In this comparison, two identical encoder–decoder models were trained on the same protein–text pairs with the same optimization protocol and 30% sequence-identity split, differing only in the prediction target: amino acid tokens or Foldseek 3Di structure tokens. The direct text-to-sequence model did not meaningfully exceed the uniform random-guessing baseline in validation next token prediction (NTP) accuracy (accuracy about 0.1 compared with random-guessing baseline 0.05), whereas the text-to-structure model converged robustly (validation accuracy: around 0.6) and, after translation to amino acid sequences, yielded candidates with substantially higher predicted folding confidence as measured by ESMFold pLDDT (Supplementary Fig. 2). This contrast motivates a structure-mediated formulation of protein design, in which text first specifies a structural scaffold and the final sequence is then designed under both structural and textual constraints. Pinal is therefore formulated as a generative framework that models the conditional joint distribution of a sequence (s) and its structure (c) given text (t). We factorize the model distribution according to the probability chain rule: P(s, c|t) = P(c|t)P(s|c, t). This factorization naturally defines the two-stage process of Pinal (Fig. 1c and Extended Data Fig. 1): first, generating a structural scaffold (c) from the text-conditioned distribution P(c|t) and, second, designing a sequence (s) conditioned on both the scaffold and the text, according to P(s|c, t).

The first stage is handled by T2struct, a text-to-structure module that translates a natural language prompt (t) into a structural blueprint (c). T2struct represents protein backbones not as continuous three-dimensional (3D) coordinates, but as a one-dimensional (1D) sequence of discrete 3Di structural tokens from Foldseek35, in which each token encodes the local tertiary interaction geometry of a residue with its nearest spatial neighbour. This representation reframes structure generation from a complex continuous coordinate prediction task into a discrete sequence-to-sequence learning paradigm. By doing so, it bypasses the architectural complexities associated with modelling 3D spatial symmetries (such as rotational and translational equivariance) and allows the framework to seamlessly benefit from the proven scalability of standard Transformer architectures36,37,38. Furthermore, a key feature of this token-wise autoregressive approach is its ability to assign a computable log-probability, logP(c|t), to each generated sequence of structures—an ability that proves essential for the optimal sampling strategy described below. T2struct uses an encoder–decoder Transformer architecture (Methods, section ‘Detailed model architecture’): its encoder, a pretrained T5 encoder model39, is specialized for interpreting biological text, whereas its decoder, a GPT-2 style model trained from scratch, autoregressively predicts the 3Di token sequence (Fig. 1d), connected through a text-3Di cross-attention module.

With a structural blueprint in hand, the second stage is performed by SaProt-T, our text-conditioned sequence designer. This module receives the 3Di structure tokens generated by T2struct and outputs a viable amino acid sequence (s) conditioned on both the structure and the original textual prompt (Fig. 1d, right). SaProt-T is adapted from the original SaProt36 model and incorporates a mechanism to ensure that the generated sequence satisfies the functional constraints specified in the text. To do so, we first encode the text using PubMedBERT40. The resulting representation is projected to the model dimension and prepended to the input 3Di token embeddings. The combined representation is then processed by self-attention layers, allowing semantic cues from the language to be integrated with the geometric constraints of the structural scaffold. The model is trained with a masked language modelling objective to predict the correct amino acid at each structural token position (Methods, section ‘SaProt-T/O training details and rationale’ and Extended Data Fig. 2).

The power of the architecture of Pinal lies not merely in the sequential execution of the two generation modules, but in their probabilistic unification to elegantly solve the global optimization problem defined in equation (1). This is because a naive, greedy approach—first finding the single most probable structure and then designing the best sequence for it—is mathematically suboptimal, as highlighted in equation (2). Such a myopic strategy risks overlooking a slightly less probable structure that can accommodate a far superior functional sequence. Pinal circumvents this pitfall by using a global sampling and re-ranking strategy, a process made possible by the fact that both of its two generative stages yield tractable log-probabilities (log∏n=1NP(cn|c<n,t) and log∏n=1NP(sn|c,t)). In practice, we first sample K structural scaffolds from the distribution of T2struct, P(c|t). For each of these K scaffolds, we then use SaProt-T to design its optimal corresponding sequence. Finally, the resulting (K) sequence–structure pairs are re-ranked using a per-position joint score derived from the two log-probability terms in equation (1). This allows Pinal to identify globally superior candidates that a purely sequential, greedy decision process would almost certainly miss (Methods, section ‘Initial candidate generation and screening’ and Extended Data Fig. 3).

(s⋆,c⋆)=argmaxs,cP(s,c|t)=argmaxs,c⁡[log⁡P(c|t)+log⁡P(s|c,t)]=argmaxs,c[∑n=1N⁡log⁡P(cn|c<n,t)⏟T2struct+∑n=1N⁡log⁡P(sn|c,t)⏟SaProt-T].

(1)

Note:(s⋆,c⋆)≠(sg,cg)ingeneral,wherecg=argmaxcP(c|t),sg=argmaxsP(s|cg,t).

(2)

Scaling Pinal with massive synthetic data

Although scaling laws have revolutionized general AI41, their potential in natural-language-guided protein generation is untapped because of critical data limitations. The premier human-annotated database, Swiss-Prot, contains merely 0.5 million proteins, far smaller than the billion-scale datasets powering modern language models. Moreover, its template-driven annotations do not reflect the complexity and diversity of queries common in biological research.

To overcome the constraints of scale and diversity, we developed an unprecedented synthetic training dataset containing 1.7 billion text–protein pairs (Fig. 1e). This comprehensive dataset encompasses more than 100 billion word tokens across 135 million unique protein sequences and structures (Methods, section ‘Dataset construction’ and Supplementary Tables 2 and 4). The dataset construction involved a systematic, multi-faceted approach to generate high-quality natural language descriptions of proteins (Fig. 2a). For UniProt/TrEMBL entries, we used the multimodal protein language model ProTrek42 to predict diverse functional descriptions from multiple perspectives, creating the TrEMBL50-ProTrek subset. These multi-perspective descriptions were then synthesized using large language models (LLMs) to produce coherent, integrated functional annotations, resulting in the TrEMBL50-ProLLM dataset. For Swiss-Prot proteins, we applied a parallel strategy, using LLMs to consolidate multiple functional descriptions into comprehensive annotations (SwissProt-LLM). Moreover, we preserved the original structured Swiss-Prot entries (SwissProt-Annot) while generating LLM-paraphrased versions to enhance linguistic diversity (SwissProt-Aug). To ensure robust coverage across varying description lengths and annotation types, we incorporated nearly 800 million keyword–protein pairs from the InterPro database. All protein structural information was sourced from the AlphaFold database (AFDB), providing a unified structural foundation for the entire dataset.

We present one of the first empirical demonstrations of data scaling effects in natural-language-guided protein design. Our scaling experiments showed two key findings that illuminate the relationship between training data size and model performance. First, on challenging test sets with less than 30% sequence identity, model performance—as measured by ProTrek score ( Methods , section ‘Metrics’ and Extended Data Fig. 4 ) and GT-TMscore—exhibited substantial and consistent improvement with increasing training data size (Fig. 2b , right) (detailed evaluation settings and measures are described in the next section). Second, on standard test sets with less than 50% sequence identity, the ProTrek score demonstrates a steady upward trend throughout the scaling range, whereas GT-TMscore values plateau rapidly between 100 million and 1 billion word tokens before showing modest gains with further scaling (Fig. 2b , left). Furthermore, beyond these alignment metrics, increasing the scale of the synthetic training corpus expanded the accessible design space, enabling the generation of distinctly new and diverse proteins across both sequence and structural dimensions (Supplementary Fig. 3 and Supplementary Information section 2 ). These findings demonstrated that synthetic data benefits manifested most prominently under demanding generalization scenarios, in which the complexity of the task necessitated larger-scale training data to achieve meaningful performance improvements (see Supplementary Note 1 for further discussion of data scaling effects).

Fig. 2: Scaling T2struct and benchmarking the design performance of Pinal. a , Training data sources for Pinal. b , Scaling of Pinal with training data size. Points left of the dashed line indicate training on Swiss-Prot only; points right indicate Swiss-Prot plus synthetic data. The left y axis shows the best sequence-to-text ProTrek score from five designed candidates per functional prompt, and the right y axis shows the average GT-TMscore of designed candidates relative to the target protein. The x axis shows training text tokens on a log scale. Owing to computational cost, this ablation uses the medium-sized 1.2B-parameter T2struct model within Pinal. c , Scaling of the T2struct module within Pinal from 200M to 15B parameters, with a log-scaled x axis. The three plots are arranged vertically. d , Alignment between designed and target proteins in the test set. The left panel is a radar chart of four ProTrek-based alignment metrics. Maximum sequence and mean sequence denote the maximum and mean sequence-to-text scores across five designs per prompt; maximum structure and mean structure denote the corresponding structure-to-text scores. Each method forms a polygon; values farther from the centre and larger enclosed areas indicate better overall performance. The right panel shows the distribution of GT-TMscore values for n = 2, 500 proteins per method; higher values indicate better agreement with the target description or structure. e , Foldability of designed proteins evaluated using ESMFold PAE and pLDDT for n = 2, 500 proteins per method. In d and e , box plots show the median (centre line), 25th–75th percentiles (box), the most extreme values within 1.5× the interquartile range (whiskers) and outliers (points). f , Foldability and textual alignment of designed proteins conditioned on short sentences. Bars show ESMFold pLDDT foldability (right axis), and stars show maximum sequence ProTrek textual alignment (left axis). g , Comparison with ESM3. Darker colours in the top-right region indicate stronger model performance.
Fig. 2: Scaling T2struct and benchmarking the design performance of Pinal. a , Training data sources for Pinal. b , Scaling of Pinal with training data size. Points left of the dashed line indicate training on Swiss-Prot only; points right indicate Swiss-Prot plus synthetic data. The left y axis shows the best sequence-to-text ProTrek score from five designed candidates per functional prompt, and the right y axis shows the average GT-TMscore of designed candidates relative to the target protein. The x axis shows training text tokens on a log scale. Owing to computational cost, this ablation uses the medium-sized 1.2B-parameter T2struct model within Pinal. c , Scaling of the T2struct module within Pinal from 200M to 15B parameters, with a log-scaled x axis. The three plots are arranged vertically. d , Alignment between designed and target proteins in the test set. The left panel is a radar chart of four ProTrek-based alignment metrics. Maximum sequence and mean sequence denote the maximum and mean sequence-to-text scores across five designs per prompt; maximum structure and mean structure denote the corresponding structure-to-text scores. Each method forms a polygon; values farther from the centre and larger enclosed areas indicate better overall performance. The right panel shows the distribution of GT-TMscore values for n = 2, 500 proteins per method; higher values indicate better agreement with the target description or structure. e , Foldability of designed proteins evaluated using ESMFold PAE and pLDDT for n = 2, 500 proteins per method. In d and e , box plots show the median (centre line), 25th–75th percentiles (box), the most extreme values within 1.5× the interquartile range (whiskers) and outliers (points). f , Foldability and textual alignment of designed proteins conditioned on short sentences. Bars show ESMFold pLDDT foldability (right axis), and stars show maximum sequence ProTrek textual alignment (left axis). g , Comparison with ESM3. Darker colours in the top-right region indicate stronger model performance.

We further investigated the model scaling trends of Pinal. Recent studies on protein language models observed that scaling model parameters may not yield substantial benefits for corresponding protein prediction tasks43,44. Similarly, on the ProteinGym benchmark45, the 15-billion-parameter version of ESM2 performs even worse than the 650-million parameter variant. We demonstrated the model scaling abilities of Pinal by training T2struct at three distinct scales: 200M, 1.2B and 15.5B parameters (Supplementary Table 3). As model capacity increased, we observed substantial reductions in validation loss (Fig. 2c, top). This improvement translated into superior practical performance: larger models generate proteins with markedly higher predicted foldability (pLDDT scores) and enhanced alignment with language instructions (ProTrek scores) across both standard and stringent test sets (Fig. 2c). Together with our data scaling findings, these experiments established that both model scaling and data scaling serve as fundamental drivers of the performance achievements of Pinal.

Computational benchmarks of Pinal-designed proteins

Here, we systematically evaluated proteins designed by Pinal, assessing both their structural correctness and functional relevance. Structural correctness was quantified using folding confidence (pLDDT), predicted aligned error (PAE) and similarity to native structures (TM-score). To address the challenge of evaluating functional relevance—a crucial gap in the nascent field of language-guided protein design—we used the ProTrek protein-to-text matching score ( Methods , section ‘Metrics’ and Extended Data Fig. 4 ), which measured the semantic distance between protein sequence/structure and their functions.

We benchmarked Pinal against the limited number of existing approaches to language-guided protein design (Methods, section ‘Benchmarking and evaluation protocol’, Extended Data Fig. 5a and Supplementary Information section 1). Among these, ProteinDT46 was the only previous model explicitly developed for this task, but it remained an early-stage exploration, with both model scale and dataset size orders of magnitude smaller than those of Pinal. The other models also exhibited clear limitations: Chroma47, according to the authors’ own report, showed only occasional alignment between designed proteins and intended prompts, whereas ESM338, a concurrent work, was limited to simple keyword inputs and lacked the ability to interpret complex natural-language instructions.

We designed a multi-faceted evaluation framework comprising three distinct settings: (1) long, descriptive sentences that mimic the complex queries of biologists; (2) short, function-specific phrases to test core generative accuracy; and (3) specialized keywords to enable a direct, rigorous comparison with ESM3 (see Methods , section ‘Construction of evaluation sets’). In tasks involving both long and short sentences, Pinal markedly outperformed ProteinDT and Chroma. Designs from ProteinDT and Chroma failed to align with their textual prompts, yielding ProTrek and TM-scores similar to those of a random baseline (Fig. 2d ). Furthermore, a substantial fraction of their generated sequences failed to fold into plausible structures, as indicated by low pLDDT and high PAE values. By stark contrast, proteins designed by Pinal not only exhibited high textual & functional alignments, with ProTrek scores and TM-scores close to those of real natural proteins, but also possessed structural features (pLDDT, PAE) indicative of stable folding, comparable to those of well-characterized proteins in the Swiss-Prot database (Fig. 2e ). The superior performance of Pinal can be attributed to three key factors: an advanced architecture, a substantially expanded parameter space (tens of times larger than those of previous models) and a much larger training dataset (thousands to tens of thousands of times larger than those used by ProteinDT and Chroma). This performance advantage was consistently observed across both complex, multi-aspect descriptions and concise, function-specific prompts (Fig. 2f and Extended Data Fig. 6 ).

To further assess the abilities of Pinal, we compared it with ESM3 in a keyword-conditioned generation setting. To ensure a stringent and equitable comparison, we evaluated Pinal on the ‘home ground’ of ESM3: generating proteins from InterPro database keywords, which were used as conditioning information in ESM3 training, and assessing performance using the established keyword-recovery metric of ESM3. Even in this ESM3-favourable setting, Pinal showed substantially better performance (Fig. 2g ). Pinal-generated proteins exhibited higher predicted foldability overall, whereas ESM3 outputs showed greater variability. Most notably, Pinal achieved substantially better functional alignment, with a mean keyword-recovery rate of 77%, compared with approximately 12% for ESM3.

Apart from these findings, a recent independent benchmark study48 has confirmed the effectiveness of Pinal, showing that it achieved the best performance on 11 out of 14 metrics focused on sequential plausibility, structural foldability and language alignment. Compared with models such as ProteinDT, Chroma, ESM3 and PAAG49, Pinal demonstrated performance gains ranging from several-fold to tenfold on multiple metrics.

Pinal explores sequence diversity and predicted structural novelty

Having established that Pinal designs are predicted to be structurally plausible and aligned with their input prompts, we next evaluated whether the model could explore diverse and potentially new regions of protein design space. We first examined whether Pinal could generate sequence-diverse proteins across established enzyme families. To this end, we prompted Pinal to generate sequences for four enzyme families: CoA ligase, glucokinase, aldehyde dehydrogenase and carbonic anhydrase. These families span distinct catalytic mechanisms and functional contexts, providing a test of the ability of Pinal to generate sequence variation across different enzyme classes. Maximum-likelihood sequence-tree analysis showed that the analysed Pinal-designed sequences were distributed across multiple branches in trees inferred jointly with curated natural homologues, rather than collapsing into a single compact cluster ( Methods , section ‘Phylogenetic analysis of Pinal-generated sequence diversity’). In several cases, designed sequences were interspersed with natural homologues, suggesting overlap with multiple regions of the corresponding natural sequence space. Together, these results indicate that Pinal can generate sequence-level diversity across diverse enzyme-family contexts (Fig. 3a ).

Fig. 3: Pinal generates a diverse landscape of new proteins. a , Circular maximum-likelihood sequence trees of Pinal-designed sequences and natural reference sequences from four enzyme families: CoA ligase, glucokinase, aldehyde dehydrogenase and carbonic anhydrase. The outer ring indicates sequence origin (salmon, Pinal; green, natural reference), whereas the inner shading marks two main sequence clades (lavender, clade 1; grey, clade 2). b , Heatmaps illustrate the relationship between predicted structural confidence (ESMFold pLDDT, x axis) and protein novelty. The top panel shows structural novelty (TM-score to known proteins in PDB, y axis), and the bottom panel shows sequence novelty (sequence identity to known proteins in UniRef100, y axis). Darker shades indicate higher density of designed proteins. c , Representative examples of new protein structures designed by Pinal (rendered in rainbow). For each design, the closest structural homologue (rendered in grey) in the PDB is shown, along with a low TM-score, providing visual confirmation of the ability of Pinal to generate previously unknown protein folds.
Fig. 3: Pinal generates a diverse landscape of new proteins. a , Circular maximum-likelihood sequence trees of Pinal-designed sequences and natural reference sequences from four enzyme families: CoA ligase, glucokinase, aldehyde dehydrogenase and carbonic anhydrase. The outer ring indicates sequence origin (salmon, Pinal; green, natural reference), whereas the inner shading marks two main sequence clades (lavender, clade 1; grey, clade 2). b , Heatmaps illustrate the relationship between predicted structural confidence (ESMFold pLDDT, x axis) and protein novelty. The top panel shows structural novelty (TM-score to known proteins in PDB, y axis), and the bottom panel shows sequence novelty (sequence identity to known proteins in UniRef100, y axis). Darker shades indicate higher density of designed proteins. c , Representative examples of new protein structures designed by Pinal (rendered in rainbow). For each design, the closest structural homologue (rendered in grey) in the PDB is shown, along with a low TM-score, providing visual confirmation of the ability of Pinal to generate previously unknown protein folds.

We then assessed the generative ability of Pinal for structural novelty by designing proteins that are at present experimentally uncharacterized. To investigate this, we prompted the model with functional descriptions of proteins that lack any known structural homologue in the PDB ( Methods , section ‘Prompt generation for structurally uncharacterized protein’). The results in Fig. 3b indicate that a subset of the designs of Pinal falls within the high-confidence foldability region (high pLDDT), while exhibiting low sequence identity (<30%) and low structural similarity (TM-score < 0.5) to known proteins. These results indicate that Pinal can generate candidate proteins that are predicted to be foldable, while showing limited similarity to sequences and structures represented in current databases.

To test whether computationally selected new designs could be experimentally realized, we selected 20 Pinal-designed proteins whose predicted structures showed low similarity to known PDB structures (maximum TM-score < 0.5) for experimental expression testing. Seventeen of these 20 designs (85%) were successfully expressed in soluble form in E. coli BL21(DE3), as assessed by sodium dodecyl sulfate-polyacrylamide gel electrophoresis (SDS-PAGE) analysis of the soluble fraction ( Methods , section ‘Soluble-expression analysis of structurally new designs’, Supplementary Fig. 5 and Supplementary Table 7 ). Although soluble expression does not establish biochemical function or experimentally confirm the predicted structures, it indicates that many of these low-similarity designs can be physically produced as soluble proteins under the tested conditions. These results indicate that Pinal can generate protein designs that are structurally distant from proteins represented at present in the PDB, supporting its capacity to explore new regions of protein structure space (Fig. 3c ).

Experimental realization of diverse, active proteins

We next asked whether Pinal-generated sequences could move beyond predicted foldability and soluble expression to exhibit measurable biochemical function. To this end, we designed a validation framework targeting four proteins of scientific and industrial importance (Fig. 4 ). Each target probed a distinct class of biochemical complexity: the intrinsic photophysics of a GFP; the enzymatic catalysis of a synthetic polymer by a PETase; the cofactor-dependent mechanism of an ADH; and the molecular coordination of an H-protein within a multi-protein system. For each target, Pinal generation was guided by a high-level functional text prompt (Supplementary Table 8 ), with no structural or sequence templates as input. Across the main validation set of these case studies, we experimentally validated 12 active Pinal-designed proteins; these designs shared 30–60% sequence identity with functionally annotated proteins in Swiss-Prot (Supplementary Table 6 ). Together, these results provide a rigorous test of the potential of Pinal as a general-purpose, programmable protein design engine.

Fig. 4: Pinal translates diverse functional prompts into high-quality protein candidates. The conceptual application, natural language prompt and final design are presented for GFP, ADH, PETase and H-protein. Violin plots show the high quality of the n = 1,000 candidates per protein class, with high AlphaFold3 pLDDT scores indicating structural confidence and high ProTrek scores demonstrating close functional alignment with the prompt. Violin widths represent kernel-density estimates. Box plots show the median (centre line), 25th–75th percentiles (box), the most extreme values within 1.5× the interquartile range (whiskers) and outliers (points). Diagrams created in BioRender; You, S. https://biorender.com/gn9qk93 (2026).
Fig. 4: Pinal translates diverse functional prompts into high-quality protein candidates. The conceptual application, natural language prompt and final design are presented for GFP, ADH, PETase and H-protein. Violin plots show the high quality of the n = 1,000 candidates per protein class, with high AlphaFold3 pLDDT scores indicating structural confidence and high ProTrek scores demonstrating close functional alignment with the prompt. Violin widths represent kernel-density estimates. Box plots show the median (centre line), 25th–75th percentiles (box), the most extreme values within 1.5× the interquartile range (whiskers) and outliers (points). Diagrams created in BioRender; You, S. https://biorender.com/gn9qk93 (2026).

Our first challenge for Pinal was the computational design of a GFP-like fluorescent protein, a demanding functional-design problem requiring correct β-barrel folding and maturation of an internal chromophore50. Using only a high-level text prompt describing the desired GFP-like fluorescence as the initial design input, Pinal generated a diverse computational library of 50,000 sequences (Supplementary Tables 8 and 13). To enable tractable experimental validation, we used an empirical, multi-criteria triage procedure to prioritize a small subset of 29 candidates containing putative chromophore-forming residues (Methods, section ‘Computational screening and design refinement of pinalGFP’ and Extended Data Fig. 7a), without treating the remaining untested designs as inactive. These prioritized designs shared <35% sequence identity with known fluorescent proteins. Screening this initial subset identified one active variant, pinalGFP, which produced green fluorescence (460 nm excitation, 510 nm emission) (Fig. 5a, Supplementary Tables 6 and 9). Its predicted structure exhibited the characteristic GFP-like β-barrel architecture (Fig. 5b). This fluorescence was abolished on mutation of the chromophore residues (Fig. 5c). As a reference point for an unoptimized first-pass GFP design, we included the previously reported ESM3-designed variant esmGFP-b838, which, unlike the Pinal designs, was generated using explicit residue-level and structural conditioning. Under the same 24-h assay condition, pinalGFP exhibited detectable green fluorescence, whereas esmGFP-b8 showed little or no fluorescence within this assay window, consistent with its reported slow maturation (Fig. 5c). Purified pinalGFP displayed excitation and emission spectra analogous to those of natural avGFP (Extended Data Fig. 7c). However, analytical gel filtration revealed a more complex oligomeric state compared with the primarily dimeric avGFP as a natural variant (Extended Data Fig. 7d), highlighting an avenue for future structural optimization.

Fig. 5: Experimental validation of Pinal-designed proteins across four distinct functional classes. a , Fluorescence microscopy image of purified pinalGFP (20 mg ml −1 ) acquired using the 488/520 filter. This experiment was independently repeated three times with similar results. b , AlphaFold3-predicted pinalGFP (blue) aligned with avGFP (green; PDB 2WUR ), showing the conserved β-barrel architecture, with chromophore residues T72–W73–G74 and S65–Y66–G67, respectively, highlighted. c , Fluorescence of purified pinalGFP, the W73G chromophore mutant, esmGFP-b8 and avGFP. Synthetic variants were measured at 1 mg ml −1 and avGFP at 1 μg ml −1 . Data are mean ± s.d. ( n = 3 independent reactions). d , Screening of 94 Pinal-designed PETase candidates for pNPB esterase activity, with pNP concentration normalized to total protein amount; pinalPETase36 is highlighted as the candidate with the highest activity. e , HPLC quantification of TPA and MHET released from pretreated PET by purified pinalPETase36 over 7 days. Data are mean ± s.d. ( n = 3 independent reactions). f , SEM images of pretreated PET films treated with pinalPETase36 or buffer. This experiment was independently repeated three times with similar results. Scale bars, 5 μm (top images), 1 μm (bottom images). g , Predicted structures of five experimentally validated ADH designs spanning short-chain, medium-chain and iron-dependent long-chain subfamilies. h , HPLC chromatograms showing substrate conversion by the five purified ADHs relative to a no-enzyme control. i , H-protein lipoylation and the reverse glycine cleavage system (GCS). H-protein accepts the aminomethyl group from T-protein and transfers it to P-protein during glycine synthesis from CO 2 . LplA, lipoate-protein ligase A; P, glycine decarboxylase; T, aminomethyltransferase; DTT ox and DTT red , oxidized and reduced dithiothreitol; 5,10-CH 2 -THF, N 5 , N 10 -methylene-tetrahydrofolate; H int , aminomethylated lipoylated H-protein; H ox and H red , oxidized and reduced lipoylated H-protein, respectively. j , Glycine production with pinalH02, pinalH04 and native E. coli H-protein (ecH). Data are mean ± s.d. ( n = 3 biologically independent reactions). k , pinalH02 and ecH conformations at 200 ns in molecular dynamics simulations; the aminomethyl lipoate arm of ecH is locked in the hydrophobic cavity.
Fig. 5: Experimental validation of Pinal-designed proteins across four distinct functional classes. a , Fluorescence microscopy image of purified pinalGFP (20 mg ml −1 ) acquired using the 488/520 filter. This experiment was independently repeated three times with similar results. b , AlphaFold3-predicted pinalGFP (blue) aligned with avGFP (green; PDB 2WUR ), showing the conserved β-barrel architecture, with chromophore residues T72–W73–G74 and S65–Y66–G67, respectively, highlighted. c , Fluorescence of purified pinalGFP, the W73G chromophore mutant, esmGFP-b8 and avGFP. Synthetic variants were measured at 1 mg ml −1 and avGFP at 1 μg ml −1 . Data are mean ± s.d. ( n = 3 independent reactions). d , Screening of 94 Pinal-designed PETase candidates for pNPB esterase activity, with pNP concentration normalized to total protein amount; pinalPETase36 is highlighted as the candidate with the highest activity. e , HPLC quantification of TPA and MHET released from pretreated PET by purified pinalPETase36 over 7 days. Data are mean ± s.d. ( n = 3 independent reactions). f , SEM images of pretreated PET films treated with pinalPETase36 or buffer. This experiment was independently repeated three times with similar results. Scale bars, 5 μm (top images), 1 μm (bottom images). g , Predicted structures of five experimentally validated ADH designs spanning short-chain, medium-chain and iron-dependent long-chain subfamilies. h , HPLC chromatograms showing substrate conversion by the five purified ADHs relative to a no-enzyme control. i , H-protein lipoylation and the reverse glycine cleavage system (GCS). H-protein accepts the aminomethyl group from T-protein and transfers it to P-protein during glycine synthesis from CO 2 . LplA, lipoate-protein ligase A; P, glycine decarboxylase; T, aminomethyltransferase; DTT ox and DTT red , oxidized and reduced dithiothreitol; 5,10-CH 2 -THF, N 5 , N 10 -methylene-tetrahydrofolate; H int , aminomethylated lipoylated H-protein; H ox and H red , oxidized and reduced lipoylated H-protein, respectively. j , Glycine production with pinalH02, pinalH04 and native E. coli H-protein (ecH). Data are mean ± s.d. ( n = 3 biologically independent reactions). k , pinalH02 and ecH conformations at 200 ns in molecular dynamics simulations; the aminomethyl lipoate arm of ecH is locked in the hydrophobic cavity.

Next, we escalated the challenge from designing a functional protein to creating a new enzyme for catalysis. To this end, we targeted a PETase to degrade the recalcitrant plastic polyethylene terephthalate (PET). Guided by a text prompt specifying this catalytic function, Pinal generated 200,000 candidate sequences, which were then filtered for predicted foldability and semantic alignment with the prompt, yielding 2,416 candidates (Extended Data Fig. 8a). From this refined set, we selected the top 94 proteins for gene synthesis, ranked by their text–protein semantic alignment (ProTrek scores). Following expression in E. coli, we screened the crude cell lysates of these 94 candidates using a p-nitrophenyl butyrate (pNPB) esterase assay. This primary screening identified one standout variant, pinalPETase36, that exhibited notable catalytic activity towards pNPB (Fig. 5d, Methods, section ‘Esterase activity test’, and Supplementary Tables 6 and 11). Purified pinalPETase36 had a melting temperature (Tm) of 56.84 ± 0.29 °C. To verify its capacity for actual polymer degradation, we evaluated its activity on solid PET substrates at 40 °C and pH 8.0. High-performance liquid chromatography (HPLC) analysis over a 7-day period (sampled on days 1, 3, 5 and 7) showed a progressive accumulation of the degradation products, terephthalic acid (TPA) and mono-(2-hydroxyethyl) terephthalate (MHET)51 (Fig. 5e and Methods, section ‘Plastic hydrolysis activity test’). This depolymerization was corroborated by scanning electron microscopy (SEM), which showed distinct micro-pores and pitting on the pinalPETase36-treated PET substrates compared with the smooth surface of buffer-treated controls (Fig. 5f and Methods, section ‘Scanning electron microscopy’). Collectively, these chemical and physical analyses demonstrate that pinalPETase36 functions as an active PET-degrading enzyme.

Having demonstrated the design of a new PETase, we next tested the ability of Pinal to navigate the complexity of a large enzyme family and generate diverse solutions across its distinct subfamilies. For this, we targeted ADH, a versatile class of biocatalysts for producing chiral alcohols that are essential building blocks of pharmaceuticals52. Pinal was provided with five paraphrased general prompts encoding the same ADH-design request (Supplementary Table 8), imposing no constraints on metal dependence, subfamily or chain length. In total, 2,500 initial candidates were generated across these prompts. Feasibility filtering and prioritization yielded a pool of 1,000 high-confidence sequences, from which eight were selected for experimental validation (Methods, section ‘Preliminary screening of pinalADH’, Extended Data Fig. 9a, Supplementary Table 10 and Table 13). Of these, five were successfully expressed and purified (Supplementary Table 6). These five purified designs spanned three distinct ADH subfamilies: Fe2+-dependent long-chain (pinalADH02 and pinalADH05), medium-chain (pinalADH04) and short-chain variants (pinalADH01 and pinalADH03) (Fig. 5g and Extended Data Fig. 9b). In silico analysis confirmed that the predicted folds, cofactor-binding features and, where applicable, metal-coordination geometries were consistent with their assigned subfamilies. HPLC-based activity assays confirmed that all five purified designs showed detectable ADH activity at 37 °C (Fig. 5h). This result demonstrates the ability of Pinal to capture the core functional principles of distinct enzyme subfamilies, allowing it to generate active catalysts across different protein architectures.

As the culminating test of the abilities of Pinal, we challenged it to move beyond single-enzyme function and design a protein requiring precise coordination within a complex multi-protein system. We targeted the H-protein, a key shuttle protein within the glycine cleavage system53,54, whose function requires both correct post-translational lipoylation and dynamic interactions with its partner enzymes to become active (Fig. 5i). From a single functional prompt, Pinal generated 50,000 initial candidates; feasibility filtering and prioritization reduced this pool to around 1,000 sequences, from which 20 were selected for gene synthesis and experimental validation (Extended Data Fig. 10a, Supplementary Tables 6, 12 and 13). The designs yielded a high success rate, with 14 of the 20 candidates (70%) showing soluble expression. When tested for CO2 fixation in a reconstituted assay, five of the designed proteins were active (Methods, section ‘Reconstituted glycine cleavage system assay’, Extended Data Fig. 10b and Supplementary Tables 6 and 12). The top-performing design, pinalH02, drove glycine synthesis to a final titre of 11.1 mM, a 1.7-fold increase over the native E. coli H-protein (ecH) (Fig. 5j). Molecular dynamics simulations suggested a possible structural basis for this improved performance. Although the native ecH locks its reactive lipoamide arm in a protective cavity for regulatory purposes, the arm of pinalH02 is largely liberated. This key architectural difference may allow pinalH02 to bypass the rate-limiting step of the native protein, facilitating more efficient intermediate shuttling and leading to enhanced carbon fixation (Fig. 5k and Extended Data Fig. 10c–f). Together, these data indicate that Pinal-designed proteins can be incorporated into reconstituted multi-protein enzymatic pathways, with some designs matching or exceeding the activity of native components. More follow-up H-protein validation data are provided in Supplementary Fig. 7.

Discussion

The importance of Pinal lies not only in its performance but also in reframing protein design as a problem that can be specified through functional language. For decades, the field has largely required specialized expertise to translate desired functions into low-level structural or sequence constraints and to navigate workflows grounded in computation and biophysics. By interpreting high-level functional descriptions within a generative framework, Pinal reduces reliance on manual constraint engineering and points towards a more programmable model for protein engineering.

Our study further highlights two principles that seem to be important for this setting. First, directly mapping the combinatorial space of language onto protein sequence is highly challenging. Our decoupled two-stage framework, in which protein structure serves as an intermediate semantic and geometric representation ( t → c → s ), seems to make this problem more tractable in practice. Second, scale matters. The performance of our 16-billion-parameter model, trained on 1.7 billion synthetic protein–text pairs, suggests that the scaling behaviours observed in general AI extend to language-guided protein design.

The successful experimental validation of four distinct protein classes supports the breadth of this approach, including the generation of catalytically active enzymes directly from textual descriptions. Moreover, the observation that a Pinal-designed H-protein outperformed the native E. coli H-protein in a multi-enzyme CO2 fixation pathway suggests that language-guided generation can access alternative functional solutions that surpass a native counterpart in a defined application context. Together, these results indicate that high-level functional descriptions can serve as a practical interface for specifying protein-design objectives and obtaining experimentally testable candidates.

Several limitations remain. The abilities of Pinal are constrained by the granularity and coverage of available biological annotations, which currently limit fine-grained quantitative control over specified properties. For example, prompting for a precise emission wavelength in a fluorescent protein remains challenging. Moreover, although our experiments validate the efficacy of the approach, the candidates advanced to experimental testing were prioritized conservatively using available in silico proxies, including AlphaFold confidence, ProTrek scores and, where appropriate, motif-based criteria. These heuristics can improve practical hit rates, but they do not imply that candidates outside these filters are non-functional. Rather, they reflect the current lack of universally reliable computational metrics for evaluating protein function a priori. As a result, this prioritization may restrict exploration to a limited region of the design space. Coupling language-guided generation to high-throughput functional screening will therefore be important for more comprehensively probing the accessible design space and the limits of Pinal.

More broadly, our work suggests a path towards protein design systems specified increasingly in terms of function rather than manual constraint engineering. As biological datasets become richer and AI systems become more capable of integrating mechanistic reasoning with generative design, language-guided models may support increasingly open-ended exploration of protein function. In this sense, Pinal represents a step towards a programmable interface for biology, in which high-level intent can be translated into experimentally testable molecular candidates.

Methods

Detailed model architecture

The generative ability of Pinal is realized through a two-stage network composed of two main modules: T2struct and SaProt-T.

T2struct is an encoder–decoder Transformer that translates natural language descriptions into structural (3Di) token sequences (Extended Data Fig. 1a). The text encoder, initialized from a pretrained T5 model39, processes the input prompt to extract a high-dimensional text representation. This representation subsequently guides an autoregressive decoder, which is built on a GPT-2-style architecture55 but augmented with cross-attention mechanisms. Specifically, the decoder consists of N stacked blocks, each integrating three sequential sub-modules: (1) a structural context module using multi-head self-attention to capture dependencies within the preceding structural tokens; (2) a text-conditioning module using multi-head cross-attention to inject guidance from the encoded text representation; and (3) a feature refinement network consisting of a pointwise feed-forward layer. Each sub-module is followed by layer normalization. During training, T2struct is optimized using a teacher-forcing strategy: when predicting the next 3Di structural token, the autoregressive decoder is conditioned on the actual preceding tokens from the training data (rather than its own past predictions), while simultaneously being guided by the text representation. During inference, the model operates autoregressively, predicting each subsequent 3Di structural token based on its own previously generated sequence and the corresponding text representation.

The second stage of the Pinal network, SaProt-T, is an architectural adaptation of the SaProt model designed to generate a protein sequence from a structural scaffold and a text prompt (Extended Data Fig. 1b). To condition the generation on language, a separate text encoder (a pretrained PubMedBERT40 model) produces a text representation, which is then passed to a semantic projector—a trainable linear layer—to map the text embedding into the protein embedding space. This projected text vector is then prepended to the sequence of input structural token embeddings to form a text–protein joint representation. This joint representation is subsequently processed by a stack of N SaProt-T blocks, each composed of self-attention and feed-forward modules, to predict the final amino acid sequence in a single forward pass.

Preliminary experiments of text-to-sequence and text-to-structure generation

In our approach, we represent protein structures as 1D sequences of Foldseek 3Di tokens35, framing structure generation as a discrete sequence-modelling task. Conveniently, because this 20-state structural alphabet matches the size of the standard amino acid vocabulary, it provides a unique opportunity to contrast text-to-structure and direct text-to-sequence generation under an identical architectural framework.

Leveraging this shared formulation, we trained two identical encoder–decoder Transformer models (comprising a pretrained T5-base encoder and a randomly initialized GPT-2 decoder, totalling 224M parameters) on the SwissProt-Annot dataset (section ‘SwissProt-Annot’). Both models were trained for 20,000 steps under identical optimization settings, with training and validation sets rigorously split at a 30% sequence identity threshold. The sole distinction between the two set-ups was the prediction target: one model directly predicted amino acid sequences, and the other predicted 3Di structural tokens.

Given the 20-token vocabulary for both tasks, the theoretical uniform random baseline accuracy is 0.05. During training, the direct text-to-sequence model failed to meaningfully surpass this random baseline on the validation set, indicating that mapping natural language directly to amino acid sequences is prohibitively difficult under the current data-scale setting. By contrast, the text-to-structure model converged robustly (Fig. 1b), reaching a validation accuracy of approximately 0.6. To move beyond the NTP accuracy, we further evaluated the structural plausibility of the generated candidates across training checkpoints using ESMFold pLDDT (Supplementary Fig. 2). Because 3Di token sequences cannot be directly evaluated for structural plausibility by standard folding algorithms, they needed to be translated into amino acid sequences using SaProt36. Consistent with the NTP accuracy results, the structure-mediated approach generated candidates with higher predicted folding confidence, whereas the direct text-to-sequence baseline produced candidates with substantially lower predicted folding confidence.

It is important to note that these results do not establish the intrinsic infeasibility of direct text-to-sequence generation. Rather, they show that, in this controlled SwissProt-scale paired-data setting, text-to-3Di-token generation is substantially more learnable than direct text-to-amino-acid generation under the same architecture and optimization set-up. Recent studies, including ProLLaMA56, ProtDAT57 and ProDVa58, have also reported promising progress in direct annotation- or prompt-conditioned amino acid sequence generation, using strategies such as large-scale protein language model pretraining followed by instruction tuning, specialized cross-attention mechanisms or dynamic protein vocabularies based on retrieved sequence fragments. These advances indicate that direct text-to-amino-acid generation can benefit from substantially larger pretraining corpora or tailored model designs. At the same time, whether the modality gap observed here would persist after scaling the paired text–sequence data and compute within our framework by orders of magnitude (for example, 1,000× or 10,000×) remains an open question. This full-scale ablation would require resources comparable to training Pinal itself and therefore falls outside the scope of this preliminary study.

Dataset construction

Training a large-scale, text-guided protein design model requires extensive and diverse datasets. However, a fundamental challenge exists: high-quality, manually curated databases such as Swiss-Prot are limited in scale (containing 0.5 million proteins), making them insufficient for training billion-parameter models. Conversely, large sequence databases such as UniProt/TrEMBL59, while containing hundreds of millions of proteins, lack reliable text annotations.

To overcome this data gap, we devised a comprehensive, multi-pronged strategy to construct a hybrid dataset. Our approach encompasses two primary components: (1) augmenting the high-quality Swiss-Prot annotations using LLMs to improve their diversity and comprehensiveness and (2) generating massive-scale synthetic text–protein pairs from extensive, less-annotated resources—such as UniProtKB/TrEMBL and AFDB—by leveraging the retrieval abilities of ProTrek. This strategy yields a final dataset of more than 1.7 billion text–protein pairs, the composition of which is detailed in the following subsections and summarized in Supplementary Table 2 .

SwissProt-Annot

Following the procedure in ProTrek42, we construct the SwissProt-Annot dataset by extracting protein function information from 56 distinct subsections, including protein-level (for example, Function, Miscellaneous, Caution) and residue-level (for example, Active site, Binding site, DNA binding), from the Swiss-Prot database (Release 2023_03). We use GPT-4 to enhance the linguistic diversity of our training data, using distinct strategies tailored to the format of the Swiss-Prot annotations. For each protein-level description, we generate 10 paraphrases. For the residue-level annotations, we prompt GPT-4 to generate a diverse pool of sentence templates, which are then populated with specific annotations to form a variety of complete sentences (see Supplementary Table 5 for the generation prompt and Supplementary Table 4 for an illustrative example).

To provide the model with natural language descriptions of enzymatic function, rather than just symbolic chemical equations from Swiss-Prot, we incorporated the comprehensive textual annotations for each EC number from the ENZYME database60. Specifically, we downloaded data from the official website (https://ftp.expasy.org/databases/enzyme/enzyme.dat) and extracted the descriptions and comments (that is, the ‘DE’ and ‘CC’ lines). This process results in an additional 253,279 protein–text pair data for SwissProt-Annot.

SwissProt-Aug

Although the SwissProt-Annot dataset is highly structured, it typically presents each piece of functional information as isolated sentences. To create more comprehensive and coherent functional descriptions, we integrate these individual sentences into unified narratives. We first establish 56 canonical questions, each corresponding to one of the 56 subsections of a Swiss-Prot entry. To ensure linguistic diversity, we then use GPT-4 to generate 100 distinct paraphrases for each canonical question. Subsequently, we prompt the glm-4-flash model61 with a prompt constructed from two components: a domain-specific question (selected from the paraphrases) and the collection of existing descriptions for a given protein from SwissProt-Annot. The language model synthesizes the provided descriptions to generate a comprehensive answer, which serves as the new functional description for the protein. The complete prompts used in this process are detailed in Supplementary Table 5.

TrEMBL50-ProTrek

To address the scale limitations of the high-quality Swiss-Prot database, we generate a massive-scale dataset by pairing proteins in TrEMBL with descriptions from SwissProt-Annot. Specifically, we first cluster the TrEMBL database at 50% sequence identity, yielding a set of representative proteins (hereafter referred to as TrEMBL50). Next, we construct a comprehensive text pool by aggregating all functional descriptions from SwissProt-Annot. Finally, for each protein in TrEMBL50, we used the ProTrek model to calculate the protein–text matching scores. By selecting the top 10 descriptions for each protein, this process yielded the TrEMBL50-ProTrek dataset, containing approximately 412 million synthetic protein–text pairs. Furthermore, we made targeted additions for protein classes with limited functional annotations in this training set. We curated 46 protein classes (Supplementary Table 1 ) and used their names as textual queries for ProTrek-based retrieval, primarily from TrEMBL50 (with source details in Supplementary Table 1 ), generating approximately 22,000 additional synthetic protein–text pairs.

SwissProt-LLM and TrEMBL50-ProLLM

We incorporated two datasets introduced by Evolla62, which contain LLM-generated question–answer pairs for proteins from Swiss-Prot and TrEMBL50, respectively. We extracted only the answers from each pair to serve as functional descriptions, creating two datasets: SwissProt-LLM and TrEMBL50-ProLLM.

Keyword–protein pairs from InterPro database

To further expand the diversity of textual prompts, we incorporate keyword–protein pairs from the InterPro database (v.101.0; https://www.ebi.ac.uk/interpro/download/InterPro/ ). We collect these pairs from InterProScan annotations, using the functional keywords directly as a concise form of textual input. This dataset ensures the model is exposed to a wide range of short, function-centric descriptions.

Unannotated structures from AFDB

To enhance the structural diversity of our training set, we include a large corpus of unannotated proteins from AFDB. As these proteins lack descriptive text, we pair them with a randomly selected prompt from a predefined set of 50 non-informative sentences (for example, ‘design a protein randomly’). This strategy of using a variety of generic prompts encourages the model to explore the vastness of the protein fold space independently of any specific functional constraints.

Limitations of data synthesis

Although our ProTrek-based augmentation strategy effectively expands the sequence and structural diversity for functions represented in Swiss-Prot, we note an inherent limitation: functions that are entirely undocumented in curated databases cannot be explicitly modelled. Because TrEMBL annotations are often computationally inferred, sparse or redundant, anchoring to Swiss-Prot is necessary to reduce noise in text supervision. Consequently, our approach is designed to broaden the coverage of known functions rather than to discover entirely new functional categories.

Furthermore, the use of ProTrek for large-scale retrieval inevitably introduces a degree of noise, as its matching scores serve as empirical signals rather than perfectly calibrated estimates of semantic correctness. To mitigate the impact of inaccurate matches, we used conservative quality-control thresholds to retain only high-confidence pairs. Although some residual noise remains, our empirical scaling results demonstrate that the model effectively tolerates this noise at scale, extracting a net positive training signal from the massive data expansion.

Training regimen

We implemented the training using PyTorch. To optimize GPU memory usage, we used activation checkpointing63 and applied DeepSpeed ZeRO-264 for gradient partitioning and optimizer partitioning. All models were trained using BFloat16 mixed precision to enhance efficiency.

The models were trained with the standard AdamW optimizer, using hyperparameters of β1 = 0.9, β2 = 0.98 and ϵ = 1 × 10−8. We used a global batch size of 512 and applied a weight decay of 0.01 to prevent overfitting. The learning rate was warmed up over the first 10% of training steps, followed by a cosine decay schedule. Further details on other hyperparameters are provided in Supplementary Table 3.

To ensure a balanced representation of protein space and mitigate distributional biases, our training regimen leverages the AFDB cluster65 for sampling proteins from the InterPro and AFDB datasets. This is implemented through a hierarchical, two-stage sampling strategy: a cluster is first selected uniformly at random, and a protein is then sampled uniformly from within the chosen cluster. For the remaining datasets, proteins are sampled directly, without this cluster-based approach. Furthermore, each dataset is assigned a specific sampling weight, as detailed in Supplementary Table 2.

SaProt-T/O training details and rationale

To generate amino acid sequences in the second stage of the Pinal pipeline, we develop two specialized models, SaProt-T and SaProt-O, based on the SaProt architecture.

SaProt-T(ext) is specifically designed for the task of protein reverse folding: predicting amino acid sequences given both protein backbone structures (as 3Di tokens) and textual descriptions.

SaProt-O(mni) is trained for maximum flexibility to better align with diverse, real-world protein redesign workflows. It is trained on various combinations of inputs, which may include or exclude textual prompts, structural information or portions of the amino acid sequence (see Extended Data Fig. 2b for data combination details). This ‘omni-modal’ training strategy enables SaProt-O to effectively handle a wide range of design scenarios, such as infilling, redesign or sequence generation from structure and text alone.

To validate our core hypothesis—that conditioning on text is crucial for generating high-quality, functionally relevant sequences—we conducted an ablation study comparing our models against the original SaProt and the ProstT537 baseline. Although existing models such as baseline SaProt36 excel at predicting sequences from structural tokens alone, we posit that text provides essential fine-grained cues not present in the coarse-grained 3Di tokens. To test this hypothesis, we compared our text-conditioned models SaProt-T and SaProt-O (760M) with the original SaProt (650M) and a variant, SaProt-T-T5xxl_encoder (the same text encoder used in the 15.5B T2struct), to assess the impact of text encoder capacity.

The findings (Extended Data Fig. 2a ) demonstrate that sequences generated by SaProt-T and SaProt-O achieve stronger textual alignment while maintaining higher predicted foldability than those generated by the baseline models. By contrast, although ProstT5 shows good textual alignment, its generated sequences have lower predicted foldability than those from our models. Furthermore, simply scaling the text component, for example, by using the pretrained T5 encoder in SaProt-T-T5xxl_encoder, did not improve the performance compared with SaProt-T. This result underscores the importance of our text-conditioning strategy and justifies the development of SaProt-T/O for high-fidelity, language-guided sequence design.

In this study, we use SaProt-T for all Pinal experiments. By contrast, SaProt-O is more suited for protein editing tasks where partial sequences or structures are provided. For example, after proteins are designed by Pinal, we can use SaProt-O to re-engineer the protein by mutating multiple amino acids. We leave the systematic exploration of SaProt-O applications as future work.

The stability issue of large-scale model training

Training the 15.5B T2struct model presented a challenge because of its size. We observed that both training and validation losses exhibited spikes and failed to converge after the learning rate warmup phase. Inspired by previous work66 suggesting that learning rates should be adapted based on model parameters, we reduced the learning rate to 1 × 10−5, which is 10 times smaller than the initial value. This adjustment effectively resolved the training stability issues, enabling the model to converge reliably and maintain a consistent loss trajectory throughout training.

Training phase for T2struct

The training protocol for the 15.5B T2struct model was executed in three sequential phases. The initial phase consisted of 320,000 training steps on the complete data corpus, using an experimental sampling distribution specified in Supplementary Table 2. A key feature of this stage was the stratified sampling of the TrEMBL-ProTrek dataset, in which pairs with a ProTrek score of 12 or higher were sampled with 80% probability, compared with 20% for pairs with scores below 12. This was followed by a 305,000-step training phase on a curated corpus. For this second phase, the TrEMBL-ProTrek data component was wholly substituted with a high-quality subset, which was derived by filtering for pairs with a ProTrek score exceeding 12, thereby reducing its volume from 412 million to approximately 130 million pairs. The sampling weights for all datasets were held constant from the initial phase. Although the two phases of training have already established the superior performance of Pinal over baselines such as ESM3, Chroma and ProteinDT, we identified a tendency in all models to generate repetitive amino acid sequences (for example, ‘AAAAAAA’)67. Our investigation showed that the root cause was not the sequence design module (SaProt-T), but rather the generation of repetitive Foldseek structural tokens—a tendency correlated with training data derived from lower-quality predicted structures in the AFDB (Extended Data Fig. 5b).

On the basis of these findings, we introduce a third training phase to specifically address this repetition issue. This phase involves fine-tuning the model for an additional 115,000 steps on a further refined dataset, from which we exclude protein structures with a pLDDT score below 70. The effectiveness of this refined training strategy is confirmed by evaluations on the hard test set (Extended Data Fig. 5a ). Specifically, this third phase improves the performance of the model on foldability metrics (pLDDT and PAE). Furthermore, as shown by a comparative analysis of the model before and after this phase (phase 2 compared with phase 3), training with this higher-quality structural data substantially decreases the percentage of designed proteins containing excessive amino acid repeats (Extended Data Fig. 5b ), validating our approach.

The total training across all phases cost approximately 50,000 H800 Nvidia GPU hours.

Initial candidate generation and screening

Protein generation with Pinal follows a two-stage procedure. First, T2struct generates structure-token sequences from the input natural-language description using multinomial sampling, enabling diverse structural candidates. Second, SaProt-T decodes each structure-token sequence into an amino acid sequence conditioned on both the input description and the generated structure tokens.

For large-scale in silico evaluations, we used deterministic SaProt-T decoding to obtain a reproducible, high-probability amino acid sequence for each generated structure-token sequence. Specifically, SaProt-T was decoded by argmax sampling, selecting the amino acid with the highest predicted probability at each position. We sampled K = 50 structure-token sequences for each text prompt, yielding 50 initial candidates per text prompt. These candidates were ranked by their joint log-probability of the generated structure-token and amino acid sequences under Pinal, normalized by sequence length, and the top-five candidates were retained for downstream computational evaluation.

To determine an appropriate value of K , we conducted an empirical study on the hard test set. We varied K from 5 to 100 and found that performance, measured by the ProTrek score and pLDDT of the top-ranked designs, improved notably up to K = 50, after which the gains became marginal (Extended Data Fig. 3 ). We therefore used K = 50 for computational evaluation, balancing performance and computational cost.

For wet-lab validation, we used the same two-stage procedure but larger task-specific sampling scales, because each experiment focused on a single target protein. We generated 50,000 structure-token sequences for GFP and H-protein, 2,500 for ADH and 200,000 for PETase. The SaProt-T decoding strategy, multinomial sampling settings and initial candidate-pool sizes are summarized in Supplementary Table 13 .

Inference is performed on NVIDIA H800 GPUs, which require at least 40 GB of memory to run the 15.5B T2struct model. On a single GPU, Pinal generates sequences at a rate of approximately 300 residues per second. The maximum generation length of the model is 1,022 residues, with inference time increasing with sequence length.

Benchmarking and evaluation protocol

Baseline set-up

The baseline models evaluated in this study were run using their official implementations and publicly released pretrained checkpoints. For ProteinDT, we followed the official text-to-protein pipeline using the pretrained model, Gaussian facilitator and T5-based autoregressive protein decoder. Sequences were generated by stochastic decoding with top- k = 40, top- p = 0.9 and a temperature of 1.0. For Chroma, we used ProCap conditioning with a guidance weight of 10, generated protein backbones using 50 diffusion steps with a reverse-time SDE and Euler–Maruyama integration, and performed Potts-based sequence co-design using the official default settings. For ESM3, we evaluated the open 1.4-billion-parameter biohub/esm3-sm-open-v1 checkpoint, setting the number of generation steps to the target sequence length and sampling sequences at a temperature of 0.7.

Construction of evaluation sets

Our evaluation protocol assesses two distinct abilities of Pinal: generalization from complex functional descriptions and translation of specific functional prompts into proteins.

Designing protein from complex text descriptions: long sentences evaluation . To evaluate the generalization ability of Pinal on unseen text–protein pairs, we constructed two distinct evaluation sets from a held-out portion of the Swiss-Prot dataset. First, we established a standard test set comprising 3,304 proteins. This set was achieved by clustering the Swiss-Prot database at a 50% sequence identity threshold and selecting protein clusters that were disjoint from those used in training. For each protein in this set, we generated comprehensive descriptions by simply concatenating all available functional annotations. These descriptions were subsequently paraphrased using GPT-4 to ensure the resulting prompts were textually new to our model. From this pool of unique prompts, we randomly sampled 500 for the long-sentence-based design evaluation. Second, we created a more stringent hard test set containing 465 proteins. These proteins were derived by filtering the standard test set, retaining only proteins that share less than 30% sequence identity with any protein in the training clusters. We applied the prompt generation procedures used in both the standard test set and SwissProt-Aug, and randomly sampled another 500 prompts to constitute the final hard evaluation set. For each description, we then generated five protein candidates, resulting in a total of 2,500 designed proteins per setting for our analysis.

Translating specific functional prompts: short sentences and keyword-based evaluation . To assess the ability of the model to accurately translate functional concepts, we created two evaluation sets by sampling prompts directly from the entire datasets. The short sentence set was constructed to cover a broad range of functional commands while simultaneously testing the robustness of the model to textual variation. To achieve this, we first systematically sampled 50 descriptions from each of the 17 distinct protein-level subsections within SwissProt-Annot. These 850 descriptions were then processed using the same paraphrasing protocol as the long sentences to ensure their phrasing was new to the model. The keyword-based set was designed for a direct, head-to-head comparison with ESM3. This set was constructed by randomly sampling 500 entry names from the InterPro database to serve as textual inputs for both models, ensuring a fair benchmark of their keyword-conditioned generative abilities. Similar to the long-sentence evaluation, we then generated five protein candidates for each prompt in these sets.

Prompt generation for structurally uncharacterized protein

The construction of these prompts follows a multi-step pipeline. First, we identify a pool of structurally uncharacterized proteins by comparing AlphaFold-predicted structures against the entire PDB database using Foldseek. We retain 6,000 proteins whose predicted structures show no substantial structural similarity (TM-score < 0.5) to any known experimental structure. For this set of new proteins, we first use ProTrek to predict functional text for them, and then we use an LLM61 to paraphrase this retrieved text to ensure linguistic diversity. These rewritten descriptions serve as the final input prompts for the novelty generation task.

Metrics

Evaluation metrics are grouped into three primary categories: textual and structural alignment, foldability and novelty.

Textual and structural alignment. We use three metrics to assess alignment with the input prompt. For designs with a known native structure, we report the GT-TMscore, defined as the TM-score (https://zhanggroup.org/TM-score/) between the predicted structure of the design and the ground-truth structure. For keyword-based prompts, we also report keyword recovery, calculated with InterProScan (https://www.ebi.ac.uk/interpro/download/InterProScan/) to measure functional consistency, strictly following the protocol of ESM338. For a more general assessment, we use the ProTrek score42, which measures the cosine similarity between the text embedding of the prompt and the embeddings of the designed sequence (Seq. ProTrek) or structure (Struc. ProTrek).

For both sequence and structure modalities, ProTrek scores computed using native protein–text pairs are highly correlated with those computed using semantically equivalent paraphrased descriptions, as measured by Spearman correlation. This indicates that the metric is robust to variation in wording. Furthermore, the scores of correctly matched pairs are higher than those of randomly shuffled mismatched pairs, indicating that the method has a strong discriminative ability (see Extended Data Fig. 4 for full analysis). For evaluations in which multiple designs were considered for the same text prompt (that is, Fig. 2b–g ), Pinal first generated several candidates ( K = 50) and then retained the top-five designs per prompt. Metrics were computed for each of these five retained designs. Unless otherwise specified, reported values correspond to the mean across the retained designs. When both mean and maximum ProTrek values are shown, Mean Seq. and Max. Seq. denote the mean and maximum sequence-to-text ProTrek scores across the five retained designs, respectively, whereas Mean Struc. and Max. Struc. denote the corresponding mean and maximum structure-to-text ProTrek scores.

Foldability. The structural plausibility of each designed sequence is predicted with ESMFold68 or AlphaFold369. We report two standard confidence metrics: the predicted Local Distance Difference Test (pLDDT), a per-residue confidence score and the PAE, which measures the confidence in relative domain positions. Higher pLDDT and lower PAE values indicate a more confident, well-folded structure.

Novelty . The novelty of a design is determined by evaluating both sequence and structural homology. Sequence novelty is assessed by sequence identity against the UniRef100 database, whereas structural novelty is determined by comparing it against all entries in the Protein Data Bank (PDB), reporting the highest query TM-score as the PDB-TM.

Diversity. To quantify the generative diversity, we clustered the generated proteins in both sequence and structural spaces following the DISCO methodology70, tracking the total number of distinct clusters.

Evaluation limitations and discussion . Pinal-generated proteins were evaluated using complementary metrics capturing prompt alignment, structural plausibility and annotation-level functional consistency. Prompt-sequence semantic alignment was quantified using the ProTrek score, defined by the similarity between the input text representation and the generated protein representation in the ProTrek embedding space. Because ProTrek was also used during synthetic data construction, this metric is not fully independent of the training-data generation procedure. We therefore complemented ProTrek-based evaluation with additional alignment metrics. Structural quality was assessed using TM-score, which compares predicted structures independently of ProTrek. Functional consistency was further evaluated by keyword recovery, in which annotations inferred from generated sequences using InterProScan were compared with the keywords specified in the input prompts. Because text-guided protein generation is an emerging task and no universally accepted metric exists for evaluating prompt-level functional consistency, we report these complementary metrics together rather than relying on any single score.

Phylogenetic analysis of Pinal-generated sequence diversity

To evaluate the sequence diversity of Pinal-designed proteins, we retrieved natural homologous sequences for each target protein family from the Swiss-Prot database. For each family, 5,000 sequences were generated using Pinal and filtered to retain high-confidence designs with a ProTrek score >15. These designs also exhibited high predicted structural confidence (average ESMFold pLDDT >85; Supplementary Fig. 4 ). To reduce redundancy, the natural and filtered Pinal-designed datasets were independently clustered using CD-HIT in a two-step procedure, first at 90% sequence identity (-c 0.9, -aS 0.8) and then at 70% sequence identity (-c 0.7, -aS 0.8). Representative sequences from the natural and designed sets were combined and aligned using Clustal Omega. Maximum-likelihood trees were inferred from the amino acid sequence alignments using IQ-TREE 2 with ModelFinder-based automatic model selection (-m MFP). Branch support was estimated using 1,000 ultrafast bootstrap replicates (-bb 1000), and the number of CPU threads was selected automatically (-nt AUTO). The resulting trees were midpoint-rooted for visualization and used to compare the distribution of high-confidence Pinal-designed sequences with that of curated natural homologues. Midpoint rooting was used only for visualization.

Materials, strains and cultivation

Glycine, nicotinamide adenine dinucleotide (NAD+, NADH) and tetrahydrofolic acid (THF) were obtained from Sigma-Aldrich. Dithiothreitol (DTT), pyridoxal 5′-phosphate monohydrate, ethanol, acetaldehyde, 2,4-dinitrophenylhydrazine (DNPH), acetonitrile, trifluoroacetic acid (TFA), imidazole, NaOH, HCl, KH2PO4, 1,1,1,3,3,3-hexafluoro-2-propanol, pNPB, standards of bis-hydroxyethyl terephthalate, TPA and MHET were obtained from Aladdin. E. coli BL21(DE3) (Tsingke Biotechnology) was used as the primary host for recombinant protein expression. Cultures were routinely grown in Luria–Bertani medium at 37 °C with shaking at 200–225 rpm.

Recombinant protein expression and purification

Soluble-expression analysis of structurally new designs

Twenty computationally selected structurally novel protein designs were tested for soluble expression in E. coli BL21(DE3). Recombinant proteins carrying an N-terminal SUMO tag and Strep-tag II were expressed from three independent colonies for each design. The cultures were grown to an OD600 of approximately 0.6 and induced with 0.1 mM IPTG at either 22 °C or 37 °C for 20 h. The cells were harvested and lysed in PBS, and whole-cell lysates and soluble fractions were analysed by SDS-PAGE (Supplementary Fig. 5). Uncropped and unprocessed SDS-PAGE images underlying Supplementary Fig. 5 are provided in the Source Data file.

Expression and purification of pinalGFP

The codon-optimized gene sequence for pinalGFP, along with benchmark proteins, was synthesized and cloned into a pET28a(+) vector containing an N-terminal 6 × His tag (GENEWIZ). The construct was transformed into E. coli BL21(DE3) cells (Tsingke). For large-scale protein production, transformed BL21(DE3) cells were cultured in 4 l of Luria–Bertani medium at 37 °C until the OD600 reached 0.6–0.8. Protein expression was induced with 0.5 mM IPTG, followed by incubation at 18 °C for 16–20 h. The cells were harvested by centrifugation, resuspended in lysis buffer (50 mM Tris-HCl, 500 mM NaCl, 10 mM imidazole, pH 8.0) and lysed by sonication on ice. The cleared lysate was obtained by centrifugation (4,000 × g, 30 min, 4 °C). The supernatant was first purified using Ni-NTA agarose affinity chromatography (Qiagen). The bound protein was eluted with a buffer containing 250 mM imidazole. Following concentration using Amicon Ultra-15 centrifugal filters (30 kDa MWCO, Millipore), the protein was further purified by size exclusion chromatography on a Cytiva Superdex 200 Increase 10/300 GL column using an ÄKTA prime PLUS system (GE Healthcare), equilibrated with 25 mM Tris-HCl, 150 mM NaCl, pH 8.0.

Expression and purification of pinalADH and pinalPETase

Candidate gene sequences for pinalADH and pinalPETase, codon-optimized for E. coli, were commercially synthesized (Guangzhou Aiji Biotechnology). The synthesized genes were cloned into the pET28a(+) expression vector containing a C-terminal 6 × His tag and transformed into E. coli BL21(DE3) competent cells. For protein expression, transformed cells were cultured in 100 ml of Luria–Bertani medium at 37 °C with shaking at 225 rpm until the OD600 reached 0.6. The expression was induced with a final concentration of 0.1 mM IPTG, and the cultures were subsequently incubated at 16 °C and 120 rpm for 24 h. The cells were harvested by centrifugation (4,500 × g, 30 min), and the pellet was washed twice with 10 mM phosphate buffer. Cell disruption was performed using a high-pressure homogenizer (KS-2000M, Kaibai Nano Technology). The lysate was cleared by centrifugation at 12,000 × g for 30 min at 4 °C. The clarified supernatant was loaded onto a 5-ml HISTRAP FF CRUDE column (Cytiva) using an ÄKTA pure 25 system (Cytiva). The column was washed with 50 mM phosphate buffer (pH 7.8) containing 60 mM imidazole and 500 mM NaCl. The protein was then eluted with 50 mM phosphate buffer (pH 7.8) containing 250 mM imidazole and 500 mM NaCl. Protein concentration was determined using a BCA Protein Assay Kit (Biogene), and purity was assessed by SDS-PAGE.

Expression and purification of pinalH

The selected H-protein genes, codon-optimized for E. coli, were synthesized with C-terminal 6 × His-tags and cloned into the pET28a vector (Tsingke Biotechnology). The constructs were transformed into E. coli BL21(DE3) for expression. Transformants were cultured in Luria–Bertani medium with 100 mg l−1 kanamycin at 37 °C until an OD600 of 0.6–0.8 was reached. Expression was induced with 0.1 mM IPTG, and cultures were incubated at 16 °C for 16 h. The cells were harvested by centrifugation (8,000 rpm, 10 min, 4 °C) and washed with 50 mM phosphate buffer (pH 7.0). For purification, cell pellets were resuspended in 50 mM Tris buffer (pH 7.0) and lysed by ultrasonication. The lysate was cleared by centrifugation (10,000 × g, 5 min, 4 °C). The supernatant was applied to a gravity-flow column packed with Ni2+-charged resin (High Affinity Ni-charged Resin FF, GenScript) pre-equilibrated with lysis buffer (50 mM Tris, 10 mM imidazole, 300 mM NaCl, pH 7.5). The column was washed with a wash buffer (50 mM Tris, 30 mM imidazole, 300 mM NaCl), and the purified H-proteins were eluted using an elution buffer (50 mM Tris, 300 mM imidazole, 300 mM NaCl, pH 7.5). Excessive imidazole was removed by centrifugation. Purity was confirmed by SDS-PAGE.

Characterization of pinalGFP

Computational screening and design refinement of pinalGFP

An initial pool of 50,000 GFP candidate sequences generated by Pinal was processed through a multi-tiered computational pipeline. Quality filtering retained 16,843 sequences with a ProTrek score >15 and high AlphaFold3-predicted structural quality (pLDDT > 80, PAE < 7). The remaining candidates were then filtered by similarity to known fluorescent proteins, retaining sequences with <35% sequence identity. To identify candidates with autonomous chromophore-forming potential, we further applied a sequence-based motif screen around the expected GFP chromophore-forming region, using the canonical Ser65–Tyr66–Gly67 site in avGFP71 (PDB: 2WUR) as the reference. The candidates were retained if this region contained a known chromophore-forming triplet, specifically SYG, TYG, SHG, TWG, QYG or HYG, based on motifs observed in characterized fluorescent proteins72. Together, the sequence-identity and motif filters yielded 29 diverse candidates for experimental validation. We note that this conservative motif filter considered only six chromophore-forming triplets, a limited subset of the broader repertoire reported in characterized fluorescent proteins. It was therefore used for experimental prioritization rather than as an exhaustive assessment of fluorescence potential, and sequences excluded by this step were not interpreted as non-functional.

Fluorescence characterization

Fluorescence microscopy images were acquired using an Olympus MVX10 Macro Zoom Fluorescence Microscope System. Fluorescence intensity was quantified on an Agilent Microplate Reader (excitation 460 nm, emission 510 nm). To bring all signals within the linear detection range of the instrument, synthetic variants (pinalGFP, pinalGFP chromophore mutant W73G and esmGFP-b8) were measured at 1 mg ml−1, whereas avGFP was measured at 1 μg ml−1. Fluorescence excitation and emission spectra were recorded using the same instrument from 300–520 nm and 460–650 nm, respectively.

Characterization of pinalPETase

Thermal shift assay by nanoDSF using PR Panta

Protein thermal stability was measured on a PR Panta instrument (NanoTemper Technologies) using nano-differential scanning fluorimetry (nanoDSF) with prometheus standard capillaries (NanoTemper, Cat. no. PR-C002). Each sample (10 μl, 5–250 μg ml−1 in the final formulation buffer) was loaded by capillary action into the standard chip. The temperature was ramped from 25 °C to 95 °C at a constant rate of 5 °C min−1, whereas intrinsic fluorescence was recorded at 330 nm and 350 nm every 0.2 °C (≥20 data points min−1). Melting temperature (Tm) was derived from the first derivative of the ratio F350 nm/F330 nm compared with temperature.

Esterase activity test

The enzymatic activity of the expressed proteins was measured using pNPB as the substrate. E. coli BL21(DE3) cells were cultured in Luria–Bertani medium supplemented with kanamycin (50 μg ml−1). Protein expression was induced with 0.2 mM IPTG, and the cells were incubated at 30 °C and 200 rpm for 36 h. Following incubation, cells were harvested by centrifugation at 4,000 rpm for 30 min. The cell pellets were resuspended in 400 μl Bugbuster Protein Extraction Reagent and incubated at 30 °C with shaking (200 rpm) for 40 min. After lysis, the samples were centrifuged at 4,000 rpm for 30 min, and the supernatants (90 μl) were mixed with 10 μl of pNPB substrate. The reaction mixture was incubated at 37 °C in the dark for 10 min. The reaction was terminated by adding 100 μl of anhydrous ethanol, and the absorbance at 410 nm was measured immediately. Total protein concentration in the supernatant was determined using the Bradford assay. pNP concentration was determined from a pNP standard curve (Extended Data Fig. 8b). The resulting pNP concentration was normalized to the total protein amount in the 90 μl soluble fraction and expressed as M g−1 total protein.

Plastic hydrolysis activity test

Amorphous PET film (Goodfellow, ES30-FM-000145; thickness, 0.25 mm) was cut into small pieces and completely dissolved to form a homogeneous polymer solution. Pretreated PET films were prepared following a previously reported PET membrane preparation method73. The resulting PET films were collected, washed, dried and used as the pretreated PET substrate in subsequent experiments. Plastic hydrolysis activity was assessed by incubating 1 mg of pretreated PET substrate with 1 μM enzyme in 600 μl of 100 mM KH2PO4–NaOH buffer (pH 8.0) at 40 °C. Samples were collected on days 1, 3, 5 and 7 for HPLC analysis. Soluble degradation products (MHET and TPA) were quantified by HPLC using a Shim-pack GIST C18-AQ column (4.6 × 150 mm, 3 μm; Shimadzu) maintained at 25 °C. Mobile phase A consisted of water containing 0.1% (v/v) TFA, and mobile phase B consisted of acetonitrile containing 0.1% (v/v) TFA. Aliquots (10 μl) were injected for analysis. Separation was performed at a flow rate of 0.8 ml min−1 using the following gradient: 5% B from 0 to 3 min, 5–20% B from 3 to 6 min, 20–25% B from 6 to 11 min, 25–95% B from 11 to 19 min, 95% B from 19 to 23 min, and 95–5% B from 23 to 25 min, followed by re-equilibration at 5% B. The total run time was 32 min, and detection was performed at 260 nm.

Scanning electron microscopy

PET films were mounted on SEM stubs using conductive adhesive tape and sputter-coated with gold before imaging. The surface morphology was examined using a field-emission scanning electron microscope (FE-SEM; Sigma 300, Zeiss). Images were acquired using secondary-electron detection at an accelerating voltage of 10–15 kV and at magnifications of 2,000× and 10,000×.

Characterization of pinalADH

Preliminary screening of pinalADH

Pinal generated an initial library of 2,500 ADH candidates from five paraphrased general ADH-design prompts, with 500 candidates sampled from each prompt. After removing redundant sequences and applying computational quality filters (ESMFold pLDDT > 80 and PAE < 7), 1,639 non-redundant candidates were retained. From this set, 1,000 sequences were selected for downstream consideration. To promote coverage of diverse ADH-like architectures, the retained sequences were grouped by protein length into three approximate ranges centred around 250, 350 and 380 amino acids, broadly corresponding to short-chain, medium-chain and longer ADH-like designs, respectively. For experimental validation, eight candidates were selected from these length-defined groups, including four short-chain, two medium-chain and two long-chain ADH designs, with ESMFold pLDDT considered during prioritization.

Derivatization and HPLC analysis of acetaldehyde

To detect acetaldehyde formation from ethanol, we used a DNPH derivatization strategy. Briefly, 100 μl reaction mixtures were quenched with 100 μl of DNPH solution (1 mg ml−1 in acetonitrile) and 4 μl of phosphoric acid solution (85% phosphoric acid/water, 1:4, v/v). The samples were incubated at room temperature for 20 min in the dark to allow formation of the corresponding hydrazone derivative. Following centrifugation at 12,000 rpm for 10 min, the supernatants were collected and filtered through 0.22-μm membranes. The aliquots (5 μl) were injected onto an HPLC system equipped with a Shim-pack GIST C18-AQ column (4.6 × 150 mm, 3 μm; Shimadzu) maintained at 40 °C. Mobile phase A consisted of water containing 0.1% (v/v) TFA, and mobile phase B consisted of acetonitrile containing 0.1% (v/v) TFA. Separation was performed at a flow rate of 1.0 ml min−1 using the following gradient: 50% B from 0 to 3.5 min, 50–98% B from 3.5 to 5.5 min, 98% B from 5.5 to 10.0 min, 98–50% B from 10.0 to 10.5 min and 50% B from 10.5 to 15.0 min. Detection was performed at 360 nm.

PinalADH activity test

The activity of the designed ADHs was determined by detecting the production of acetaldehyde from ethanol. The 100 μl reaction mixture contained 100 mM ethanol, 500 μM NAD+, 0.5 mg ml−1 purified enzyme and 20 mM Tris-HCl buffer (pH 8.0). Reactions were initiated by addition of the purified enzyme and incubated at 37 °C for 120 min. The resulting acetaldehyde was derivatized and analysed by HPLC as described above (section ‘Derivatization and HPLC analysis of acetaldehyde’), with the acetaldehyde–DNPH derivative eluting at approximately 7.3 min (Extended Data Fig. 9c).

Characterization of pinalH

Reconstituted glycine cleavage system assay

The function of designed H-proteins was assessed in a reconstituted glycine cleavage system. The reaction mixture (50 mM Tris-HCl, pH 7.5) contained 200 mM NH4HCO3, 60 mM DTT, 1 mM THF, 30 mM formaldehyde, 5 μM P-protein, 3 μM T-protein, 1 μM LplA, 0.5 mM lipoic acid, 1 mM ATP, 1 mM MgCl2, and was initiated by adding 40 μM of the respective designed H-protein. The reaction was carried out at 42 °C for 12 h, with samples taken periodically for analysis.

Quantification of glycine

Glycine concentration was determined by HPLC following pre-column derivatization with dansyl chloride. In total, 40 μl of the reaction mixture was mixed with NaHCO3 and dansyl chloride solution, incubated at 30 °C for 30 min, and then acidified. The dansyl-glycine derivative was quantified by HPLC on a Shim-pack GIST C18 column, with detection at 254 nm. The results were cross-verified using an alternative OPA derivatization method on an Agilent InfinityLab Poroshell HPH-C18 column.

Author information

These authors contributed equally: Fengyuan Dai, Shiyang You

Authors and Affiliations

School of Engineering, Westlake University, Hangzhou, China

Fengyuan Dai, Yudian Zhu, Xibin Zhou, Jin Su, Yuliang Fan, Qingsong Tan, Hui Qian, Zhe Zhang, Chenchen Han, Yajie Wang, Anping Zeng, Chunjun Zhan, Jianming Liu & Fajie Yuan

Zhejiang University, Hangzhou, China

Fengyuan Dai

Bioscience and Biomedical Engineering Thrust, Systems Hub, The Hong Kong University of Science and Technology (Guangzhou), Guangzhou, China

Shiyang You, Xiaoxiao Ma, Xianjun Deng, Letong Yu & Hongyuan Lu

State Key Laboratory of Quantitative Synthetic Biology, Shenzhen Institute of Synthetic Biology, Shenzhen Institutes of Advanced Technology, Chinese Academy of Sciences, Shenzhen, China

Yuan Gao, Lihao Fu & Tong Si

School of Life Sciences, Westlake University, Hangzhou, China

Chentong Wang, Yan He, Yitao Ke, Xing Chang & Longxing Cao

Shanghai Zelixir Biotech, Shanghai, China

Liangzhen Zheng & Sheng Wang

State Key Laboratory of Druggability Evaluation and Systematic Translational Medicine, Tianjin Institute of Pharmaceutical Research, Tianjin, China

Yuan Ji, Kexin Hao & Jing Zhao

Zhejiang Key Laboratory of Low-Carbon Intelligent Synthetic Biology, School of Engineering, Westlake University, Hangzhou, China

Anping Zeng, Jianming Liu & Fajie Yuan

Department of Biochemistry, University of Washington, Seattle, WA, USA

Shunzhi Wang

Contributions

F.Y., F.D. and H.L. conceived the study. F.Y. led the overall project design and computational framework development. H.L., J.L. and T.S. led and supervised the biological experiments. F.D. and S.Y. carried out the main research. F.Y. and F.D. designed the Pinal framework and data-scaling strategy. F.D. implemented and trained the Pinal model. Y.F. and Q.T. performed some model evaluation. Shunzhi Wang, X.C. and Y.W. contributed to discussions and provided insightful feedback. Y.Z., A.Z. and J.L. contributed to the H-protein validation experiments. Y.G., L.F. and T.S. contributed to the GFP validation experiments. X.M., L.Y., S.Y., Z.Z., C.Z. and H.L. contributed to the PETase validation experiments. X.D., S.Y., Y.J., K.H., J.Z. and H.L. contributed to the ADH validation experiments. S.Y., H.Q., Y.K., C.W., Y.W. and L.C. performed the soluble protein expression experiments. Y.H., L.Z. and Sheng Wang contributed to early-stage exploratory experiments. X.Z., J.S. and C.H. collected and curated the datasets used in this study. F.Y., F.D., H.L., S.Y., J.L. and T.S. wrote the paper, and all authors read the paper.

Corresponding authors

Correspondence to Tong Si , Jianming Liu , Hongyuan Lu or Fajie Yuan .

References

  1. Dauparas, J. et al. Robust deep learning–based protein sequence design using ProteinMPNN. Science378, 49–56 (2022). Source
  2. Lu, H. et al. Machine learning-aided engineering of hydrolases for PET depolymerization. Nature604, 662–667 (2022). Source
  3. Watson, J. L. et al. De novo design of protein structure and function with RFdiffusion. Nature620, 1089–1100 (2023). Source
  4. Arnold, F. H. Directed evolution: bringing new chemistry to life. Angew. Chem. Int. Ed.57, 4143–4148 (2017). Source
  5. Wang, Y. et al. Directed evolution: methodologies and applications. Chem. Rev.121, 12384–12444 (2021). Source
  6. Yang, J. et al. Active learning-assisted directed evolution. Nat. Commun16, 714 (2025). Source
  7. Yang, K. K., Wu, Z. & Arnold, F. H. Machine-learning-guided directed evolution for protein engineering. Nat. Methods16, 687–694 (2019). Source
  8. Zhao, H., Giver, L., Shao, Z., Affholter, J. A. & Arnold, F. H. Molecular evolution by staggered extension process (StEP) in vitro recombination. Nat. Biotechnol.16, 258–261 (1998). Source
  9. Stemmer, W. P. C. Rapid evolution of a protein in vitro by DNA shuffling. Nature370, 389–391 (1994). Source
  10. Kuhlman, B. et al. Design of a novel globular protein fold with atomic-level accuracy. Science302, 1364–1368 (2003). Source
  11. Huang, P.-S., Boyken, S. E. & Baker, D. The coming of age of de novo protein design. Nature537, 320–327 (2016). Source
  12. Koga, N. et al. Principles for designing ideal protein structures. Nature491, 222–227 (2012). Source
  13. Fleishman, S. J. et al. Computational design of proteins targeting the conserved stem region of influenza hemagglutinin. Science332, 816–821 (2011). Source
  14. King, N. P. et al. Computational design of self-assembling protein nanomaterials with atomic level accuracy. Science336, 1171–1174 (2012). Source
  15. Leman, J. K. et al. Macromolecular modeling and design in Rosetta: recent methods and frameworks. Nat. Methods17, 665–680 (2020). Source
  16. Kaufmann, K. W., Lemmon, G. H., DeLuca, S. L., Sheehan, J. H. & Meiler, J. Practically useful: what the ROSETTA protein modeling suite can do for you. Biochemistry49, 2987–2998 (2010). Source
  17. Ferruz, N., Schmidt, S. & Höcker, B. ProtGPT2 is a deep unsupervised language model for protein design. Nat. Commun13, 4348 (2022). Source
  18. Nijkamp, E., Ruffolo, J. A., Weinstein, E. N., Naik, N. & Madani, A. ProGen2: exploring the boundaries of protein language models. Cell Syst.14, 968–978.e3 (2023). Source
  19. Notin, P., Rollins, N., Gal, Y., Sander, C. & Marks, D. Machine learning for functional protein design. Nat. Biotechnol42, 216–228 (2024). Source
  20. Ahern, W. et al. Atom-level enzyme active site scaffolding using RFdiffusion2. Nat. Methods23, 96–105 (2026). Source
  21. Pacesa, M. et al. One-shot design of functional protein binders with BindCraft. Nature646, 483–492 (2025). Source
  22. Vázquez Torres, S. et al. De novo designed proteins neutralize lethal snake venom toxins. Nature639, 225–231 (2025). Source
  23. Liu, Y. et al. De novo protein design with a denoising diffusion network independent of pretrained structure prediction models. Nat. Methods21, 2107–2116 (2024). Source
  24. Gainza, P. et al. De novo design of protein interactions with learned surface fingerprints. Nature617, 176–184 (2023). Source
  25. Lin, Y. & AlQuraishi, M. Generating novel, designable, and diverse protein structures by equivariantly diffusing oriented residue clouds. In Proc. 40th Int. Conf. Mach. Learn.202, 20978–21002 (PMLR, 2023).
  26. Huang, B. et al. A backbone-centred energy function of neural networks for protein design. Nature602, 523–528 (2022). Source
  27. Madani, A. et al. Large language models generate functional protein sequences across diverse families. Nat. Biotechnol 41, 1099–1106 (2023). Source
  28. Ferruz, N. & Höcker, B. Controllable protein design with language models. Nat. Mach. Intell4, 521–532 (2022). Source
  29. Cao, L. et al. Design of protein-binding proteins from the target structure alone. Nature605, 551–560 (2022). Source
  30. Lauko, A. et al. Computational design of serine hydrolases. Science388, eadu2454 (2025). Source
  31. Romero, P. A. & Arnold, F. H. Exploring protein fitness landscapes by directed evolution. Nat. Rev. Mol. Cell Biol.10, 866–876 (2009). Source
  32. Pak, M. A. et al. Using AlphaFold to predict the impact of single mutations on protein stability and function. PLoS ONE 18, e0282689 (2023). Source
  33. Truong, T. Jr. & Bepler, T. Understanding protein function with a multimodal retrieval-augmented foundation model. Adv. Neural Inf. Process. Syst. 38, 53167–53222 (2025). Source
  34. Illergård, K., Ardell, D. H. & Elofsson, A. Structure is three to ten times more conserved than sequence-a study of structural response in protein cores. Proteins77, 499–508 (2009). Source
  35. van Kempen, M. et al. Fast and accurate protein structure search with Foldseek. Nat. Biotechnol.42, 243–246 (2024).
  36. Su, J. et al. SaProt: protein language modeling with structure-aware vocabulary. In The 12th International Conference on Learning Representations (ICLR, 2024).
  37. Heinzinger, M. et al. Bilingual language model for protein sequence and structure. NAR Genom. Bioinform6, lqae150 (2024). Source
  38. Hayes, T. et al. Simulating 500 million years of evolution with a language model. Science387, 850–858 (2025). Source
  39. Raffel, C. et al. Exploring the limits of transfer learning with a unified text-to-text transformer. J. Mach. Learn. Res.21, 1-67 (2020). Source
  40. Gu, Y. et al. Domain-specific language model pretraining for biomedical natural language processing. ACM Trans. Comput. Healthc3, 1–23 (2021). Source
  41. Kaplan, J. et al. Scaling laws for neural language models. Preprint at (2020). Source
  42. Su, J. et al. A trimodal protein language model enables advanced protein searches. Nat. Biotechnol.44, 1310–1316 (2026). Source
  43. Li, F.-Z., Amini, A. P., Yue, Y., Yang, K. K. & Lu, A. X. Feature reuse and scaling: understanding transfer learning with protein language models. In Proc. 41st Int. Conf. Mach. Learn.235, 27351–27375 (PMLR, 2024).
  44. Fournier, Q. et al. Protein language models: is scaling necessary? Preprint at bioRxiv (2024). Source
  45. Notin, P. et al. Proteingym: Large-scale benchmarks for protein fitness prediction and design. Adv. Neural Inf. Process. Syst.36, 64331–64379 (2023). Source
  46. Liu, S. et al. A text-guided protein design framework. Nat. Mach. Intell.7, 580–591 (2025). Source
  47. Ingraham, J. B. et al. Illuminating protein space with a programmable generative model. Nature623, 1070–1078 (2023). Source
  48. Kuang, J. et al. PDFBench: a benchmark for de novo protein design from function. In Proc. 43rd Int. Conf. Mach. Learn.306, 61349–61371 (PMLR, 2026).
  49. Yuan, C. et al. Annotation-guided protein design with multi-level domain alignment. In Proc. 31st ACM SIGKDD Conference on Knowledge Discovery and Data Mining V. 1 1855–1866 (2025). Source
  50. Sarkisyan, K. S. et al. Local fitness landscape of the green fluorescent protein. Nature533, 397–401 (2016). Source
  51. Chen, J. et al. Global marine microbial diversity and its potential in bioprospecting. Nature633, 371–379 (2024). Source
  52. Lu, H. et al. A secretion-based dual fluorescence assay for high-throughput screening of alcohol dehydrogenases. Biotechnol. Bioeng.118, 1605–1616 (2021). Source
  53. Cohen-Addad, C., Pares, S., Sieker, L., Neuburger, M. & Douce, R. The lipoamide arm in the glycine decarboxylase complex is not freely swinging. Nat. Struct. Mol. Biol.2, 63–68 (1995). Source
  54. Kikuchi, G., Motokawa, Y., Yoshida, T. & Hiraga, K. Glycine cleavage system: reaction mechanism, physiological significance, and hyperglycinemia. Proc. Jpn. Acad. Ser. B84, 246–263 (2008). Source
  55. Radford, A. et al. Language models are unsupervised multitask learners. OpenAI blog1, 9 (2019). Source
  56. Lv, L. et al. ProLLaMA: a protein large language model for multitask protein language processing. IEEE Trans. Artif. Intell7, 642–653 (2025). Source
  57. Guo, X.-Y., Li, Y.-F., Liu, Y., Pan, X. & Shen, H.-B. Ab-initio amino acid sequence design from protein text description with ProtDAT. Nat. Commun16, 10544 (2025). Source
  58. Liu, N. et al. Protein design with dynamic protein vocabulary. Adv. Neural Inf. Process. Syst.38, 22638–22669 (2025). Source
  59. Ahmad, S. et al. The UniProt website API: facilitating programmatic access to protein knowledge. Nucleic Acids Res.53, W547–W553 (2025). Source
  60. Bairoch, A. The ENZYME database in 2000. Nucleic Acids Res.28, 304–305 (2000). Source
  61. Team GLM. ChatGLM: a family of large language models from GLM-130B to GLM-4 all tools. Preprint at (2024). Source
  62. Zhou, X. et al. Decoding the Molecular Language of Proteins with Evolla. Preprint at bioRxiv (2025). Source
  63. Chen, T., Xu, B., Zhang, C. & Guestrin, C. Training deep nets with sublinear memory cost. Preprint at (2016). Source
  64. Rajbhandari, S., Rasley, J., Ruwase, O. & He, Y. ZeRO: memory optimizations toward training trillion parameter models. In SC20International Conference for High Performance Computing, Networking, Storage and Analysis (2020). Source
  65. Barrio-Hernandez, I. et al. Clustering predicted structures at the scale of the known protein universe. Nature622, 637–645 (2023). Source
  66. Yang, G. et al. Tuning large neural networks via zero-shot hyperparameter transfer. in Proc. Adv. Neural Inf. Process. Syst. Vol. 34 (NeurIPS, 2021).
  67. Verkuil, R. et al. Language models generalize beyond natural proteins. Preprint at bioRxiv (2022). Source
  68. Lin, Z. et al. Evolutionary-scale prediction of atomic-level protein structure with a language model. Science379, 1123–1130 (2023). Source
  69. Abramson, J. et al. Accurate structure prediction of biomolecular interactions with AlphaFold 3. Nature630, 493–500 (2024). Source
  70. Rector-Brooks, J. et al. General multimodal protein design enables DNA-encoding of chemistry. Preprint at (2026). Source
  71. Lambert, T. J. FPbase: a community-editable fluorescent protein database. Nat. Methods16, 277–278 (2019). Source
  72. Shcherbakova, D. M. & Verkhusha, V. V. Chromophore chemistry of fluorescent proteins controlled by light. Curr. Opin. Chem. Biol. 20, 60–68 (2014). Source
  73. Pongmuksuwan, P. & Kitisatorn, W. Recycled poly(ethylene terephthalate) for membrane material in membrane bioreactor. Mater. Today Proc. 77, 1154–1159 (2023). Source
  74. Jumper, J. et al. Highly accurate protein structure prediction with AlphaFold. Nature596, 583–589 (2021). Source