TULIP: A transformer-based unsupervised language model for interacting peptides and T cell receptors that generalizes to unseen epitopes

Barthelemy Meynard-Piganeau, Christoph Feinauer, Martin Weigt, Aleksandra M. Walczak, Thierry Mora

TL;DR

TULIP is a Transformer-based unsupervised language model designed to predict the binding between T-cell receptors (TCRs) and peptides (epitopes). By training exclusively on positive binding data and treating protein sequences as a language, TULIP avoids the biases inherent in supervised models and demonstrates a superior ability to generalize to "unseen" epitopes—a holy grail for personalized cancer immunotherapy.

What Problem Does This Paper Address?

The immune system relies on T-cells to identify "non-self" targets like viruses or cancer cells. This recognition happens when a T-cell receptor (TCR) binds to a specific peptide fragment (epitope) presented by the Major Histocompatibility Complex (MHC).

Predicting which TCR binds to which epitope is notoriously difficult for three reasons:

  1. Data Incompleteness: Most experimental datasets are "messy." They might record the epitope and the TCR $\beta$-chain but omit the $\alpha$-chain or the specific MHC type.
  2. Negative Sampling Bias: Supervised machine learning requires both "positive" (binding) and "negative" (non-binding) examples. Since true non-binding pairs are rarely published, researchers often create "fake" negatives by randomly pairing TCRs and epitopes. Models often end up learning the artifacts of this random pairing rather than the underlying biology.
  3. The "Unseen" Problem: Most existing models fail when asked to predict binding for an epitope they weren't specifically trained on, making them useless for novel cancer neoantigens.

Methods

The authors introduce TULIP (Transformer-based Unsupervised Language model for Interacting Peptides).

  • Architecture: It uses an encoder-decoder Transformer variant. It features three distinct encoders and decoders for the $\alpha$-CDR3, $\beta$-CDR3, and epitope sequences, plus a categorical embedding for the MHC.
  • Unsupervised Training: Instead of a binary "binds/doesn't bind" classification, TULIP is trained as a generative language model. It uses Causal Language Modeling (CLM) to predict the next amino acid in a sequence and Masked Language Modeling (MLM) to fill in missing pieces. This allows the model to learn the "grammar" of TCR-epitope interactions using any available data, even if it's missing one of the chains.
  • Binding Score: To determine if a pair binds, the authors use Pointwise Mutual Information (PMI). Essentially, the model calculates how much more likely an epitope sequence is when "conditioned" on a specific TCR compared to its likelihood in a vacuum.

Datasets

The researchers curated a massive "Full Dataset" (FD) by combining:

  • VDJdb, IEDB, and McPAS-TCR: The primary sources for TCR-epitope binding pairs.
  • netMHC: Used to supplement the model with broader knowledge of epitope-MHC interactions.
  • Specialized Dataset (SD): A high-quality subset used to benchmark against the current state-of-the-art supervised model, NetTCR-2.0.

Key Insights and Ideas

  • Less is More (Data-wise): By removing the requirement for negative samples, TULIP is more robust. The authors proved that supervised models often "cheat" by picking up on the over-representation of certain epitopes in negative sets. TULIP doesn't have this blind spot.
  • Language as Biology: Treating TCR-epitope binding as a "translation" task (where the TCR is the source and the epitope is the target) allows the model to capture complex, non-linear structural dependencies that simple distance-based models miss.
  • Flexibility is Key: Because the Transformer architecture is "position-blind," TULIP can handle varying lengths of CDR3 loops and epitopes without the need for rigid alignment or padding that often introduces noise.

Key Results

  • Outperforming Supervised Models: TULIP outperformed NetTCR-2.0 on almost all tested epitopes, particularly when the negative sampling was made more difficult/realistic.
  • Generalization: TULIP maintained predictive power on epitopes that were up to 40% different (Levenshtein distance) from anything in the training set. Most previous models drop to "random guess" levels (AUC 0.5) much sooner.
  • Repertoire Mining: In a simulation to find rare p53 cancer mutation-specific TCRs within a massive healthy repertoire, TULIP improved the ranking of true binders by a factor of 20, significantly narrowing the search space for experimental validation.

Limitations and Future Work

  • Likelihood vs. Affinity: TULIP provides a probability score, not a physical binding constant (like $K_D$ or EC50). While these correlate, they are not the same.
  • Dark Matter of Epitope Space: Large portions of the "epitope-verse" have never been sequenced or tested, meaning the model still has significant gaps in its "vocabulary."
  • Generative Design: While this paper focuses on prediction, the model is inherently generative. Future work could involve using TULIP to design synthetic TCRs optimized to hit specific tumor targets.

Summary updated

BibTeX
@inproceedings{meynardpiganeau2024tulip,
  author = {Barthelemy Meynard-Piganeau and Christoph Feinauer and Martin Weigt and Aleksandra M. Walczak and Thierry Mora},
  title = {{TULIP: A transformer-based unsupervised language model for interacting peptides and T cell receptors that generalizes to unseen epitopes}},
  booktitle = {Proceedings of the National Academy of Sciences},
  year = {2024},
  doi = {10.1073/pnas.2316401121},
}
Figure