Uncertainty-Aware Discrete Diffusion Improves Protein Design

Sazan Mahbub, Christoph Feinauer, Caleb N. Ellington, Le Song, Eric P. XingbioRxiv 2025

Abstract

Protein inverse folding involves generating amino acid sequences that adopt a specified 3D structure—a key challenge in structural biology and molecular engineering. While discrete diffusion models have demonstrated strong performance, existing methods often apply uniform denoising across residues, overlooking position-specific uncertainty. We propose an uncertainty-aware discrete denoising diffusion model that employs a prior-posterior signaling mechanism to dynamically guide the denoising process. Our approach further integrates learned priors from a pretrained protein large language model and a structure encoder within a modular framework, jointly optimized through multi-objective training. Across multiple benchmarks, our method achieves substantial improvements over state-of-the-art baselines, offering a principled framework for structure-conditioned sequence generation in proteins and beyond.

Introduction

In structural biology, "inverse folding" is a foundational challenge: given a desired 3D protein structure, what sequence of amino acids will fold into that specific shape? This problem is inherently ill-posed because the relationship is one-to-many; multiple diverse sequences can often fold into the same structural scaffold.

Recent advances have leveraged discrete diffusion models, which start with a random "noisy" sequence and iteratively refine it into a valid protein. However, most existing models apply updates uniformly across the entire sequence at every step. This approach is often inefficient and error-prone because different regions of a protein structure exhibit varying levels of ambiguity. Forcing an update on an uncertain residue too early can lead the model toward physically impossible or "hallucinated" sequences.

Methods

The proposed framework introduces an uncertainty-aware mechanism that "thinks before it acts." By estimating position-specific uncertainty, the model dynamically decides which residues to update during the denoising process.

Uncertainty-Aware Guidance

The model utilizes two primary signals to guide generation:

  • Prior Uncertainty: An estimate of how "noisy" or ambiguous a specific residue currently is based on the current state.
  • Posterior Uncertainty: An estimate of the confidence or "correctness" of a proposed update.

Modular Architecture and Refinement

The system integrates a 3D structure encoder (based on ProteinMPNN) with a 16-billion-parameter pretrained protein Large Language Model (LLM) called AIDO.Protein. This allows the model to leverage evolutionary intelligence alongside physical structural constraints.

The modular architecture of the uncertainty-aware diffusion model, featuring the structure encoder, denoiser, uncertainty estimator, and refinement module.

Unlike standard models that update a fixed number of residues per step, the Refinement Module only updates a residue if the proposed change reduces the estimated uncertainty. This acts as an implicit stopping criterion and reduces sensitivity to hyperparameter tuning. The model is trained using multi-objective optimization to simultaneously minimize denoising errors and accurately predict its own uncertainty.

Experimental Setup

The model was evaluated on several gold-standard datasets in the field:

  • CATH 4.2: A comprehensive dataset of protein domains, with evaluations performed across "short chains," "single chains," and the full test set.
  • TS50 and TS500: Two distinct, test-only datasets used to measure generalization to novel protein folds.

Results

The proposed method achieved state-of-the-art (SOTA) results in Amino Acid Recovery (AAR)—the percentage of residues in the designed sequence that match the native sequence.

Performance comparison on the CATH 4.2 dataset across different chain types, showing superior Amino Acid Recovery (AAR) for the proposed method.

On the CATH 4.2 benchmark, the model improved over the previous SOTA (AIDO.ProteinIF) by up to 2.33% overall. In the TS50 and TS500 benchmarks, it achieved 68.85% and 71.18% AAR, respectively, demonstrating superior generalization across diverse protein types. Furthermore, the model achieved highly competitive perplexity scores, ranking first on the TS50 benchmark.

Discussion and Conclusion

A key insight of this work is the effectiveness of dynamic denoising trajectories. By focusing computational effort on residues where confident updates are possible and deferring ambiguous regions, the model creates a more interpretable and efficient denoising path. Additionally, using a pretrained LLM as a sequence encoder provides a significant boost, acting as a "statistical dictionary" that keeps the diffusion process within the realm of biological reality.

While the results are promising, future work could explore a fully learnable refinement module to replace the current comparison logic. Additionally, the framework's generality suggests potential applications in other biological domains, such as RNA or DNA design, where structural constraints are equally critical.

Summary updated

BibTeX
@misc{mahbub2025uncertainty,
  author = {Sazan Mahbub and Christoph Feinauer and Caleb N. Ellington and Le Song and Eric P. Xing},
  title = {{Uncertainty-Aware Discrete Diffusion Improves Protein Design}},
  year = {2025},
  doi = {10.1101/2025.06.30.662407},
  howpublished = {bioRxiv},
}
Figure