NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Quiver Invariants of Epitopes as a Test of Molecular Mimicry

Molecular mimicry — a pathogen protein carrying a surface patch that the immune system reads as human — triggers autoimmune disease, and our best detectors miss exactly the dangerous cases. Sequence-based models fail because mimicry often survives zero sequence homology; structure-based models fail because the mimicking protein can adopt a completely different fold while presenting a discontinuous surface patch, residues far apart in sequence folded into the same three-dimensional arrangement, that the same receptor engages. The open question is what, precisely, the immune system is matching when two globally dissimilar surfaces cross-react. Current answers are statistical: embedding similarity, geometric contact maps, or binding energies.

We propose an algebraic answer, borrowed from a corner of mathematical physics. In the knots-quivers correspondence, the mysterious integer coefficients of knot polynomials were explained by mapping each knot to a quiver — a small directed graph whose nodes count basic geometric elements and whose arrow counts encode pairwise linking — and showing that the knot's generating function equals a quiver partition function whose coefficients, the Donaldson–Thomas invariants, are integers because they count states of a physical system (BPS bound states on branes). We hypothesize the same move applies to protein surfaces: build a quiver whose nodes are surface interaction patches and whose arrows count contacts between patches, read off its integer invariants, and predict that two surfaces cross-react when their invariants match — even when nothing else about the two proteins matches. The physical grounding literature supplies the logic (invariants are counts of engagement states); the topological-algebraic literature supplies the machinery; molecular mimicry supplies the test bed.

Core Claim

The claim has three parts, of decreasing certainty. First, construction: any protein surface can be converted into a symmetric quiver in a canonical, parameter-light way, and its Donaldson–Thomas invariants — integer counts of how the quiver's representation spaces can be built — form a fingerprint of the surface's interaction geometry. Second, hypothesis: a receptor does not read coordinates or sequences but effectively counts discrete engagement modes, and two surfaces are cross-reactive mimics when their quiver fingerprints agree. Third, prediction: because the fingerprint changes only when the contact pattern rewires (not when it deforms smoothly), it should be robust to induced fit — the small shape changes a protein undergoes when binding — while still flagging mutations that genuinely reorganize the interface. The first part is engineering; the second is a falsifiable hypothesis with no derivation behind it, unlike the knot case; the third is testable with data already in the literature.

This is deliberately different from the nearest existing work. Topotein builds a combinatorial cell complex over a single protein — residues, residue interactions, secondary structure elements, the whole fold — and messages across its ranks with an equivariant network, showing topological hierarchy helps fold classification Topotein; it uses no representation theory, no generating functions, and does not compare two proteins. The TDA-in-protein-engineering literature extracts persistent-homology summaries of cavities and packing as passive numerical features for affinity prediction Artificial intelligence-aided protein engineering: from topological data analysis to deep protein language models; barcodes carry no integrality, no composition law, and no notion of two objects being the same invariant. Neither addresses cross-reactivity between non-homologous proteins. We reuse the quiver algebra exactly because it comes with a notion of equivalence (two different quivers can have identical generating series) and with integer invariants — properties no existing protein representation has.

The Epitope Quiver

From a structure, compute solvent-exposed residues and cluster them into patches $\pi_1, \dots, \pi_n$ of contiguous surface area, refining by physico-chemical type (charged, hydrophobic, aromatic) so that a patch is a plausible unit of receptor contact. Nodes are patches. The adjacency entry $C_{ij}$ counts residue pairs across patches $i$ and $j$ within contact distance, weighted by interaction type; $C_{ii}$ counts intra-patch contacts. This mirrors the knot construction, where homology generators become nodes and linking numbers become arrows Knots-quivers correspondence, BPS states, knots, and quivers. The quiver's generating series — a sum over occupation vectors $m = (m_1, \dots, m_n)$ saying how many times each node is occupied, with weights fixed by $C$ — has integer Donaldson–Thomas invariants $\Omega_m(Q)$ as coefficients; this integrality is a theorem for symmetric quivers Knots-quivers correspondence, and extends to quivers with negative entries via diagonalization Quiver Diagonalization and Open BPS States.

