← Lab /Security & privacy

Structure-aware malware calibrators worsen confidence under type shift

Adding community covariates to post-hoc malware calibrators increases NLL, and a label-free guard reduces that degradation

Security & privacy arXiv 22 Sep 2026 Measurement Simulation evidence

Published as “Stress-Testing Structure-Aware Calibration of Malware Graph Neural Networks under Type Shift”

Why it matters

A label-free support guard can be deployed to mitigate confidence degradation when structural covariates fall outside calibration support, improving safety of malware-type-shifted deployments.

Summary

Adding community-structure covariates to a post-hoc calibrator for a frozen GIN on MalNet-Tiny worsens calibration, increasing mean NLL by 0.1369 (95% interval [-0.0125, 0.2864]). A capacity-matched nuisance control shows that extra dimensions explain only part of the loss (NLL +0.0415). A label-free support guard that falls back to the generic calibrator reduces the combined NLL by 0.1133 and cuts high-confidence errors, bringing performance close to the generic baseline. Evidence comes from four held-out malware types, three random seeds, and bootstrap resampling, but the effect varies by type and is not universal.

What they found 2

  1. Community covariates increase calibration loss

    “Adding eight community covariates to a generic-topology calibrator increases mean negative log likelihood (NLL) by 0.1369; a type-cluster bootstrap gives a 95% interval of [-0.0125, 0.2864].”

  2. Guard recovers most of the loss

    “The guard reduces combined NLL by 0.1133 and highconfidence errors from 43.25 to 33.25 per 400-sample cell, while its NLL remains close to the generic baseline.”

Caveats 6

  • Combined calibration improves on one of four held-out types (addisplay) and in 3 of 12 fold-seed cells, showing the effect is not uniformly negative.
  • The support guard does not achieve superiority over the generic calibrator; its NLL (0.9522) remains higher than generic (0.9286).
  • The conclusion is specific to MalNet-Tiny, a degree-feature GIN, deterministic Louvain summaries, logistic post-hoc models, and four held-out types.
  • Each MalNet-Tiny malware type contains one family, so type and family effects cannot be separated.
  • The shift is not temporal and does not measure zeroday or future-malware detection.
  • Capacity and guard analyses were designed after the primary result, use the same four held-out types, and require confirmation on other malware datasets and stronger graph detectors.

What’s new here 3

  • Introduces a leakage-controlled stress test that holds out entire malware types from detector training, early stopping, and calibration.
  • Provides a capacity-matched nuisance-feature control to isolate the effect of added input dimensions from content-specific shift.
  • Proposes a label-free community-support guard that reverts predictions when structural covariates fall outside calibration support.