AbSpecAlign: Specificity Reward Alignment for Antigen-Conditioned Antibody Generation

Jingbo Zeng, Yang Xiao, Shenghua GaoNeurIPS 2026

TL;DR

Generative AI is getting remarkably good at designing antibodies from scratch, but there’s a catch: designing a molecule that binds to a target is useless if it also sticks to everything else in the body. AbSpecAlign solves this by borrowing a trick from Large Language Model alignment—Group Relative Policy Optimization (GRPO)—to fine-tune existing antibody generators using a custom "specificity reward." It’s a plug-and-play post-training framework that teaches diffusion models to craft antibodies that lock onto their intended target while ignoring decoys.

What Problem Does This Paper Address?

Antibodies are the Y-shaped bloodhounds of our immune system. At the tips of their "Y" arms lie six hyper-variable loops called Complementarity Determining Regions (CDRs), which determine exactly what disease-related molecule (antigen) the antibody will grab onto.

Traditionally, finding the right antibody meant months of animal immunization or brute-force lab screening. Recently, diffusion models have stepped in, jointly generating 3D structures and amino-acid sequences for CDRs conditioned on a target antigen. However, these generative models are mostly trained to mimic general structural distributions or maximize raw binding affinity (how tightly two things stick together). They largely ignore specificity—making sure the antibody binds only to the target antigen and not to structurally similar off-target bystanders. Without an explicit mechanism to penalize off-target binding, computationally designed antibodies risk being molecularly promiscuous.

Methods

AbSpecAlign doesn’t build a new antibody generator from scratch; instead, it acts as an RL-driven finishing school for existing pre-trained diffusion models (like DiffAb and AbX).

Overview of the AbSpecAlign architecture, showing the training loop, the BiMSS multimodal scorer, and GRPO post-training.

The framework unfolds in three stages:

  1. Geometric Pre-training: First, the authors pre-train an SE(3)-equivariant graph neural network (EGNN)—a 3D-aware network that understands geometry regardless of how a molecule is rotated or shifted in space—to predict atomic contacts between antibodies and antigens.
  2. The Specificity Judge (BiMSS): Next, they build the Bidirectional Multimodal Specificity Scorer (BiMSS). BiMSS takes standard sequence embeddings from protein language models (AntiBERTa for the antibody, ESM-2 for the antigen) and fuses them with the 3D embeddings from the EGNN using bidirectional cross-attention. Crucially, BiMSS is trained contrastively (via an InfoNCE loss): it sees real antibody–antigen pairs alongside mismatched "off-target" antigens, learning to output a scalar score between 0 and 1 that reflects true target specificity.
  3. GRPO Post-Training: Finally, BiMSS is frozen and used as a reward model. Because antibody generators output both continuous 3D coordinates and discrete amino acid choices, you can't just backpropagate through the samples. Instead, for a given antigen, the generator dreams up a small group of $K=5$ candidate antibodies. AbSpecAlign scores them with BiMSS, subtracts the native complex's baseline score, and normalizes the advantages across the group using GRPO. This updates the diffusion trajectory probabilities directly, nudging the model toward high-specificity designs while using a frozen reference policy and a tiny 3D coordinate regularizer to prevent "reward hacking" or structural collapse.

Datasets

  • SAbDab (Structural Antibody Database): Used for training and validation. The authors filtered out low-resolution structures (worse than 4Å) and non-protein antigens. Crucially, they split the data by clustering at the antigen level so the model couldn't cheat by memorizing seen targets during evaluation.
  • RAbD (RosettaAntibodyDesign): A standard benchmark suite used to test de novo CDR sequence-structure co-design protocols. No new datasets were introduced.

