Manuscript Offprint

arXiv:2610.30394

Escaping the Phylogenetic Trap: Persistent Homology Enables Cross-Species Ion Channel Classification via Multimodal Graph Neural Networks

Arezoo Bybordi, Favour Achimba, Mariam Gelashvili, Jessy Ramirez, Weigang Qiu, Mandë Holford, Anita Raja

Abstract

Protein classifiers are highly sensitive to evaluation protocol: random train/test splits induce phylogenetic leakage, allowing models to exploit taxon-specific correlations and substantially overestimate out-of-distribution performance. This issue is particularly acute for venom compound classification by ion-channel target ( Ca2+Ca^{2+}, K+K^{+}, Na+Na^{+}), where reported accuracies of 80–90% do not reflect generalization to unseen taxa. We formulate cross-species prediction as a structured distribution shift in which taxonomic identity acts as a confounder, requiring representations that capture structural features invariant across phylogeny. Using a shared multimodal backbone that fuses ESM-2 sequence embeddings with a disulfide-aware graph attention network, we systematically compare five structural inductive biases—spectral, Riemannian, SE(3)-invariant, statistical-manifold, and persistent-homology representations—under a leave-one-taxon-out evaluation protocol on a benchmark of 1,373 ColabFold-predicted venom compounds spanning five taxa. The persistent-homology representation summarizes backbone geometry through topological descriptors that are robust to local structural perturbations, providing an inductive bias toward phylogenetically invariant learning. Under conventional i.i.d. splits, all models achieve similar accuracy (81–86%), masking differences in inductive bias. Under taxonomic shift, this parity collapses: a sequence-only baseline drops to approximately 30%, the remaining geometric priors cluster at 54–55%, while our persistent-homology model (PH-GNN) achieves 63.4%, outperforming the next-best method by over 8 percentage points. These results demonstrate that random-split evaluation obscures meaningful differences in representation quality and identify topological representations as an effective inductive bias for learning under structured biological distribution shift.

Introduction

Ion channels are critically important therapeutic targets for channelopathies, playing foundational roles in the pathophysiology of epilepsy, cancer, and pain management. Consequently, identifying which proteins or peptides target specific ion channels is a central objective in drug discovery. Venomous organisms have independently evolved ion channel-targeting compounds across at least a dozen phyla over hundreds of millions of years (Casewell et al. 2013; King 2011). This convergent evolution produces a striking biological paradox: calcium, potassium, and sodium channel compounds from cone snails, spiders, scorpions, sea anemones, and snakes accomplish related functional disruptions through wildly divergent primary sequences and 3D folds (Olivera and Teichert 2007; Klint et al. 2012). For AI-driven drug discovery, capturing this structural and sequential flexibility requires robust representation learning paradigms. Specifically, these paradigms must learn to bypass surface-level sequence homology to identify the invariant topological features that actually dictate target binding. Previous computational efforts to map protein-ion channel interactions have utilized Variational Autoencoders (VAEs) (Sevgen et al. 2025), physicochemical property mapping (Chou 2001), sequence-based Evolutionary Scale Modeling (ESM) (Lin et al. 2023) + Random Forest architectures (Achimba et al. 2026), and family-specific tools like ICTCPred (Zhang et al. 2016). However, these deep learning models share a critical vulnerability: an inability to generalize to unseen proteins. Because they are typically evaluated under random train/test splits, classifiers tend to learn phylogenetic features rather than functional ones. We define the phylogenetic trap as the phenomenon where models achieve artificially inflated accuracy by memorizing evolutionary lineage leaked across random train/test splits, rather than learning generalized functional features. In practice (such as screening newly sequenced venom transcriptomes from uncharacterized species), a method that achieves 85% accuracy under a random split but 6% on an unseen taxon provides no scientific value.

