Overview
Antibodies do not simply appear in their final, most effective form; they evolve within the body through a rapid, iterative process known as affinity maturation. During an immune response, B cells undergo intense somatic hypermutation and are subsequently selected based on their binding affinity to a target antigen.
Current artificial intelligence approaches to antibody engineering typically fall into two flawed paradigms:
- Deep Learning Models (e.g., ESM-2, ProGen2): These models treat sequences as independent data points. While excellent at capturing complex structural patterns, they ignore the temporal process of evolution. This often results in "germline bias"—memorizing common antibody motifs rather than understanding the trajectory of how they improve.
- Classical Phylogenetic Models: These explicitly model evolutionary dynamics but rely on the simplifying assumption that each site in a protein evolves independently. This ignores epistasis, the crucial phenomenon where mutations at different sites interact with and influence one another.
To bridge this gap, researchers have introduced CoSiNE (Conditionally Site-Independent Neural Evolution), a novel framework that merges classical evolutionary biology with modern deep learning to accurately simulate antibody affinity maturation.
Introducing CoSiNE
CoSiNE is a continuous-time Markov chain parameterized by a deep neural network. By utilizing an ESM-2 backbone, the model outputs site-specific evolutionary rate matrices. Crucially, while the evolution is calculated per site, the rates are conditioned on the entire sequence context. This allows CoSiNE to capture complex epistatic interactions without becoming computationally intractable.
Mathematically, CoSiNE provides a first-order approximation to the complex sequential point mutation process. The authors prove that it captures epistatic effects with an error bound that remains minimal over short evolutionary timescales (such as those seen in affinity maturation), only growing quadratically with branch length.
Disentangling Selection from Mutation
A major insight of this work is that raw sequence likelihood is a biased proxy for fitness because it inherently includes the biases of the biological mutation machinery. To predict true fitness, CoSiNE calculates a "Selection Score." It takes the log-likelihood of a transition under CoSiNE and subtracts the likelihood under a neutral mutation model (termed "Thrifty"). This effectively filters out the noise of context-dependent somatic hypermutation, isolating the signal of what the immune system is actively selecting for.
Guided Gillespie Sampling
To move beyond prediction and into antibody design, the authors adapted the standard Gillespie algorithm—used for simulating stochastic processes—by integrating "classifier guidance." This Guided Gillespie sampling scheme steers the simulated evolution toward specific optimization goals, such as higher binding affinity for a target antigen. By utilizing a Taylor-approximated gradient, this method achieves a massive 500x to 916x speedup compared to exact oracle guidance, making complex evolutionary simulations highly practical.
Datasets and Empirical Results
CoSiNE was trained on a massive dataset of approximately 2 million evolutionary parent-to-child transitions extracted from roughly 120,000 B-cell clonal trees across five public antibody databases. Training on transitions rather than static sequences forces the model to learn the rules of evolutionary change, acting as a powerful prior for zero-shot prediction.
The model's performance was rigorously evaluated:
- State-of-the-Art Variant Effect Prediction (VEP): Evaluated on the FLAb2 benchmark (which includes Deep Mutational Scanning datasets for expression and binding affinity), CoSiNE outperformed all baselines, including ESM-2 650M and ProGen2, on 6 out of 7 VEP tasks.
- Superior Antibody Optimization: In in silico design tasks targeting SARS-CoV-1 and SARS-CoV-2 (using the CoV-AbDab database), Guided Gillespie sampling produced variants with higher predicted binding gains than genetic algorithms or Product-of-Experts samplers. Furthermore, these optimized sequences maintained high "humanness" scores (OASis) and structural plausibility.
- Mapping Epistasis: By calculating a "categorical Jacobian," the researchers demonstrated that CoSiNE successfully learns how mutations in one region (e.g., the CDR3 loop) influence mutation rates in other regions, even across heavy and light chains.
Limitations and Future Directions
While CoSiNE represents a significant leap forward for antibody engineering, it has a few limitations. Because the model relies on a first-order approximation, its error grows quadratically with time. This makes it ideal for the short-range evolution of antibodies but potentially unsuitable for studying long-term evolution across species over millions of years.
Additionally, the current framework only models point mutations; it cannot yet handle insertions or deletions (indels). While indels are relatively rare in antibody maturation, they are common in broader protein evolution. Finally, generalizing this framework to all protein families—where evolutionary distances are larger and data is noisier—remains a significant but exciting challenge for future research.
Summary updated