Data Distillation for extrapolative protein design through exact preference optimization

Mostafa Karimi, Sharmi Banerjee, Tommi Jaakkola, Bella Dubrov, Shang Shang, Ron BensonICLR 2025

Introduction

In protein engineering, the ultimate goal is extrapolation: designing a novel protein—such as an antibody or an enzyme—that performs significantly better than any known natural example. While machine learning models excel at "interpolation" (predicting outcomes within the bounds of their training data), they historically struggle to extrapolate into unexplored, high-fitness sequence spaces.

Current state-of-the-art methods typically attempt to learn the fitness landscape using pairs of protein sequences (e.g., "Sequence A is more stable than Sequence B"). However, noisy training pairs often lack the informational density required to accurately map complex fitness gradients. Models trained exclusively on pairs frequently fail to capture the nuanced interactions of multiple mutations, leading them to propose sequences that are either mediocre or biologically non-functional.

By adapting alignment techniques originally developed for Large Language Models (LLMs), researchers have introduced a novel progressive search method. By training models on carefully curated "triplet" relationships, they significantly improve the ability to generate novel proteins with fitness levels far exceeding the training data.

Methodology: Moving from Pairs to Triplets

To overcome the limitations of pairwise learning, the authors propose a framework built on triplet relations. This approach teaches the model not just what is better, but how alternatives compare relative to a specific starting point.

Methodology pipeline showing the transition from pairwise training to triplet-based Exact Preference Optimization (EXO).

The approach follows a multi-stage pipeline:

  1. Local Editing: A "local editor" model is initially trained on pairs to learn basic sequence improvements.
  2. Triplet Creation: The system generates triplets consisting of a seed sequence, a desired (higher fitness) response, and an undesired (lower fitness) response. This establishes rules like "Don't go backward" (avoiding lower fitness) and "Don't get stuck" (avoiding the same fitness).
  3. Hard Negative Mining: The framework identifies "hard triplets"—instances where the current model incorrectly prefers the undesired sequence over the desired one. This is analogous to identifying "harmful" outputs in LLM safety training and provides the most informative training signal.
  4. Exact Preference Optimization (EXO): Instead of standard Reinforcement Learning from Human Feedback (RLHF), which can be unstable, the authors utilize EXO. This offline alignment method minimizes the reverse KL divergence between the model's predictions and the ideal preference distribution, effectively "distilling" the knowledge of a fitness scorer directly into the generative model's weights.

Experimental Setup and Key Insights

The model was evaluated on two benchmark protein datasets:

  • GFP (Green Fluorescent Protein): Optimizing the brightness and fluorescence of the protein.
  • AAV (Adeno-Associated Virus): Designing viral capsids for gene therapy applications.

The evaluation used "Medium" and "Hard" difficulty splits, defined by the mutational gap (the minimum number of mutations required to reach optimal fitness from the training set). A larger gap requires the model to "jump" further into unexplored sequence space.

A key insight from the study is that focusing on mistakes drives the most significant gains. Distilling specific corrections from "hard" triplets where the model was initially confused proved far more effective than training on a random mix of easy and hard examples. Furthermore, the paper demonstrates that the mathematical frameworks used to align LLMs (like EXO) are remarkably effective at aligning biological models toward high-performance proteins.

Key Results

The proposed EXO method significantly outperformed state-of-the-art baselines (such as ICE and LatProtRL) across almost all tasks, demonstrating remarkable robustness against "reward hacking" (where a model cheats a scorer without actually improving the underlying protein).

Distribution of fitness values across AAV and GFP datasets for medium and hard splits, showing EXO consistently reaching the extrapolation region.
  • Extrapolation Success: In the AAV "Medium" task, the percentage of generated sequences successfully reaching the extrapolation zone jumped from 4.59% (the best baseline) to an impressive 85.07%.
  • Fitness Gains: In the GFP "Medium" task, the average fitness of the top 100 generated sequences reached 4.04, compared to the baseline's 2.39.

Limitations and Future Directions

While highly effective, the approach has limitations. Generating triplet datasets—especially when using a "scorer distillation" approach that runs the model in inference to find mistakes—is computationally expensive, sometimes running over 200 times slower than simpler methods. Additionally, when sequences are very far apart in fitness, the model requires more sophisticated "prompts" or context to understand the distance without becoming confused.

Future work may explore even higher-order relations (like quadruplets or Plackett-Luce ranking models) to further refine the model's internal map of the protein fitness landscape.

Summary updated

BibTeX
@inproceedings{karimi2025data,
  author = {Mostafa Karimi and Sharmi Banerjee and Tommi Jaakkola and Bella Dubrov and Shang Shang and Ron Benson},
  title = {{Data Distillation for extrapolative protein design through exact preference optimization}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=ua5MHdsbck},
}
Figure