TL;DR
DiMA is a novel latent diffusion framework that generates high-quality protein sequences by operating on the continuous embeddings of protein language models (pLMs). Despite having only 35 million parameters, it matches or outperforms models up to 100 times its size, offering a universal and highly efficient approach to complex tasks like motif scaffolding and fold-specific design.
The Challenge of Protein Sequence Design
Protein sequence design is often considered the "holy grail" of synthetic biology, holding the potential to create novel enzymes, therapeutics, and biomaterials. Currently, the field is dominated by two paradigms: autoregressive models (which predict the next amino acid in a chain sequentially) and discrete diffusion models (which iteratively "denoise" a sequence of discrete tokens).
However, both approaches have notable drawbacks. Autoregressive models can be slow during generation and prone to error accumulation, while discrete diffusion often struggles to produce sufficient sequence diversity and capture complex structural nuances. Meanwhile, continuous diffusion—the technology powering breakthrough image generators like DALL-E and Midjourney—has been wildly successful but remains underexplored for proteins. The primary hurdle is that protein sequences are discrete strings of amino acids, making it non-obvious how to apply "smooth" Gaussian noise to them effectively.
Methods: The DiMA Framework
To bridge this gap, the authors introduce DiMA (Diffusion on Language Model Encodings). DiMA sidesteps the discrete nature of amino acids by moving the entire diffusion process into the latent space of pre-trained protein language models (pLMs) like ESM-2.
Key technical innovations of DiMA include:
- Latent Diffusion: Instead of diffusing raw amino acid tokens, DiMA adds continuous Gaussian noise to the vector representations (embeddings) produced by a frozen pLM encoder.
- The
tan-10Noise Schedule: The researchers found that standard linear or cosine noise schedules (common in image generation) make the denoising task "too easy" for proteins at low noise levels. They developed a custom schedule where the reconstruction loss grows linearly with time, forcing the model to learn meaningful features throughout the entire diffusion process.
- Architectural Tweaks: DiMA utilizes a 12-layer Transformer with long skip connections (reminiscent of a U-Net architecture) and self-conditioning, where the model uses its own previous estimates to refine the current generation step.
- Encoder Agnostic: The framework is designed to work seamlessly with various encoders, ranging from sequence-only models (ESM-2) to structure-aware multimodal models (SaProt).
Datasets
The model was trained and evaluated on two primary datasets:
- SwissProt: A high-quality, manually curated subset of UniProt containing roughly 470,000 sequences.
- AFDBv4-90: A much larger dataset of 2.2 million sequences from the AlphaFold Protein Structure Database, filtered for high structural confidence (pLDDT > 90).
Key Insights and Results
- Efficiency is King: One of the most striking findings is that DiMA's 35M parameter denoiser can compete with massive "foundation" models like ProLLAMA (7B parameters) or ESM-3. This suggests that the pre-trained pLM latents do the heavy lifting, and the diffusion model simply needs to be "smart" enough to navigate that continuous space.
- Continuous Over Discrete: By operating in continuous space, DiMA avoids the "repetition trap" that plagues many discrete diffusion models. In head-to-head comparisons with DPLM (a popular discrete diffusion model), DiMA showed significantly higher sequence diversity (CD0.5 of 0.611 vs 0.494) and produced more novel proteins while maintaining high structural plausibility.
- Unconditional Generation: DiMA achieved a structural quality score (pLDDT) of 83.3, nearly matching the natural dataset (80.7) and outperforming most baselines.
- Structural Awareness from Sequences: Even when using a sequence-only encoder (ESM-2), DiMA captures enough implicit structural information to perform complex conditional tasks. For motif scaffolding (building a protein around a specific functional shape), DiMA solved 19 out of 24 difficult benchmark problems. For fold conditioning, it achieved a 100% success rate in generating sequences that fit a specific target 3D fold, with a mean TM-score of 0.93.
Limitations and Future Work
While highly effective, the authors acknowledge a few areas for future improvement:
- Length Determination: Currently, the model requires the target sequence length to be sampled from the training distribution beforehand, rather than generating the length dynamically.
- Inference Speed: Like all diffusion models, DiMA requires multiple iterative steps to generate a sequence, making it computationally more expensive at inference time than a single-pass autoregressive model.
- Scaling Potential: While the 35M model is highly efficient, scaling the denoiser architecture further could unlock even higher performance for extremely complex protein families.
Reference: Meshchaninov, V., et al. (2025). Diffusion on Language Model Encodings for Protein Sequence Generation. Proceedings of the 42nd International Conference on Machine Learning (ICML).
Summary updated