Conceptio › Archive › arXiv CS
arXiv CS open access

PairAudit: Guiding Human Review with Graph Tokens under Distribution Shift

Jiran Tao et al. · arxiv_cs
arXiv CS · Papers
Open Source ↗Direct PDF ↓
cryptographycybersecurityprivacysecurity
Intrusion detectors can confidently misclassify attacks that were not seen during training. Human review can correct these errors, but only a limited number of cases can be checked. Uncertainty-based review may overlook confident errors, while anomaly scores alone do not show whether changing the re
Conceptio Open Archive

Analyze & explore related research in Conceptio

Connect this record directly into your research workflow or AI agent. Explore citations across open repositories, query full text, and export structured proof bundles.

Preprint

PAIR AUDIT : G UIDING H UMAN R EVIEW WITH G RAPH T OKENS UNDER D ISTRIBUTION S HIFT Jiran Tao Binyan Jiang The Hong Kong Polytechnic University 22117758r@connect.polyu.hk by.jiang@polyu.edu.hk

arXiv:2610.10260v1 [cs.LG] 7 Oct 2026

A BSTRACT Intrusion detectors can confidently misclassify attacks that were not seen during training. Human review can correct these errors, but only a limited number of cases can be checked. Uncertainty-based review may overlook confident errors, while anomaly scores alone do not show whether changing the review plan will correct more errors. We introduce PAIR AUDIT to find overlooked errors and improve review under a fixed budget. Its graph tokens capture prediction patterns across connected nodes. Rather than building another predictor through feature aggregation, PAIR AUDIT uses unusual relational patterns to uncover potential errors in existing predictions. Human feedback then helps decide whether these findings justify changing review priorities. Experiments across security tasks show that PAIR AUDIT corrects more errors on average than uncertainty-based review, including more errors on unseen attacks. These gains account for all review costs and do not require retraining the detector.

1

I NTRODUCTION

A detector can work well on familiar cases and still make confident mistakes when new patterns appear. This is a practical problem under out-of-distribution (OOD) shift. In security, an unseen attack subtype may be mistaken for benign activity even though its correct label still belongs to a known category. Human review can correct these mistakes while the detector stays in use. The difficulty is that reviewers can check only a small part of the data, so errors outside their review queue may remain unnoticed. A natural approach is to review the cases the detector is least certain about. This makes good use of its predictions, but can miss errors made with high confidence. OOD and error-detection scores offer other ways to order cases (Hendrycks & Gimpel, 2017; Liu et al., 2020; Jiang et al., 2018; Wu et al., 2023; Ma et al., 2024). Yet a different ranking is not automatically a better review plan. Bringing one case into a fixed budget means leaving another out. A useful method must find errors the current queue overlooks and help decide whether the proposed change is worth making. Graph structure offers a way to find such cases. A node may look ordinary on its own while its prediction forms an unusual pattern with those of its neighbors. But disagreement alone is not enough: some kinds of nodes routinely differ from their neighbors. For example, a legitimate shared server may connect to many devices flagged as malicious. Its own benign prediction can still be correct, and such disagreement may be familiar for servers with that role. Treating these familiar patterns as suspicious can waste review effort. We therefore ask whether the observed relationship is expected for a node with those features, rather than treating every unusual-looking relationship in the same way. We introduce PAIR AUDIT to connect this relational evidence with decisions about human review. Its graph tokens describe the predictions of a node and its neighborhood. A density model learns several familiar patterns within each known class, and node features determine how much weight each pattern receives. A strong disagreement can be unsurprising when it fits a familiar pattern for those features; a different relationship can still be flagged. The score is fitted and selected using known training and validation labels, without requiring OOD labels. 1

Preprint

Uncertainty review can remain useful even when it misses confident errors. PAIR AUDIT therefore retains part of the original queue (Raw) and proposes replacements from outside its budget. Reviewers provide ordinary class labels, not OOD status or new subtype names. A sequential pair audit uses these labels to decide whether to adopt the remaining exchange. Retention, auditing and subsequent selection form one review policy. Both audited endpoints count toward the same budget. The objective is to correct more errors than the original queue after paying for the decision. Our contributions are: • Relational evidence for overlooked errors. We use graph tokens and feature-conditioned pattern densities to guide review of a frozen detector. This accounts for different familiar neighborhood patterns within a class and uses them to assess new cases, without retraining the detector or changing the review labels. • An adaptive review policy with explicit costs. We combine Raw retention and sequential pair audits with exact budget and net gain identities. These identities account for both useful audit labels and the reviews they displace. We also characterize uniform pair sampling without assuming independent graph nodes, while keeping these guarantees distinct from the working posterior used for decisions. • Consistent benefits across the tested attack shifts. All four primary tasks show positive mean overall and unseen-attack correction gains with high authorization rates. Decisions use about 5% of the budget on average. Additional tests show gains at low and high OOD prevalence and in multiclass review. The low-OOD test also corrects more errors on known cases. Controls assess robustness to pairing and exchange size and show early rejection of a harmful candidate.

2

R ELATED W ORK

OOD scores and review decisions. Maximum softmax probability and Energy provide uncertainty and OOD scores (Hendrycks & Gimpel, 2017; Liu et al., 2020). GNNSafe propagates energy scores over a graph, and GRASP studies when score propagation helps and augments it accordingly (Wu et al., 2023; Ma et al., 2024). Trust Score assesses predicted-class support through reference distances and explicitly motivates human review prioritization (Jiang et al., 2018). These methods can induce review rankings. Their scoring procedures, however, do not supply a sequential decision based on current analyst labels about whether to replace part of an existing queue under a shared budget. Their scores alone do not establish a positive correction gain on a new workload. Our policy retains part of Raw and uses paid feedback to guide replacements. Table 4 compares complete review policies at equal capacity. Table 4 documents how their correction benefits vary across the tested tasks. Conditional anomaly and graph models. Conditional anomaly detection distinguishes unusual behavior from unusual context (Song et al., 2007). Conditional mixture densities and graph mixture density networks provide foundations for multimodal modeling (Bishop, 1994; Errica et al., 2021); graph neighborhood reconstruction exploits relational evidence (Roy et al., 2024). We do not claim these as new primitives. Our graph tokens and feature-conditioned densities model the relational behavior of a frozen classifier and supply proposals whose correction value is assessed through paid review. Human feedback and allocation. Active testing allocates labels for model evaluation (Kossen et al., 2021); human feedback can improve OOD decisions (Vishwakarma et al., 2024; Bai et al., 2025); conservative policy improvement considers retaining a baseline with limited evidence (Laroche et al., 2019). Our feedback is the analyst’s ordinary class judgment. Its acquisition both corrects an object and consumes capacity that could have corrected another. Consequently, a favorable candidate score or a favorable remaining exchange does not by itself imply a beneficial complete workflow.

3

R EVIEW O BJECTIVE AND AVAILABLE I NFORMATION

The target pool U = {1, . . . , N } contains N nodes and K known review classes (e.g., benign and attackPfor K = 2). A frozen classifier returns pi = (pi1 , . . . , piK ): pik is its probability for class k, with k pik = 1. Its predicted label is ŷi = arg maxk pik . Reviewers provide yi ∈ {1, . . . , K}. 2

Preprint

Assuming equal review cost per node, let H < N be the maximum number of distinct nodes that the available human budget can cover. It limits how many samples reviewers can see and label. Define the Raw uncertainty score and baseline set by sR (i) = 1 − max pik , k

RH = {R(1), . . . , R(H)}.

Here R = (R(1), . . . , R(N )) orders all target nodes by decreasing sR , with node ID breaking ties. Under Raw, reviewers start with the least confident predictions and stop after H nodes: RH is the set they can reach, while the remaining N − H nodes stay unreviewed. PAIR AUDIT changes which nodes enter this human review window, not its size H. Let J rank all N nodes using the candidate score (Section B.1). Removing nodes already in RH leaves the eligible pool U \ RH . For a preselected exchange fraction τ ∈ (0, 1), the candidate set C contains the first L = min(N − H, ⌊τ H⌋) eligible nodes in J order. Thus |C| = L and C ∩ RH = ∅. Only these L candidates enter the paired comparison. The reviewed set S ⊆ U, |S| = H, contains all nodes actually reviewed by PAIR AUDIT: paid audit nodes, retained Raw nodes, and the continuation selected by the audit. A corrected prediction earns one unit: X ui , G = U (S) − U (RH ). ui = 1{yi ̸= ŷi }, U (S) = i∈S

We compare complete review policies, whether they follow fixed rankings or adapt to paid labels. The objective is G > 0: more errors corrected with the same budget. Missed attacks and false alarms have equal reward. Paid audit nodes remain in S even if replacement is declined. Let vi = 1 for a subtype absent from training and validation, and 0 otherwise. Its contribution to net gain is X X GOOD = u i vi − ui vi . i∈S

i∈RH

This measures corrected OOD errors, not OOD counts or new types. Known training labels fit the classifier and density; known validation labels select density settings. Scores and configuration are frozen before review, which reveals only requested class labels. Unqueried labels and OOD flags vi are reserved for offline evaluation. Unlabelled graph covariates may be transductive (Appendix D).

4

T HE PAIR AUDIT M ODEL

4.1

