Computational screening of drug–target, microbe–disease, and microbe–drug pairs exists because wet-lab assays are slow and expensive. A lab does not test a ranked list. It tests the top $k$ candidates it can afford. Current models are still trained with losses that have nothing to do with that decision. Binary cross-entropy rewards getting every pair's probability right, and AUROC rewards ordering the whole list. Published results on these benchmarks are already near the ceiling (AUROC 0.9371 on DrugBank, AUC 96.59% on MDAD). Those numbers say little about whether the few candidates a lab would actually test are the right ones. The quantity that matters, "is this candidate inside the budget or not," is a step function of the model's score. Its gradient is zero almost everywhere, which is why nobody trains on it directly.
Spiking neural networks, meaning networks whose units emit binary 0/1 events when an internal potential crosses a threshold, faced exactly this obstacle and developed a mature fix. The surrogate gradient keeps the hard threshold in the forward pass and substitutes a smooth bump for its derivative in the backward pass. This note proposes treating each candidate pair as a "selection neuron" that fires if its score exceeds the budget cutoff. The network is then trained end-to-end on the budgeted hit rate itself, using surrogate-gradient machinery borrowed from spiking-network training. The claim is narrow and testable. With the encoder and data held fixed, a hard-forward, surrogate-backward budget loss should raise per-query precision at the assay budget over cross-entropy and over smooth ranking relaxations, without losing AUROC. The surrogate's width is the main control knob, and it has a predictable failure mode.
Why this, and not the obvious intersection
The obvious bridge between these literatures is to put a spiking graph network on a biological interaction graph and report energy savings. That would extend Spiking Variational Graph Auto-Encoders, which built a spiking link predictor with an addition-only decoder and reported Cora AUC 92.6% at 20–80× lower estimated energy. It could also extend Spiking Graph Convolutional Networks or Spiking GATs. I think that direction is weak for this application. GeNNius, a four-layer GraphSAGE model, already trains on DrugBank in 0.58 minutes, so compute energy is not what limits discovery. The assay is. SGNNBench also constrains that design. It shows spiking graph networks lose substantial accuracy on heterophilous graphs, and bipartite drug–target or microbe–disease graphs connect unlike node types by construction.
The proposal therefore takes the method from the spiking literature and discards the spiking encoder. The encoder stays a continuous graph network. The spike moves to the output, where the real decision is a threshold. None of the spiking-graph papers in the file uses surrogate gradients to optimize a selection or ranking objective. They use them only to train spiking hidden units.
Core Claim
For a query entity $i$ (a disease, drug, or microbe), let $f_\theta(i,j)$ be the model's score for candidate $j$. Let $\tau_i$ be the $k$-th largest score among $i$'s unobserved-plus-held-out candidates, where $k$ is the assay budget. Let $y_{ij}\in\{0,1\}$ mark a validated association. The selection spike and the budget loss are
$$s_{ij} = \Theta\big(f_\theta(i,j) - \tau_i\big), \qquad \mathcal{L}_{\text{budget}} = -\frac{1}{k}\sum_i \sum_j y_{ij}\, s_{ij},$$
where $\Theta$ is the Heaviside step. In the forward pass, $\mathcal{L}_{\text{budget}}$ is exactly the negative precision at $k$ summed over queries. In the backward pass we replace $d\Theta/du$ with a surrogate $\sigma'_\beta(u)$ of width $\beta$, as in Spatio-Temporal Backpropagation. We treat $\tau_i$ as a stopped-gradient quantity recomputed each step.
The mechanism follows from this construction. Gradient flows only to candidates whose scores lie within about $\beta$ of the cutoff, which are the pairs whose in/out status a small change would flip. The model is pushed to fix errors at the budget boundary and ignore the ordering of the long tail.
The spiking literature also predicts the failure mode. The dead-neuron problem, where units far from threshold receive no gradient, appears here as validated positives ranked far below the cutoff that never get pulled up. That problem is severe in sparse sets such as HMDAD, where 450 links spread over 292 microbes and 39 diseases. We therefore expect a narrow surrogate to fail early in training, and a wide-to-narrow width schedule, or a small cross-entropy anchor, to be necessary.
Research Program
The first component fixes the backbones so that only the training signal changes. We will reimplement GeNNius on DrugBank and a GCN-plus-attention encoder in the style of GCNATMDA on MDAD and aBioFilm. Each keeps its published features, architecture, and negative sampling. On HMDAD we use the same GCN-plus-attention encoder with Gaussian interaction profile similarity features. These are profile-overlap kernels of the kind used by PBHMDA. The budget is defined per query, which matches how labs actually test: the top $k$ microbes for one disease, or the top $k$ targets for one drug. PBHMDA's "local" leave-one-out protocol already reflects this, and its case studies report exactly such top-10 hit counts.
The second component studies the surrogate. We will compare rectangular, sigmoid-derivative, and Gaussian shapes and sweep the width $\beta$ relative to the typical score gap at the cutoff. We will also test a learned per-dataset mixture of shapes, following the layer-wise surrogate search in SpikeDHS. We will log the fraction of held-out positives that receive nonzero gradient at each step. If the dead-neuron account is right, this fraction should predict when training stalls.
The third component handles the false-negative problem. Unobserved pairs are unassayed, not negative. A budget loss that penalizes "wasting" a slot on an unlabeled pair will punish true-but-unknown associations. We will test a positive-unlabeled variant that down-weights the penalty on unlabeled selections by an estimated prior. We will measure the effect with the time-split and case-study checks below. A method that only learns to reproduce database curation bias would pass random cross-validation and fail these checks.
Baselines
The naive reference point is each backbone trained exactly as published, with cross-entropy on sampled negatives. For DrugBank the published GeNNius figure is AUROC 0.9371 (GeNNius). For MDAD, GCNATMDA reports AUC 96.59% and AUPR 93.01%, and 95.7% AUC on aBioFilm. These are the strongest reported numbers in the file, so these architectures are the ones to beat. We will retrain them ourselves under identical splits, seeds, and hyperparameter budgets. The comparison therefore isolates the loss rather than implementation details.
The strongest non-neural competitor is PBHMDA's path-based scoring. It reports global leave-one-out AUC 0.9169, local leave-one-out AUC 0.8767, and 5-fold AUC 0.9082 ± 0.0061 on HMDAD. It needs no training, and its case-study top-10 hit counts (9/10 for liver cirrhosis and asthma, 7/10 for type 1 diabetes) are directly comparable to our budget metric. We will rerun it on our splits.
The most dangerous baseline is a standard pairwise ranking loss. This is a loss that pushes each positive's score above sampled unlabeled pairs, in the style of Bayesian personalized ranking. It is cheap, well understood, and already targets ordering rather than calibration. No paper in the file reports it on these benchmarks, so we will implement it on the same backbones with the same tuning budget.
The key ablation replaces the hard Heaviside forward pass with its smooth sigmoid, a soft-forward relaxation. This ablation isolates whether hard-forward/soft-backward matters or whether any smooth approximation of precision at $k$ does equally well. A second ablation uses the identity surrogate, the plain straight-through estimator, to test whether the surrogate's shape and width matter at all.
The file has no reported precision-at-budget numbers for any method: no reported result found on Lacuna for precision@k on DrugBank, MDAD, aBioFilm, or HMDAD, beyond PBHMDA's per-disease case-study counts. All budget-metric comparisons will therefore come from our own reruns. "Beating" a baseline means a paired improvement in mean per-query precision at $k$ for $k\in\{5,10,20\}$, significant across at least ten seeds and folds. It also requires that AUROC stays within one standard deviation of the cross-entropy model. The method is meant to reallocate accuracy toward the budget, not to degrade the ranking overall.
Why not just…?
Why not just use a spiking graph network for energy-efficient screening? That is the obvious intersection, and the file argues against it as a priority. GeNNius's 0.58-minute DrugBank training shows compute is not the binding constraint. SGNNBench's heterophily degradation predicts that spiking encoders will lose accuracy on bipartite biological graphs, where accuracy at the top of the list is the only thing that saves assays. We keep this as an optional side experiment: an S-VGAE-style spiking encoder trained with the budget loss, reported mainly to test SGNNBench's prediction on biological graphs.
Why not just train with a pairwise ranking loss? This is a real threat. Pairwise losses optimize whole-list ordering, which is close to AUROC. They spend gradient on reordering the tail and do not concentrate it at the cutoff. Our prediction is that they help AUROC more than precision at small $k$. If the pairwise baseline matches the budget loss at $k=5$ and $k=10$ on all four datasets, the surrogate construction adds nothing, and we will report that.
Why not just use a smooth relaxation of precision at $k$? The soft-forward ablation tests this directly. A soft forward pass lets the model earn partial credit for candidates just outside the budget, which the lab never tests. The hard forward pass removes that credit. If soft and hard forward perform the same, the claim reduces to "optimize a top-$k$ surrogate," which is a smaller contribution. The width-sweep analysis would still be useful in that case.
Why not just keep path-based scoring like PBHMDA? On a small, well-curated set like HMDAD it may be competitive, and we treat it as a serious baseline there. It cannot use drug chemistry or protein sequence features, though, so it does not extend to DrugBank- or MDAD-scale graphs. Our HMDAD comparison shows where the learned model starts to pay off.
Decisive Checks
The central result compares per-query precision at $k$ between the budget-loss model and the same backbone under cross-entropy, pairwise, and soft-forward training, across DrugBank, MDAD, aBioFilm, and HMDAD. The mechanistic check asks whether the fraction of held-out positives inside the surrogate's support predicts which width settings stall. If it does, the dead-neuron account is confirmed and the width schedule is justified. If not, the spiking analogy explains nothing beyond "a straight-through estimator."
The guard against curation bias has two parts. First, a cold-start split: GeNNius's train-on-DrugBank, test-on-Yamanishi Nuclear Receptors transfer, measured at the budget. Second, re-scoring PBHMDA's three HMDAD case-study diseases to test whether our top-10 lists recover literature-confirmed microbes at least as often as its 9, 7, and 9 of 10. If the budget loss wins under random cross-validation but loses on these checks, it has learned to exploit which pairs curators happened to record, and the method should not be used to allocate real assays.
References
- Spiking Variational Graph Auto-Encoders for Efficient Graph Representation Learning
- Spiking Graph Convolutional Networks
- Spiking GATs: Learning Graph Attentions via Spiking Neural Network
- GeNNius: an ultrafast drug–target interaction inference method based on graph neural networks
- SGNNBench: A Holistic Evaluation of Spiking Graph Neural Network on Large-scale Graph
- Spatio-Temporal Backpropagation for Training High-Performance Spiking Neural Networks
- Microbe-drug association prediction model based on graph convolution and attention networks
- PBHMDA: Path-Based Human Microbe-Disease Association Prediction
- Differentiable hierarchical and surrogate gradient search for spiking neural networks