Antibody Optimization With a Learned Somatic Hypermutation Prior
Learn the edit habit of B-cell lineages first, then anchor binding optimization to that prior, and the model stops trading biology for a high score; the authors turn this into checkable tables on Tang and GCReplay.
On this page
Say you hold one antibody and want it to grip its target tighter; most people would push the binding score up, but with 5,000 candidates on the table, why do changes a body could never make keep slipping through? Suppose you are the one on a drug team who owes a wet-lab list by Friday: one sequence pulled from an immunized animal, a program that scores how tightly it sticks, and a week to pick. The usual advice is to copy the top ten scores and send them. That is where it breaks: a score tells you how tight the grip is, not whether a real B cell could walk there one edit at a time, and pushing straight on the score makes the model bet on the same few high-value edits or hide in scaffold stretches that rarely break anything, so the list looks clean and the cells may never build it. This paper swaps the order: first learn how the body edits antibodies, then talk about binding inside that habit. You leave knowing which two datasets it used, which tables carry the numbers, and where the claim stops holding.
Why a binding score alone returns changes a body cannot make
Start with a scene you can picture. A drug team holds one antibody, wants it to grip a chosen target, has a program that scores each single edit for how tightly it sticks, and owes a list for the lab by the end of the week; that decision repeats every week [1]. Swap the scorer or the data batch and the same pipeline returns a different set of edits, yet the bill gets settled by folding and expression inside a cell, which has not happened yet. Most people check candidates by reading one column top to bottom: high score, call it tight and safe. That is wrong.
The trouble is not the score; it is the half the score leaves out. A score says how tight the grip is, not whether a real immune system could walk there one edit at a time. The authors run score-only optimization on its own, and the model either keeps betting on a few edits with very high payoffs or retreats into scaffold regions, the supporting stretches of the antibody that never touch the target and rarely break anything; both moves push the training objective up, and neither learns a diverse maturation process [1]. The list looks clean. The cells may never build it.
The anchor is concrete [1]. The second dataset, GCReplay, comes from 25 mice immunized with CGG, 119 germinal centers, sampled at day 15 and day 20, and every edit carries a binding change measured in the lab; 71.8% of the edits help, against a 50% null, which tells you real selection already pushes hard [1]. A germinal center is the training ground where B cells keep editing and getting culled. Score first. Then provenance. Two things, not one.
- A score says tight or loose.
- Provenance says reachable or not.
- Two things.
- Do not mix them.
This is not a paper worry [1]. The authors report that a policy trained on the raw binding reward keeps only 16.3 distinct edit identities among the top 10 candidates, while the full method keeps 23.5 at the same cutoff; the mean reward barely moves, 1.970 against 1.974, yet the diversity gap is wide [1]. The score rose. The path narrowed. That is the wrong direction.
Two stages: learn the edit habit, then tune binding
Split the paper and you get two halves [1]. The first learns how the body edits. The authors pull parent-child pairs from B-cell lineage trees: one parent sequence, one changed position, one replacement amino acid, and that triple is one training case, a PCP; inside germinal centers, B cells change letters of the antibody gene through somatic hypermutation and keep the clones that grip tightest, and that natural loop is the habit to learn [1]. A Transformer reads the whole heavy-chain variable region, and two heads guess which position will change and which amino acid it becomes; positions sit on the Aho numbering scheme, a shared 149-slot frame so antibodies of different lengths line up [1]. First where. Then what.
That half eats the Tang dataset: 21 human donors, 505,915 parent-child pairs, 43,692 lineage trees, 438,302 trajectories, 2,024,413 single-amino-acid edit steps, split by donor 70/15/15 into 293,227 training, 71,436 validation, and 73,639 test trajectories, with no donor crossing two splits [1]. CDRs, the loops that actually touch the target, take 45.4% of all edits despite covering a minority of positions; 84.2% of replacements need just one nucleotide change [1]. Batch size is 256. The numbers are large. They are still only a habit, not binding.
The second half finally talks about binding [1]. The habit pretrained on Tang gets retrained on parent-child pairs from GCReplay, a step called domain adaptation: human and mouse antibodies use their gene segments differently, and without this fix the model dumps its probability onto the terminal stretch tied to the mouse J gene [1]. The repaired habit is the adapted mutation prior. The authors start a policy from it, tune binding with REINFORCE, an algorithm that shifts the policy by the reward accumulated along a logged trajectory, and keep the policy on a leash with a KL penalty, a do-not-stray term measured against a frozen copy of the prior [1].
The leash alone is not enough [1]. Raw rewards are badly skewed, so a few huge payoffs hijack the gradient; the authors add a reward-tax meta-gradient, where one network smooths the measured binding signal while preserving its ordering, another charges a tax on sequences that recur or are easy to reach under the prior, and the difference is the signal that actually updates the policy; one decides which outcomes are worth something, the other stops the same outcome being farmed again and again [1]. Appendix Table 10 fixes the tax log-score floor at -4.0, the KL coefficient of the full model at 0.1, and the Stage 2 batch size at 64 [1]. Two stages, one leash, one tax. Do not reorder them.
The second dataset is just as specific [1]. GCReplay records in vivo maturation from 25 mice, 119 germinal centers, day 15 and day 20, all sequences on one IGHV1-2 background with a fixed 112-amino-acid heavy chain, and each edit carries a binding change from deep mutational scanning, the experiment that scores every single-point edit one by one [1]. Split root to leaf, it gives 1,445 training, 1,046 validation, and 997 test trajectories; those 1,445 hold 12,048 action steps and expand into 75,022 training items, and 98% of replacements are one nucleotide away [1].
- Stage one learns where to edit.
- Stage two learns how to grip tighter.
- Domain adaptation sits between them.
- Skip nothing.
Numbers you can check: baselines, metrics, scores
Methods are cheap; checkable numbers are not [1]. The first table compares Stage 1 edit prediction on the Tang test set against four baselines, S5F, DASM in two versions, Thrifty, and DeepSHM, using three metrics: pos@1 is the share of cases where the true changed position ranks first, aa@1 is the share where the replacement amino acid is guessed right at that true position, and joint is the share where both land together, all in percent and averaged over three data splits [1]. Batch size 256. Read the table, then argue.
| Model on Tang test | pos@1 (%) | aa@1 (%) | joint (%) |
|---|---|---|---|
| S5F [1] | 2.433 | 26.130 | 0.637 |
| Thrifty [1] | 4.257 | 32.777 | 1.395 |
| DASM selection-only [1] | 1.070 | 18.043 | 0.194 |
| DASM mutation by selection [1] | 5.307 | 40.561 | 2.153 |
| DeepSHM [1] | 5.020 | 38.850 | 1.949 |
| iGC Stage 1 [1] | 11.929 | 40.777 | 4.864 |
The position column is the loud one [1]. iGC reaches pos@1 of 11.929%, while the strongest baseline, DASM mutation by selection, sits at 5.307%; the paper calls that more than double [1]. Joint is 4.864% against 2.153% for the next best, again more than twice [1]. Yet aa@1 is almost flat, 40.777% against 40.561% [1]. The gain sits in where, not in what. A Transformer reading the full sequence catches targeting habits that short-motif models miss, which is the same story as the scaling appendix where position accuracy keeps rising with data while substitution accuracy saturates early [1]. The numbers are small. The direction is clear.
The second table asks a different question [1]. Stage 2 averages equally over six edit budgets, k from 2 to 7, generates 100 candidates at each budget, ranks them by cumulative binding reward, then keeps the top 100, 30, 20, or 10; checkpoints are picked by mean reward times joint@1 times distinct-edit count over 600 validation rollouts [1]. Three quantities matter: DMS is the mean reward, #Dist is the number of distinct edit identities, and Prod multiplies them, so it measures whether a method scores well without collapsing onto a narrow edit repertoire [1].
- Top 100: iGC gives DMS 1.010, #Dist 149.4, Prod 150.9, the highest product in the table [1].
- Top 30: 1.663, 58.2, 96.8, again first [1].
- Top 10: 1.974, 23.5, 46.4, still first; at Top 20 the 74.7 ranks second, just under 75.52 for the variant without the entropy term [1].
- RL on raw reward: Top 10 gives DMS 1.970 but #Dist only 16.3 and Prod 32.1, and it has the lowest #Dist at every cutoff [1].
- Two external baselines, SHMReplay and CoSiNE, post Prod 132.4 and 3.7 at Top 100, because they rank edits differently [1].
Two more checks survive [1]. Appendix Table 3 asks about biology: real changed positions fall in WRC hotspots, the short DNA motifs somatic hypermutation prefers, at 26.9%, random background sits at 2.0%, and iGC predicted positions reach 57.0%, with a Pearson correlation of 0.474 to the S5F mutability model [1]. Appendix Table 4 asks about memorizing: hold out whole lineage trees, generate 5,000 variants per budget, and match positive-reward sequences seen only in that unseen set; at k=2 iGC recovers 54 of 169 (32.0%), at k=3 41 of 375 (10.9%), at k=4 15 of 255 (5.9%), so 110 of 799 across the three budgets [1]. Numbers speak. Adjectives do not.
- pos@1 reads position.
- aa@1 reads substitution.
- Prod reads collapse.
- WRC reads biology.
Three checks before you trust it
Turn the paper into action and you get three steps [1]. Do not swap the model yet; swap the ruler first.
- Step one, separate where from what: Table 1 gives iGC pos@1 11.929% against DASM mutation by selection 5.307%, while aa@1 is 40.777% against 40.561%, so do not let one aggregate accuracy erase a doubling on position [1].
- Step two, log diversity alongside reward: at Top 10, iGC gives #Dist 23.5 and Prod 46.4, while RL on raw reward gives 16.3 and 32.1, so use the product instead of admiring the mean 1.974 [1].
- Step three, check biology and domain adaptation: WRC is 57.0% in Table 3, and Appendix Table 7 drops FR4 share from 26.6% with pretraining alone to 1.2% after adaptation, near the 1.4% empirical rate, so never skip that step across species [1].
- Price the overhead too: Appendix G clocks one meta-gradient step at 0.171 s against 0.121 s for plain REINFORCE, 24 s against 17 s over 140 steps, a 1.4 times cost [1].
Finish those and you can at least answer why this list [1]. One twist: in Appendix Table 7, P1 with no Stage 1 reports a higher proposed edit reward, +0.512 against +0.455, yet its FR4 artifact reaches 7.4% and joint only 0.124, below the 0.162 of the full pipeline [1]. The higher-scoring version is not the safer one. That intuition fails here.
Where the claim stops holding, and my call
Pull back [1]. The authors state the limit plainly: their evaluation leans on training rewards derived from deep mutational scanning, not on direct experimental measurement of the candidates the model generates; that sentence closes the conclusion [1]. Beyond it, the assay scores only single-point mutants, so a child carrying several edits is never evaluated directly, and a trajectory return just adds up the measured single-step changes; the work stays on the heavy-chain variable region VH and leaves light chains out; training runs fully offline, never touching a live experiment, and Appendix H says these computed candidates are not validated therapeutics and still need lab characterization, safety assessment, and regulatory review [1].
Several cases fall outside it [1]. GCReplay uses one mouse IGHV1-2 background while Tang mixes many human V genes, so a new antigen or a new species means retraining the prior; the domain-gap appendix says exactly that [1]. In Appendix Table 3 the two-base WA motif reaches only 1.0% against 19.4% random background and 24.9% at real positions, and the authors call WA too short and too noisy, so this method doesn't cover it [1]. Appendix B also admits joint accuracy is an imperfect proxy: it measures resemblance to real edit habits and says nothing direct about binding gain [1]. When the target changes, the claim doesn't apply [1].
One line to screenshot: a high score does not mean a body can build it; the prior governs where to edit, not the final report card [1]. Move to an untested antigen, to combinations of several edits, or to designs that include the light chain, and this claim breaks down, so stop quoting 57.0% as a guarantee for every target [1].