G RAPH TOKENS AND FEATURE - CONDITIONED DENSITIES

We construct a graph token from a node’s prediction and the average prediction of its available onehop neighbors. Let p̄i be the mean class-probability vector of node i’s available one-hop neighbors, using pi for an isolated node. Apply the isometric log-ratio transform (ilr) (Egozcue et al., 2003) to each vector, mapping its K probabilities to K − 1 nonredundant coordinates: ti = [ilr(pi ), ilr(p̄i )],

zi = (ti − µtrain )/ max(strain , 10−6 ).

The graph token ti has d = 2(K − 1) coordinates. Training means µtrain and standard deviations strain standardize it to zi ∈ Rd ; division and the floor are coordinate-wise. To model familiar patterns in these tokens, we fit a Gaussian mixture within each known class. For known class k, let Tk and Vk contain its training and validation nodes. A Gaussian mixture model (GMM) uses Mk components indexed by b = 1, . . . , Mk . Mk is the number of Gaussian components, not classes or attack subtypes; components approximate different patterns of node and neighborhood predictions within a class. For each candidate value of Mk , hold that count fixed and fit the GMM on Tk . Component b has P class-wide weight πkb > 0, mean µkb ∈ Rd and positive definite covariance Σkb , with b πkb = 1. 3

Preprint

The component density and training log likelihood to maximize are exp[− 12 (z − µ)⊤ Σ−1 (z − µ)] , (2π)d/2 |Σ|1/2

ϕd (z; µ, Σ) =

X

ℓk =

i∈Tk

log

Mk X

πkb ϕd (zi ; µkb , Σkb ).

b=1

Full covariance captures dependencies between token coordinates. After K-means initialization, expectation-maximization (EM) alternates two steps. The E step computes responsibility γib , the soft assignment of zi to component b: πkb ϕd (zi ; µkb , Σkb ) γib = PMk , c=1 πkc ϕd (zi ; µkc , Σkc ) Let Nb =

P

i ∈ Tk .

i∈Tk γib be its effective membership. The M step updates new πkb = Nb /|Tk |,

−1 µnew kb = Nb

X

γib zi ,

i∈Tk −1 Σnew kb = Nb

X

new ⊤ γib (zi − µnew kb )(zi − µkb ) + ϵI,

i∈Tk

where I is the d-dimensional identity and ϵ = 10−4 prevents singular covariances. EM yields a local fit. After fitting each admissible count, select the fitted GMM with the highest mean log likelihood on Vk . Thus training estimates parameters for a fixed count; validation selects the count and its fitted parameters. The selected Mk , πkb , µkb , Σkb are then held fixed. The fitted mixture describes familiar patterns within each class. Its class-wide weights, however, may not suit every node. The weights πkb describe how common each pattern is in class k, but may not suit every node. For example, disagreement with neighbors may be rare among benign nodes overall yet familiar for benign shared servers. A component describing this server pattern can have a small class-wide weight, making an ordinary server look surprising. We use a feature gate gk (x) = (gk1 (x), . . . , gkMk (x)) to adapt the weights to a node’s input features x. Its outputs are nonnegative and sum to one. For server-like features, it can assign more weight to

Table 1: Notation. R, J rank all N nodes; C is the L-node candidate set, and S is the H-node reviewed set. Symbol Meaning U, N, K pi , pik , ŷi , yi H, sR (i), R, RH S, ui , U (S) vi , G, GOOD p̄i , xi , zi Mk , γib , wkb (x) πkb , µkb , Σkb gk (x), ηk fk (z | x), sJ (i) qi , J τ, L C, D B m, Im , δj , pm A

Target node pool, its size, and number of known review classes. Class probabilities, class-k probability, predicted label and human label. Reviewable node limit, Raw uncertainty, full Raw ordering, and its first H nodes. Reviewed set (|S| = H), correction indicator, and correction count. Unseen-subtype flag; overall and OOD net corrections relative to Raw. Mean neighbor posterior, input features and standardized graph token. Number of class-k Gaussian components, responsibility, and node-specific weight. Class-wide weight, mean and covariance of Gaussian component b in class k. Feature gate and validation-selected conditioning strength. Conditional graph token density and relational surprise score. Priority-adjusted review score and its descending candidate ordering. Exchange fraction and block size L = min(N − H, ⌊τ H⌋). Candidate set outside RH and proposed removals within RH , each of size L. Shared Raw set RH \ D; retain its first H − L − m nodes after m audited pairs. Audited pair count and indices; pair reward difference; remaining-gain probability. Authorization indicator: 1 for adopting the remaining exchange, 0 otherwise.

4

Preprint

the familiar server pattern. This changes the weighted sum of the fixed component densities, not the Gaussian means or covariances. The token must still fit that pattern to receive higher density. Learn gk from known training pairs (xi , zi ) by maximizing conditional log likelihood: max gk

X i∈Tk

log

Mk X gkb (xi ) + λπkb b=1

1+λ

λ = 10−4 .

ϕd (zi ; µkb , Σkb ),

(1)

This objective rewards higher density for relationships observed with those features. A feature-tree gate is initialized from γib , then optimized for this likelihood (Appendix A). Blend the learned weights with the class-wide weights: gkb (x) + λπkb . 1+λ Here λ keeps weights positive, and ηk controls how strongly features adjust them. Although ηk is shared within class k, wkb (x) varies by node. The conditional density is wkb (x) = (1 − ηk )πkb + ηk

fk (z | x) =

Mk X

wkb (x)ϕd (z; µkb , Σkb ).

b=1

Select the gate checkpoint and ηk ∈ {0, .25, .5, .75, 1} by mean conditional log likelihood on Vk . At ηk = 0, the class-wide mixture is recovered; with one component, weights cannot vary. Neither stage uses OOD labels or simulated audit gains. The gate uses only x; each Gaussian still checks z. Familiar features cannot R the actual relationship P excuse a mismatching token. For fixed x, fk (z | x) dz = b wkb (x) = 1. Training rewards aggregate likelihood, not necessarily higher density for every node; high density does not certify a correct prediction. We rank target nodes for review using the fitted conditional density, evaluating each token under its predicted class density since the true class is unknown. For a target node, use its predicted class and define surprise ai = − log fŷi (zi | xi ). Higher surprise means lower density. Known validation nodes v ∈ Vk provide reference values av = − log fk (zv | xv ). The ranking score is P 1 1{av ≤ ai } + 21 + 2π arctan((ai − mk )/σk ) sJ (i) = v∈Vk , k = ŷi , |Vk | + 1 where mk and σk are the reference median and standard deviation, with σk floored at 10−8 . The reference aligns class scales. When the validation comparison gives two nodes the same score, the small arctan term ranks the node with higher surprise first. Larger sJ means greater relational surprise. Appendix A specifies numerical tie handling. 4.2

O RDINARY LABELS AND SEQUENTIAL CONTINUATION

From the fixed candidate ranking J, take C as the first L nodes outside RH , and D as the L nodes inside RH ranked lowest by J. The remainder B = RH \ D follows Raw order; these disjoint sets are fixed before querying labels. Appendix B.1 defines priorities for different applications and evaluates giving priority to nodes predicted as attacks when false alarms are costly. Sort C and D separately by increasing predicted class ID, increasing sR (i), then node ID. Match corresponding positions to obtain (cj , dj ), j = 1, . . . , L, with cj ∈ C and dj ∈ D. This fixes pair membership, not review order. Draw one uniform random permutation of the pairs and review it without replacement. Each pair costs two ordinary class labels and gives δj = ucj − udj ∈ {−1, 0, 1}. A +1 means the frozen detector misclassified only cj ; −1 means only dj ; 0 means both or neither. Pairing never uses human labels. Appendix E.5 tests alternative pairings. After m pairs, 2m distinct nodes have been reviewed. Let n = (n+ , n− , n0 ) count the observed signs, with n+ + n− + n0 = m. The working model assigns unknown probabilities θ = (θ+ , θ− , θ0 ) to a candidate win, Raw win and tie. A Dirichlet(1/2, 1/2, 1/2) Jeffreys prior gives αt = nt + 21 ,

θ | n ∼ Dirichlet(α+ , α− , α0 ), 5

t ∈ {+, −, 0}.

Preprint

Frozen detector

Choose remaining reviews

Compare pairs

Retained Raw

c

b

Pr < 0.05

g

a

b

k

c

…

o

n

l

r

s

t

u

v

w

Pr

z

e

…

q

…

Keep Raw Shared by both plans

d

y

x

Raw pairs

Authorize

a

Retained for review

g

p

k

j

b

m

c

d

i

f

h

Pr ≥ 0.95

a Relational surprise

Total reviewed nodes = H

Candidate

Raw ranking nodes

Human Audit Model

Candidate Benign

Raw Benign

Human

Attack

Benign

Gain

+1

0

Candidate ranking nodes

Retained

Audited pair

Choose one

…

w g

k

…

p

+

l

Both kept

+

or

i

…

