TL;DR
Machine learning–guided antibody design relies on iterative cycles of proposal, surrogate model screening, and wet-lab validation—a setup that inherently induces severe distribution shifts between rounds. To address this, the authors introduce Antibody DomainBed, the first large-scale out-of-distribution (OOD) benchmark for therapeutic proteins. Their findings demonstrate that while domain-invariant algorithms successfully align feature distributions, foundation models and weight-space ensembling provide the true performance gains on unseen domains.
What Problem Does This Paper Address?
In "active" antibody design pipelines, computational models iteratively propose mutated sequences, surrogate machine learning models score candidate binding affinities, and promising candidates undergo experimental wet-lab validation. With each cycle, scientists update their generative models, modify experimental protocols, or target new antigens.
This workflow creates severe feedback covariate shifts and concept drift. Standard Empirical Risk Minimization (ERM) surrogate classifiers frequently latch onto spurious, round-specific artifacts (e.g., generator-specific biases, assay batch noise) and collapse to near-random performance in subsequent cycles. While Domain Generalization (DG) methods have been benchmarked for images and small molecules, no standardized OOD benchmark existed for large molecules (proteins and antibodies), whose therapeutic function heavily depends on complex 3D structures and biophysical constraints.
Methods
The authors adapted the widely used DomainBed framework to accept biological sequences and structures:
- Model Architectures: Evaluated three distinct representations:
- SeqCNN: 1D convolutions over AHo-aligned heavy and light antibody chains.
- Finetuned ESM2: An 8M-parameter protein language model, adapted to handle multi-chain antibody–antigen complexes using poly-glycine linkers and positional embedding index jumps.
- GearNet: A geometric structure-based graph neural network pretrained on AlphaFold2 structures.
- DG Approaches: Compared standard ERM against invariant representation algorithms (CORAL), invariant prediction methods (IRM), gradient-matching methods (Fish), and risk variance penalization (VREx).
- Ensembling: Evaluated deep ensembles and weight-space averaging strategies, specifically Simple Moving Average (SMA) and model soups (denoted with
-ENS). - Model Selection: Implemented leave-one-environment-out training-domain validation to emulate realistic deployment.
Datasets
The benchmark compiles data from SAbDab and Graphinity, splitting them into 5 distinct environments to emulate iterative design cycles:
- Environments 0–3: Generated designs targeting HIV-1 and SARS-CoV-2 sampled using the Walk Jump Sampler (WJS) at increasing noise levels ($\sigma \in \{0.5, 1.0, 1.5, 2.0\}$), capturing varying sequence edit distances from seed antibodies. Labeled using pyRosetta-computed binding free energy changes ($\Delta\Delta G$).
- Environment 4: Zero-shot target generalization to HER2, using single-point CDR3 mutations labeled with FoldX.
- Environment 5: Real-world validation consisting of 226 HER2 antibody candidates with experimentally measured dissociation constants ($K_D$) via surface plasmon resonance (SPR).
Key Insights and Ideas
- Invariant representations do not imply better performance: Domain-invariant objectives (IRM, CORAL) significantly reduced the Maximum Mean Discrepancy (MMD) across environments, successfully creating uniform latent spaces. However, this feature alignment did not consistently translate into superior predictive accuracy over standard ERM.
- Ensembling in weight space is the most reliable tool: Weight averaging (SMA-ENS, ERM-ENS) boosted accuracy across nearly every model backbone, exhibiting robust generalization even when validation distributions were misaligned with the test domain.
- Structure-aware pretraining dominates: GearNet substantially outperformed both sequence CNNs and ESM2 language models, demonstrating that explicit 3D geometric inductive biases are crucial for binding prediction under domain shift.
- Physics alignment: Saliency visualizations revealed that robust models (IRM, ERM-SMA) placed high gradient attention on biologically vital interaction zones (such as heavy framework 3b and CDR-H3), while vanilla ERM displayed muted sensitivity in these regions.
Key Results
- Synthetic Benchmark (Envs 0–3): GearNet with ensembling (
ERM-ENS) attained the top overall average accuracy of 78.3% (vs. 75.0% for vanilla GearNet ERM and 47.7% random baseline). ESM2 models peaked at 68.0% (ERM-ENS/CORAL-ENS vs. 65.1% ERM), while SeqCNN peaked at 66.8% (IRM-ENS vs. 65.1% ERM). - Experimental Validation (Env 5): When evaluated on actual laboratory SPR measurements, models trained on pyRosetta $\Delta\Delta G$ proxies beat both a naive random baseline (70.0%) and an affinity classifier trained on wet-lab data from unrelated targets (64.0%).
CORAL-ENSachieved the best training-domain validation accuracy at 88.08% with 89.80% recall. - Model Scale: Scaling ESM from 8M to 35M parameters yielded no significant accuracy improvement, suggesting that architecture and inductive bias matter more than raw parameter count in this regime.
Limitations and Future Work
- Extreme Target Shifts Remain Unsolved: In Environment 4 (unseen HER2 target with FoldX scoring), all DG algorithms struggled to surpass ~50% accuracy, showing that zero-shot transfer across completely new antigens remains an open challenge.
- Computational Proxies: Rosetta and FoldX $\Delta\Delta G$ scores are noisy approximations of true binding affinity, necessitating the filtering out of ambiguous labels ($|\Delta\Delta G| \le 0.1 \text{ kcal/mol}$).
- Future Directions: Developing strategies to systematically construct diverse training environments that maximize OOD generalization, and discovering truly invariant, mechanistic features that enable zero-shot prediction on arbitrary novel antigens.
Summary updated