Abstract
AffinityFlow is a novel generative framework designed to perform antibody affinity maturation by alternating between structural guidance and sequence mutations. By employing a "co-teaching" strategy to learn from noisy biophysical simulations, AffinityFlow successfully optimizes antibodies using only sequence data, outperforming existing protein language models and diffusion-based methods.
Introduction: The Challenge of Affinity Maturation
Antibodies are the workhorses of modern therapeutics, but tuning them to bind more tightly to a target—a process known as affinity maturation—remains a slow and expensive bottleneck.
In the laboratory, this involves iterative rounds of mutation and testing. In silico (computational) approaches face a distinct dilemma:
- Sequence-only models (such as protein LLMs) are fast but often "blind" to the 3D geometry that dictates binding.
- Structure-based models are more accurate but require high-resolution 3D structures of the antibody-antigen complex, which are rarely available for new drug candidates.
AffinityFlow tackles the sequence-only scenario, where only the amino acid strings are known. It leverages generative AI to "hallucinate" and optimize the underlying structures, which in turn guides the selection of better mutations.
Methods: Alternating Optimization
AffinityFlow builds upon AlphaFlow, a recent model that wraps AlphaFold within a flow-matching framework. While AlphaFold provides a static snapshot, AlphaFlow generates a diverse ensemble of possible structures.
The core of the AffinityFlow framework is an alternating optimization loop:
- Guided Structure Generation: The model fixes the antibody sequence and generates structures. A structure-based predictor acts as a compass, guiding the generative process toward 3D shapes that represent high-affinity binding.
- Sequence Mutation via Inverse Folding: Once a high-affinity structure is generated, the model uses ProteinMPNN (an inverse folding tool) to suggest amino acid mutations that best stabilize that specific shape.
- Post-Selection: A sequence-based predictor filters these mutations to select the best candidates for the next round.
The "Co-teaching" Innovation
A major hurdle in computational affinity maturation is the lack of labeled data (i.e., knowing exactly how well a specific sequence binds). To address this, the authors used Rosetta to simulate binding energies. However, Rosetta is "noisy," meaning its predictions do not always perfectly match reality.
To handle this noise, the researchers implemented co-teaching. They trained a sequence-based model and a structure-based model simultaneously. Each model identifies "clean" samples—where its prediction aligns with the Rosetta label—and uses those samples to teach the other model. This cross-validation prevents the models from overfitting to the errors inherent in the simulation.
Datasets
The models were trained and evaluated using several key datasets:
- SAbDab (Structural Antibody Database): The primary source for antibody-antigen pairs.
- Training Set: 120 labeled single-domain antibody (sdAb) pairs used for initial predictor training.
- Augmented Data: 4,158 docked complexes generated via GeoDock and labeled with Rosetta biophysical energies to fuel the co-teaching module.
- Benchmark: 60 unique sdAb-antigen pairs not seen during training, focusing on mutations in the Complementarity Determining Regions (CDRs).
Key Insights
- Structure as a Latent Variable: Even without a crystal structure, treating structure as a bridge between sequence and function is incredibly powerful. The model hallucinates a better structure to find a better sequence.
- Predictor Guidance over Re-training: Instead of undertaking the massive task of re-training AlphaFold or AlphaFlow, the authors use a small, efficient predictor to guide the sampling process. This is analogous to how classifier guidance allows a diffusion model to generate specific images without being trained from scratch.
- Denoising Biophysics: The co-teaching module demonstrates that perfect simulations are not required to train good models. By looking for consensus between sequence and structure views, the framework extracts strong signals from noisy biophysical data.
Results
The authors evaluated AffinityFlow using the Improvement Percentage (IMP), defined as the ratio of designed antibodies that bind better than the original wild-type.
- State-of-the-Art Performance: AffinityFlow achieved an IMP of 91.2% across all CDR regions, significantly outperforming protein LLMs like ESM (84.1%) and specialized antibody models like AbLang (82.9%).
- Antigen Specificity: The model produced the lowest "Similarity" scores, indicating it tailored mutations specifically to the target antigen rather than suggesting generic mutations.
- Ablation Success: Removing the AlphaFlow structural component caused performance to plummet from 93.3% to 63.3% in the CDR-H3 region, proving that structural guidance is the critical component of the framework.
Limitations and Future Work
- Computational Overhead: While pure LLM approaches take seconds, one iteration of AffinityFlow takes about 10 minutes. Though much faster than wet-lab experiments, this limits massive-scale screening.
- Backbone Focus: AlphaFlow currently models $C_\beta$ coordinates (the protein backbone). It does not yet account for side-chain atoms, which are critical for the precise lock-and-key fit of high-affinity binding.
- In Silico Validation: The current results are validated using simulation tools (Rosetta). The ultimate test will be verifying these hallucinated improvements in real-world laboratory experiments.
Summary updated