Exploiting Topology of Protein Language Model Attention Maps for Token Classification

Maria Ivanova, Ilya Trofimov, Pavel Strashnov, Nikita Ivanisenko, Serguei Barannikov, Evgeny Burnaev, Olga KardymonOpenReview 2025 · Submission to ICLR 2025 · Rejected

Abstract

In this paper, we introduce a method to extract topological features from transformer-based protein language models. Our method leverages the persistent homology of attention maps to generate features for token (per amino-acid) classification tasks and demonstrate its relevance in a biological context. We implement our method on transformer-based protein language models using the family of ESM-2 models. Specifically, we demonstrate that minimum spanning trees, derived from attention matrices, encode structurally significant information about proteins. In our experiments, we combine these topological features with standard embeddings from ESM-2. Our method outperforms traditional approaches and other transformer-based methods with a similar number of parameters in several binding site identification tasks and achieves state-of-the-art performance in conservation prediction tasks. Our results highlight the potential of this hybrid approach in advancing the understanding and prediction of protein functions.
BibTeX
@misc{ivanova2025exploiting,
  author = {Maria Ivanova and Ilya Trofimov and Pavel Strashnov and Nikita Ivanisenko and Serguei Barannikov and Evgeny Burnaev and Olga Kardymon},
  title = {{Exploiting Topology of Protein Language Model Attention Maps for Token Classification}},
  year = {2025},
  url = {https://openreview.net/forum?id=DWa1bATAot},
  howpublished = {OpenReview},
  note = {Submitted to ICLR 2025},
}

Loading related content...

Figure