A link predictor scores every possible pair of nodes in a graph, and a system that is allowed to abstain acts only on the pairs it is confident about. It might declare "these drugs interact," declare "these drugs do not interact," or defer the pair to a lab test. Anyone deploying such a system wants a guarantee of the form "among the pairs we acted on, the error is below 2%, with 95% confidence." Selective prediction, the study of models that may say "I don't know," already supplies such guarantees for image classifiers by checking error on a held-out labeled sample. That recipe fails on sparse relational data. Real links are often fewer than one in a thousand pairs, and the costly errors are the few true links buried among millions of confidently rejected pairs. A uniformly drawn checking sample therefore contains almost no errors and certifies risk that does not reflect reality. This is the same failure that makes uniform sampling underestimate residual error on sparse tensors.
We propose to certify the risk of an abstaining predictor on a sparse matrix, tensor, or graph by drawing the checking sample with a stratified design whose inclusion probabilities we control. The strata are bins of the model's own score. The method spends a fixed label budget where errors are likely to be and returns an upper bound on selective risk that holds for every abstention threshold at once. Because all the randomness comes from our sampling design applied to a fixed graph and a fixed model, the guarantee does not require calibration and test entries to be exchangeable. That assumption is broken anyway when entries share row and column factors. The claim to test is that, at an equal label budget, this design certifies far more coverage than uniform-sample certification while keeping the stated failure probability.
Core Claim
Each direction supplies one ingredient. The sparsity literature supplies the mechanism. Stochastic Gradients for Large-Scale Tensor Decomposition splits tensor entries into zero and non-zero groups, samples each group separately, and reweights the draws to obtain unbiased gradients. Scalable Inference of Overlapping Communities deliberately oversamples links for the same reason. Fitting Low-Rank Tensors in Constant Time is the paper that motivates the problem. Its uniform mini-tensor sampling underestimates residual error on the sparse wine tensor because the sample is mostly well-fit zeros.
Selective prediction supplies the object being certified. Selective Classification for Deep Neural Networks introduced Selection with Guaranteed Risk (SGR). SGR binary-searches a confidence threshold on a labeled validation set, using a binomial tail bound to guarantee risk at most $r^*$ with probability $1-\delta$. It assumes that validation set is an independent, identically distributed sample, which is exactly the assumption that breaks here.
To our knowledge, no work combines the two, that is, uses stratified designs from sparse estimation to certify the risk of an abstaining predictor. Prior work reuses stratification only to train the model or estimate gradients.
Concretely, let the population be the finite set of candidate entries (node pairs, or tensor cells) not used in training. Partition it by model score into $H$ strata. Stratum $h$ has a known size $N_h$, an unknown cost-weighted error rate $e_h$ under the action the model would take there, and a sample of $n_h$ queried labels. A three-way policy that acts on a bin-aligned set of strata $A(t)$ and defers the rest has selective risk
$$R(t) = \frac{\sum_{h \in A(t)} N_h\, e_h}{\sum_{h \in A(t)} N_h}.$$
Replace each $e_h$ by its exact binomial (Clopper–Pearson) upper bound $u_h$ at level $\delta/H$. Then, with probability at least $1-\delta$, $\bar R(t)=\sum_{h\in A(t)} N_h u_h / \sum_{h\in A(t)} N_h$ upper-bounds $R(t)$ simultaneously for every threshold $t$. This holds because the numerator is increasing in each $e_h$ and the denominator is known.
Choosing the threshold after looking at the data therefore costs nothing beyond the per-stratum correction. SGR, by contrast, pays a union bound over its binary search. The remaining design question is how to split the budget $\sum_h n_h$, and that is where sparsity enters. Strata near the decision boundary, and the huge "confident non-link" stratum, deserve far more queries than proportional allocation would give them.
Research Program
We will build three things.
The first is the certification procedure above, run with a two-phase allocation. A small pilot sample estimates each stratum's error rate. We then allocate a fresh sample to minimize the expected width of $\bar R$ at the coverage we expect to certify, a Neyman-style allocation. The bound is computed on the fresh sample only, so adaptivity does not invalidate it.
The second is a cost-weighted risk that separates false positives among acted-on links from missed links among acted-on non-links. The core selective classification theory, including Selective Classification via One-Sided Prediction, works under symmetric 0/1 loss. In sparse graphs the two error types differ by orders of magnitude in both frequency and cost.
The third is a handling of very large index spaces where we cannot score every pair to learn $N_h$. For these we use approximate top-scoring retrieval to enumerate the high-score strata exactly, and a uniform first-phase sample to estimate the sizes of the large low-score strata. We will widen the bound to account for the size estimate and report how much this costs.
A secondary question uses the same machinery as a measuring instrument. If the base model is trained with uniform rather than stratified sampling, does its score ranking concentrate errors less well, so that less coverage can be certified? This tests, quantitatively, the claim from Act or Defer: Error-Controlled Decision Policies for EHR Foundation Models that post-hoc wrappers cannot rescue a base model starved of signal.
Baselines
The naive reference point is what link-prediction practice does today. Following Open Graph Benchmark: Datasets for Machine Learning on Graphs, we report ranking metrics such as Hits@K over sampled negatives and issue no risk statement at all. We will compute the true selective risk this implicitly accepts at its operating threshold.
The main competitor is SGR from Selective Classification for Deep Neural Networks, applied to a uniformly drawn labeled sample of the candidate population of the same size as our budget. It uses the same scores and the same $r^*$ and $\delta$. On dense images it is strong: the paper reports 1% error at 78% coverage on CIFAR-10 and 2% top-5 error at about 60% coverage on ImageNet. We found no reported result on Lacuna for SGR, or any selective-risk certificate, on OGB link datasets, sparse count tensors, or the a-MMSB networks. Our comparison will therefore be run fresh. "Beating it" means higher certified coverage at the same budget and $r^*$, with an empirical violation rate no larger than $\delta$.
The second competitor is an unstratified importance-sampled estimate. We draw pairs with probability proportional to a function of the score, reweight by inverse inclusion probability (the estimator style of Kolda et al.), and bound it with a Hoeffding or Bernstein inequality. This isolates whether the gain comes from importance weighting in general or from per-stratum exact bounds, which avoid paying for large weights.
The third is a label-stratified scheme in the spirit of STRATCP from Act or Defer: Error-Controlled Decision Policies for EHR Foundation Models, which controls error separately per class. It is given oracle access to a random sample of true positives. In deployment this sample is unavailable, so the scheme serves as an upper reference rather than a fair competitor.
Two ablations isolate the key ingredient. One keeps the strata but allocates the budget proportionally to stratum size. The other stratifies by node degree instead of model score.
All methods get identical models, scores, label budgets (swept over a grid), $r^*$, and $\delta$. Each is repeated over 500 independent draws so violation rates can be measured.
Why not just…?
Why not just use a bigger uniform sample with SGR? It is valid but wasteful in exactly the way the Hayashi–Yoshida failure predicts. Suppose missed links among confidently rejected pairs occur at a rate near $10^{-5}$. A uniform sample then needs on the order of $10^5$ labels before it sees even one error, and until then its bound sits at the floor that the sample size alone allows. That floor caps certifiable coverage regardless of how good the model is. The budget sweep will show directly how many uniform labels are needed to match our certified coverage at a small budget. If the ratio is near one, the proposal fails.
Why not just correct the scores for negative sampling and calibrate them? A prior-shift logit correction does fix the probability distortion caused by training on a 1:k positive-to-negative ratio, and it is a real competitor for producing scores. It does not produce a guarantee, though. A calibrated score still has to be checked against labels, and checking it runs into the same rare-error problem. We will treat the corrected score as the default input to both our method and SGR. Any gain must then come from the checking design, not the scores.
Why not just use class-stratified conformal control, as STRATCP does? Control by class assumes you can sample calibration points within each true class. In sparse discovery settings you cannot sample "true links" without already knowing them, which is the whole point of prediction. STRATCP also inherits an exchangeability assumption that relational entries violate. When a random sample of held-out positives is genuinely available, as in benchmark splits, class-stratified estimation of missed links is easy and may match us. That is why we include it as an oracle reference and report the gap honestly. Our design-based guarantee is the one that remains valid when labels can only be obtained by querying pairs.
Proposed Experiments
We use three kinds of data where full ground truth is available, so true selective risk can be computed exactly and bound validity checked.
The first is the OGB link datasets. On ogbl-ddi and ogbl-collab we score every non-training pair. On ogbl-citation2 we use the large-population variant with estimated stratum sizes. Base models are a standard graph network and the multi-hop model from Adaptive Graph Diffusion Networks. The paper reports top-1 on ogbl-ddi and top-3 on ogbl-citation2 but gives no numbers in our file.
The second is the sparse networks used by Scalable Inference of Overlapping Communities, namely Brightkite, Astro-ph, Cond-mat, and Enron, with a-MMSB as the base model.
The third is the 0.3%-dense Chicago Crime count tensor under Poisson decomposition, from Stochastic Gradients for Large-Scale Tensor Decomposition. There the action is predicting whether a cell is non-zero.
In every setting the held-out entries play the role of answered queries.
The decisive checks are two. First, across 500 repeated draws, the fraction of runs in which $\bar R(t)$ falls below the true $R(t)$ for some threshold must not exceed $\delta$. This must hold under the score-dependent, non-exchangeable structure of these data. Second, certified coverage at $r^*$ values of 1%, 2%, and 5% must exceed uniform-sample SGR across a budget sweep of roughly $10^2$ to $10^4$ labels. We will report the label savings factor needed to reach equal coverage.
The secondary experiment trains the same tensor and graph models with uniform versus stratified sampling. It then measures how much certified coverage each permits at a fixed budget, testing whether representation quality, and not just the checking design, limits safe abstention.
A negative outcome would be informative and would change the recommendation. Such outcomes include score strata that do not concentrate errors, bounds that are valid but no tighter than uniform, or estimated stratum sizes that destroy the gain on ogbl-citation2. In any of these cases the advice would be to collect a random sample of positives rather than to stratify.
References
- Stochastic Gradients for Large-Scale Tensor Decomposition
- Scalable Inference of Overlapping Communities
- Fitting Low-Rank Tensors in Constant Time
- Selective Classification for Deep Neural Networks
- Selective Classification via One-Sided Prediction
- Act or Defer: Error-Controlled Decision Policies for EHR Foundation Models
- Open Graph Benchmark: Datasets for Machine Learning on Graphs
- Adaptive Graph Diffusion Networks