Full text
45,679 characters
· extracted from
preprint-html
· click to expand
A generative foundation model for antibody sequence understanding | bioRxiv /* */ /* */ <!-- <!-- /*! * yepnope1.5.4 * (c) WTFPL, GPLv2 */ (function(a,b,c){function d(a){return"[object Function]"==o.call(a)}function e(a){return"string"==typeof a}function f(){}function g(a){return!a||"loaded"==a||"complete"==a||"uninitialized"==a}function h(){var a=p.shift();q=1,a?a.t?m(function(){("c"==a.t?B.injectCss:B.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),h()):q=0}function i(a,c,d,e,f,i,j){function k(b){if(!o&&g(l.readyState)&&(u.r=o=1,!q&&h(),l.onload=l.onreadystatechange=null,b)){"img"!=a&&m(function(){t.removeChild(l)},50);for(var d in y[c])y[c].hasOwnProperty(d)&&y[c][d].onload()}}var j=j||B.errorTimeout,l=b.createElement(a),o=0,r=0,u={t:d,s:c,e:f,a:i,x:j};1===y[c]&&(r=1,y[c]=[]),"object"==a?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){k.call(this,r)},p.splice(e,0,u),"img"!=a&&(r||2===y[c]?(t.insertBefore(l,s?null:n),m(k,j)):y[c].push(l))}function j(a,b,c,d,f){return q=0,b=b||"j",e(a)?i("c"==b?v:u,a,b,this.i++,c,d,f):(p.splice(this.i++,0,a),1==p.length&&h()),this}function k(){var a=B;return a.loader={load:j,i:0},a}var l=b.documentElement,m=a.setTimeout,n=b.getElementsByTagName("script")[0],o={}.toString,p=[],q=0,r="MozAppearance"in l.style,s=r&&!!b.createRange().compareNode,t=s?l:n.parentNode,l=a.opera&&"[object Opera]"==o.call(a.opera),l=!!b.attachEvent&&!l,u=r?"object":l?"script":"img",v=l?"script":u,w=Array.isArray||function(a){return"[object Array]"==o.call(a)},x=[],y={},z={timeout:function(a,b){return b.length&&(a.timeout=b[0]),a}},A,B;B=function(a){function b(a){var a=a.split("!"),b=x.length,c=a.pop(),d=a.length,c={url:c,origUrl:c,prefixes:a},e,f,g;for(f=0;f<d;f++)g=a[f].split("="),(e=z[g.shift()])&&(c=e(c,g));for(f=0;f<b;f++)c=x[f](c);return c}function g(a,e,f,g,h){var i=b(a),j=i.autoCallback;i.url.split(".").pop().split("?").shift(),i.bypass||(e&&(e=d(e)?e:e[a]||e[g]||e[a.split("/").pop().split("?")[0]]),i.instead?i.instead(a,e,f,g,h):(y[i.url]?i.noexec=!0:y[i.url]=1,f.load(i.url,i.forceCSS||!i.forceJS&&"css"==i.url.split(".").pop().split("?").shift()?"c":c,i.noexec,i.attrs,i.timeout),(d(e)||d(j))&&f.load(function(){k(),e&&e(i.origUrl,h,g),j&&j(i.origUrl,h,g),y[i.url]=2})))}function h(a,b){function c(a,c){if(a){if(e(a))c||(j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}),g(a,j,b,0,h);else if(Object(a)===a)for(n in m=function(){var b=0,c;for(c in a)a.hasOwnProperty(c)&&b++;return b}(),a)a.hasOwnProperty(n)&&(!c&&!--m&&(d(j)?j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}:j[n]=function(a){return function(){var b=[].slice.call(arguments);a&&a.apply(this,b),l()}}(k[n])),g(a[n],j,b,n,h))}else!c&&l()}var h=!!a.test,i=a.load||a.both,j=a.callback||f,k=j,l=a.complete||f,m,n;c(h?a.yep:a.nope,!!i),i&&c(i)}var i,j,l=this.yepnope.loader;if(e(a))g(a,0,l,0);else if(w(a))for(i=0;i (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0];var j=d.createElement(s);var dl=l!='dataLayer'?'&l='+l:'';j.src='//www.googletagmanager.com/gtm.js?id='+i+dl;j.type='text/javascript';j.async=true;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-M677548'); Skip to main content Home About Submit ALERTS / RSS Search for this keyword Advanced Search New Results A generative foundation model for antibody sequence understanding View ORCID Profile Justin Barton , View ORCID Profile Aretas Gaspariunas , View ORCID Profile David A. Yadin , View ORCID Profile Jorge Dias , View ORCID Profile Francesca L. Nice , View ORCID Profile Danielle H. Minns , View ORCID Profile Olivia Snudden , View ORCID Profile Chelsea Povall , View ORCID Profile Sara Valle Tomas , Harry Dobson , View ORCID Profile James H. R. Farmery , View ORCID Profile Jinwoo Leem , View ORCID Profile Jacob D. Galson doi: https://doi.org/10.1101/2024.05.22.594943 Justin Barton 1 Alchemab Therapeutics Ltd, 1 Lion Works, Station Road East, Whittlesford, CB22 4WL Find this author on Google Scholar Find this author on PubMed Search for this author on this site ORCID record for Justin Barton Aretas Gaspariunas 1 Alchemab Therapeutics Ltd, 1 Lion Works, Station Road East, Whittlesford, CB22 4WL Find this author on Google Scholar Find this author on PubMed Search for this author on this site ORCID record for Aretas Gaspariunas David A. Yadin 1 Alchemab Therapeutics Ltd, 1 Lion Works, Station Road East, Whittlesford, CB22 4WL Find this author on Google Scholar Find this author on PubMed Search for this author on this site ORCID record for David A. Yadin Jorge Dias 1 Alchemab Therapeutics Ltd, 1 Lion Works, Station Road East, Whittlesford, CB22 4WL Find this author on Google Scholar Find this author on PubMed Search for this author on this site ORCID record for Jorge Dias Francesca L. Nice 1 Alchemab Therapeutics Ltd, 1 Lion Works, Station Road East, Whittlesford, CB22 4WL Find this author on Google Scholar Find this author on PubMed Search for this author on this site ORCID record for Francesca L. Nice Danielle H. Minns 1 Alchemab Therapeutics Ltd, 1 Lion Works, Station Road East, Whittlesford, CB22 4WL Find this author on Google Scholar Find this author on PubMed Search for this author on this site ORCID record for Danielle H. Minns Olivia Snudden 1 Alchemab Therapeutics Ltd, 1 Lion Works, Station Road East, Whittlesford, CB22 4WL Find this author on Google Scholar Find this author on PubMed Search for this author on this site ORCID record for Olivia Snudden Chelsea Povall 1 Alchemab Therapeutics Ltd, 1 Lion Works, Station Road East, Whittlesford, CB22 4WL Find this author on Google Scholar Find this author on PubMed Search for this author on this site ORCID record for Chelsea Povall Sara Valle Tomas 1 Alchemab Therapeutics Ltd, 1 Lion Works, Station Road East, Whittlesford, CB22 4WL Find this author on Google Scholar Find this author on PubMed Search for this author on this site ORCID record for Sara Valle Tomas Harry Dobson 1 Alchemab Therapeutics Ltd, 1 Lion Works, Station Road East, Whittlesford, CB22 4WL Find this author on Google Scholar Find this author on PubMed Search for this author on this site James H. R. Farmery 1 Alchemab Therapeutics Ltd, 1 Lion Works, Station Road East, Whittlesford, CB22 4WL Find this author on Google Scholar Find this author on PubMed Search for this author on this site ORCID record for James H. R. Farmery Jinwoo Leem 1 Alchemab Therapeutics Ltd, 1 Lion Works, Station Road East, Whittlesford, CB22 4WL Find this author on Google Scholar Find this author on PubMed Search for this author on this site ORCID record for Jinwoo Leem Jacob D. Galson 1 Alchemab Therapeutics Ltd, 1 Lion Works, Station Road East, Whittlesford, CB22 4WL Find this author on Google Scholar Find this author on PubMed Search for this author on this site ORCID record for Jacob D. Galson For correspondence: jake{at}alchemab.com Abstract Full Text Info/History Metrics Preview PDF Abstract Here we introduce FAbCon, a generative antibody-specific language model comprising 2.4 billion parameters. A commonly accepted wisdom in developing large language models is that increasing model scale will translate to higher performance on downstream tasks. Starting from a 144-million parameter setup, we show that progressively larger models achieve greater accuracy in predicting antigen binding and can also be used to design new antibodies with good predicted developability potential. FAbCon is available on huggingface.co/alchemab . 1. Introduction The human antibody repertoire represents an atypical and exceptionally diverse subset of protein sequences. Humans can theoretically express over 10 15 unique antibodies to cover the wide breadth of antigens they will encounter in their lifetime ( Briney et al., 2019 ). Deciphering the information encoded in the human antibody repertoire offers promise for better understanding of disease, improved diagnostics, and enabling therapeutic discovery ( Bashford-Rogers et al., 2019 ; Galson et al., 2020 ; Greiff et al., 2020 ; Leem et al., 2022 ). Large language models (LLMs) have emerged as a tool to process and learn patterns from huge datasets of antibody repertoires, leading to breakthroughs in antibody structure prediction, antibody function prediction, and generative antibody design ( Barton et al., 2024 ; Bachas et al., 2022 ; Burbach & Briney, 2024 ; Chen et al., 2024 ; Kenlay et al., 2024 ; Nijkamp et al., 2023 ; Ruffolo et al., 2023 ; Shuai et al., 2023 ). The typical paradigm for antibody sequence analysis via LLMs involves two steps. First, the LLM is pre-trained on a large dataset of antibody sequences by masked language modelling or causal language modelling (CLM). After pretraining, the model is specialised for individual tasks by finetuning, or the pre-trained model is immediately applied for predictions without further tuning – also known as zero-shot learning. Currently, there is no consensus on the optimal pre-training objectives, datasets, and design decisions for developing and evaluating antibody-specific LLMs ( Leem et al., 2022 ; Nijkamp et al., 2023 ; Bachas et al., 2022 ; Burbach & Briney, 2024 ; Ruffolo et al., 2021 ; Prihoda et al., 2022 ; Shanehsazzadeh et al., 2024 ; Olsen et al., 2022 ; Hie et al., 2024 ). An additional bottleneck for progress has been the scale of compute. In natural language processing applications, LLMs leverage billions of parameters to maximise performance ( Hoffmann et al., 2022 ). However, training antibodyspecific LLMs at such ambitious levels has been challenging due to the paucity of hardware. In addition, antibodyspecific LLMs have seen performance plateau, or even degrade, beyond 110 million parameters ( Bachas et al., 2022 ; Nijkamp et al., 2023 ). We introduce FAbCon, an antibody-specific LLM comprising 2.4 billion parameters. Based on the Falcon LLM from natural language processing ( Almazrouei et al., 2023 ), and akin to other generative protein LLMs such as ProGen2 and ProtGPT2 ( Nijkamp et al., 2023 ; Ferruz et al., 2022 ), FAbCon is pre-trained using CLM on unpaired and paired antibody sequences ( Figure 1A ; see Methods). After pretraining, FAbCon develops a rich representation of antibody sequences that can be leveraged for an extensive range of tasks; here, we focus on antigen binding prediction and antibody design. FAbCon-small (144 million parameters), FAbCon-medium (297 million parameters) and FAbConlarge (2.4 billion parameters) are available in our Hugging Face repository. Each variant can accept heavy-chain only, light-chain only, or paired chain inputs. Download figure Open in new tab Figure 1. FAbCon is a generative, antibody-specific LLM, capable of sequence understanding. A. FAbCon is pre-trained by causal language modelling (CLM). FAbCon learns to predict the next amino acid using only the preceding N-terminal residues. By default, FAbCon generates paired antibody sequences. B. FAbCon is a foundation model that can be fine-tuned for library generation or few-shot antibody-antigen binding prediction. After fine-tuning for antibody-antigen binding, the model can act as an ‘oracle’ to screen libraries generated in vivo, in vitro, or in silico by a generative FAbCon model. Screened variants can then supplement binding datasets to ‘close the loop’ for antibody engineering. C. Area under the precision recall (AUPR) score of LLMs on HER2 and SARS-CoV-2 binding prediction versus the log of the number of model parameters. For IgT5, only the encoder module is publicly available, and we plot the number of IgT5’s encoder parameters here. Antibody-specific LLMs are marked in pink. Error bars are standard deviations across five random seeds. Dotted line represents a line of best fit between the log of the number of parameters versus AUPR. D. HER2 and SARS-CoV-2 binding prediction AUPR as a function of training set sample size. Shaded areas represent standard deviations from five different seeds for fine-tuning. 2. Methods 2.1. Datasets FAbCon was pre-trained using CLM on an antibody-specific corpus, comprising both paired (i.e. heavy and light chains in one single sequence) and unpaired (i.e. heavy or light chain only) antibodies. Further details are described in Section A.1. Three antibody-antigen binding datasets were collated for fine-tuning LLMs on antigen binding prediction: antibodies binding HER2, antibodies binding SARS-CoV-2 peptide, and antibodies binding IL-6 ( Mason et al., 2021 ; Engelhart et al., 2022 ; Tsuruta et al., 2023 ). For each dataset, we split antibodies into disjoint train and test sets, with 80% of the data allocated for training, 10% for validation, and 10% for testing. Additional details of each antibody-antigen binding set are described in Section A.2. Sequence generation was benchmarked against paired antibody sequences from three separate datasets; this is further described in Section A.3. 2.2. FAbCon pre-training and fine-tuning FAbCon is a decoder-only transformer model based on the Falcon LLM ( Almazrouei et al., 2023 ). FAbCon was pretrained using the standard CLM objective. For all three antigens (HER2, SARS-CoV-2, IL-6), antibody-antigen binding prediction was framed as a binary classification task. Full details on pre-training and fine-tuning are described in Section A.4. 2.3. Sequence generation and computational developability estimation One thousand unique paired antibody sequences were sampled using FAbCon-large or ProGen2-OAS. For both models, sequences were generated using nucleus sampling, with a temperature of 1.0 and a top-p value of 0.95. Developability profiles were computationally measured using OASis and TAP ( Prihoda et al., 2022 ; Raybould et al., 2019a ). Further details on generation and the computational developability estimators are described in Sections A.7, A.8. 3. Results In developing antibody therapeutics, the primary feature of interest is an antibody’s binding to its cognate antigen. A model that can reliably predict antigen binding can be used as an ‘oracle’ to identify binders and enrich binding antibodies from B cell receptor (BCR) repertoire sequencing libraries, or from synthetic libraries. Following screening, data can then be fed back to ‘close the loop’ and enhance the oracle ( Figure 1B ). We fine-tuned our three FAbCon variants for binding prediction on three antigens: HER2, SARS-CoV-2 spike peptide, and IL-6 ( Mason et al., 2021 ; Engelhart et al., 2022 ; Tsuruta et al., 2023 ). In addition, we also fine-tuned five general protein LLMs and nine antibodyspecific LLMs ( Figure 1C , Tables B1 , B2 ) ( Barton et al., 2024 ; Lin et al., 2023 ; Ruffolo et al., 2021 ; Shuai et al., 2023 ; Jing et al., 2023 ; Burbach & Briney, 2024 ; Kenlay et al., 2024 ; Nijkamp et al., 2023 ; Olsen et al., 2022 ). For each fine-tuning run, we freeze the encoder or decoder blocks and only allow weight updates in the classification head to better distinguish the quality of the underlying sequence representations of each LLM. Overall, FAbCon-large has the strongest performance, as measured by the area under the precision recall curve (AUPR) score and area under the receiver operating curve scores ( Figure 1C , Tables B1 , B2 ). FAbCon-large has a mean AUPR of 0.883 across all three antigens; the closest competitor is ProGen2-OAS, with mean AUPR=0.847. We also randomly initialised and fine-tuned a FAbCon-large and a FAbCon-medium model without any pre-training, which we refer to as ‘random-large’ and ‘random-medium’. For all antigens, random-large and random-medium significantly underperformed pre-trained FAbCon models (mean AUPR=0.765, mean AUPR=0.719), reinforcing the value of pre-training. Three themes are corroborated across our antigen binding benchmarks. First, model scale indeed translates to stronger performance. Within each of the ESM2, ProGen2, and FAbCon model families, model scaling yields better returns ( Figure 1C , Tables B1 , B2 ). Second, when normalising for model scale, antibody-specific LLMs outperform general protein LLMs. For example, ProGen2-OAS and ProGen2-base have identical numbers of parameters, yet ProGen2-OAS outperforms ProGen2-base. Finally, FAbCon models outperform larger models, indicating opportunities for greater accuracy at smaller scale. We also measured the impact of the size of the training set by conducting ablation experiments, ranging from 0.1% to 100% of the HER2 and SARS-CoV-2 datasets ( Figure 1D , see Methods). With only 5% of the HER2 training data (912 examples), FAbCon-large has AUPR=0.775 ± 0.007, compared to AUPR=0.856 ± 0.001 for the full dataset, and AUPR=0.607 for the random-large model. At 0.1% of the data (19 examples), no model achieves AUPR above 0.7. We investigate the feasibility of zero-shot prediction by using sequence perplexity to predict affinity; unlike previous studies, we report perplexity to be a poor discriminator for binders ( Figure B1 ). Thus, LLMs can only become reliable antibody engineering oracles once a minimum volume of antigen binding data is available. An exciting potential of generative models such as FAbCon is the ability to design antibody sequences. Owing to its decoder architecture, FAbCon can generate variable length sequences or infill variable length spans. Provided FAbCon can generate sequences with desirable properties (e.g. low immunogenicity), FAbCon can be used as a library generator and a computational panning tool ( Figure 1B ). To test the validity of generative models for antibody design, we generated 1000 unique paired antibody sequences de novo using FAbCon-large. In addition, 1000 paired antibodies were synthesised via ProGen2-OAS using prompts (see Section A.7). We calculated the OASis score as a measure of humanness ( Prihoda et al., 2022 ) for generated antibodies, 715 therapeutic antibodies, as well as 1000 BCRs from a mouse, and 1000 BCRs from a healthy human donor. For each set, we also used TAP ( Raybould et al., 2019a ) to estimate developability profiles. The OASis scores of FAbCon-large generated antibodies resemble the distribution of OASis scores from a human BCR repertoire ( Figure 2A ). As expected, antibodies from ProGen2-OAS have lower OASis scores; this is likely due to ProGen2-OAS being pre-trained on BCR repertoires of multiple species. While therapeutic antibodies’ OASis scores are closer to those of ProGen2-OAS, it is worth noting that many antibodies in the clinic have murine origins and are humanised (e.g. pembrolizumab). Indeed, therapeutic antibodies with 80% sequence identity to human germline V genes (434 of 715 therapeutics) have higher OASis scores. In fact, FAbCon-large’s sequence perplexities correlate strongly with OASis scores (Pearson r=-0.938, Figure B2 ), indicating FAbCon can be used as a humanness oracle zero-shot. Download figure Open in new tab Figure 2. Computational developability assessment of generated antibody sequences. Boxes indicate the median, first and third quartiles; whiskers are 1.5x the inter-quartile range. A. OASis scores approximate antibody humanness. B. Distribution of two TAP metrics; shaded green areas indicate acceptable regions. Colour scheme and ordering are identical to A. The TAP profiles of FAbCon reside in TAP’s acceptable window ( Figures 2B , B3 ). Generated antibodies from FAbConlarge feature longer complementarity-determining region (CDR) loops and more hydrophobic patches, which are known characteristics of human BCRs ( Raybould et al., 2019a ). Across the three CDR loops in the heavy chain, FAbCon-large’s sequence length distributions most closely match human PBMCs ( Figure B4 ). 4. Conclusion Generative foundation models offer promise both as a tool to understand the information embedded within antibody sequences, and for designing new antibodies that can transform medicine. With increasing model scale and extensive evaluations, we demonstrate FAbCon’s suitability to facilitate antibody engineering; we release all three of our FAb-Con models under a modified Apache 2.0 license. We hope that FAbCon will inspire a more open sharing of data to continuously assess and improve LLMs for antibody sequence understanding and design. For future work, we envisage controlled generation to create better lead molecules. Contributions J.B. and J.L. conceived and designed the experiments. J.B. and J.L. performed the experiments. J.B., A.G. and J.L. processed the datasets for the study. J.H.R.F. and H.D. helped set up cloud and security infrastructure. D.A.Y., D.H.M., C.P., S.V.T. prepared the samples for single-cell sequencing of Alchemab’s proprietary data. D.A.Y. and S.V.T. performed the single-cell sequencing. J.D., F.N., O.S., S.V.T. prepared and sequenced the samples for bulk sequencing of Alchemab’s proprietary data. J.B., J.L., J.D.G. analysed the results. J.B., J.L., J.D.G. wrote the manuscript. All authors reviewed the manuscript. A. Methods A.1. Datasets A.1.1. P re - training datasets The Observed Antibody Space (OAS) database was downloaded on 23rd February 2023. Samples were pre-filtered in a similar procedure as previously discussed ( Shanehsazzadeh et al., 2024 ). For example, BCRs derived from pre-B-cell samples were not used. However, we retained all sequences regardless of count. In total, we used 1.47 billion unpaired sequences (i.e., heavy chain or light chain only). In addition, we supplemented this corpus with a set of proprietary BCR sequences from 376 individuals, bringing the total number of sequences to 1.54 billion. We then used Linclust (Steinegger & Sö ding, 2018) to cluster the dataset at 90% sequence identity across the VH or VL domains. After clustering, 777.8 million sequences were retained from OAS, while 43.4 million sequences were retained from proprietary data. In addition to the unpaired data, we also use heavy-light chain paired sequences for pre-training. We first combined 1.5 million publicly available paired sequences ( Jaffe et al., 2022 ), and an in-house dataset of 1.4 million paired sequences. Due to the paucity of paired data, we applied a 99% redundancy criterion for paired data. This led to a new total of 2.5 million sequences, of which 1.4 million are from the Jaffe et al. (2022) dataset, and 1.1 million are from our in-house data. The final dataset comprising of 823.7 million sequences (821.2 million unpaired, 2.5 million paired) was split into 95% (777 million unpaired sequences and 2.4 million paired sequences) and 5% (44.3 million unpaired sequences and 0.1 million paired sequences) for training and evaluating CLM, respectively. FAbCon-small and FAbCon-medium were pre-trained using a modified version of the corpus that is only comprised of publicly available data. A.2. Fine-tuning datasets A.2.1. HER2 B inding D ata We downloaded and filtered a dataset comprising 39,108 variants of trastuzumab that were screened for binding to the human epidermal growth factor receptor 2 (HER2) protein ( Mason et al., 2021 ). Briefly, the experiment used hybridomas expressing either complementarity determining region (CDR) H3 or CDRL3 variants, and antigen binding was confirmed via cell sorting. Antibodies that do not bind the antigen, i.e. negatives, were randomly under-sampled. The remaining antibodies were randomly split into disjoint train, test, and validation sets as done previously ( Mason et al., 2021 ); 18223, 2278, and 2278 sequences were used for train, test, and validation, respectively. A.2.2. SARS-COV-2 B inding D ata A dataset of 104,972 antibody interactions with a peptide in the HR2 region of the SARS-CoV-2 spike protein was used ( Engelhart et al., 2022 ). First, mean predicted log K D values were calculated across repeated observations for the same antibody sequence. Next, sequences with mean predicted log K D < 3 were designated binders, while sequences with mean predicted log K D ≥ 4 were designated non-binders. Sequences with mean predicted log K D ≥ 3 and log K D < 4 were designated ambiguous and discarded. The data were then randomly split into disjoint train, test, and validation sets of 41787, 5159, and 4644 sequences, respectively. A.2.3. IL-6 B inding data A dataset of 573,891 antigen-VHH pairs produced from an alpaca immunised with single-mutant variants of human interleukin-6 (IL-6) was used ( Tsuruta et al., 2023 ). First, alpaca antibodies with higher similarity to human antibody germline sequences tended to bind IL-6. Thus, we removed any alpaca antibody with less than 75% sequence identity to a human V gene. From the remaining 232,084 sequences, we then retained sequences that only bound one variant of the IL-6 molecule or did not bind any of the IL-6 variants, leading to 211,920 sequences. We then de-duplicated the antibody sequences; where an antibody was found to bind one variant of IL-6 but confirmed to not bind any others, we assumed it was a non-binder to reduce ambiguities. This led to a set of 14,467 sequences. Non-binder sequences were randomly under-sampled, leading to a total of 1636 sequences. The data were then randomly split into disjoint train, test, and validation sets of 1310, 163, and 163 sequences, respectively. We stratified the antibodies so that antibodies across the different sets have a minimum Levenshtein distance of 1 across the junction region. A.2.4 A blation experiments For HER2 and SARS-CoV-2, each dataset was subsampled at different rates to test for the effects of training set size on model prediction performance. Subsamples ranging from 0.1% to 100% of the data were taken without replacement. At each sub-sampling rate, we trained models with five different random seeds to estimate variance. A.3 Control datasets for evaluating generative models To assess the quality of generative models, we compiled three datasets as controls: a single-cell mouse BCR repertoire dataset from splenocytes ( 10x Genomics, 2020b ), a single-cell human BCR repertoire dataset from PBMCs ( 10x Genomics, 2020a ), and therapeutic antibodies from Thera-SAbDab ( Raybould et al., 2019b ). The processed single-cell repertoire datasets were directly used from the 10x Genomics repository. A set of one thousand BCRs were randomly sampled from each set. Thera-SAbDab was downloaded on March 27th, 2023. Only mono-specific antibodies and those that are mAbs or Fabs were used. Therapeutic antibodies were then de-duplicated by their V domain sequence. In total, 715 antibodies were used. A.4. FAbCon pre-training and fine-tuning FAbCon is based on the Falcon LLM ( Almazrouei et al., 2023 ). FAbCon-large was pre-trained using 48 NVIDIA A100s (80GB) from NVIDIA’s DGX SuperCloud (Cambridge-1 environment), while FAbCon-small and FAbCon-medium were pre-trained using 48 NVIDIA A100’s (80GB) from Amazon Web Services SageMaker. Full hyperparameters are described in Table B3 . Fine-tuning was done using NVIDIA H100s (80GB). For each LLM, including those without pre-training (e.g. randomlarge), the encoder or decoder weights were frozen. Predictions were then made on the corresponding test set of each antigen. Training was repeated using five different random seeds in order to estimate standard deviations. Each FAbCon model has a maximum context window of 256, with a total of 26 tokens in its vocabulary: the 20 amino acids, ,,, , along with H? and L. to prefix heavy and light chains, respectively. During pre-training, both unpaired and paired antibody sequences can form one mini-batch. FAbCon variants were pre-trained using the CLM objective, where the model is tasked with autoregressively predicting each residue by attending only to the previous residues in the sequence. The model parameters were updated via gradient-based optimisation in order to minimise the cross-entropy loss as given by where N is the batch size, T is the sequence length, V is the vocabulary size, and L t,i is the label for the residue at position t , and the i th word in the vocabulary. A.5. Fine-tuning Fine-tuning was done using NVIDIA H100s (80GB). Each LLM was fine-tuned on an antigen training set using a linear layer with a binary cross-entropy loss. Either the [CLS] token for encoder-based (e.g. ESM2) or the token for decoder-based (e.g. ProGen2) models were used as input for classification. For IgT5, we used mean pooling as previously described ( Kenlay et al., 2024 ). For each LLM, including those without pre-training (e.g. random-large), the encoder or decoder weights were frozen. Predictions were then made on the corresponding test set of each antigen. Training was repeated using five different random seeds in order to estimate standard deviations. Hyperparameters for each antigen-specific task are listed in Table B4 . A.6. Perplexity calculations Perplexity scores were calculated as defined by where R is an antibody sequence, t is the length of R, r 1 , … r t are the residues of R , and θ are the parameters of the model. A.7. Sequence generation One thousand unique paired antibody sequences were sampled using FAbCon-large or ProGen2-OAS. For both models, sequences were generated using nucleus sampling ( Holtzman et al., 2019 ), with a temperature 1.0, and a top-p value of 0.95. For FAbCon-large, we used only the heavy chain prefix token as the input. Sequences were sampled using a maximum sequence length of 256, which always synthesised paired antibody sequences. For ProGen2-OAS, heavy chains and light chains were independently generated using three different prompts. One thousand heavy chains were prompted with EVQ, while 500 light chains were prompted with QSA (lambda), and 500 light chains were prompted with DIQ (kappa), in-line with previous work ( Shuai et al., 2023 ). Since ProGen2-OAS does not produce paired sequences, generated heavy and light chains were randomly paired. A.8. Computational developability estimation Developability profiles of BCRs from repertoires, 715 therapeutic antibodies, and generated antibodies were computationally measured using OASis and TAP ( Prihoda et al., 2022 ; Raybould et al., 2019a ). Briefly, OASis represents the fraction of overlapping 9-mers in an antibody sequence that is detected in at least 50% of human repertoires in the OAS database. Thus, an OASis score of 1.0 implies every possible 9-mer in the antibody sequence is found in at least 50% of humans. OASis scores were measured using BioPhi v1.0.9. TAP encompasses five physicochemical and structural criteria: total CDR length, CDR vicinity patches of surface hydrophobicity (PSH), CDR vicinity patches of positive charge (PPC), CDR vicinity patches of negative charge (PNC), and variable fragment charge symmetry parameter (FvCSP). TAP profiles were measured using the online version of TAP. Each TAP metric has an acceptable range, which was last updated on July 1st, 2023 ( Raybould et al., 2024 ). TAP failed to model 2 mouse antibodies, 479 antibodies from ProGen2-OAS, and 2 therapeutic antibodies (elipovimab and zinlirvimab). B. Results Download figure Open in new tab Figure B1. FAbCon-large perplexity scores for binding (orange) and non-binding (blue) antibodies against HER2, SARS-CoV-2, and IL-6. Significance levels above brackets indicate the results of a Mann-Whitney-Wilcoxon two-sided test with Bonferroni correction between the distribution of binders and non-binders for each antigen. Note that while there is a systematic difference in perplexity between binders and non-binders, the support of each distribution is nearly identical; classifying binding status by perplexity alone is intractable. ****: p ≤ 1e-4, ns: 0.05 < p ≤ 1. Download figure Open in new tab Figure B2. Perplexity is a zero-shot predictor of humanness. Perplexity is calculated for paired antibody sequences. Download figure Open in new tab Figure B3. Distributions of TAP metrics. Shaded green areas indicate acceptable values for the different TAP metrics. Download figure Open in new tab Figure B4. Distributions of heavy chain CDR amino acid sequence lengths from different antibody sources. View this table: View inline View popup Download powerpoint Table B1. LLM performance on antigen-specific binding prediction measured by area under the precision-recall curve (AUPR) score. Each LLM is fine-tuned on the training set using a standard sequence classification head with the encoder or decoder weights frozen. Training is repeated for five different random seeds to estimate standard deviations. Antigen training dataset sizes are indicated with N . View this table: View inline View popup Download powerpoint Table B2. LLM performance on antigen-specific binding prediction measured by area under the receiver operating curve (AUROC) score. LLM runs are described in Table B1 . View this table: View inline View popup Download powerpoint Table B3. Hyperparameter configuration for pre-training FAbCon LLMs. View this table: View inline View popup Download powerpoint Table B4. Hyperparameter configuration for fine-tuning LLMs. Acknowledgements The authors would like to thank Bruno Trentini, Hassan Sirelkhatim, Christian Dallago, Maxine Kennedy, Lee Carter, and the wider NVIDIA team for their support. The authors would also like to thank Will Shaw and Camillo Anania from AWS for their support. Footnotes Proceedings of the ICML 2024 Workshop on Accessible and Efficient Foundation Models for Biological Discovery, Vienna, Austria. Figure 1, supplementary tables B1 and B2 updated References ↵ 10x Genomics . Human PBMC from a Healthy Donor, 10k cells (v2) . https://tinyurl.com/y2e9zmcu , 2020a . ↵ 10x Genomics . Splenocytes from C57BL/6 mice, 1k cells (v2) . https://tinyurl.com/mr23zpv6 , 2020b . ↵ Almazrouei , E. , Alobeidli , H. , Alshamsi , A. , Cappelli , A. , Cojocaru , R. , Debbah , M. , Étienne Goffinet , Hesslow , D. , Launay , J. , Malartic , Q. , Mazzotta , D. , Noune , B. , Pannier , B. , and Penedo , G. The Falcon Series of Open Language Models . arXiv , 2023 . ↵ Bachas , S. , Rakocevic , G. , Spencer , D. , Sastry , A. V. , Haile , R. , Sutton , J. M. , Kasun , G. , Stachyra , A. , Gutierrez , J. M. , Yassine , E. , Medjo , B. , Blay , V. , Kohnert , C. , Stanton , J. T. , Brown , A. , Tijanic , N. , McCloskey , C. , Viazzo , R. , Consbruck , R. , Carter , H. , Levine , S. , Abdulhaqq , S. , Shaul , J. , Ventura , A. B. , Olson , R. S. , Yapici , E. , Meier , J. , McClain , S. , Weinstock , M. , Hannum , G. , Schwartz , A. , Gander , M. , and Spreafico , R. Antibody optimization enabled by artificial intelligence predictions of binding affinity and naturalness . bioRxiv , 2022 . doi: 10.1101/2022.08.16.504181 . OpenUrl Abstract / FREE Full Text ↵ Barton , J. , Galson , J. D. , and Leem , J. Enhancing antibody language models with structural information . bioRxiv , 2024 . doi: 10.1101/2023.12.12.569610 . OpenUrl Abstract / FREE Full Text ↵ Bashford-Rogers , R. J. M. , Bergamaschi , L. , McKinney , E. F. , Pombal , D. C. , Mescia , F. , Lee , J. C. , Thomas , D. C. , Flint , S. M. , Kellam , P. , Jayne , D. R. W. , Lyons , P. A. , and Smith , K. G. C. Analysis of the B cell receptor repertoire in six immune-mediated diseases . Nature , 574 ( 7776 ): 122 – 126 , 2019 . OpenUrl CrossRef PubMed ↵ Briney , B. , Inderbitzin , A. , Joyce , C. , and Burton , D. R. Commonality despite exceptional diversity in the baseline human antibody repertoire . Nature , 566 ( 7744 ): 393 – 397 , 2019 . OpenUrl CrossRef PubMed ↵ Burbach , S. M. and Briney , B. Improving antibody language models with native pairing . Patterns , 5 ( 5 ), 2024 . ↵ Chen , B. , Cheng , X. , Li , P. , ao Geng , Y. , Gong , J. , Li , S. , Bei , Z. , Tan , X. , Wang , B. , Zeng , X. , Liu , C. , Zeng , A. , Dong , Y. , Tang , J. , and Song , L. xtrimopglm: Unified 100b-scale pre-trained transformer for deciphering the language of protein . arXiv , 2024 . ↵ Engelhart , E. , Emerson , R. , Shing , L. , Lennartz , C. , Guion , D. , Kelley , M. , Lin , C. , Lopez , R. , Younger , D. , and Walsh , M. E. A dataset comprised of binding interactions for 104,972 antibodies against a SARS-CoV-2 peptide . Scientific Data , 9 ( 1 ): 653 , 2022 . OpenUrl CrossRef PubMed ↵ Ferruz , N. , Schmidt , S. , and Höcker , B. ProtGPT2 is a deep unsupervised language model for protein design . Nature Communications , 13 ( 1 ): 4348 , 2022 . OpenUrl CrossRef PubMed ↵ Galson , J. D. , Schaetzle , S. , Bashford-Rogers , R. , Raybould , M. , Kovaltsuk , A. , Kilpatrick , G. , Minter , R. , Finch , D. , Dias , J. , James , L. , Thomas , G. , Lee , W. , Betley , J. , Cavlan , O. , Leech , A. , Deane , C. , Seoane , J. , Caldas , C. , Pennington , D. , Pfeffer , P. , and Osbourn , J. Deep Sequencing of B Cell Receptor Repertoires From COVID-19 Patients Reveals Strong Convergent Immune Signatures . Front Immunol , 11 : 605170 , 2020 . OpenUrl CrossRef PubMed ↵ Greiff , V. , Yaari , G. , and Cowell , L. G. Mining adaptive immune receptor repertoires for biological and clinical information using machine learning . Current Opinion in Systems Biology , 24 : 109 – 119 , 2020 . OpenUrl CrossRef ↵ Hie , B. L. , Shanker , V. R. , Xu , D. , Bruun , T. U. J. , Weidenbacher , P. A. , Tang , S. , Wu , W. , Pak , J. E. , and Kim , P. S. Efficient evolution of human antibodies from general protein language models . Nature Biotechnology , 42 ( 2 ): 275 – 283 , 2024 . OpenUrl CrossRef PubMed ↵ Hoffmann , J. , Borgeaud , S. , Mensch , A. , Buchatskaya , E. , Cai , T. , Rutherford , E. , de Las Casas , D. , Hendricks , L. A. , Welbl , J. , Clark , A. , Hennigan , T. , Noland , E. , Millican , K. , van den Driessche , G. , Damoc , B. , Guy , A. , Osindero , S. , Simonyan , K. , Elsen , E. , Rae , J. W. , Vinyals , O. , and Sifre , L. Training Compute-Optimal Large Language Models . arXiv , 2022 . ↵ Holtzman , A. , Buys , J. , Forbes , M. , and Choi , Y. The curious case of neural text degeneration . arXiv, abs/1904.09751 , 2019 . ↵ Jaffe , D. B. , Shahi , P. , Adams , B. A. , Chrisman , A. M. , Finnegan , P. M. , Raman , N. , Royall , A. E. , Tsai , F. , Vollbrecht , T. , Reyes , D. S. , Hepler , N. L. , and McDonnell , W. J. Functional antibodies exhibit light chain coherence . Nature , 611 ( 7935 ): 352 – 357 , 2022 . doi: 10.1038/s41586-022-05371-z . OpenUrl CrossRef PubMed ↵ Jing , H. , Gao , Z. , Xu , S. , Shen , T. , Peng , Z. , He , S. , You , T. , Ye , S. , Lin , W. , and Sun , S. Accurate Prediction of Antibody Function and Structure Using Bio-Inspired Antibody Language Model . arXiv , 2023 . ↵ Kenlay , H. , Dreyer , F. A. , Kovaltsuk , A. , Miketa , D. , Pires , D. , and Deane , C. M. Large scale paired antibody language models . arXiv , 2024 . ↵ Leem , J. , Mitchell , L. S. , Farmery , J. H. , Barton , J. , and Galson , J. D. Deciphering the language of antibodies using self-supervised learning . Patterns , 3 ( 7 ): 100513 , 2022 . OpenUrl CrossRef PubMed ↵ Lin , Z. , Akin , H. , Rao , R. , Hie , B. , Zhu , Z. , Lu , W. , Smetanin , N. , Verkuil , R. , Kabeli , O. , Shmueli , Y. , Costa , A. d. S. , Fazel-Zarandi , M. , Sercu , T. , Candido , S. , and Rives , A. Evolutionary-scale prediction of atomic-level protein structure with a language model . Science , 379 ( 6637 ): 1123 – 1130 , 2023 . doi: 10.1126/science.ade2574 . OpenUrl CrossRef PubMed ↵ Mason , D. M. , Friedensohn , S. , Weber , C. R. , Jordi , C. , Wagner , B. , Meng , S. M. , Ehling , R. A. , Bonati , L. , Dahinden , J. , Gainza , P. , Correia , B. E. , and Reddy , S. T. Optimization of therapeutic antibodies by predicting antigen specificity from antibody sequence via deep learning . Nature Biomedical Engineering , 5 ( 6 ): 600 – 612 , 2021 . doi: 10.1038/s41551-021-00699-9 . OpenUrl CrossRef ↵ Nijkamp , E. , Ruffolo , J. A. , Weinstein , E. N. , Naik , N. , and Madani , A. ProGen2: Exploring the boundaries of protein language models . Cell Systems , 14 ( 11 ): 968 – 978.e3, 2023 . OpenUrl CrossRef PubMed ↵ Olsen , T. H. , Moal , I. H. , and Deane , C. M. AbLang: an antibody language model for completing antibody sequences . Bioinformatics Advances , 2 ( 1 ): vbac046 , 2022 . OpenUrl ↵ Prihoda , D. , Maamary , J. , Waight , A. , Juan , V. , Fayadat-Dilman , L. , Svozil , D. , and Bitton , D. A. BioPhi: A platform for antibody design, humanization, and humanness evaluation based on natural antibody repertoires and deep learning . mAbs , 14 ( 1 ): 2020203 , 2022 . doi: 10.1080/19420862.2021.2020203 . OpenUrl CrossRef PubMed ↵ Raybould , M. I. , Marks , C. , Krawczyk , K. , Taddese , B. , Nowak , J. , Lewis , A. P. , Bujotzek , A. , Shi , J. , and Deane , C. M. Five computational developability guidelines for therapeutic antibody profiling . Proceedings of the National Academy of Sciences , 116 ( 10 ): 4025 – 4030 , 2019a . OpenUrl Abstract / FREE Full Text ↵ Raybould , M. I. J. , Marks , C. , Lewis , A. P. , Shi , J. , Bujotzek , A. , Taddese , B. , and Deane , C. M. Thera-SAbDab: the Therapeutic Structural Antibody Database . Nucleic Acids Research , 48 ( D1 ): D383 – D388 , 2019b . OpenUrl CrossRef ↵ Raybould , M. I. J. , Turnbull , O. M. , Suter , A. , Guloglu , B. , and Deane , C. M. Contextualising the developability risk of antibodies with lambda light chains using enhanced therapeutic antibody profiling . Communications Biology , 7 ( 1 ): 62 , 2024 . OpenUrl CrossRef PubMed ↵ Ruffolo , J. A. , Gray , J. J. , and Sulam , J. Deciphering antibody affinity maturation with language models and weakly supervised learning . arXiv , 2021 . ↵ Ruffolo , J. A. , Chu , L.-S. , Mahajan , S. P. , and Gray , J. J. Fast, accurate antibody structure prediction from deep learning on massive set of natural antibodies . Nature Communications , 14 ( 1 ): 2389 , 2023 . OpenUrl CrossRef PubMed ↵ Shanehsazzadeh , A. , McPartlon , M. , Kasun , G. , Steiger , A. K. , Sutton , J. M. , Yassine , E. , McCloskey , C. , Haile , R. , Shuai , R. , Alverio , J. , Rakocevic , G. , Levine , S. , Cejovic , J. , Gutierrez , J. M. , Morehead , A. , Dubrovskyi , O. , Chung , C. , Luton , B. K. , Diaz , N. , Kohnert , C. , Consbruck , R. , Carter , H. , LaCombe , C. , Bist , I. , Vilaychack , P. , Anderson , Z. , Xiu , L. , Bringas , P. , Alarcon , K. , Knight , B. , Radach , M. , Bateman , K. , Kopec-Belliveau , G. , Chapman , D. , Bennett , J. , Ventura , A. B. , Canales , G. M. , Gowda , M. , Jackson , K. A. , Caguiat , R. , Brown , A. , da Silva , D. G. , Guo , Z. , Abdulhaqq , S. , Klug , L. R. , Gander , M. , Yapici , E. , Meier , J. , and Bachas , S. Unlocking de novo antibody design with generative artificial intelligence . bioRxiv , 2024 . doi: 10.1101/2023.01.08.523187 . OpenUrl Abstract / FREE Full Text ↵ Shuai , R. W. , Ruffolo , J. A. , and Gray , J. J. IgLM: Infilling language modeling for antibody sequence design . Cell Systems , 14 ( 11 ): 979 – 989 .e4, 2023 . OpenUrl CrossRef PubMed Steinegger , M. and Söding , J. Clustering huge protein sequence sets in linear time . Nature Communications , 9 ( 1 ): 2542 , 2018 . OpenUrl CrossRef PubMed ↵ Tsuruta , H. , Yamazaki , H. , Maeda , R. , Tamura , R. , Wei , J. N. , Mariet , Z. , Phloyphisut , P. , Shimokawa , H. , Ledsam , J. R. , Colwell , L. , and Imura , A. Avida-hil6: A largescale vhh dataset produced from an immunized alpaca for predicting antigen-antibody interactions . arXiv , 2023 . View the discussion thread. Back to top Previous Next Posted November 14, 2024. Download PDF Email Thank you for your interest in spreading the word about bioRxiv. NOTE: Your email address is requested solely to identify you as the sender of this article. Your Email * Your Name * Send To * Enter multiple addresses on separate lines or separate them with commas. You are going to email the following A generative foundation model for antibody sequence understanding Message Subject (Your Name) has forwarded a page to you from bioRxiv Message Body (Your Name) thought you would like to see this page from the bioRxiv website. Your Personal Message CAPTCHA This question is for testing whether or not you are a human visitor and to prevent automated spam submissions. Share A generative foundation model for antibody sequence understanding Justin Barton , Aretas Gaspariunas , David A. Yadin , Jorge Dias , Francesca L. Nice , Danielle H. Minns , Olivia Snudden , Chelsea Povall , Sara Valle Tomas , Harry Dobson , James H. R. Farmery , Jinwoo Leem , Jacob D. Galson bioRxiv 2024.05.22.594943; doi: https://doi.org/10.1101/2024.05.22.594943 Share This Article: Copy Citation Tools A generative foundation model for antibody sequence understanding Justin Barton , Aretas Gaspariunas , David A. Yadin , Jorge Dias , Francesca L. Nice , Danielle H. Minns , Olivia Snudden , Chelsea Povall , Sara Valle Tomas , Harry Dobson , James H. R. Farmery , Jinwoo Leem , Jacob D. Galson bioRxiv 2024.05.22.594943; doi: https://doi.org/10.1101/2024.05.22.594943 Citation Manager Formats BibTeX Bookends EasyBib EndNote (tagged) EndNote 8 (xml) Medlars Mendeley Papers RefWorks Tagged Ref Manager RIS Zotero Tweet Widget Facebook Like Google Plus One Subject Area Bioinformatics Subject Areas All Articles Animal Behavior and Cognition (7644) Biochemistry (17725) Bioengineering (13915) Bioinformatics (42031) Biophysics (21486) Cancer Biology (18635) Cell Biology (25548) Clinical Trials (138) Developmental Biology (13397) Ecology (19937) Epidemiology (2067) Evolutionary Biology (24361) Genetics (15619) Genomics (22538) Immunology (17763) Microbiology (40468) Molecular Biology (17206) Neuroscience (88733) Paleontology (667) Pathology (2842) Pharmacology and Toxicology (4834) Physiology (7657) Plant Biology (15172) Scientific Communication and Education (2046) Synthetic Biology (4304) Systems Biology (9831) Zoology (2272)
Text is read by the "Ask this paper" AI Q&A widget below.
Extraction quality varies by source — PMC NXML preserves structure
cleanly, OA-HTML may include some navigation residue, and OA-PDF can
have broken hyphenation. The publisher copy
(via DOI)
is the canonical version.