Figure 1: Raw (upper row) and candidate replacements (lower row). Check marks indicate retention; crossed nodes overlap Raw’s first H. The die denotes uniform pair sampling; p/l gives candidate gain +1 and Raw gain 0. Feedback updates pm (Equation (3)); authorization also requires three non-ties. Both paid endpoints count within H (inset; Equation (4)). Dashed lines connect queue segments. Node counts are illustrative. For r = L − m unreviewed pairs, let X+ , X− , X0 count their unknown signs. Choosing candidate rather than Raw endpoints adds X+ − X− corrections, giving predictive probability pm = Pr(X+ > X− | n). Set V = X+ + X− , the remaining non-tie count. Writing BB(r, a, b) for a beta-binomial count with r trials and beta parameters a, b, V | n ∼ BB(r, α+ + α− , α0 ), X+ | V = v, n ∼ BB(v, α+ , α− ).

(2)

For V = v, positive gain requires X+ > v/2. Averaging over possible non-tie counts gives pm =

r X

  Pr(V = v | n) 1 − FBB(v,α+ ,α− ) (⌊v/2⌋) ,

(3)

v=0

where F is the indicated distribution’s cumulative probability. The v = 0 term is zero: all ties give no gain. We use pm to decide whether to adopt the remaining exchange. Decisions occur after label batches, and each is called a look. Nominal cumulative costs are 5, 10, 20, 30, 50% of H; actual cost is 2m/H (rounding and caps: Appendix B). Authorize if pm ≥ .95 and n+ + n− ≥ 3, requiring three observed non-ties. Reject if pm < .05. Otherwise continue, rejecting if the last look remains unresolved. This working-model evidence concerns the remaining exchange, not total workflow gain. Stopping ends pair sampling, not the remaining reviews. Let Im contain reviewed pair indices and I m = {1, . . . , L} \ Im . Write CIm = {cj : j ∈ Im }, analogously for D and unreviewed indices. Let B1:h be the first h nodes of B in Raw order (empty for h = 0). Keep all paid endpoints and form  S = C Im ∪ D Im ∪

CI m , authorized, ∪ B1:H−L−m . DI m , otherwise,

(4)

Thus 2m audited nodes, L − m continuation nodes and H − L − m retained nodes sum to H. Keeping both pair endpoints costs one extra slot per pair, displacing m nodes from the tail of B. Feasible looks require m < L and m ≤ H − L; if L < 2, use RH without audit queries. 6

Preprint

5

W HAT THE AUDIT E STABLISHES

Proposition 1 (Budget and gain identity). Equation (4) gives exactly H unique reviews at each feasible look. Let A ∈ {0, 1} indicate authorization and Blost = B \ B1:H−L−m . Then X G = U (CIm ) − U (Blost ) + A δj . j ∈I / m

The three disjoint blocks total H; subtracting U (B)+U (D) gives the identity. It separates corrections found during audit, corrections displaced by its cost, and the remaining exchange gain. No node independence is required. A favorable exchange may not cover audit costs. We distinguish harmful authorization, which yields fewer subsequent corrections than Raw after the same paid queries, from total workflow loss, G < 0. Appendix C defines the comparison and derives the posterior calculation. We next consider the sampling distribution for the fixed pairs. For frozen pairs with sign totals K = (K+ , K− , K0 ), uniform sampling of m pairs gives  Q Kt X t∈{+,−,0} nt Pr(n | K) = , nt = m.  L t

m

This law holds even with clustered graph errors (Cochran, 1977). It does not calibrate the Dirichlet working posterior, which supplies model-based evidence rather than a distribution-free guarantee.

6

E XPERIMENTS

6.1

P ROTOCOL AND QUESTIONS

We evaluate correction gains, relational evidence and harmful candidate rejection on four primary security tasks, prevalence and multiclass extensions, and a Physics control. All use H = ⌈.1N ⌉ and default τ = 1/3. This preset can be adjusted for different datasets, but we do not use each dataset’s best tested value for the main results. PairAudit still has room for gains exceeding those presented in the main experiments, as shown in Appendix E.4. A fit is a frozen backbone and source configuration qualified on known training and validation labels. We average 600 audit randomizations per workload, then weight fits equally; these are not independent attack events. Review reveals ordinary dataset labels at equal cost without added noise; subtype flags are evaluator-only. Tasks were selected retrospectively. Appendices D and F provide data, backbones and seeds. Component count, exchange size and pairing tests appear in Appendices E.3, E.4 and E.5; Figure 3 shows the exchange size benefit–cost tradeoff. 6.2

W HICH ERRORS ENTER THE PAID REVIEW BUDGET ?

Table 2: Equal-budget corrections and net gains over Raw. GOOD counts only unseen-subtype errors. Scenario Fits Raw PairAudit G GOOD Auth. (%) UNSW / Fuzzers CICIDS / Hulk X-IIoTID / RDOS TON / XSS

20 224.95 10 1097.60 3 440.33 3 383.33

327.90 +102.95 +105.72 1887.39 +789.79 +830.80 780.63 +340.30 +461.00 463.35 +80.01 +102.02

100.000 100.000 100.000 100.000

All paid reviews are included. Auth. is the percentage of runs authorizing the candidate. All four primary scenarios show positive mean G and GOOD after all pair costs, and both fit-level means are positive in all 36 configurations. UNSW adds 102.95 net corrections to Raw’s 224.95, while CICIDS adds 789.79 to 1,097.60. The effect is meaningful because these are net errors Raw would not recover within the same capacity. In X-IIoTID / RDOS, GOOD = 461.00 exceeds G = 340.30: 7

Preprint

Table 3: Target population and review budget used before deciding. Scenario N H H/N (%) Labels 2m/H (%) On auth. (%) UNSW / Fuzzers CICIDS / Hulk X-IIoTID / RDOS TON / XSS

25,305 27,114 14,187 11,407

2,531 2,712 1,419 1,141

10.00 10.00 10.00 10.00

144.4 136.0 72.0 78.9

5.71 5.01 5.07 6.92

5.71 5.01 5.07 6.92

Labels and 2m/H average all runs; the last column averages authorized runs only. Final review cost is always H. UNSW / Fuzzers

New authorizations (%)

(a) Primary scenarios

CICIDS / Hulk

X-IIoTID / RDOS

(b) Coauthor Physics

Late looks: zoom (%)

100

Same budget: 1,282 reviews

0.111 0.10

50

0.00

863.33

0.008 30

Raw

Same candidate, no audit

0.058

0.05

TON / XSS

PairAudit: early rejection

50

1,097.37 Trust Score

916.00

0 5

10 20 30 Nominal labels spent (% of H)

50

0

600

1200

Errors corrected +234.03 corrections vs no audit Early rejection at 5.15% H

Figure 2: (a) New authorizations at each nominal look, as percentages of all runs per task; the inset magnifies rare late decisions. (b) Early rejection on Coauthor Physics, with H = 1,282 reviews. Adopting the same candidate exchange B ∪ C without audit corrects 863.33 errors; PairAudit corrects 1,097.37, including audit costs. Raw corrects 1,120.33. Trust Score is a separate ranking reference.

120.70 known-object corrections are lost, but the unseen-type benefit more than compensates. This is a tradeoff, not a count of additional unknown objects. Decisions generally leave most of the budget available for continuation (Table 3). CICIDS and X-IIoTID / RDOS authorize at the first feasible look in all runs; TON requires 6.92% of H on average. All 21,600 primary runs authorize. Authorization is a fraction of complete audit runs, not a fraction of labels judged beneficial. Figure 2 shows newly occurring decisions by look. The primary tasks show neither harmful authorized continuation nor negative total gain in the evaluated runs. On Physics, PairAudit rejects its candidate at the first look in all 1,800 runs after 66 labels (5.15% of H). Compared with adopting the same exchange without audit, it preserves 234.03 corrections at the same budget (Figure 2b). Its mean loss relative to Raw is 22.97, versus 204.33 for Trust Score; the latter is a separate scorer comparison.

6.3

C OMPARISON WITH INDEPENDENT REVIEW RANKINGS

Table 4 compares complete policies, not isolated scores. Raw retention and paid audits are parts of PAIRAUDIT’s policy. Trust Score is strongest in CICIDS and TON on total corrections, so PAIR AUDIT is not uniformly superior. On CICIDS, however, PAIR AUDIT corrects 13.60 more unseen-attack errors while giving up 96.81 total corrections. On X-IIoTID / RDOS, Trust Score loses 41.00 total corrections and adds only 0.67 OOD corrections, whereas PAIR AUDIT improves both. These differences show why overall and unseen-attack corrections should be assessed together. Appendix E.1 gives public settings and input limitations. 8

Preprint

Table 4: Independent review strategies at equal budget. Entries are G/GOOD . Method UNSW / Fuzzers CICIDS / Hulk X-IIoTID / RDOS TON / XSS Raw 0.00 / 0.00 0.00 / 0.00 0.00 / 0.00 0.00 / 0.00 Trust Score -23.90 / -29.90 +886.60 / +817.20 -41.00 / +0.67 +166.67 / +135.67 Energy -37.15 / -36.05 -270.40 / -263.80 -12.67 / +0.00 +26.33 / +29.33 GNNSafe -61.40 / -50.60 -546.60 / -549.70 -98.67 / +0.00 -13.33 / +26.67 GRASP -11.20 / +3.90 +224.10 / +425.70 -155.67 / +0.00 -138.33 / -87.00 PairAudit +102.95 / +105.72 +789.79 / +830.80 +340.30 / +461.00 +80.01 / +102.02 External methods use their own first H nodes, without our audit. All methods in the CICIDS column share ten checkpoint reruns; Appendix E.1 gives details.

