bioRxivImmunology
Assessing the Generalization Capabilities of TCR Binding Predictors via Peptide Distance Analysis
L. V. Castorina, F. Grazioli, P. Machart, A. Moesch, F. Errica
Abstract
Understanding the interaction between T Cell Receptors (TCRs) and peptide-bound Major Histocompatibility Complexes (pMHCs) is crucial for comprehending immune responses and developing targeted immunotherapies. While recent machine learning (ML) models show remarkable success in predicting TCR-pMHC binding within training data, these models often fail to generalize to peptides outside of their training distributions, raising concerns about their applicability in therapeutic settings. Understanding and improving the generalization of these models is therefore critical to ensure real-world applications. To address this issue, we evaluate the effect of the distance between training and testing peptide distributions on ML model empirical risk assessments, using sequence-based and 3D structure-based distance metrics. In our analysis we use several state-of-the-art models for TCR-peptide binding prediction: Attentive Variational Information Bottleneck (AVIB), NetTCR-2.0 and -2.2, and ERGO II (pre-trained autoencoder) and ERGO II (LSTM). In this work, we introduce a novel approach for assessing the generalization capabilities of TCR binding predictors: the Distance Split (DS) algorithm. The DS algorithm controls the distance between training and testing peptides based on both sequence and structure, allowing for a more nuanced evaluation of model performance. We show that lower 3D shape similarity between training and test peptides is associated with a harder out-of-distribution task definition, which is more interesting when measuring the ability to generalize to unseen peptides. However, we observe the opposite effect when splitting using sequence-based similarity. These findings highlight the importance of using a distance-based splitting approach to benchmark models. This could then be used to estimate a confidence score on predictions on novel and unseen peptides, based on how different they are from the training ones. Additionally, our results may hint that employing 3D shape to complement sequence information could improve the accuracy of TCR-pMHC binding predictors.
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- Predicting specificity of TCR-pMHC interactions using machine learning and biophysical models
Martin Culka, Nicolas Lounsbury, … Mohammed AlQuraishi·Cell SystemsPeer-reviewed·Aug 13, 2026
- Performance comparison of TCR-pMHC prediction tools reveals a strong data dependency
Lihua Deng, Cedric Ly, … Stefan Bonn·Frontiers in ImmunologyPeer-reviewed·Apr 18, 2023
- Structure-Based TCR-pMHC Binding Prediction and Generalization to Unseen Peptides
A N M Nafiz Abeer, Raj S. Roy, … Byung-Jun Yoon·npj Drug Discovery.Peer-reviewed·Aug 14, 2026
- NetTCR 2.2 - Improved TCR specificity predictions by combining pan- and peptide-specific training strategies, loss-scaling and integration of sequence similarity
Mathias Fynbo Jensen, Morten Nielsen·eLifePeer-reviewed·Mar 4, 2024
- TCR-H: Machine Learning Prediction of T-cell Receptor Epitope Binding on Unseen Datasets
R. R. Tatikonda, O. Demerdash, J. C. Smith·bioRxiv·Nov 28, 2023
- BERTrand - peptide:TCR binding prediction using Bidirectional Encoder Representations from Transformers augmented with random TCR pairing
A. Myronov, G. Mazzocco, … D. Plewczynski·bioRxiv·Jun 12, 2023