Reprogramming Pretrained Language Models for Antibody Sequence Infilling

Igor Melnyk, Vijil Chenthamarakshan, Pin-Yu Chen, Payel Das, Amit Dhurandhar, Inkit Padhi, Devleena Das

TL;DR

Researchers have successfully "reprogrammed" a frozen English language model (BERT) to design new antibody sequences. Their model, ReprogBert, achieves a two-fold increase in sequence diversity over existing baselines while maintaining structural integrity, offering a highly data-efficient way to engineer therapeutic antibodies for targets like SARS-CoV-2.

What Problem Does This Paper Address?

Antibodies are the workhorses of modern immunotherapy, used to treat everything from cancer to viral infections. The "business end" of an antibody is the Complementarity-Determining Region (CDR)—a set of hypervariable loops that dictate exactly what the antibody binds to. Designing these loops, especially the highly complex CDR-H3 loop, is a major challenge in protein engineering.

While deep learning has shown promise, it faces a "data drought": there are relatively few known antibody sequence-structure pairs compared to the massive datasets used to train models like GPT. When researchers try to train models from scratch or fine-tune existing ones on this limited data, the models often become "lazy," generating repetitive sequences that lack the diversity needed to find new, effective binding modes.

Methods

The authors employ a technique called Model Reprogramming (MR). Instead of training a new model or fine-tuning a protein-specific one, they take a pre-trained English BERT model and keep its weights entirely frozen.

To bridge the gap between English words and amino acids, they introduce two small, learnable linear projection matrices:

  1. $\theta$ (Input Projection): Maps amino acid tokens into the English token space.
  2. $\gamma$ (Output Projection): Maps the model's English outputs back into amino acid tokens.
Overview of the ReprogBert architecture showing the frozen English Encoder and the learnable projection matrices.

The task is framed as "sequence infilling," similar to the masked language modeling used to train BERT. The model is given an antibody sequence with the CDR regions masked out and must predict the missing amino acids based on the surrounding "template" sequence. Because the core model is frozen, it retains the broad linguistic patterns learned from English (which, surprisingly, share statistical similarities with protein "grammar") while the projection layers learn the specific vocabulary of biology.

Datasets

The study utilized several key benchmarks:

  • SAbDab (Structural Antibody Database): A curated dataset of antibody sequences and their 3D structures.
  • RabD (Rosetta Antibody Design): A benchmark specifically for antigen-specific CDR design.
  • CoV-AbDab (Coronavirus Antibody Database): A collection of antibodies known to bind to coronaviruses, used to evaluate the model's ability to generate neutralizing candidates for SARS-CoV-2.

Key Insights and Ideas

  • Frozen Knowledge is Power: By keeping the English BERT frozen, the authors prevent the model from overfitting to the small antibody datasets. This allows the model to maintain a high degree of "creativity" or diversity in its outputs.
  • Biological Emergence: Even though the model was trained on English text, the learned amino acid embeddings ($\theta E$) naturally clustered together based on biological properties like hydrophobicity, charge, and size. The model "discovered" biology through the lens of language.
  • Diversity vs. Accuracy: Traditional fine-tuning (like the authors' ProtBert baseline) often achieves higher "recovery" (matching the exact ground-truth sequence). However, ReprogBert excels at generating diverse sequences that are still structurally valid, which is often more useful for discovering entirely new drugs.

Key Results

  • Superior Diversity: ReprogBert achieved a two-fold increase in sequence diversity over baselines like RefineGNN and fine-tuned BERT models.
  • Structural Integrity: Despite the high diversity, the generated sequences maintained high structural consistency. When folded using AlphaFold or IgFold, the predicted structures closely matched the ground truth (measured by TM-score and RMSD).
  • Enhanced Neutralization: In the SARS-CoV-2 task, ReprogBert-designed antibodies achieved a predicted neutralization score of 76.7%, significantly higher than the original antibody sequences (69.3%).
  • Efficiency: The model is remarkably lightweight to train. Because only the projection matrices are updated, it requires far fewer parameters than full fine-tuning and can be trained in a few hours on a single GPU.
Visualization of sequence recovery and diversity. ReprogBert (right) shows a much wider variety of amino acids (blue cells) compared to the more repetitive baselines.

Limitations and Future Work

The authors identify a few areas for improvement:

  • Longer Sequences: While excellent for CDR loops, the model might struggle with infilling very large protein regions where the context window of the original BERT model becomes a limiting factor.
  • Attention Mechanisms: Future iterations could benefit from "localizing" attention to the regions being infilled to better capture complex structural dependencies.
  • Wet Lab Validation: The current results are entirely in-silico (computational). The ultimate test will be synthesizing these diverse sequences in a lab to confirm their real-world binding and neutralization performance.

Summary updated

BibTeX
@inproceedings{melnyk2023reprogramming,
  author = {Igor Melnyk and Vijil Chenthamarakshan and Pin-Yu Chen and Payel Das and Amit Dhurandhar and Inkit Padhi and Devleena Das},
  title = {{Reprogramming Pretrained Language Models for Antibody Sequence Infilling}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=K2gn1WiLAu},
}
Figure