Comparison must respect equivalence, because the same invariant admits many quivers (the permutohedra of the review Knot-quiver correspondence: a brief review). We therefore never compare adjacency matrices directly. Instead we diagonalize each quiver — using the unlinking/linking operations that provably reduce any symmetric quiver to an equivalent diagonal one of isolated loops Quiver Diagonalization and Open BPS States — and compare truncated invariant vectors:

$$d(Q_1, Q_2) \;=\; \sum_{|m| \le N} \bigl|\Omega_m(Q_1) - \Omega_m(Q_2)\bigr|, \qquad |m| = m_1 + \dots + m_n,$$

with truncation order $N$ small (patch counts are tens, so low orders are exact and cheap). The diagonal form also gives the binding-mode decomposition: each independent loop in $Q^{(\infty)}$ is one uncoupled engagement mode, and the decomposition theorem for DT invariants into $m$-loop products Quiver Diagonalization and Open BPS States lets us attribute cross-reactivity to specific modes rather than an opaque aggregate.

On the physical grounding side, we are explicit about what is and is not borrowed. No biological claim involves branes, supersymmetry, or gauge theory. What we take is the structural insight that made LMOV integrality intelligible: an invariant becomes explainable when identified with a count of physical states Knots-quivers correspondence, and the extension of this state-counting logic to boundary-like objects such as knot complements and their surface-operator interpretation Quivers for 3-manifolds: the correspondence, BPS states, and 3d $\mathcal{N}=2$ theories, Branches, quivers, and ideals for knot complements. Our "states" are engagement modes of a receptor on a surface — an analogy the experiments are designed to confirm or kill. We also inherit an honest limitation: the knots-quivers correspondence itself remains partly conjectural for 3-manifolds Quivers for 3-manifolds, and there is no inverse algorithm from topology to minimal quiver Knot-quiver correspondence: a brief review; we sidestep the inverse problem because our quiver is built directly from coordinates, not from a topological invariant we must first compute.

Research Program

Workstream one builds and releases the pipeline: a patch extractor (clustering of exposed residues, with the clustering cutoff the only tuned parameter), a quiver builder, exact DT-invariant computation to order $N$, diagonalization via the unlinking/linking algorithm, and the distance $d$. Workstream two proves what can be proven: lemmas stating which structural perturbations leave the quiver unchanged (any motion that neither creates nor destroys a cross-patch contact below threshold), which characterize the fingerprint as invariant under smooth deformation and induced fit by construction — resolving, for our representation, the tension between rigid invariants and flexible interfaces that EpiCoCo documented on the generative side EpiCoCo. Workstream three states and tests the quantization prediction: the number of independent engagement modes of a surface is a small nonnegative integer given by the dominant loops of $Q^{(\infty)}$, and a mutation that preserves the diagonal form preserves cross-reactivity, while one that rewires it does not. Workstream four uses the machinery as a training-free predictor, which is the sharpest difference from every learned baseline below.

Proposed Experiments

The first experiment locates epitopes without any antibody information. On the retrospective independent test set of SEMA — post-January-2020 PDB complexes with zero sequence homologs in prior training data SEMA — we ask whether the residues sitting in the dominant diagonal modes of each antigen's surface quiver coincide with the annotated conformational epitope. Metric: ROC AUC of residue-level epitope prediction, computed on identical structures and splits.

The second experiment predicts altered-peptide cross-reactivity. P-TEAM's three datasets — murine SIINFEKL across 36 TCRs, a human tumor neo-epitope, and CMV NLVPMVATV, totaling 9,690 TCR–epitope interactions over single-point mutants Predicting T cell receptor functionality against mutant epitopes — are ideal because the quiver of a 9-mer peptide in its MHC groove is small and the prediction is crisp: mutant and wild-type share a DT vector (within truncation) if and only if the TCR still activates. This is a zero-parameter prediction against a trained competitor. Metrics: AUC for activation classification and Spearman correlation for response strength, on the same three datasets.

