Contrastive learning of T cell receptor representations

Yuta Nagano, Andrew Pyo, Martina Milighetti, James Henderson, John Shawe-Taylor +2 more
6/10/2024
q-bio.BMcs.AIcs.LG

No official code found. Best implementation: yutanagano/tcrlm (1 star, MIT, last commit 2026-04-14).

Abstract

Computational prediction of the interaction of T cell receptors (TCRs) and their ligands is a grand challenge in immunology. Despite advances in high-throughput assays, specificity-labelled TCR data remains sparse. In other domains, the pre-training of language models on unlabelled data has been successfully used to address data bottlenecks. However, it is unclear how to best pre-train protein language models for TCR specificity prediction. Here we introduce a TCR language model called SCEPTR (Simple Contrastive Embedding of the Primary sequence of T cell Receptors), capable of data-efficient transfer learning. Through our model, we introduce a novel pre-training strategy combining autocontrastive learning and masked-language modelling, which enables SCEPTR to achieve its state-of-the-art performance. In contrast, existing protein language models and a variant of SCEPTR pre-trained without autocontrastive learning are outperformed by sequence alignment-based methods. We anticipate that contrastive learning will be a useful paradigm to decode the rules of TCR specificity.

View on arXivView PDF

Code Implementations(1)

yutanagano/tcrlmCommunity100%
MIT

Use transformer technology to decode the grammar of T cell receptors.

11Python, Jupyter NotebookOct 11, 20226 months agoMIT

Similar Papers

Cite this paper

@article{nagano2024contrastive,
  title  = {Contrastive learning of T cell receptor representations},
  author = {Yuta Nagano and Andrew Pyo and Martina Milighetti and James Henderson and John Shawe-Taylor and Benny Chain and Andreas Tiffeau-Mayer},
  year   = {2024},
  eprint = {2406.06397},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2406.06397v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2406.06397.svg)](https://codeofpaper.com/paper/2406.06397)

Discussion