Bidirectional Learning for Offline Model-based Biological Sequence Design

Can Chen, Yingxue Zhang, Xue Liu, Mark Coates

Introduction

Biological sequence design—the process of engineering DNA or protein sequences with specific functional properties—is a cornerstone of modern biotechnology, with applications ranging from drug discovery to synthetic biology. Traditionally, this process relies on iterative "wet-lab" experiments that are both time-consuming and prohibitively expensive. Offline model-based optimization (MBO) has emerged as a promising computational alternative. In this paradigm, researchers leverage static datasets of sequences and their associated functional scores to train a proxy model, which is then used to guide the search for novel, high-performing designs.

However, offline MBO faces two significant hurdles. First is the Out-of-Distribution (OOD) problem: as an optimizer searches for sequences that maximize the proxy model's predicted score, it often drifts into regions of the sequence space where the model has no training data. This leads to "adversarial" designs—sequences that the model predicts will perform well but are functionally useless in reality. Second is the Feature Learning limitation: previous state-of-the-art bidirectional methods relied on Neural Tangent Kernels (NTK). While theoretically robust, NTKs are fixed and cannot incorporate the rich biophysical knowledge embedded in modern pre-trained biological Language Models (LMs).

This paper introduces BIB (BIdirectional learning for Biological sequence design), a framework that addresses these challenges by combining the representational power of pre-trained LMs with a novel bi-level optimization strategy for adaptive hyperparameter tuning.

Methodology

The BIB framework introduces three primary technical innovations designed to bridge the gap between theoretical bidirectional learning and practical biological design.

1. Deep Linearization for Bidirectional Learning

To leverage the high-quality features of pre-trained biological LMs (such as Prot-BERT) while maintaining the computational efficiency of bidirectional learning, the authors employ deep linearization. By taking a finite-width pre-trained LM and adding a linear head, they can linearize the model to provide a closed-form loss function. This allows the framework to utilize sophisticated biophysical representations while avoiding the "feature blindness" of traditional kernel-based methods.

2. Adaptive-$\gamma$ (Balancing Exploitation and Constraint)

Bidirectional learning typically involves a "forward mapping" to maximize scores and a "backward mapping" to ensure the design remains close to the known data distribution. The balance between these two forces is controlled by a hyperparameter, $\gamma$. In an offline setting, where no validation set exists to tune this parameter, BIB utilizes a bi-level optimization framework. An auxiliary "weak" regression model provides a supervision signal, allowing the system to update $\gamma$ adaptively during the optimization process.

3. Adaptive-$\eta$ (Learning Rate Adaptation)

The authors further extend the bi-level framework to create a learning rate adaptation module. This allows the optimizer to dynamically adjust its step size ($\eta$), preventing the search from overshooting or becoming trapped in local minima. This represents the first instance of learning rate adaptation specifically tailored for the unique constraints of offline MBO.

Experimental Results

The BIB framework was evaluated across five diverse benchmark tasks, including DNA transcription factor binding (TFBind8 and TFBind10) and complex protein engineering tasks (avGFP, AAV, and E4B).

Performance Highlights

BIB achieved the highest performance in three out of the five tasks and secured the best overall ranking across all benchmarks compared to eleven baseline methods.

  • Protein Engineering (avGFP): On the task of maximizing the fluorescence of Green Fluorescent Protein (a sequence of 239 amino acids), BIB achieved a score of 1.060. This significantly outperformed standard gradient ascent (0.913) and the previous bidirectional state-of-the-art, BDI (0.873).
  • Robustness of Adaptive-$\eta$: The learning rate adaptation module provided consistent performance gains across all gradient-based methods tested, suggesting its potential as a general-purpose enhancement for MBO workflows.

Discussion and Insights

A key takeaway from the study is that the biophysical information distilled into LMs during pre-training is significantly more valuable for biological design than the theoretical properties of infinite-width kernels. The authors observed that the optimal balance between exploration and constraint varies by task: shorter DNA sequences often benefit from more aggressive search, whereas longer protein sequences require tighter constraints to mitigate OOD risks.

Furthermore, the success of the bi-level optimization strategy demonstrates that even "weak" supervision from a simple auxiliary model is sufficient to guide hyperparameter tuning effectively in the absence of a validation set.

Conclusion and Future Work

BIB represents a significant step forward in making offline model-based biological design more reliable and powerful. By integrating pre-trained LMs into a bidirectional learning framework with adaptive hyperparameter tuning, it effectively manages the OOD problem while exploiting deep biological features.

While the current evaluation relies on high-quality simulators (oracles), future work will focus on experimental wet-lab validation. Additionally, the authors suggest that the Adaptive-$\eta$ module could be applied to other scientific domains, such as material science or aircraft design, where offline MBO is increasingly utilized.

Summary updated

BibTeX
@inproceedings{chen2023bidirectional,
  author = {Can Chen and Yingxue Zhang and Xue Liu and Mark Coates},
  title = {{Bidirectional Learning for Offline Model-based Biological Sequence Design}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=CUORPu6abU},
}
Figure