Biological Sequence Design with GFlowNets

Moksh Jain, Emmanuel Bengio, Alex Hernández-García, Jarrid Rector-Brooks, Bonaventure F. P. Dossou, Chanakya Ekbote, Jie Fu, Tianyu Zhang, Michael Kilgour, Dinghuai Zhang, Lena Simine, Payel Das, Yoshua Bengio · DOI

Introduction

Designing biological sequences like anti-microbial peptides (AMPs) or DNA with specific binding properties is a monumental challenge. With a search space of approximately $10^{60}$ possible sequences, traditional methods often struggle to find viable candidates. Furthermore, wet-lab evaluation is slow and expensive. A critical failure of current AI-driven design, such as standard Reinforcement Learning (RL), is the lack of diversity. RL tends to converge on a single "best" solution. However, if the underlying predictive models (oracles) are imperfect, a batch of similar candidates might all fail in clinical trials. To mitigate this risk, we need high-performing candidates that are fundamentally different from one another.

Methodology: The GFlowNet-AL Framework

The authors propose GFlowNet-AL, an active learning framework that leverages Generative Flow Networks (GFlowNets) to sample diverse, high-utility biological sequences.

The GFlowNet-AL active learning loop, showing the interaction between the generator, proxy model, and oracle.

The framework consists of four key pillars:

  1. GFlowNets as Generators: Unlike RL, which maximizes reward, GFlowNets sample objects with probability proportional to their reward ($P(x) \propto R(x)$). This ensures the model explores all high-reward regions, maintaining diversity.
  2. Active Learning (AL) Loop: The system iteratively refines a "proxy" model using feedback from a high-fidelity "oracle."
  3. Epistemic Uncertainty: The proxy model provides uncertainty estimates. The reward function uses an acquisition function (e.g., Upper Confidence Bound) to prioritize sequences that are either high-scoring or located in unexplored regions.
  4. Offline Data Integration: The training scheme mixes "on-policy" trajectories with "off-policy" data from existing labeled datasets, significantly accelerating convergence.

Experimental Evaluation

The method was tested on three distinct biological design tasks:

  • AMP Design: Generating protein sequences (up to 50 amino acids) with anti-microbial properties.
  • TF Bind 8: Designing DNA sequences (8 nucleobases) that bind to human transcription factors.
  • GFP (Green Fluorescent Protein): Designing protein sequences (237 amino acids) with high fluorescence.

Results and Discussion

GFlowNet-AL demonstrated superior performance in generating diverse and novel candidates across the benchmark tasks.

Table 1: Performance, Diversity, and Novelty results for the AMP task. GFlowNet-AL significantly outperforms baselines in diversity and novelty.

In the AMP task, GFlowNet-AL achieved a diversity score of 22.34—nearly double that of the DynaPPO baseline (12.12)—while maintaining comparable performance (0.932). It also produced significantly more novel sequences (28.44 vs. 9.31). Qualitatively, the generated sequences matched the amino acid distribution of known peptides, unlike some baselines that produced nonsensical results.

A key insight is that diversity acts as a safety net against model error. By capturing multiple "modes" of the reward function, GFlowNets provide a robust set of leads. The authors also found that a 50/50 mix of offline and online data ($\gamma = 0.5$) optimized training speed.

Limitations and Future Work

The framework faced challenges in the GFP task, where highly biased training data led the GFlowNet to converge on spurious modes. Additionally, the complexity of tuning two separate learners (proxy and generator) remains a hurdle. Future research will explore non-autoregressive models for longer sequences and multi-fidelity active learning to balance simulation and experimental costs.

Summary updated

BibTeX
@misc{jain2022biological,
  author = {Moksh Jain and Emmanuel Bengio and Alex Hernández-García and Jarrid Rector-Brooks and Bonaventure F. P. Dossou and Chanakya Ekbote and Jie Fu and Tianyu Zhang and Michael Kilgour and Dinghuai Zhang and Lena Simine and Payel Das and Yoshua Bengio},
  title = {{Biological Sequence Design with GFlowNets}},
  year = {2022},
  eprint = {2203.04115},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2203.04115},
}
Figure