6.4

W HAT DOES RELATIONAL CONDITIONING CONTRIBUTE ?

Appendix E.2 reports the full controls in Table 9. Feature-conditioned weights improve mean gain over fixed weights on all four primary tasks. TON provides the clearest evidence for relational information: the graph token model yields G = +80.01, versus −39.86 using only node coordinates and +65.36 after matched neighborhood shuffling. The benefit is task dependent: removing neighborhood coordinates improves X-IIoTID / RDOS, and matched shuffling does not reduce gain on CICIDS. 6.5

P REVALENCE STRESS TESTS AND MULTICLASS REVIEW

Table 5: Stress tests and multiclass review, relative to the equal-budget Raw baseline for each pool. Task / pool N H OOD (%) ρerr (%) G GOOD Auth. (%) Cost (%) IoT23 / ARP (1%) 13,693 1,370 IoMT / ARP (full) 6,554 656 IoMT / ARP (95%) 1,442 145 BoT / DDoS-TCP 7,482 749

1.00 20.90 95.01 66.65

0.514 +58.59 +20.03 12.084 +44.19 +44.51 54.924 +44.33 +44.33 65.143 +37.81 +101.60

99.96 100.00 100.00 99.50

9.83 8.61 5.53 13.05

ρerr : OOD errors divided by N ; cost: 2m/H. ARP tasks are binary; BoT uses three classes without priority. Pool construction and configurations are in Appendices D and F. CIC IoT 2023 / MITM-ArpSpoofing yields 58.59 net corrections, including 20.03 on unseen attacks, with only 1% OOD objects: benefit need not require high OOD prevalence. IoMT / ARP also improves both its full and 95% OOD pools, mainly through unseen-attack corrections (Table 5). This comparison is descriptive because datasets and graph contexts differ. In multiclass BoT-IoT, PairAudit increases corrections from 407.00 to 444.81 with 99.50% authorization while retaining the DDoS/DoS/reconnaissance review task. Its 101.60 additional OOD corrections outweigh 63.79 fewer known-subtype corrections. Appendices D and F give construction and run-level losses.

7

L IMITATIONS AND C ONCLUSION

PAIR AUDIT turns graph-based evidence into actionable review decisions under distribution shift. It finds potentially overlooked errors and uses ordinary class labels to decide whether a candidate queue deserves the remaining review budget, without retraining the detector or changing the review task. Across the four primary security tasks, it delivers positive mean overall and unseen-attack correction gains with high authorization rates and decisions that use only a small share of the budget. The rejection control further shows how early feedback can limit losses from an unfavorable proposal. Together, these results support combining Raw retention, relational evidence and paid feedback within a single review policy. The benefit of graph tokens varies across tasks, and our current formulation assumes equal review costs and gives each corrected error the same value. The evaluation also does not explicitly model reviewer mistakes. Extending the framework to different review times, error costs, and uncertain 9

Preprint

labels would require changes to the review objective and audit rule. These limitations motivate further work on cost sensitive review, noisy human feedback, and stronger statistical guarantees.

AI U SE S TATEMENT AI tools assisted with manuscript preparation. Reported quantities are computed from saved predictions and review ledgers. AI outputs are not experimental observations or sources of authority.

R EPRODUCIBILITY S TATEMENT The supplement specifies the Gaussian and gate estimation, audit computation, data roles and all configurations. Code implements the frozen scoring and paid review procedures; evidence files record frozen inputs, audit seeds, decisions, review-set checksums and aggregate metrics. Appendix F describes verification and source provenance. No paid human-subject study is claimed.

R EFERENCES Muna Al-Hawawreh, Elena Sitnikova, and Neda Aboutorab. X-IIoTID: A connectivity-agnostic and device-agnostic intrusion data set for industrial internet of things. IEEE Internet of Things Journal, 9(5):3962–3977, 2022. doi: 10.1109/JIOT.2021.3102056. Haoyue Bai, Xuefeng Du, Katie Rainey, Shibin Parameswaran, and Yixuan Li. Out-of-distribution learning with human feedback. Transactions on Machine Learning Research, 2025. Christopher M. Bishop. Mixture density networks. Technical Report NCRG/94/004, Aston University, 1994. Canadian Institute for Cybersecurity. CIC IoT Dataset 2023. University of New Brunswick, 2023. URL https://www.unb.ca/cic/datasets/iotdataset-2023.html. Canadian Institute for Cybersecurity. CIC IoMT Dataset 2024. University of New Brunswick, 2024. URL https://www.unb.ca/cic/datasets/iomt-dataset-2024.html. William G. Cochran. Sampling Techniques. John Wiley & Sons, 3 edition, 1977. Juan José Egozcue, Vera Pawlowsky-Glahn, Glòria Mateu-Figueras, and Carles Barceló-Vidal. Isometric logratio transformations for compositional data analysis. Mathematical Geology, 35(3): 279–300, 2003. doi: 10.1023/A:1023818214614. Federico Errica, Davide Bacciu, and Alessio Micheli. Graph mixture density networks. In International Conference on Machine Learning, pp. 3025–3035, 2021. Dan Hendrycks and Kevin Gimpel. A baseline for detecting misclassified and out-of-distribution examples in neural networks. In International Conference on Learning Representations, 2017. Heinrich Jiang, Been Kim, Melody Guan, and Maya Gupta. To trust or not to trust a classifier. In Advances in Neural Information Processing Systems, 2018. Nickolaos Koroniotis, Nour Moustafa, Elena Sitnikova, and Benjamin Turnbull. Towards the development of realistic botnet dataset in the internet of things for network forensic analytics: Bot-iot dataset. Future Generation Computer Systems, 100:779–796, 2019. Jannik Kossen, Sebastian Farquhar, Yarin Gal, and Tom Rainforth. Active testing: Sample-efficient model evaluation. In International Conference on Machine Learning, pp. 5753–5763, 2021. Romain Laroche, Paul Trichelair, and Remi Tachet Des Combes. Safe policy improvement with baseline bootstrapping. In International Conference on Machine Learning, pp. 3652–3661, 2019. Weitang Liu, Xiaoyun Wang, John D. Owens, and Yixuan Li. Energy-based out-of-distribution detection. In Advances in Neural Information Processing Systems, 2020. 10

Preprint

Longfei Ma, Yiyou Sun, Kaize Ding, Zemin Liu, and Fei Wu. Revisiting score propagation in graph out-of-distribution detection. In Advances in Neural Information Processing Systems, 2024. Nour Moustafa. A new distributed architecture for evaluating AI-based security systems at the edge: Network TON IoT datasets. Sustainable Cities and Society, 72:102994, 2021. doi: 10.1016/j.scs. 2021.102994. Nour Moustafa and Jill Slay. UNSW-NB15: A comprehensive data set for network intrusion detection systems. In Military Communications and Information Systems Conference, pp. 1–6, 2015. doi: 10.1109/MilCIS.2015.7348942. Amit Roy, Juan Shu, Jia Li, Carl Yang, Olivier Elshocht, Jeroen Smeets, and Pan Li. GAD-NR: Graph anomaly detection via neighborhood reconstruction. In ACM International Conference on Web Search and Data Mining, pp. 576–585, 2024. doi: 10.1145/3616855.3635767. Iman Sharafaldin, Arash Habibi Lashkari, and Ali A. Ghorbani. Toward generating a new intrusion detection dataset and intrusion traffic characterization. In International Conference on Information Systems Security and Privacy, pp. 108–116, 2018. doi: 10.5220/0006639801080116. Oleksandr Shchur, Maximilian Mumme, Aleksandar Bojchevski, and Stephan Günnemann. Pitfalls of graph neural network evaluation. arXiv preprint arXiv:1811.05868, 2018. Xiuyao Song, Mingxi Wu, Christopher Jermaine, and Sanjay Ranka. Conditional anomaly detection. IEEE Transactions on Knowledge and Data Engineering, 19(5):631–645, 2007. doi: 10.1109/ TKDE.2007.1009. Keith Stouffer, Michael Pease, CheeYee Tang, Timothy Zimmerman, Victoria Pillitteri, Suzanne Lightman, Adam Hahn, Stephanie Saravia, Aslam Sherule, and Michael Thompson. Guide to operational technology (OT) security. Technical Report SP 800-82 Rev. 3, National Institute of Standards and Technology, 2023. Harit Vishwakarma, Heguang Lin, and Ramya Korlakai Vinayak. Taming false positives in out-ofdistribution detection with human feedback. In International Conference on Artificial Intelligence and Statistics, volume 238 of Proceedings of Machine Learning Research, pp. 1486–1494, 2024. Washington University in St. Louis. WUSTL-IIoT-2021 dataset for IIoT cybersecurity research, 2021. URL https://www.cs.wustl.edu/˜jain/iiot2/index.html. Qitian Wu, Yiting Chen, Chenxiao Yang, and Junchi Yan. Energy-based out-of-distribution detection for graph neural networks. In International Conference on Learning Representations, 2023.

11

Preprint

A

G AUSSIAN M IXTURES AND F EATURE -C ONDITIONED W EIGHTS

A.1

C OORDINATE CONVENTIONS