Key Insights and Ideas

  • Specificity > Generic Docking Scores: When the authors swapped out their learned BiMSS reward for HADDOCK (a classic, respected physics/ML docking score) inside the exact same RL loop, performance dropped across all metrics. Teaching the reward model to explicitly contrast cognate targets against non-cognate decoys provides a much sharper compass for generation than generic binding physics.
  • Group-Relative RL Shines on Molecules: GRPO—famous recently for training reasoning LLMs—outperformed both standard PPO and Supervised Fine-Tuning (SFT). Normalizing rewards across a mini-group of 5 candidates per antigen stabilizes optimization across vastly different, noisy protein interfaces without needing a separate critic network.
  • Light Touch on Structure: In hyperparameter ablations, cranking up the structural regularization weight ($\lambda_{\text{struct}}$) from $0.01$ to $1.0$ actually hurt performance. Keeping the geometric leash loose preserves basic physical sanity while letting the specificity reward do the heavy lifting.

Key Results

AbSpecAlign was bolted onto two diffusion backbones: DiffAb and the stronger AbX, and evaluated on Amino Acid Recovery (AAR, sequence match to ground truth) and RMSD (3D structural deviation in Ångströms—lower is better).

Table 1: Evaluation of de novo CDR design on the RAbD test set. The best results are shown in bold.
  • Consistent Plug-and-Play Gains: On DiffAb, AbSpecAlign improved AAR on 5 of 6 CDR loops and lowered RMSD across all 6. On the stronger AbX model, it improved AAR on all six CDRs (bumping the average from 71.08% to 72.36%) and reduced average RMSD from 1.09Å to 1.07Å.
  • Cracking CDR-H3: On CDR-H3—the most structurally chaotic and functionally critical loop—DiffAb's AAR jumped from 28.05% to 30.83% (RMSD dropping from 2.86Å to 2.67Å), while AbX improved from 45.18% to 46.09% AAR.
  • Interface Quality: In ablation tests (Table 2), adding BiMSS+GRPO boosted AAR from 43.09% (no post-training) to 46.09%, dropped RMSD from 2.88Å to 2.48Å, and improved overall interface docking quality (DockQ) from 0.429 to 0.461.

Limitations and Future Work

The authors are admirably candid about the biggest caveat in computational biology: everything here is in silico. Recovering native-like sequences and lowering RMSDs on benchmarks is encouraging, and contrastive scoring hints at lower off-target cross-reactivity, check-marking the right boxes computationally. However, pixels and coordinates aren't test tubes—prospective wet-lab validation (actually synthesizing these antibodies and measuring binding kinetics against target and off-target panels) remains essential future work.

Summary updated

Abstract

Designing antibodies that recognize a target antigen while avoiding non-cognate antigens remains a central challenge in computational antibody engineering. Existing antigen-conditioned generative models can jointly design antibody sequences and structures, but they are typically trained to match structural data distributions and lack an explicit alignment mechanism for antigen-specific preferences. We present AbSpecAlign, a plug-and-play specificity-reward alignment framework for antibody design. AbSpecAlign introduces a Bidirectional Multimodal Specificity Scorer (BiMSS), which integrates antibody and antigen sequence representations with SE(3)-equivariant structural embeddings to produce a contrastive reward over cognate versus non-cognate antigen pairs. We further introduce a GRPO-based post-training strategy that uses group-relative specificity rewards to align pre-trained antibody generators toward higher-scoring antigen-conditioned designs while maintaining structural regularity. To the best of our knowledge, AbSpecAlign is among the first frameworks to apply GRPO-style group-relative reward alignment to antigen-conditioned antibody sequence--structure co-design with an explicit off-target specificity reward. Experiments on RAbD CDR design benchmarks show that AbSpecAlign improves most sequence-recovery and structural-fidelity metrics when combined with diffusion-based antibody generators. Experiment results suggest that GRPO-based reward alignment with contrastive specificity signals provides an effective post-training mechanism for antigen-conditioned antibody generation, while prospective experimental validation remains necessary.
BibTeX
@inproceedings{zeng2026abspecalign,
  author = {Jingbo Zeng and Yang Xiao and Shenghua Gao},
  title = {{AbSpecAlign: Specificity Reward Alignment for Antigen-Conditioned Antibody Generation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=b4DxMfU8I8},
}
Figure