Targeting edge-level fraud detection on temporal transaction graphs, this paper proposes the prototype-conditional conformal prediction framework ProtoCP, which performs calibration on prototype-constrained subgraphs to suppress benign-neighborhood noise, achieving efficient uncertainty estimation with distribution-free coverage guarantees.
Conformal prediction (CP) provides distribution-free coverage guarantees and has become a principled class of tools in uncertainty quantification. In edge-level fraud detection on temporal interaction graphs, where both false positives and false negatives incur extremely high deployment costs, such coverage guarantees are especially valuable for supporting risk-aware decision-making.
When existing general-purpose graph conformal prediction methods are directly transferred to this scenario, two inherent properties of fraud data cause them to produce inefficient prediction sets that fail practical needs. The two scenario-specific problems are: first, fraudulent interactions are often hidden in neighborhoods dominated by benign samples, which dilutes the calibration signal and distorts neighborhood-based calibration, further increasing overall prediction uncertainty; second, extreme class imbalance means labeled fraud samples account for a very small share of the calibration set, and extreme nonconformity scores from overconfident mispredictions disproportionately inflate the calibration quantile for the fraud class — a problem further amplified when distribution shift occurs between calibration and test sets.
Existing graph-structured conformal prediction work must first address the challenge that graph-structured data poses to the core conformal assumption of exchangeability: because nodes and edges are coupled through topology, graph data inherently violates the exchangeability assumption of i.i.d. samples. Two mainstream existing approaches restore coverage guarantees in different settings: one verifies exchangeability in the transductive setting via permutation-equivariant graph neural networks; the other, in the inductive setting, recomputes nonconformity scores as each new sample arrives, thereby inductively guaranteeing prediction coverage.
To further shrink prediction sets and improve set efficiency, a series of follow-up optimization methods for static graphs have been derived, including SNAPS, which pools nonconformity scores among structurally similar nodes; DAPS, which diffuses scores across the full graph; the Clarkson method, which uses path-length-weighted neighborhoods as calibration context; and RR-GNN, which combines graph-structured class-conditional conformal prediction with residual-adaptive scores.
The base assumptions of all the above general graph conformal methods do not account for the distribution-shift characteristics of temporal graphs. When such methods are directly transferred to temporal graph fraud detection, the already hard-to-satisfy exchangeability constraint is further broken by temporal drift.
For the fraud detection task on temporal transaction graphs, the paper proposes the tailored conformal prediction framework ProtoCP, whose core design is to carry out the calibration process on prototype-conditional subgraphs, using learned prototypes to retain fraud-relevant neighboring nodes and suppress noise from benign samples. The framework consists of three core components: prototype-based fraudulent subgraph extraction, prototype-conditional relative nonconformity scoring, and temporal graph calibration. The accompanying end-to-end module diagram that follows helps you clearly grasp the complete computational path of the framework, from data input to calibrated output.
ProtoCP's overall training objective combines three weighted loss terms, where is a smooth surrogate for the expected prediction set size and is a margin-based prototype loss.
The combined design of prototype-conditional calibration and temporal score diffusion ultimately stabilizes the nonconformity score distribution of the fraud class. Under temporal drift, this property directly yields more stable class-conditional calibration. When running across temporal windows, ProtoCP's fraud-class coverage decays far less than the comparison baselines, and the expansion of prediction set sizes is kept at a lower level, maintaining more compact prediction sets throughout long-duration runs.
Experiments on four public fraud detection datasets show that ProtoCP consistently achieves target coverage of 0.97 to 0.99 on all datasets, attains the smallest prediction set sizes on the S-FFSD, FTFD, and BankSim datasets, and remains competitive on the YelpChi dataset. Traditional conformal methods, which ignore spatiotemporal dependencies between samples, often fail to achieve the expected coverage; stronger baselines such as CF-GNN and NCPNet can achieve effective coverage on most datasets but produce larger prediction sets.
The prototype-conditional mechanism narrows the coverage deviation term of conformal prediction via two paths: first, by grouping behaviorally similar edges, it yields more homogeneous within-prototype score distributions, compressing the first term of the deviation; second, by learning stable prototypes that capture recurring patterns, it reduces the frequency mismatch in the second term. After prototype conditioning, the temporal score diffusion operation smooths each edge's nonconformity score within its temporal neighborhood, further reducing interference from local spatiotemporal noise and empirically shrinking the absolute value of the coverage deviation term.
To verify that prototype-based nonconformity scores can mitigate the coverage gap under temporal drift, the study divides the test set into four consecutive temporal windows and computes, per class, the KS distance between the standard and prototype-based nonconformity scores in each window and the calibration set. Please refer to the figure immediately following, focusing on the difference in KS-distance growth trends between the two methods as the temporal windows advance.
This work focuses on conformal prediction for fraud detection in temporal interaction graphs, and addresses the inherent pain points of the scenario — an over-high proportion of benign neighbors and extreme class imbalance that degrade conformal calibration efficiency — with a tailored conformal prediction solution.
The framework's core design logic is to build fraud-rich calibration subgraphs using learned prototypes, and then combine neighborhood-relative nonconformity scores with a temporal diffusion mechanism to further improve calibration stability.
Experiments on four public fraud detection datasets show that ProtoCP can consistently meet the preset coverage requirements while outputting more compact prediction sets than all compared conformal baselines, with particularly clear advantages in class-level effectiveness on the fraud class.