Clip probabilities below 10−8 and renormalize. A (K − 1) × K Helmert matrix A with AA⊤ = I and A1 = 0 implements ilr(p) = A log p. A.2

EM ESTIMATION AND COMPONENT SELECTION

The GMM implementation uses scikit-learn GaussianMixture: full covariance, two initializations, at most 300 iterations, tolerance 10−3 and seed 9126101. Cap fitting at 8,000 training nodes per class, subsampling uniformly with seed 9126100 + k. Declare the candidate counts before target evaluation. A count M requires M max(10, 2d) fit samples, EM convergence, finite validation likelihood and expected membership of at least two per component. Validation ties within 10−12 favor smaller M ; no admissible count means fitting fails. A.3

C ONDITIONAL - LIKELIHOOD GATE ESTIMATION

Initialize an ExtraTreesRegressor from training responsibilities: 128 trees, minimum leaf size 32, feature fraction .7, seed 9127201. Freeze its partitions. For leaf ℓ among T = 128 trees,Pset Aiℓ = 1/T if node i reaches it, else zero. With leaf probabilities ϑℓ summing to one, gkb (xi ) = ℓ Aiℓ ϑℓb . P Write ϕib = ϕd (zi ; µkb , Σkb ) and Fi = b (gkb (xi )+λπkb )ϕib /(1+λ). The E step assigns trainable responsibilities P ξiℓb Aiℓ ϑℓb ϕib new ξiℓb = , ϑℓb = P i . (1 + λ)Fi i,c ξiℓc The fixed λπk term receives no trainable responsibility; zero-membership leaves keep their weights. In exact arithmetic, these EM updates do not decrease Equation (1), which is concave in the leaf weights for fixed partitions and Gaussian components. Initialize leaf means from γi , floor at 10−10 and renormalize. Select among updates {0, 1, 2, 4, 8, 16, 32, 64} and the main-text ηk grid by known-validation likelihood. Update zero is initialization; ties within 10−12 favor the earlier update, then smaller ηk . A.4

N UMERICAL SCORING

Use log-sum-exp, fixed per-row Cholesky arithmetic, eight-decimal log-density rounding and singlethreaded gate prediction to keep scores stable across batch sizes.

B

E XECUTION , L ABEL ACCESS AND N UMERICAL AUDIT

B.1

C ANDIDATE RANKING

Let ranksJ (i) order nodes by decreasing sJ , starting at 1, with node ID breaking ties. For a priority class cpriority chosen before review, define qi = 21{ŷi = cpriority } + 1 −

ranksJ (i) − 1 . N +1

The rank term lies in (0, 1], so adding 2 puts that predicted class first while preserving its score order. Sorting qi from highest to lowest gives J; without a priority class, omit the indicator. Construct C, D, B as in Section 4.2. This changes candidate and replacement selection, not the uncertaintybased Raw reference. Each corrected error still earns one unit. The UNSW, CICIDS, X-IIoTID and TON experiments represent settings where missed attacks are especially costly. We therefore set cpriority = benign to seek attacks hidden among benign predictions. In industrial applications, falsely flagging normal activity can instead prompt costly blocking or isolation; automatic responses must account for their effect on normal operation (Stouffer et al., 2023). When avoiding these disruptions is the review priority, set cpriority = attack, with the 12

Preprint

same density model, budget and audit rule. These cost preferences describe intended applications; the datasets do not measure an economic cost ratio. Table 6 evaluates this choice on X-IIoTID / CoAP and WUSTL-IIoT-2021 / UDP. The held-out normal service or protocol is absent from training and validation but retains its benign label, so OOD corrections here recover false alarms on unfamiliar normal activity. Three fits per task each average 600 audit runs; Appendix D.3 gives construction and selection details. Table 6: Predicted-attack priority on unseen normal activity, relative to equal-budget Raw. Task H OOD (%) G GOOD Auth. (%) Cost (%) X-IIoTID / CoAP 1,419 WUSTL-IIoT-2021 / UDP 710

35.24 +282.47 +447.33 70.51 +118.64 +124.03

100.00 98.39

5.07 9.12

G: net change in all corrected errors; GOOD : the same change restricted to held-out normal activity. Both compare final paid reviews with Raw’s first H nodes. Cost is 2m/H; all decision labels count toward H. Both gains are positive in every fit mean, CoAP notably has no negative gain run or harmful authorization in 1,800 runs. Below is the comparison with benign priority Raw. This baseline places predicted-benign nodes first, orders each predicted class by Raw uncertainty, and directly reviews the first H nodes without an audit. Table 7 compares it with PAIR AUDIT on the same frozen fits and budgets. PAIR AUDIT improves both mean gains on these two tasks; the comparison evaluates the complete policies, not the graph score alone. Table 7: Benign-priority comparison. Entries are G/GOOD , relative to the original Raw ranking. Task Benign priority + Raw PAIR AUDIT X-IIoTID / RDOS UNSW / Fuzzers

−102.67/0.00 +91.45/ + 104.85

+340.30/ + 461.00 +102.95/ + 105.72

Means over three X-IIoTID and 20 UNSW fits. PairAudit averages 600 audit runs per fit; all paid labels count toward H. B.2

O BSERVATION SCHEDULE AND IMPLEMENTATION

Follow Section 4.2. The pair permutation uses the recorded audit seed plus 1,000,000. For nominal cost fraction f ∈ {.05, .1, .2, .3, .5}, use mf = min(L − 1, H − L, max(1, ⌈f H/2⌉)). Deduplicate and sort these counts. If L < 2, review RH without pair queries. Query only previously unseen endpoints and reuse their labels. For H = 1,000, τ = 1/3 and L = 333, a first look at 25 pairs uses 50 labels. Completion uses 50 audited nodes, 308 nodes from the chosen side and the first 642 nodes of B, totaling H.

C

AUDIT C ALCULATIONS AND D IAGNOSTICS

C.1

H ARM DIAGNOSTICS AND PAIRING

For the harmful-authorization diagnostic, let O = CIm ∪ DIm contain all paid pair endpoints, and let RO contain the first H − |O| unreviewed nodes in Raw order. An authorization is harmful when U (S \ O) < U (RO ). Total workflow loss instead means G < 0, including investigation costs. Literal Raw continuation RO need not coincide with the local fallback in Equation (4); these comparison targets are therefore reported separately. P Every bijective pairing preserves j δj = U (C) − U (D), but can change ties, sampling variance and stopping time. A common permutation of fixed pairs changes only review order. 13

Preprint

C.2

E XACT POSTERIOR EVALUATION

Under the working model, X | θ,P n ∼ Dirichlet(α+ , α− , α0 ) gives, with α· = t αt , Pr(X = x | n) =

r! Γ(α· ) Γ(α· + r)

Multinomial(r, θ).

Y t∈{+,−,0}

Γ(αt + xt ) , xt ! Γ(αt )

Integrating θ X

|

n

∼

xt = r.

t

Dirichlet aggregation makes θ+ + θ− ∼ Beta(α+ + α− , α0 ) independent of ρ = θ+ /(θ+ + θ− ) ∼ Beta(α+ , α− ), conditional on n. Integrating the binomial counts yields Equation (2); averaging over V yields Equation (3). A cached Polya-urn recursion evaluates the same probability deterministically and is checked against the beta-binomial sum.

D

DATASETS , G RAPHS AND BACKBONE Q UALIFICATION

Table 8: Known-source qualification. Ranges span the fitted configurations, not independent events. Task Fits Train acc. Train F1 Val. acc. Val. F1 UNSW / Fuzzers CICIDS / Hulk X-IIoTID / RDOS TON / XSS IoT23 / ARP IoMT / ARP BoT / DDoS-TCP

20 10 3 3 3 3 3

0.996–0.997 0.979–0.981 0.952–0.953 0.985–0.986 0.959–0.960 0.968–0.974 0.932–0.950

0.993–0.994 0.962–0.965 0.951–0.952 0.982–0.984 0.866–0.868 0.951–0.961 0.929–0.946

0.995–0.997 0.979–0.981 0.939–0.945 0.986–0.986 0.958–0.959 0.964–0.971 0.926–0.951

0.992–0.995 0.962–0.966 0.937–0.944 0.982–0.984 0.860–0.865 0.945–0.956 0.923–0.948

F1 is macro averaged. All reported detectors satisfy known training and validation macro-F1 ≥ .8. Table 8 covers the main-text tasks; Appendix D.3 reports the industrial extensions. Binary tasks use attack/benign labels: main-text tasks prioritize predicted-benign nodes, while Table 6 prioritizes predicted-attack nodes. Multiclass tasks and Physics have no priority. D.1

P RIMARY SECURITY TASKS

