Structure-Regularized Interpretable TCR-Epitope Prediction

Jiarui Li, Zixiang Yin, Yunbei Zhang, Janet Wang, Samuel J. Landry, Zhengming Ding, Ramgopal R. MettuarXiv 2026

TL;DR

The authors introduce TCR-SRIM, an "interpretable-by-design" machine learning model that achieves state-of-the-art accuracy in predicting T cell receptor (TCR)-epitope binding using only sequence data at inference. By incorporating a novel structure-regularization technique during training, the model not only improves its predictive power but also exposes critical flaws in AI-generated structures (like AlphaFold3), revealing that they lack the structural diversity of real experimental data.

What Problem Does This Paper Address?

T cells are the frontline soldiers of our adaptive immune system, identifying foreign pathogens by binding to specific peptide fragments (epitopes) presented on cell surfaces. Predicting whether a given TCR will successfully bind to a specific epitope is a holy grail for vaccine design and personalized cancer immunotherapies.

However, existing computational approaches face a double bind. Sequence-based models struggle to generalize to unseen epitopes and act as uninterpretable "black boxes." Structure-based models are bottlenecked by the extreme scarcity of experimentally resolved 3D structures. While researchers frequently use AI structure predictors (like AlphaFold) to fill this gap, it has remained unclear whether these generated structures actually help models learn genuine biological interaction patterns or just introduce artificial biases.

Methods

The authors present TCR-SRIM (Structure-Regularized Interpretable Model), which bridges the gap between sequence efficiency and structural insight. Its architecture consists of:

  1. Protein Language Model (PLM) Backbones: Extracts rich contextual embeddings from amino acid sequences using foundation models like ProteinBERT or ESM-2.
  2. Feature Enhancement and Fusion (FEF): Employs a cross-attention mechanism to model the complex mutual information between the TCR chains ($\alpha$ and $\beta$) and the peptide epitope.
  3. Contact Prototype Layers: Explicitly calculates residue-level contact maps using cosine similarity across multiple learnable thresholds. This makes the model inherently interpretable, as these internal "prototypes" map directly to physical contact zones.
  4. Structure Regularization: During training, the model alternates between standard sequence-based learning and structure regularization. It uses a masked mean squared error (MSE) loss, weighted by experimental resolution, to align its internal contact prototypes with real 3D distance maps.

Crucially, no 3D structures are required during inference—the model infers these structural constraints purely from sequence inputs.

Figure 2: Overview of the proposed TCR-SRIM framework for regularizing contact prototypes using structures.

Datasets

  • Compiled Dataset: A massive dataset of 349,716 paired TCR $\alpha/\beta$ sequences and 2,316 unique peptides curated from public databases (VDJdb, McPAS-TCR, IEDB, TBAdb, and 10x Genomics).
  • TCR-XAI Benchmark: 274 high-resolution experimental TCR-epitope complexes from STCRDab and TCR3d 2.0, used to evaluate interpretability via the Binding Region Hit Rate (BRHR) metric.
  • Independent Comprehensive Benchmark: A large-scale external dataset from Lu et al. (2026) used to validate generalizability against other state-of-the-art models.
  • IMMREP23 Benchmark: An independent challenge dataset used for external validation.

Key Insights and Ideas

  • The Illusion of Performance: When TCR-SRIM was regularized using structures predicted by AlphaFold3, TCRModel2, or tFold-TCR, it achieved highly competitive predictive scores (ROC-AUC). However, looking under the hood revealed a major discrepancy.
  • AI Structures Lack Biological Diversity: By visualizing the contact prototypes, the authors discovered that AI-predicted structures generate overly homogeneous, "over-smoothed" contact maps. They fail to capture the diverse, residue-specific binding modes seen in real experimental structures, particularly on the highly flexible CDR3$\beta$ loop.
  • Interpretability as an Audit Tool: This paper highlights why "interpretable-by-design" models are essential. Standard black-box metrics completely missed the structural inaccuracies of AlphaFold3 predictions, which were only exposed by auditing the model's internal contact prototypes.
Figure 5: The contact prototypes regularized with predicted structures.

Key Results

  • State-of-the-Art Prediction: On unseen epitopes, TCR-SRIM paired with ProteinBERT achieved a top-100 epitope ROC-AUC of 0.989, outperforming popular baselines like TULIP and MixTCRpred by 9% and 17%, respectively.
  • Superior Interpretability: On the TCR-XAI benchmark, TCR-SRIM outperformed existing post-hoc explanation methods (like QCAI and AttnLRP) by ~10% in Binding Region Hit Rate (BRHR), demonstrating a much tighter alignment with physical ground-truth contacts.
  • Benchmark Validation: It established SOTA performance on the independent comprehensive benchmark with an ROC-AUC of 0.571 and a competitive AUPRC of 0.587.

Limitations and Future Work

  • Omission of MHC: The model currently omits the Major Histocompatibility Complex (MHC) molecule sequence because MHC identity is frequently missing from public datasets. Since TCRs physically bind to the combined pMHC complex, incorporating MHC data is a clear next step.
  • Overcoming Structure Predictor Homogeneity: The study highlights a major limitation in current structural biology AIs: they tend to predict rigid, generic conformations for highly flexible loops. Future work must address how to model this conformational flexibility to prevent downstream machine learning models from learning over-simplified interaction patterns.

Summary updated

BibTeX
@misc{li2026structure,
  author = {Jiarui Li and Zixiang Yin and Yunbei Zhang and Janet Wang and Samuel J. Landry and Zhengming Ding and Ramgopal R. Mettu},
  title = {{Structure-Regularized Interpretable TCR-Epitope Prediction}},
  year = {2026},
  eprint = {2606.30902},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.30902},
}
Figure