The third experiment tests true mimicry detection. From the SwissProt viral–human study we take the asymmetric error structure — viral proteins misclassified as human at 9.48% versus 1.87% in the reverse direction Protein language models expose viral mimicry and immune escape — and ask whether the 9.48% V4H proteins have systematically smaller quiver distance to some human surface than correctly classified viral proteins, and whether literature-verified mimicry pairs are recovered: bacterial biofilm peptides against human P4HB in lupus nephritis A Novel Autoantibody Induced by Bacterial Biofilm Conserved Components Aggravates Lupus Nephritis, post-SARS-CoV-2 anti-NF186 nodopathy Autoimmune nodopathy with anti-NF186 antibodies following SARS-CoV-2 infection, post-HSE anti-NMDAR encephalitis Specific viral antibodies associate with anti-NMDAR encephalitis after herpes simplex encephalitis, and the gut–retina axis in uveitis Research progress of traditional Chinese medicine in the prevention and treatment of immune-associated uveitis and gut microbial dysbiosis. Metric: enrichment of small $d$ among V4H proteins over matched controls, and separation of the verified pairs from matched negatives. Note what this experiment cannot do: our invariant is symmetric, so it cannot explain why mimicry pressure is directional — it should detect the disguise, not the evolution that produced it.

A smaller fourth check addresses deformation directly: across apo–holo pairs and conformer ensembles, measure how often induced fit rewires the quiver versus merely deforming it, and whether rewiring coincides with changes in binding mode. EpiCoCo's ablation — letting the MHC move improved binding energy by roughly 26% over a rigid template EpiCoCo — predicts that the rigid-template failure cases should be exactly those where flexibility rewires contacts. Its public code and 100,089-entry dataset StevenLuan904/EpiCoCo make this check concrete.

Baselines

The naive reference point differs by task: for epitope localization, ranking residues by solvent accessibility alone (no learning, no structure comparison); for altered-peptide cross-reactivity, sequence identity to the wild-type epitope; for mimicry detection, random pairing of surfaces. Any method that fails to beat these floors is not measuring anything. The strongest existing method also differs by task, and we run each under matched conditions — same structures, same splits, and, where the competitor learns, we allow it its full tuning budget while our predictor fits nothing, so the comparison is deliberately asymmetric in our competitor's favor on data and against us only on representation. On epitope localization, the strongest competitor is SEMA, which transfers ESM-1v and ESM-IF1 into residue-level conformational epitope prediction SEMA; it reports a ROC AUC of 0.76 on its independent retrospective test set, outperforming BepiPred-2.0, SEPPA3.0, PEPITO, ElliPro, and DiscoTope-2.0 SEMA, and beating it means exceeding 0.76 on the same post-2020, zero-homolog structures with a training-free signal. On cross-reactivity, the strongest competitor is P-TEAM, a random-forest system trained on the 9,690 interactions, reporting an average AUC of 0.905 on the educated murine repertoire and a Spearman correlation of 0.734 on the neo-epitope dataset Predicting T cell receptor functionality against mutant epitopes; beating it means matching or exceeding those numbers with zero fitted parameters, or — more realistically and still decisive — matching them in the low-label regime where P-TEAM itself reports needing active learning to reach satisfactory performance with only 24 altered peptides Predicting T cell receptor functionality against mutant epitopes. On mimicry detection, the reference is the fine-tuned protein language model classifier of Ofer and Linial, at 99.7% ROC AUC overall Protein language models expose viral mimicry and immune escape; we do not compete on overall AUC but on the 9.48% V4H subset, where beating it means recovering a substantial fraction of its errors as quiver-close to a human partner, verified against the case-report positives. Finally, the ablation that isolates our key ingredient: feed the same quiver's raw adjacency entries, and separately its diagonal loop structure, into a small predictor head of equal capacity to any learned baseline, bypassing the DT generating series entirely. If flat adjacency features match the invariant-based performance, the representation theory is decoration and we will say so. A second ablation shuffles patch labels and checks that $d$ is invariant under the permutohedron equivalences it should be.