UNSW-NB15 and CICIDS2017. Fuzzers (UNSW-NB15) and DoS Hulk (CICIDS2017) are held out from training and validation (Moustafa & Slay, 2015; Sharafaldin et al., 2018). Target pools combine known test nodes and the held-out subtype. We use 20 GraphSAGE and 10 APPNP fits, respectively. Relations use available endpoint, protocol, service/session or temporal fields, never labels. UNSW fits the detector on source-induced edges, then computes posteriors on the unlabelled full graph; source tokens may contain target covariate context. X-IIoTID / RDOS. Hold out RDOS from X-IIoTID training and validation, retaining attack/benign review labels (Al-Hawawreh et al., 2022). Use the author’s release and the 55 numeric predictors described in Appendix D.3, excluding labels, addresses, ports, timestamps, service and auxiliary detector alerts. Remove conflicting binary-label duplicates and deduplicate predictor vectors. Retain up to 5,000 rows per group at preprocessing, then 5,000 for benign and RDOS groups and 2,000 for each other group. Split known groups 60/20/20 within subtype; all 5,000 RDOS nodes enter the target only. Each fit has 27,541 training, 9,181 validation and 14,187 target nodes. Fit imputation, signed-log transformation and standardization on training data, then clip to [−10, 10]. Build separate symmetrized ten-nearest-neighbor source and target feature graphs. Three GraphSAGE fits (seeds 9269301–9269303) use hidden size 64, dropout .3, Adam learning rate .01, weight decay .0005 and inverse-square-root class weights. Known-validation macro-F1 selects checkpoints within 300 epochs, with patience 45 after epoch 100. Audit seeds are 9270000–9270599. TON-IoT. XSS is source-excluded; three GraphSAGE fits retain attack/benign labels (Moustafa, 2021). Separate source and target graphs use source/destination addresses, directed address pairs 14

Preprint

and protocol/port groups. Features include duration, byte and packet counts, missed bytes, protocol, service and connection state. Subtypes never enter scoring or audit. D.2

S TRESS POOLS AND MULTICLASS REVIEW

IoMT / ARP. Hold out ARP Spoofing in CIC IoMT 2024 (Canadian Institute for Cybersecurity, 2024). Labels are capture-derived. Remove labels/identifiers and conflicting predictor duplicates. Cap preprocessing at 5,000 nodes per subtype, then retain up to 5,000 benign/held-out nodes and 2,000 per other subtype. Known subtypes use seeded 60/20/20 training/validation/test splits without predictor overlap; held-out nodes are target-only. Fit medians, signed-log transformation and standardization on training data, clip features to [−10, 10], and build source and target feature-neighbor graphs separately. Known validation selects among GCN, GraphSAGE, APPNP and ResidualSAGE, subject to qualification. ResidualSAGE wins all three fits. It joins 128-dimensional two-layer feature and GraphSAGE pathways, with dropout .1, Adam learning rate .003, weight decay .0005 and inverse-square-root class weights. Validation early stopping selects within 600 epochs; other backbones use learning rate .01 and at most 300 epochs. CIC IoT 2023 / MITM-ArpSpoofing. Hold out MITM-ArpSpoofing in CIC IoT 2023 (Canadian Institute for Cybersecurity, 2023). Deduplication, caps, 60/20/20 known splits and transforms follow IoMT. Three GraphSAGE fits (seeds 9137101–9137103) use hidden size 64, dropout .3, learning rate .01, weight decay .0005 and inverse-square-root class weights. Each has 40,668 training and 13,556 validation nodes. Known-validation macro-F1 selects checkpoints within 300 epochs, with patience 45 after epoch 100. Each low-OOD cohort contains all 13,556 known test nodes and 137 uniformly sampled held-out attacks. Seeds 9136000–9136002 give three cohorts per fit. Rebuild target edges using only cohort nodes before frozen inference; omitted attacks provide no context. Source and target graphs remain separate. Stress construction and denominators. For IoMT high-OOD pools, set N ′ = min(N, ⌊NOOD /a⌋, ⌊Nknown /(1 − a)⌋) with a = .95, sample round(aN ′ ) OOD nodes and permute the pool. This retains 1,370 ARP nodes and samples 72 known nodes; three seeds give three cohorts per fit. Unlike IoT23, graph context P and scores remain from full-target inference. Each pool uses H = ⌈.1N ′ ⌉. In Table 5, ρerr = N ′−1 i ui vi counts OOD errors per target node; prevalence also includes correctly predicted OOD nodes. BoT-IoT multiclass review. Use the public 5% BoT-IoT subset and native category/subcategory labels (Koroniotis et al., 2019). Review assigns DDoS, DoS or reconnaissance. Normal and Theft are outside this task because of insufficient representation. Hold out DDoS/TCP, retaining DDoS/UDP and DDoS/HTTP as known. Use 18 measurements of protocol/flags/state, counts, durations and rates; exclude IPs, ports, absolute timestamps, sequence IDs, labels and capture aggregates. Deduplication, conflict removal, caps and training-only transforms follow IoMT. Known 60/20/20 splits yield 7,483 training and 2,495 validation nodes. The target has 7,482 nodes, including 4,987 DDoS/TCP nodes; H = 749. Source and target use separate symmetrized ten-nearest-neighbor graphs. Three GCN fits (seeds 9139101–9139103) use hidden size 64, dropout .3, Adam learning rate .01, weight decay .0005 and inverse-square-root class weights. Known-validation macro-F1 selects checkpoints within 300 epochs, with patience 45 after epoch 100. Validation class recall exceeds .87. All classification errors have unit utility; no class-priority offset is applied. The three fits share one capture collection and held-out subtype. D.3

I NDUSTRIAL TASKS WITH PREDICTED - ATTACK PRIORITY

X-IIoTID contains industrial control and service activity (Al-Hawawreh et al., 2022); WUSTL-IIoT2021 comes from an industrial testbed (Washington University in St. Louis, 2021). Use the author’s 15

Preprint

X-IIoTID Kaggle release and the public WUSTL mirror1 . Hold out normal CoAP rows identified by Service in X-IIoTID and normal UDP rows (Target=0, Proto=17) in WUSTL. This is a constructed business-type shift, not an official temporal split. Remove labels, addresses, ports and timestamps; also remove X-IIoTID’s service field and auxiliary detector alerts, and WUSTL’s IP IDs and epoch-like IdleTime. Retain 55 and 38 numeric features, respectively. Drop conflicting binary-label duplicates and deduplicate predictor vectors. Deterministic caps retain at most 5,000 rows per group, then 2,000 per known group and 5,000 for the held-out group; discard groups below 100 rows. Known groups use seeded 60/20/20 splits, while the held-out group enters only the target. Imputation, signed-log transformation, standardization and clipping follow IoMT; source and target ten-nearest-neighbor feature graphs are separate. Fix GraphSAGE (hidden size 64, dropout .3), Adam learning rate .01, weight decay .0005 and inverse-square-root class weights. Known-validation macro-F1 selects checkpoints within 300 epochs, with patience 45 after epoch 100. Confirmation seeds 9268201–9268203 yield mean known training/validation macro-F1 of .947/.939 for CoAP and .996/.997 for UDP. Their target sizes are 14,187 and 7,091, each with 5,000 held-out normal nodes. Use H = ⌈.1N ⌉, τ = 1/3, unchanged .95/.05 thresholds, and audit seeds 9269000–9269599.

D.4

R EJECTION CONTROL AND SOURCE LIMITATIONS

Coauthor Physics. Use native coauthorship edges, word features and field labels (Shchur et al., 2018). Field 4 is absent from output classes 0–3. Known classes use 50% training, 20% validation and the remainder for testing; all 3,519 field-4 nodes enter the 12,813-node target. Three knownvalidation-selected GraphSAGE fits use no priority. Every field-4 label is automatically a detector error.

E

A DDITIONAL E XPERIMENTS

The following controls evaluate fixed settings; they do not select deployment parameters from target gains.

E.1

R EVIEW POLICY IMPLEMENTATIONS

Each baseline reviews the first H nodes in its own ranking. PAIR AUDIT uses its complete policy, including candidate priorities, Raw retention and paid audits. Combining another ranking with our audit would define a hybrid policy. Trust Score uses the public default without filtering (Jiang et al., 2018). Its anomaly score is −dother /(dpred + 10−12 ), using the second nearest known-training neighbor per class in detector input space. Exact-distance acceleration is checked against the original KDTree. P Energy is − log k exp(ℓik ) at temperature one. GNNSafe propagates the logit-derived energy over two steps with coefficient .5. GRASP uses its public MSP configuration: eight steps, α = 0, τ1 = 5, τ2 = 50 and δ = 1.001, receiving unlabelled target indices rather than OOD membership. CICIDS originally lacked saved weights and logits. Recover all ten APPNP fits with the same splits, seeds and 50-epoch recipe, then use one shared probability/logit bank for all methods, including a known-only refitted PairAudit density. Target class predictions match the original banks; scores and individual runs need not be identical. Energy uses actual logits. Other tasks retain their saved checkpoints. Recovered checkpoint predictions preserve Raw’s first-H set; the maximum Raw-score error is 2.39 × 10−7 . An original-KDTree check reproduces the Trust Score comparison. 16

Preprint

Table 9: Complete component and relational control metrics. All settings retain the same budget and ordinary correction utility. Scenario Condition G GOOD Auth. (%) 2m/H (%) Harm (%) UNSW / Fuzzers UNSW / Fuzzers UNSW / Fuzzers UNSW / Fuzzers UNSW / Fuzzers

PairAudit +102.95 +105.72 Fixed weights +95.35 +98.28 Node marginal +97.95 +100.35 Matched shuffle +95.32 +97.81 Global shuffle +57.98 +60.60

100.000 100.000 100.000 100.000 98.833

5.71 5.75 5.51 5.72 7.88

0.000 0.000 0.000 0.000 0.017

