Introduction
Diffusion models have emerged as powerful tools for generating high-fidelity data across various domains. However, in scientific applications like protein and DNA design, the goal is often not just to generate "natural" samples, but to optimize for specific functional rewards, such as binding affinity or regulatory activity. Traditional "single-shot" generation methods, which proceed from pure noise to a final sample in one pass, face significant challenges: error propagation from inaccurate guidance at high noise levels and the difficulty of satisfying hard constraints in discrete sequence spaces.
To address these issues, we present RERD (Reward-Guided Evolutionary Refinement in Diffusion models), a test-time framework that optimizes diffusion model outputs through an iterative "noise-then-denoise" loop. By repeatedly injecting partial noise and denoising with reward guidance, RERD enables gradual error correction and achieves superior performance in complex biological design tasks.
Methodology: Iterative Refinement via RERD
RERD mimics the logic of evolutionary algorithms, leveraging pre-trained diffusion models to navigate the design space. Instead of a single denoising trajectory, RERD executes multiple cycles of partial noising followed by reward-guided denoising.
- Partial Noising: The current best designs are perturbed by adding a controlled amount of noise back into the system (up to a noise level $K$).
- Reward-Guided Denoising: These perturbed samples are then denoised back to a clean state. During this phase, a reward function biases the generation toward regions of higher utility.
This iterative process acts as a correction mechanism. If the reward guidance leads the model into an unnatural or low-reward state, the subsequent noising step allows the model to "undo" those errors. Furthermore, reward models are typically more accurate at lower noise levels; by keeping $K$ relatively low, RERD operates in a regime where guidance is most reliable.
To enhance efficiency, RERD incorporates Local Importance Sampling (IS) to explore multiple denoising paths and Global Resampling to focus computational resources on the most promising candidates, similar to Sequential Monte Carlo methods.
Experimental Evaluation
The framework was evaluated on two high-stakes biological design tasks:
- Protein Design: Using the EvoDiff discrete diffusion model, RERD was tasked with optimizing for secondary structure matching, backbone structure similarity (cRMSD), and globularity.
- DNA Design: Designing cell-type-specific enhancers using oracles based on the Enformer architecture, trained on massively parallel reporter assay (MPRA) data for human cell lines (HepG2, K562, and SKNSH).
Key Results
RERD consistently outperformed state-of-the-art single-shot methods (SVDD, SMC) and standard Genetic Algorithms (GA).
- Structural Precision: In protein backbone optimization, RERD achieved a median cRMSD of 1.68, a dramatic improvement over SVDD (8.2) and SMC (8.9). Visualizations confirm that RERD produces structures that closely match target folds while maintaining the naturalness of the underlying model distribution.
- Cell-Type Specificity: For DNA enhancer design, RERD was significantly more effective at achieving high activity in specific cell lines. For HepG2, RERD reached a median activity score of 7.9, compared to just 2.3 for the best baseline (GA).
Discussion and Future Work
RERD demonstrates that test-time iterative refinement is a robust strategy for complex design tasks. While the computational cost is higher than single-shot methods due to multiple denoising passes, it offers a valuable trade-off between compute and quality. Future work will focus on optimizing hyperparameters like the noise level $K$ and extending the framework to small molecule design, where multi-objective optimization remains a significant challenge.
Summary updated