Abstract
The versatile binding properties of antibodies have made them an extremely important class of biotherapeutics. However, therapeutic antibody development is a complex, expensive and time-consuming task, with the final antibody needing to not only have strong and specific binding, but also be minimally impacted by any developability issues. The success of transformer-based language models in protein sequence space and the availability of vast amounts of antibody sequences, has led to the development of many antibody-specific language models to help guide antibody discovery and design. Antibody diversity primarily arises from V(D)J recombination, mutations within the CDRs, and/or from a small number of mutations away from the germline outside the CDRs. Consequently, a significant portion of the variable domain of all natural antibody sequences remains germline. This affects the pre-training of antibody-specific language models, where this facet of the sequence data introduces a prevailing bias towards germline residues. This poses a challenge, as mutations away from the germline are often vital for generating specific and potent binding to a target, meaning that language models need be able to suggest key mutations away from germline. In this study, we explore the implications of the germline bias, examining its impact on both general-protein and antibody-specific language models. We develop and train a series of new antibody-specific language models optimised for predicting non-germline residues. We then compare our final model, AbLang-2, with current models and show how it suggests a diverse set of valid mutations with high cumulative probability. AbLang-2 is trained on both unpaired and paired data, and is freely available.
Introduction: The Germline Bias Challenge
Antibodies are the "Swiss Army knives" of the immune system, capable of binding almost any target. Their diversity stems from two primary stages: initial genetic shuffling (V(D)J recombination) and subsequent "fine-tuning" through somatic hypermutation. The inherited genetic templates for these sequences are known as germline sequences.
A significant hurdle in antibody design is that most natural antibodies in the human body remain very close to their germline origins. When large language models (LMs) are trained on massive databases like the Observed Antibody Space (OAS), they learn this "germline bias" too effectively. As shown in the figure above, while naive B-cells are almost entirely germline, therapeutic antibodies often require a higher density of non-germline (NGL) mutations to achieve potency. Current models become excellent at predicting the "factory settings" of an antibody but struggle to suggest the rare, NGL mutations responsible for specific binding, making them too conservative for aggressive antibody optimization.
Methods and Model Architecture
To address this, researchers developed AbLang-2, a transformer-based model specifically designed to overcome germline bias. The development involved several key innovations:
- Architecture Scaling: The team scaled from a 6-layer ESM-2 base to a 12-layer transformer model.
- Focal Loss: Unlike standard cross-entropy loss, focal loss "down-weights" easy-to-predict residues (common germline ones) and forces the model to focus on the harder-to-predict NGL residues.
- Paired Training: AbLang-2 was trained on a curated subset of 1.26 million paired heavy (VH) and light (VL) chain sequences, allowing it to learn critical structural dependencies between the two chains.
- Segment Masking: By masking 3-5 residues at a time rather than single residues, the model was forced to better understand local sequence context.
Key Insights: Visualizing the Bias
The study confirmed that existing antibody-specific models like Sapiens or AntiBERTy are heavily biased. Even when a sequence is highly mutated, these models "hallucinate" the germline template back onto the sequence, predicting the germline residue approximately 85-95% of the time.
Standard metrics like overall perplexity often mask this failure because models perform so well on the easy 90% of the sequence that is germline. However, their perplexity on NGL residues was often found to be worse than random guessing. The introduction of focal loss was the primary driver in correcting this, effectively training the model to prioritize mutation prediction over germline retention.
Results and Performance
AbLang-2 represents a significant leap in antibody modeling:
- NGL Perplexity Improvement: The model reduced perplexity for non-germline residues from ~25-30 (in previous models) to ~10-12.
- Valid Suggestions: In tests on antibody clonotypes, AbLang-2 assigned a high cumulative probability (~15-20%) to known valid NGL mutations, whereas previous models remained below 2%.
- Germline Stability: Crucially, the model maintained near-perfect performance on germline residues (perplexity ~1.1), ensuring it did not lose the ability to model the framework of the antibody.
Conclusion and Future Directions
While AbLang-2 is a major step forward, the "where to mutate" problem remains more difficult than the "what to mutate to" problem. Predicting mutations from a completely reverted germline sequence without prior knowledge of mutation sites is still a challenge. Future work will likely involve integrating 3D structural coordinates directly into the training process to further refine the physical viability of suggested mutations in the binding pocket.
Summary updated