CICIDS / Hulk CICIDS / Hulk CICIDS / Hulk CICIDS / Hulk CICIDS / Hulk

PairAudit Fixed weights Node marginal Matched shuffle Global shuffle

+789.79 +788.53 +778.19 +790.77 +697.10

+830.80 +831.60 +818.20 +829.60 +720.40

100.000 100.000 100.000 100.000 100.000

5.01 5.01 5.01 5.01 5.01

0.000 0.000 0.000 0.000 0.000

X-IIoTID / RDOS X-IIoTID / RDOS X-IIoTID / RDOS X-IIoTID / RDOS X-IIoTID / RDOS

PairAudit Fixed weights Node marginal Matched shuffle Global shuffle

+340.30 +338.62 +354.38 +217.96 +333.01

+461.00 +457.33 +466.67 +341.33 +470.67

100.000 100.000 100.000 100.000 100.000

5.07 5.07 5.07 5.21 5.07

0.000 0.000 0.000 0.000 0.000

TON / XSS TON / XSS TON / XSS TON / XSS TON / XSS

PairAudit Fixed weights Node marginal Matched shuffle Global shuffle

+80.01 +102.02 +78.16 +97.66 -39.86 -16.69 +65.36 +93.78 +46.17 +62.71

100.000 100.000 51.556 100.000 99.778

6.92 7.02 30.89 8.00 9.48

0.000 0.000 20.333 0.000 0.667

E.2

C OMPONENT AND RELATIONAL CONTROLS

Controls use the first 300 audit seeds per fit, matched to PairAudit’s 600-run evaluation. Fixed weights sets ηk = 0 with the same Gaussian components and rebuilt reference ranks. Node marginal scores only node coordinates of the fitted density while retaining the gate. It removes explicit neighbor coordinates, but the frozen GNN and training responsibilities still contain graph information. Matched shuffle permutes neighbor-token halves within data role, predicted class, confidence quartile and feature cluster. Quartiles use known validation; 32 MiniBatchKMeans clusters use known training features. Refit the density and gate after shuffling. Global shuffle permutes within data role only. Each uses one token permutation and 300 audit runs per fit, not a permutation test. TON’s node-marginal control has 20.33% harmful authorized continuations versus 0.78% harmful remaining pair sums; the distinction is defined in Appendix C. E.3

C OMPONENT- COUNT SENSITIVITY

Table 10 fixes Mk = M and selects gate settings on known validation labels. Each count uses the same 48 fits, 63 workloads and 600 audit seeds per workload. These are fixed-count comparisons, not searches up to M . Sensitivity varies by task. At M = 1, net gain is negative on TON and full-pool IoMT; BoT is negative for M = 1, 2, 3. Larger counts can help, but are not uniformly better. Deployment counts must be selected from validation density fit, not these test gains.

1 Kaggle datasets munaalhawawreh/xiiotid-iiot-intrusion-dataset annaamalaiu/wustl-iiot-2021-dataset.

17

and

Preprint

Table 10: Component-count sensitivity: net corrections G at the same total review budget. Scenario Reported M = 1 2 3 4 8 16 UNSW / Fuzzers CICIDS / Hulk X-IIoTID / RDOS TON / XSS IoMT / ARP, full IoMT / ARP, 95% OOD IoT23 / ARP, 1% OOD BoT / DDoS-TCP Coauthor Physics

102.95 103.99 72.32 81.27 102.95 789.79 720.16 792.47 792.94 789.60 340.30 334.34 335.71 337.40 340.30 80.01 -22.07 65.20 73.25 80.01 44.19 -6.47 30.03 46.11 44.38 44.33 41.37 42.65 43.66 44.22 58.59 19.78 51.58 62.58 58.59 37.81 -18.59 -33.47 -35.44 37.81 -22.97 -20.28 -21.64 -23.47 -22.97

103.83 800.41 344.53 72.63 39.16 42.87 60.72 41.97 -19.75

103.62 789.80 347.21 67.73 48.35 43.32 58.51 92.42 -22.00

Reported uses known-validation density selection; other columns fix Mk = M for every class. E XCHANGE - FRACTION SENSITIVITY

Net gain / Raw corrections (%)

UNSW / Fuzzers

CICIDS / Hulk

(a) Correction benefit 100 75 50 25 0 0.1

0.2 1/3 0.4 Exchange fraction τ

X-IIoTID / RDOS

Labels before decision (% of H)

E.4

0.5

TON / XSS

(b) Decision cost 10.0 7.5 5.0 2.5 0.0 0.1

0.2 1/3 0.4 Exchange fraction τ

0.5

Figure 3: Exchange-fraction sensitivity at fixed H. (a) Net gain relative to mean Raw corrections. (b) Decision labels as a fraction of H. Points average the same primary fits and 300 audit runs per fit; the dotted line marks τ = 1/3. Table 11 includes exact gains, authorization and harm rates. Test τ ∈ {.1, .2, 1/3, .4, .5} on 36 primary and three Physics fits, with 300 audit runs each (58,500 total). Hold scores and H fixed. Larger exchanges improve CICIDS, X-IIoTID / RDOS and TON mean gains, while increasing TON’s decision cost. The default 1/3 remains positive on all primary tasks but is not universally optimal. At τ = .5, one of 900 TON runs has negative total gain despite no harmful continuation. Physics always rejects and remains negative relative to Raw.

18

Preprint

Table 11: Sensitivity to the exchange fraction τ . Each setting has 300 audit runs per fit. Scenario Setting G GOOD Auth. (%) Cost (%) Harm (%) UNSW / Fuzzers UNSW / Fuzzers UNSW / Fuzzers UNSW / Fuzzers UNSW / Fuzzers

0.1 0.2 1/3 0.4 0.5

+88.52 +99.78 +102.95 +102.30 +99.16

+88.80 +101.16 +105.74 +105.66 +104.02

100.000 100.000 100.000 100.000 100.000

5.06 5.15 5.65 6.04 6.97

0.000 0.000 0.000 0.000 0.000

CICIDS / Hulk CICIDS / Hulk CICIDS / Hulk CICIDS / Hulk CICIDS / Hulk

0.1 0.2 1/3 0.4 0.5

+213.15 +223.90 +457.60 +482.80 +789.81 +830.80 +956.85 +1000.30 +1202.68 +1248.10

100.000 100.000 100.000 100.000 100.000

5.01 5.01 5.01 5.01 5.01

0.000 0.000 0.000 0.000 0.000

X-IIoTID / RDOS X-IIoTID / RDOS X-IIoTID / RDOS X-IIoTID / RDOS X-IIoTID / RDOS

0.1 0.2 1/3 0.4 0.5

+101.41 +207.19 +340.34 +401.48 +499.59

+129.00 +271.00 +461.00 +555.00 +696.33

100.000 100.000 100.000 100.000 100.000

5.07 5.07 5.07 5.07 5.07

0.000 0.000 0.000 0.000 0.000

TON / XSS TON / XSS TON / XSS TON / XSS TON / XSS

0.1 0.2 1/3 0.4 0.5

+61.89 +64.63 +80.18 +88.96 +90.08

+70.67 +83.83 +102.24 +114.25 +118.79

100.000 100.000 100.000 100.000 100.000

5.08 5.87 6.83 7.33 8.27

0.000 0.000 0.000 0.000 0.000

Coauthor Physics Coauthor Physics Coauthor Physics Coauthor Physics Coauthor Physics

0.1 0.2 1/3 0.4 0.5

-23.35 -23.11 -22.94 -22.46 -19.63

-23.27 -24.12 -23.17 -21.87 -18.50

0.000 0.000 0.000 0.000 0.000

5.15 5.16 5.15 5.15 5.15

0.000 0.000 0.000 0.000 0.000

19

Preprint

E.5

PAIR - FORMATION ROBUSTNESS Table 12: Sensitivity to pair formation. Each setting has 300 audit runs per fit. Scenario Setting G GOOD Auth. (%) Cost (%) Harm (%) UNSW / Fuzzers UNSW / Fuzzers UNSW / Fuzzers UNSW / Fuzzers

Ordered Shuffle C Shuffle D Shuffle both

+102.95 +102.96 +102.97 +102.95

+105.74 +105.74 +105.74 +105.72

100.000 100.000 100.000 100.000

5.65 5.64 5.62 5.69

0.000 0.000 0.000 0.000

CICIDS / Hulk CICIDS / Hulk CICIDS / Hulk CICIDS / Hulk

Ordered Shuffle C Shuffle D Shuffle both

+789.81 +789.81 +789.79 +789.79

+830.80 +830.80 +830.80 +830.80

100.000 100.000 100.000 100.000

5.01 5.01 5.01 5.01

0.000 0.000 0.000 0.000

X-IIoTID / RDOS X-IIoTID / RDOS X-IIoTID / RDOS X-IIoTID / RDOS

Ordered Shuffle C Shuffle D Shuffle both

+340.34 +340.34 +340.29 +340.29

+461.00 +461.00 +461.00 +461.00

100.000 100.000 100.000 100.000

5.07 5.07 5.07 5.07

0.000 0.000 0.000 0.000

TON / XSS TON / XSS TON / XSS TON / XSS

Ordered Shuffle C Shuffle D Shuffle both

+80.18 +79.96 +79.67 +79.75

