All-atom protein sequence design using discrete diffusion models

Amelia Villegas-Morcillo, G. Admiraal, Marcel Reinders, Jana M. Weber

Abstract

Advancing protein design is crucial for breakthroughs in medicine and biotechnology. Traditional approaches for protein sequence representation often rely solely on the 20 canonical amino acids, limiting the representation of non-canonical amino acids and residues that undergo post-translational modifications. This work explores discrete diffusion models for generating novel protein sequences using the all-atom chemical representation SELFIES. By encoding the atomic composition of each amino acid in the protein, this approach expands the design possibilities beyond standard sequence representations. Using a modified ByteNet architecture within the discrete diffusion D3PM framework, we evaluate the impact of this all-atom representation on protein quality, diversity, and novelty, compared to conventional amino acid-based models. To this end, we develop a comprehensive assessment pipeline to determine whether generated SELFIES sequences translate into valid proteins containing both canonical and non-canonical amino acids. Additionally, we examine the influence of two noise schedules within the diffusion process—uniform (random replacement of tokens) and absorbing (progressive masking)—on generation performance. While models trained on the all-atom representation struggle to consistently generate fully valid proteins, the successfully generated proteins show improved novelty and diversity compared to their amino acid-based model counterparts. Furthermore, the all-atom representation achieves structural foldability results comparable to those of amino acid-based models. Lastly, our results highlight the absorbing noise schedule as the most effective for both representations.

Introduction

Most current protein design AI treats proteins like sentences written in a 20-letter alphabet of canonical amino acids. While effective, this "alphabet-locked" approach has a major blind spot: it cannot easily represent non-canonical amino acids (ncAAs) or post-translational modifications (PTMs)—the "extra" chemical groups added to proteins that are vital for drug development and biological function. To move beyond these 20 letters, we need to represent proteins at the atomic level. However, generating chemically valid molecules atom-by-atom is notoriously difficult; a single misplaced atom can turn a potential life-saving enzyme into chemical gibberish. This paper investigates whether discrete diffusion models can bridge this gap by using a robust chemical string representation.

Methods

The proposed framework combines three sophisticated components to build an all-atom design system:

SELFIES Representation

Instead of using SMILES (a common but fragile molecular string format), the authors utilize SELFIES (Self-Referencing Embedded Strings). SELFIES are designed so that any random combination of tokens results in a chemically valid molecule, making them significantly more "diffusion-friendly" than SMILES, where mutations often lead to invalid structures.

Comparison of SMILES and SELFIES representations. SELFIES ensures chemical validity even after mutations, making it suitable for diffusion models.

Model Architecture and Training

The model utilizes Discrete Denoising Diffusion Probabilistic Models (D3PM), which operate on categorical data. The model learns to "denoise" a corrupted string of chemical tokens back into a valid protein. The underlying architecture is ByteNet, a convolutional neural network that uses dilated convolutions to capture long-range dependencies in protein sequences without the high computational cost of Transformers. Models were trained on the UniRef50 database, filtered for sequences between 30 and 100 amino acids.

Evaluation Pipeline

A standout contribution is the multi-step evaluation pipeline. Since a chemically valid molecule is not necessarily a valid protein, this pipeline verifies the presence of a continuous peptide backbone, correct stereochemistry (L-form), and proper side-chain constitution.

The evaluation pipeline used to categorize generated SELFIES sequences into valid canonical and non-canonical proteins.

Results

The study compared "Uniform" noise (randomly swapping tokens) with "Absorbing" noise (masking tokens with a [MASK] symbol). The absorbing schedule was vastly superior, likely because it allows the model to "lock in" correct parts of the sequence early.

While SELFIES ensures every output is a valid molecule, only about 24% of the outputs from the best all-atom model were valid proteins with continuous backbones. This highlights that "protein-ness" is a much stricter constraint than general "chemical-ness." However, the successfully generated SELFIES-based models achieved near-perfect novelty scores (>99%), significantly outperforming amino-acid-based models (~95%). Furthermore, using OmegaFold to predict 3D structures, the SELFIES models produced proteins with an average pLDDT (confidence score) of 64.2, comparable to the 58.5 achieved by traditional models.

Conclusion

The primary limitation of this approach is the validity rate, as the model still struggles to consistently generate the specific repeating pattern of the protein backbone. However, because the model operates on atoms rather than fixed amino acid blocks, it can "hallucinate" non-canonical residues, suggesting that all-atom models are better suited for exploring the "dark matter" of the protein universe. Future work will focus on incorporating backbone-aware training and datasets rich in non-canonical amino acids and post-translational modifications.

Summary updated

Abstract

Advancing protein design is crucial for breakthroughs in medicine and biotechnology. Traditional approaches for protein sequence representation often rely solely on the 20 canonical amino acids, limiting the representation of non-canonical amino acids and residues that undergo post-translational modifications. This work explores discrete diffusion models for generating novel protein sequences using the all-atom chemical representation SELFIES. By encoding the atomic composition of each amino acid in the protein, this approach expands the design possibilities beyond standard sequence representations. Using a modified ByteNet architecture within the discrete diffusion D3PM framework, we evaluate the impact of this all-atom representation on protein quality, diversity, and novelty, compared to conventional amino acid-based models. To this end, we develop a comprehensive assessment pipeline to determine whether generated SELFIES sequences translate into valid proteins containing both canonical and non-canonical amino acids. Additionally, we examine the influence of two noise schedules within the diffusion process-uniform (random replacement of tokens) and absorbing (progressive masking)-on generation performance. While models trained on the all-atom representation struggle to consistently generate fully valid proteins, the successfully generated proteins show improved novelty and diversity compared to their amino acid-based model counterparts. Furthermore, the all-atom representation achieves structural foldability results comparable to those of amino acid-based models. Lastly, our results highlight the absorbing noise schedule as the most effective for both representations. Data and code are available at https://github.com/Intelligent-molecular-systems/All-Atom-Protein-Sequence-Generation .
BibTeX
@article{villegasmorcillo2026all,
  author = {Amelia Villegas-Morcillo and G. Admiraal and Marcel Reinders and Jana M. Weber},
  title = {{All-atom protein sequence design using discrete diffusion models}},
  journal = {J. Cheminformatics},
  year = {2026},
  doi = {10.1186/s13321-025-01121-1},
}
Figure