Why not just…?

Why not just use protein language models? They are the obvious first tool, and on broad classification they are near-perfect — 99.7% ROC AUC on viral-versus-human Protein language models expose viral mimicry and immune escape. But their failures are concentrated exactly where it matters: the 9.48% viral-as-human error rate, five times the reverse rate, is the mimicry signal itself, and the authors state the study is sequence-level with structure left to future work Protein language models expose viral mimicry and immune escape. SEMA shows structure-based transfer beats sequence-based transfer specifically on discontinuous conformational epitopes SEMA. Experiment three is designed so that if PLM embeddings already separate the verified mimic pairs as well as the quiver distance does, the proposal loses its main application and we report that.

Why not just use a geometric or higher-order graph network? Equivariant networks on 3D coordinates are strong, but Topotein documents that flat graphs bottleneck messages locally and drop roughly 10% when sequence identity is withheld, while its own topological complex drops only 1–2% and gains 3% on the SCOP fold split Topotein — evidence that invariant structural signatures carry real signal. On generalization, CHIMERA-Bench reports severe degradation of standard generative models across epitope-group and antigen-fold splits, including on longer CDR loops CHIMERA-Bench, though no per-split numbers are available: no reported result found on Lacuna for per-split CHIMERA-Bench scores. Topotein itself is the honest threat here, since it already exploits higher-order topology; the difference is that it learns representations for single proteins while we compute exact, comparable, provably integer invariants across proteins with no training. The adjacency-head ablation is precisely the test of whether the representation theory adds anything over what a learned topological complex could extract.

Why not just use persistent homology? It is established in protein engineering as a feature extractor — barcodes and persistent Laplacians summarizing cavities and packing, fed to downstream models Artificial intelligence-aided protein engineering. But persistence diagrams are passive summaries: they carry no equivalence relation between two objects, no composition of features into state counts, and no integrality. The quiver route gives a criterion for two different surfaces to be the same invariant, which is what mimicry detection requires, plus the diagonalization decomposition that attributes cross-reactivity to specific modes. If a barcode-similarity baseline matched our results on experiment three, the extra algebra would be unjustified, and we will run that comparison.

Why not just compute binding energies? Rosetta or molecular dynamics can, in principle, decide whether two surfaces bind the same receptor, and EpiCoCo shows how far energy-based generation has come (-45.20 REU mean binding free energy, a 23% improvement over its predecessor) at real cost — contrastive guidance over 100,089 entries and 50 ns dynamics per candidate EpiCoCo. Energy scoring evaluates one pocket at a time and cannot scan the space of structural disguises across a proteome; our invariant is computed once per structure, in milliseconds, and ranks candidates for expensive downstream energy validation rather than replacing it.

Decisive Checks

The proposal dies in any of three ways. If the adjacency-only ablation matches the full invariant on experiments one through three, the Donaldson–Thomas algebra is decoration and only the contact-graph idea survives. If the quiver distance fails to separate the case-report mimic pairs from matched negatives — a small, curated, high-confidence test — the central hypothesis is wrong at the only scale where we can check it. If DT-vector preservation does not predict cross-reactivity of altered peptides at least as well as P-TEAM's low-data regime (satisfactory performance from 24 peptides Predicting T cell receptor functionality against mutant epitopes), the "receptors count engagement modes" story adds nothing over sequence identity. If it survives all three, we will have shown that the algebraic machinery built to explain why knot invariants are integers also captures why the immune system reads two unrelated proteins as the same — and mimicry detection gains a fast, training-free, structure-only screening layer that every existing method in this corpus lacks.