+102.24 +102.04 +101.70 +101.77

100.000 100.000 100.000 100.000

6.83 7.01 7.10 7.03

0.000 0.000 0.000 0.000

Coauthor Physics Coauthor Physics Coauthor Physics Coauthor Physics

Ordered Shuffle C Shuffle D Shuffle both

-22.94 -22.91 -22.94 -22.91

-23.17 -23.16 -23.17 -23.16

0.000 0.000 0.000 0.000

5.15 5.15 5.15 5.15

0.000 0.000 0.000 0.000

Compare the fixed pairing, shuffled C, shuffled D, and independently shuffled sides on 39 fits, with 300 audit runs per setting (46,800 total). Keep sets, scores and H fixed. Side permutations depend only on configuration and run IDs, before outcomes are accessed. Primary-task mean gains change by at most .52 corrections. All matched primary runs authorize with no harmful continuation or negative total gain; shuffling slightly raises TON’s decision cost. Physics always rejects at the first look.

F

W ORKLOAD R ESULTS AND R EPRODUCIBILITY

F.1

F ITS AND AUDIT RUNS

Table 13 lists 63 workloads from 48 frozen fits: 36 primary, three Physics, three BoT, three IoMT full, nine IoMT high-OOD and nine IoT23 low-OOD workloads. Each row averages 600 audit runs; cohort means weight nine workloads equally. IoT23 L1–L3 denote source seeds 9137101–9137103; BoT M1–M3 denote 9139101–9139103. Audit seeds randomize pair order, not events. Saved ledgers verify exact H, retention of paid nodes and net/OOD gains. F.2

RUN - LEVEL LOSSES

The 21,600 primary runs have no negative gain or harmful authorization. IoT23 has one harmful authorization and eight negative-gain runs out of 5,400. Full-pool IoMT has 42/1,800 negative-gain runs and BoT has 21/1,800, with no harmful authorization in either. High-OOD IoMT has neither outcome in 5,400 runs. Physics rejects all 1,800 times but loses 22.97 corrections on average through investigation costs.

20

Preprint

Table 13: Main-text PairAudit configurations and workloads. Each row contains 600 audit runs; fit IDs identify frozen configurations in the supplement. Task

Fit ID

Mix/cohort

UNSW / Fuzzers 21 Full UNSW / Fuzzers 22 Full UNSW / Fuzzers 23 Full UNSW / Fuzzers 24 Full UNSW / Fuzzers 25 Full UNSW / Fuzzers 26 Full UNSW / Fuzzers 27 Full UNSW / Fuzzers 28 Full UNSW / Fuzzers 29 Full UNSW / Fuzzers 30 Full UNSW / Fuzzers 31 Full UNSW / Fuzzers 32 Full UNSW / Fuzzers 33 Full UNSW / Fuzzers 34 Full UNSW / Fuzzers 35 Full UNSW / Fuzzers 36 Full UNSW / Fuzzers 37 Full UNSW / Fuzzers 38 Full UNSW / Fuzzers 39 Full UNSW / Fuzzers 40 Full CICIDS / Hulk 51 Full CICIDS / Hulk 52 Full CICIDS / Hulk 53 Full CICIDS / Hulk 54 Full CICIDS / Hulk 55 Full CICIDS / Hulk 56 Full CICIDS / Hulk 57 Full CICIDS / Hulk 58 Full CICIDS / Hulk 59 Full CICIDS / Hulk 60 Full X-IIoTID / RDOS 9269301 Full X-IIoTID / RDOS 9269302 Full X-IIoTID / RDOS 9269303 Full TON / XSS 68 Full TON / XSS 71 Full TON / XSS 74 Full IoT23 / ARP L1 1%/0 IoT23 / ARP L1 1%/1 IoT23 / ARP L1 1%/2 IoT23 / ARP L2 1%/0 IoT23 / ARP L2 1%/1 IoT23 / ARP L2 1%/2 IoT23 / ARP L3 1%/0 IoT23 / ARP L3 1%/1 IoT23 / ARP L3 1%/2 IoMT / ARP 9124101 Full IoMT / ARP 9124101 95%/0 IoMT / ARP 9124101 95%/1 IoMT / ARP 9124101 95%/2 IoMT / ARP 9124102 Full IoMT / ARP 9124102 95%/0 IoMT / ARP 9124102 95%/1 IoMT / ARP 9124102 95%/2 IoMT / ARP 9124103 Full IoMT / ARP 9124103 95%/0

N

H

G

GOOD Auth. (%) Cost (%)

25,305 2,531 +104.96 +104.97 25,305 2,531 +166.39 +171.00 25,305 2,531 +153.07 +153.00 25,305 2,531 +44.11 +49.32 25,305 2,531 +96.33 +98.95 25,305 2,531 +96.35 +101.84 25,305 2,531 +61.83 +69.37 25,305 2,531 +111.07 +110.99 25,305 2,531 +105.33 +109.95 25,305 2,531 +79.99 +80.91 25,305 2,531 +61.66 +62.58 25,305 2,531 +62.25 +64.96 25,305 2,531 +210.23 +213.00 25,305 2,531 +63.86 +65.68 25,305 2,531 +109.99 +107.99 25,305 2,531 +66.85 +71.48 25,305 2,531 +160.24 +162.00 25,305 2,531 +108.06 +111.75 25,305 2,531 +97.26 +102.80 25,305 2,531 +99.10 +101.97 27,114 2,712 +797.03 +836.00 27,114 2,712 +766.96 +803.00 27,114 2,712 +793.51 +841.00 27,114 2,712 +792.09 +840.00 27,114 2,712 +813.44 +853.00 27,114 2,712 +751.11 +788.00 27,114 2,712 +765.54 +819.00 27,114 2,712 +799.15 +827.00 27,114 2,712 +800.79 +852.00 27,114 2,712 +818.29 +849.00 14,187 1,419 +364.03 +454.00 14,187 1,419 +317.96 +461.00 14,187 1,419 +338.91 +468.00 11,407 1,141 +91.12 +109.59 11,407 1,141 +72.64 +96.65 11,407 1,141 +76.28 +99.84 13,693 1,370 +60.69 +21.97 13,693 1,370 +41.90 +14.92 13,693 1,370 +51.65 +12.29 13,693 1,370 +61.71 +17.68 13,693 1,370 +69.18 +26.90 13,693 1,370 +71.12 +23.23 13,693 1,370 +55.93 +16.45 13,693 1,370 +61.23 +24.99 13,693 1,370 +53.87 +21.86 6,554 656 +46.47 +42.62 1,442 145 +45.00 +45.00 1,442 145 +44.00 +44.00 1,442 145 +41.97 +41.97 6,554 656 +65.72 +64.32 1,442 145 +44.99 +44.99 1,442 145 +46.00 +46.00 1,442 145 +46.00 +46.00 6,554 656 +20.39 +26.60 1,442 145 +42.99 +42.99

100.00 100.00 100.00 100.00 100.00 100.00 100.00 100.00 100.00 100.00 100.00 100.00 100.00 100.00 100.00 100.00 100.00 100.00 100.00 100.00 100.00 100.00 100.00 100.00 100.00 100.00 100.00 100.00 100.00 100.00 100.00 100.00 100.00 100.00 100.00 100.00 100.00 99.83 100.00 100.00 99.83 100.00 100.00 100.00 100.00 100.00 100.00 100.00 100.00 100.00 100.00 100.00 100.00 100.00 100.00

5.11 5.07 5.06 9.27 5.32 5.48 7.49 5.07 5.32 5.28 5.78 6.35 5.06 5.99 5.07 6.40 5.06 5.37 5.39 5.20 5.01 5.01 5.01 5.01 5.01 5.01 5.01 5.01 5.01 5.01 5.07 5.07 5.07 6.19 7.86 6.70 9.59 11.62 10.21 8.87 8.99 9.26 10.13 9.55 10.27 7.45 5.52 5.52 5.55 6.44 5.54 5.52 5.52 11.95 5.58

Continued on next page

21

Preprint

Table 13 continued Task Fit ID IoMT / ARP IoMT / ARP BoT / DDoS-TCP BoT / DDoS-TCP BoT / DDoS-TCP Coauthor Physics Coauthor Physics Coauthor Physics

Mix/cohort

9124103 95%/1 9124103 95%/2 M1 Full M2 Full M3 Full 9094101 Full 9094102 Full 9094103 Full

N

H

1,442 145 1,442 145 7,482 749 7,482 749 7,482 749 12,813 1,282 12,813 1,282 12,813 1,282

22

G

GOOD Auth. (%) Cost (%)

+44.00 +44.00 +44.00 +44.00 +29.00 +98.06 +42.82 +103.42 +41.62 +103.31 -22.10 -23.00 -24.36 -24.50 -22.44 -22.13

100.00 100.00 98.50 100.00 100.00 0.00 0.00 0.00

5.52 5.53 15.46 11.66 12.04 5.15 5.15 5.15

Related documents

Record · ID 1227244 · SHA-256 7948f0a760efbcb8
Retrieved via Conceptio: every document is proof-bundled with source, license, and retrieval metadata.
Bring this data into your agent: Connect via MCP or API · 20 free credits to start · no card required
Read the Docs → · View CLI source on GitHub · Conceptio Open Knowledge Archive