A Sitewise Model of Natural Selection on Individual Antibodies via a Transformer–Encoder

During affinity maturation, antibodies are selected for their ability to fold and to bind a target antigen between rounds of somatic hypermutation. Previous studies have identified patterns of selection in antibodies using B cell repertoire sequencing data. However, these studies are constrained by needing to group many sequences or sites to make aggregate predictions. In this paper, we develop a transformer-encoder selection model of maximum resolution: given a single antibody sequence, it predicts the strength of selection on each amino acid site. Specifically, the model predicts for each site whether evolution will be slower than expected relative to a model of the neutral mutation process (purifying selection) or faster than expected (diversifying selection). We show that the model does an excellent job of modeling the process of natural selection on held out data, and does not need to be enormous or trained on vast amounts of data to perform well. The patterns of purifying vs diversifying natural selection do not neatly partition into the complementarity-determining vs framework regions: for example, there are many sites in framework that experience strong diversifying selection. There is a weak correlation between selection factors and solvent accessibility. When considering evolutionary shifts down a tree of antibody evolution, affinity maturation generally shifts sites towards purifying natural selection, however this effect depends on the region, with the biggest shifts toward purifying selection happening in the third complementarity-determining region. We observe distinct evolution between gene families but a limited relationship between germline diversity and selection strength.

Authors

Institutions

Publication Details

Journal
Molecular Biology and Evolution
Published
2025-07-30
DOI
https://doi.org/10.1093/molbev/msaf186
Citations
6
Primary Topic
Monoclonal and Polyclonal Antibodies Research
Type
article
Field-Weighted Citation Impact
8.16

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

A Sitewise Model of Natural Selection on Individual Antibodies via a Transformer–Encoder

Tyler N. Starr, David Rich, Julia Fukuyama, Yun S. Song et al.
6 citations
Molecular Biology and Evolution
Monoclonal and Polyclonal Antibodies Research
8.16
article

A Sitewise Model of Natural Selection on Individual Antibodies via a Transformer–Encoder

Tyler N. Starr, David Rich, Julia Fukuyama, Yun S. Song, Hugh K. Haddox, Philip Bradley, Mackenzie M. Johnson, F. A. Matsen, Will Dumm, Kevin Sung
article en
6 citations

Abstract

During affinity maturation, antibodies are selected for their ability to fold and to bind a target antigen between rounds of somatic hypermutation. Previous studies have identified patterns of selection in antibodies using B cell repertoire sequencing data. However, these studies are constrained by needing to group many sequences or sites to make aggregate predictions. In this paper, we develop a transformer-encoder selection model of maximum resolution: given a single antibody sequence, it predicts the strength of selection on each amino acid site. Specifically, the model predicts for each site whether evolution will be slower than expected relative to a model of the neutral mutation process (purifying selection) or faster than expected (diversifying selection). We show that the model does an excellent job of modeling the process of natural selection on held out data, and does not need to be enormous or trained on vast amounts of data to perform well. The patterns of purifying vs diversifying natural selection do not neatly partition into the complementarity-determining vs framework regions: for example, there are many sites in framework that experience strong diversifying selection. There is a weak correlation between selection factors and solvent accessibility. When considering evolutionary shifts down a tree of antibody evolution, affinity maturation generally shifts sites towards purifying natural selection, however this effect depends on the region, with the biggest shifts toward purifying selection happening in the third complementarity-determining region. We observe distinct evolution between gene families but a limited relationship between germline diversity and selection strength.

Molecular Biology and EvolutionVol. 42(8)
Cape Town HVTN Immunology Laboratory / Hutchinson Centre Research Institute of South Africa (ZA), Howard Hughes Medical Institute (US), University of Washington (US), University of Utah (US), Fred Hutch Cancer Center (US), Indiana University Bloomington (US), Protein Research Foundation (JP), University of California, Berkeley (US)
Searle Scholars Program, National Institutes of Health
Life in Land
Openalex Percentile: Top 2%
Monoclonal and Polyclonal Antibodies Research
8.16
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.