TL;DR
DiMA is a novel latent diffusion framework that generates high-quality protein sequences by operating entirely within the continuous embedding spaces of pre-trained protein language models (pLMs). Despite its compact size of just 35 million parameters, DiMA generalizes across diverse encoder architectures and matches or outperforms models with billions of parameters in both unconditional generation and complex conditional design tasks.
What Problem Does This Paper Address?
Generative protein design holds massive promise for synthetic biology and therapeutics, but finding the optimal way to model protein sequences remains an open challenge. Currently, autoregressive models and discrete diffusion models dominate the field. However, these approaches often suffer from high sequence repetition, low structural diversity, or a complete lack of structural awareness.
Pre-trained protein language models (pLMs) generate rich, continuous latent representations that capture deep semantic and structural information about proteins. While continuous diffusion models are standard in image generation, applying continuous latent diffusion to protein language model encodings has remained largely underexplored. The authors introduce DiMA to bridge this gap, providing a universal, encoder-agnostic framework for continuous protein diffusion.
Methods
DiMA consists of three main components: a pre-trained pLM encoder ($\mathcal{E}$), a continuous diffusion denoiser ($\mathcal{F}$), and a sequence/structure decoder ($\mathcal{D}$).
What sets DiMA apart from standard image-based diffusion models are several domain-specific adaptations:
- Encoder-Agnostic Latent Space: DiMA can plug into sequence-only encoders (ESM-2, ESMc), dual-decodable models (CHEAP), or structure-aware multimodal representations (SaProt) without changing its core architecture.
- Optimized Noise Schedule (
tan-10): The authors discovered that standard linear or cosine noise schedules are suboptimal for proteins because pLM embeddings are highly robust to small perturbations. To prevent the model from wasting training resources on trivial denoising tasks, they implemented a tangent-based schedule that forces the reconstruction loss to grow linearly over diffusion time.
- Self-Conditioning: The denoiser incorporates its own previous step predictions via a lightweight linear transformation layer in each transformer block, significantly boosting the quality-diversity trade-off.
- Attention-Masked Length Handling: Instead of forcing the model to generate padding tokens, DiMA uses attention masks during training to focus exclusively on semantic tokens, sampling realistic sequence lengths from the empirical training distribution during inference.
Datasets
The model was trained and evaluated on two primary datasets:
- SwissProt: A high-quality, manually annotated subset of UniProt containing roughly 470,000 sequences (filtered for lengths 128–254), used primarily for baseline comparisons and ablation studies.
- AFDBv4-90: A large-scale, highly diverse dataset of 2.2 million sequences from the AlphaFold Database with predicted structural confidence (pLDDT) $\ge$ 90%, utilized to evaluate representation space scaling.
Key Insights and Ideas
- The Robustness of pLM Latents: Protein language model encodings are remarkably resilient to noise. At a diffusion time of $t = 0.05$, sequence reconstruction remains 100% accurate, meaning standard diffusion schedules spend too much time on "lossless" stages.
- The Power of Continuous Space: Reconstructing proteins from continuous representations yields superior structural plausibility compared to discrete token manipulation. It allows a small model to capture complex 3D relationships implicitly.
- Extreme Parameter Efficiency: By offloading the heavy lifting of representation learning to a frozen pre-trained encoder, DiMA's 35M parameter denoiser can successfully compete with autoregressive models up to 200 times its size (e.g., ProLLAMA at 7B parameters).
Key Results
- Unconditional Generation: On the SwissProt benchmark, DiMA achieved the best sequence Fréchet distance (FD-seq: 0.34), indicating its generated proteins closely match the natural distribution of real proteins, outperforming discrete diffusion (DPLM, EvoDiff) and autoregressive baselines (nanoGPT).
- Functional-Motif Scaffolding: Evaluated on the 24-problem RFDiffusion benchmark, DiMA successfully solved 19 problems. It generated significantly more diverse successful scaffolds than RFDiffusion itself, matching the scaffold diversity of ESM-3 while using a fraction of the parameters.
- Fold-Conditioned Generation: When conditioned on specific structural folds from the CATH dataset, DiMA achieved a 100% success rate with a mean TM-score of 0.93, vastly outperforming the specialized structure-generation model RFDiffusion (41% success rate, 0.48 mean TM-score).
Limitations and Future Work
- Quality-Diversity Trade-off: The authors noted that scaling up the underlying pLM encoder (from 8M to 3B parameters) consistently improves structural quality (pLDDT) and distribution matching, but comes at the cost of a slight reduction in sequence diversity.
- Biosafety and Ethics: As a highly capable generative tool for novel proteins, the authors explicitly acknowledge that future deployment requires careful biosafety screening and ethical guardrails to prevent the dual-use risks associated with synthetic biology.
Summary updated