NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Antibody DomainBed: Out-of-Distribution Generalization in Therapeutic Protein Design

Natasa Tagasovska, Ji Won Park, Matthieu Kirchmeyer, Nathan C. Frey, Andrew Martin Watkins, Aya Abdelsalam Ismail, Arian Rokkum Jamasb, Edith Lee, Tyler Bryson, Stephen Ra, Kyunghyun Cho

Abstract

Machine learning (ML) has demonstrated significant promise in accelerating drug design. Active ML-guided optimization of therapeutic molecules typically relies on a surrogate model predicting the target property of interest. The model predictions are used to determine which designs to evaluate in the lab, and the model is updated on the new measurements to inform the next cycle of decisions. A key challenge is that the experimental feedback from each cycle inspires changes in the candidate proposal or experimental protocol for the next cycle, which lead to distribution shifts. To promote robustness to these shifts, we must account for them explicitly in the model training. We apply domain generalization (DG) methods to classify the stability of interactions between an antibody and antigen across five domains defined by design cycles. Our results suggest that foundational models and ensembling improve predictive performance on out-of-distribution domains. We publicly release our codebase extending the DG benchmark "DomainBed," and the associated dataset of antibody sequences and structures emulating distribution shifts across design cycles.

Introduction: The Challenge of Lab-in-the-Loop Design

Therapeutic protein design is increasingly driven by "lab-in-the-loop" or active learning processes. In these cycles, researchers propose antibody designs, evaluate them through wet-lab experiments, and use the resulting data to retrain surrogate models that guide the next round of proposals. While powerful, this iterative approach introduces a fundamental machine learning challenge: distribution shift.

3D representation of an antibody-antigen interaction, highlighting the structural complexity of the binding interface.

Each design cycle often involves different generative models, new target antigens, or modified experimental protocols. Consequently, a model trained on data from early rounds may fail when applied to later rounds. This failure often stems from the model latching onto "spurious correlations"—non-causal patterns like the specific "fingerprint" of a generative algorithm—rather than the invariant physical laws governing protein-protein interactions. To address this, we introduce Antibody DomainBed, a benchmark designed to evaluate Domain Generalization (DG) algorithms in the context of therapeutic protein design.

The Antibody DomainBed Benchmark

The benchmark emulates five distinct design "environments" (Env 0-4), derived from 179 antibody-antigen structures in the Structural Antibody Database (SAbDab). To simulate the iterative design process, we used "Walk Jump Sampling" (WJS) with varying noise levels to generate thousands of synthetic antibody candidates.

The iterative lab-in-the-loop antibody design process across five distinct cycles (environments), showing the progression from seed antibodies to ML-guided selection and wet-lab measurement.

Because physical lab testing is resource-intensive, we utilized physics-based simulations (pyRosetta and FoldX) to calculate $\Delta\Delta G$ (the change in binding free energy). This serves as a high-fidelity proxy for binding success against targets such as HIV1, SARS-CoV-2, and HER2.

Methods and Model Architectures

We evaluated three primary model classes against various DG strategies:

  1. Sequence-based (SeqCNN): A standard convolutional neural network operating on protein sequences.
  2. Protein Language Models (ESM2): A foundational model pretrained on millions of diverse protein sequences.
  3. Structure-based (GearNet): A graph-based model that incorporates 3D atomic coordinates.

These architectures were tested using DG strategies categorized into:

  • DG by Invariance: Algorithms like Invariant Risk Minimization (IRM) and CORAL, which attempt to force the model to learn features that remain consistent across all training domains.
  • DG by Ensembling: Techniques such as Simple Moving Average (SMA) and functional ensembling, which combine multiple models to mitigate the noise introduced by distribution shifts.

Key Insights and Results

Our experiments revealed several critical findings regarding model robustness in biological domains:

  • The "Cheating" Problem: In a metadata-only experiment, we trained a model using only the generative model ID rather than the antibody sequence. This model achieved nearly 60% accuracy, confirming that standard models often succeed by identifying the "style" of a specific design round rather than the underlying biology.
  • Superiority of Foundational and Structural Models: GearNet emerged as the top performer, reaching an average accuracy of 78.3% when combined with ensembling. ESM2 also showed strong performance at 68.0%. Pretraining on vast biological datasets appears to provide a "common sense" that helps models resist spurious correlations.
  • Ensembling as a Robust Defense: Simple Moving Average (SMA) was the most consistent DG strategy, being the only method to consistently outperform standard Empirical Risk Minimization (ERM) across all tested domains.
  • Biological Relevance: Saliency map visualizations indicated that robust models (like SMA and IRM) focus more on the Complementarity-Determining Regions (CDRs)—the specific loops that physically contact the antigen. In contrast, standard models often ignored these critical areas in favor of less relevant sequence patterns.

Conclusion and Future Directions

While foundational models and ensembling provide a defense against distribution shifts within known cycles, zero-shot generalization remains a significant hurdle. Performance dropped significantly (to approximately 50-55%) when models were tested on entirely new antigens like HER2.

Future work must address the computational cost of structure-based benchmarking and strive for "antigen-agnostic" prediction. Achieving true generalization across entirely unseen biological targets remains the "holy grail" of therapeutic protein design, and Antibody DomainBed provides the necessary framework to track our progress toward this goal.

Summary updated

BibTeX
@misc{tagasovska2024antibody,
  author = {Natasa Tagasovska and Ji Won Park and Matthieu Kirchmeyer and Nathan C. Frey and Andrew Martin Watkins and Aya Abdelsalam Ismail and Arian Rokkum Jamasb and Edith Lee and Tyler Bryson and Stephen Ra and Kyunghyun Cho},
  title = {{Antibody DomainBed: Out-of-Distribution Generalization in Therapeutic Protein Design}},
  year = {2024},
  eprint = {2407.21028},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2407.21028},
}
Figure