We address this gap by asking a fundamental research question: What mathematical representations of protein structure best capture biological evolution and functional generalization? To answer this, we propose a novel multimodal framework that bridges mathematics and biology. To our knowledge, we are the first to fuse Evolutionary Scale Modeling (ESM-2) sequence embeddings with a Graph Attention Network (GAT) that explicitly encodes disulfide bond weights, utilizing ColabFold-predicted structures to predict Na+Na^{+}, K+K^{+}, and Ca2+Ca^{2+} channel targets.

Our central argument is that the choice of geometric induc-tive bias determines a model’s susceptibility to the phylogenetic trap. Geometric features, spectral modes, and sequence distributions are inherently shaped by the evolutionary trajectory of the organism, leading to severe taxa-entanglement. By contrast, the three-dimensional topology of a compound’s interaction surface is constrained strictly by the deeply conserved geometry of the target channel’s pore (Doyle et al. 1998; MacKinnon 2003).

We hypothesize that persistent homology, acting as a higher-order abstraction that captures multi-scale cavity topology, encodes this evolutionarily invariant signature, enabling true zero-shot cross-species generalization. In this work, our core contributions are:

  1. A novel multimodal architecture: We introduce a unified GNN framework fusing ESM-2 embeddings with structure-aware GATs and explicit disulfide bond attention, evaluated on a curated dataset of 1,373 ColabFold-predicted compounds across five diverse taxa.

  2. A systematic evaluation of geometric priors: We ablate our baseline against five distinct mathematical frameworks: statistical manifolds (Fisher information), persistent homology, spectral graph theory (Laplacian eigenvectors), Riemannian manifolds, and SE(3) invariance.

  3. Escaping the Out-Of-Distribution (OOD) trap: We demonstrate that while statistical manifolds achieve state-of-the-art accuracy (86.2%) on random splits, they collapse out-of-distribution. Conversely, our persistent homology framework achieves a leading 63.4% cross-species accuracy, proving that topology generalizes where local geometry fails.

We call our complete framework PH-GNN (Persistent Homology Graph Neural Network). Code and data are available at https://github.com/deleteblue/PH_GNN.

References (27)

  • Molecular arms race classifier for decrypting venom peptide and ion channel interactions
  • When Witnesses Defend: A Witness Graph Topological Layer for Adversarial Graph Learning
  • Complex cocktails: the evolutionary novelty of venoms
  • SMOTE: synthetic minority over-sampling technique
  • FLIP: Benchmark tasks in fitness landscape inference for proteins
  • Convolutional neural networks on graphs with fast localized spectral filtering
  • Topology-Enhanced and Label Correlation-Aware Model for Protein-Protein Interaction Prediction
  • The structure of the potassium channel: molecular basis of K+ conduction and selectivity
  • A simple sequentially rejective multiple test procedure
  • Learning from protein structure with geometric vector perceptrons
  • Highly accurate protein structure prediction with AlphaFold
  • Venoms as a platform for human drugs: translating toxins into therapeutics
  • Spider-venom peptides that target voltage-gated sodium channels: pharmacological tools and potential therapeutic leads
  • WILDS: A benchmark of in-the-wild distribution shifts
  • Evolutionary-scale prediction of atomic-level protein structure with a language model
  • Potassium channels
  • Optimizing neural networks with Kronecker-factored approximate curvature
  • UMAP: Uniform Manifold Approximation and Projection for Dimension Reduction
  • Note on the sampling error of the difference between correlated proportions or percentages
  • ColabFold: making protein folding accessible to all
  • Diversity of the neurotoxic Conus peptides: a model for concerted pharmacological discovery
  • ProT-VAE: Protein Transformer Variational AutoEncoder for functional protein design
  • MMseqs2 enables sensitive protein sequence searching for the analysis of massive data sets
  • SaProt: Protein language modeling with structure-aware vocabulary
  • Graph Attention Networks
  • Molecular determinants of $Ca^{2+}$ selectivity and ion permeation in L-type $Ca^{2+}$ channels
  • Using the SMOTE technique and hybrid features to predict the types of ion channel-targeted conotoxins