Lune

ICLR2026Top-tier venue

Quantifying Cross-Attention Interaction in Transformers for Interpreting TCR-pMHC Binding

Jiarui Li, Zixiang Yin, Haley Smith, Zhengming Ding, Samuel J. Landry, Ramgopal Mettu

Abstract

CD8+ “killer” T cells and CD4+ “helper” T cells play a central role in the adaptive immune system by recognizing antigens presented by Major Histocompatibility Complex (pMHC) molecules via T Cell Receptors (TCRs). Modeling binding between T cells and the pMHC complex is fundamental to understanding basic mechanisms of human immune response as well as in developing therapies. While transformer-based models such as TULIP have achieved impressive performance in this domain, their black-box nature precludes interpretability and thus limits a deeper mechanistic understanding of T cell response. Most existing post-hoc explainable AI (xAI) methods are confined to encoder-only, co-attention, or model-specific architectures and cannot handle encoder-decoder transformers used in TCR-pMHC modeling. To address this gap, we propose Quantifying Cross-Attention Interaction (QCAI), a new post-hoc method designed to interpret the cross-attention mechanisms in transformer decoders. Quantitative evaluation is a challenge for XAI methods; we have compiled TCR-XAI, a benchmark consisting of 274 experimentally determined TCR-pMHC structures to serve as ground truth for binding. Using these structures we compute physical distances between relevant amino acid residues in the TCR-pMHC interaction region and evaluate how well our method and others estimate the importance of residues in this region across the dataset. We show that QCAI achieves state-of-the-art performance on both interpretability and prediction accuracy under the TCR-XAI benchmark.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

Questions to start from

Lune can draw on

the full paper · related work

Get the answer

Free to start. No credit card required.

Lineage

  • AttnLRP: Attention-Aware Layer-Wise Relevance Propagation for Transformers cites XAI for Transformers: Better Explanations through Conservative Propagation
  • AttnLRP: Attention-Aware Layer-Wise Relevance Propagation for Transformers cites Generic Attention-model Explainability for Interpreting Bi-Modal and Encoder-Decoder Transformers
  • XAI for Transformers: Better Explanations through Conservative Propagation cites Generic Attention-model Explainability for Interpreting Bi-Modal and Encoder-Decoder Transformers
  • Generic Attention-model Explainability for Interpreting Bi-Modal and Encoder-Decoder Transformers cites Learning Transferable Visual Models From Natural Language Supervision
  • AttCAT: Explaining Transformers via Attentive Class Activation Tokens cites Generic Attention-model Explainability for Interpreting Bi-Modal and Encoder-Decoder Transformers
Builds onCited byLeft to right by year; the more cited, the higher.

Builds on7

  1. Learning Transferable Visual Models From Natural Language SupervisionAlec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh et al.ICML 2021 · 47,906 citations
  2. Generic Attention-model Explainability for Interpreting Bi-Modal and Encoder-Decoder TransformersHila Chefer, Shir Gur, Lior WolfICCV 2021 · 451 citations
  3. XAI for Transformers: Better Explanations through Conservative PropagationAmeen Ali, Thomas Schnake, Oliver Eberle, Grégoire Montavon et al.ICML 2022 · 144 citations
  4. AttnLRP: Attention-Aware Layer-Wise Relevance Propagation for TransformersReduan Achtibat, Sayed Mohammad Vakilzadeh Hatefi, Maximilian Dreyer, Aakriti Jain et al.ICML 2024 · 113 citations
  5. AttCAT: Explaining Transformers via Attentive Class Activation TokensYao Qiang, Deng Pan, Chengyin Li, Xin Li et al.NeurIPS 2022 · 66 citations

Related papers

  1. LLM Layers Immediately Correct Each OtherArjun Patrawala, Jiahai Feng, Erik Jones, Jacob SteinhardtNeurIPS 2025 · 5 citations
  2. Correcting misinterpretations of additive modelsBenedict Clark, Rick Wilming, Hjalmar Schulz, Rustam Zhumagambetov et al.NeurIPS 2025 · 2 citations
  3. Decomposing Query-Key Feature Interactions Using Contrastive CovariancesAndrew Lee, Yonatan Belinkov, Fernanda Viégas, Martin WattenbergICML 2026 · 1 citation
  4. Hybrid Autoregressive Inference for Scalable Multi-Hop Explanation RegenerationMarco Valentino, Mokanarangan Thayaparan, Deborah Ferreira, André FreitasAAAI 2022 · 26 citations
  5. VL-InterpreT: An Interactive Visualization Tool for Interpreting Vision-Language TransformersEstelle Aflalo, Meng Du, Shao-Yen Tseng, Yongfei Liu et al.CVPR 2022 · 34 citations
Dusk over the sea between two cliffs drawn in fine vertical lines