Interactive paperOct 2026arXiv preprint

Gather or Act? Belief-Level Counterfactual Labels for Deadline-Aware Incident Response in Cyber-Physical Systems

No public cyber-physical security dataset priced every candidate action from the same situation. TE-GvA does, for 9,908 decisions on the Tennessee Eastman process, and its belief-level labels teach a defender when evidence is worth its delay.

Ali Mohammadi Ruzbahani

Smart Cyber-Physical Systems Lab, Department of Electrical and Software Engineering, University of Calgary

Interactive simulation

Act now, or gather evidence first?

A reactor sensor group's readings are held: a failed sensor link or a frozen I/O module. Every candidate first action is rolled out four times for three hours, in the true world and in its twin. Switch the label, toggle the backup channel, and push the posterior toward 0.50 or toward certainty.

Label
Backup channel
Deadline, hidden
No incident
Posterior P(link)
0.50
Best first action
Pending
Gather-or-act gap Δ
Pendingcost points, simulated

An illustrative, real-time model of the labelling procedure. Tool durations, efforts and cost weights follow the paper's Table 2 (trip 100 cost points, near-limit operation 5 per hour, lost production up to 10 per hour, backup channel 0.5 per hour); the plant response is a stylised reactor-pressure model, so the simulated costs are examples. The figures reported below come from the paper's experiments.

01

Results

Trained on belief labels, the same decision rule makes better calls: 11% lower regret on the stress test set, and 27% lower where the two causes look alike and no backup channel exists.

9,908

decision points from 1,990 simulated incidents, with 143,447 labelled candidate actions and 926,764 rollouts.

33.1%

of ambiguous stress decisions without a backup channel in which gathering is best under belief labels. Hindsight labels: 1.1 to 1.3% of all decisions.

27%

lower regret where it matters most: −0.93 cost points [−1.75, −0.32], p < 0.001, significant after Holm correction over the 20 pre-specified comparisons.

11%

lower regret on the whole stress test set, the pre-specified primary comparison: −0.25 [−0.51, −0.04], p = 0.016.

Paper, Table 4 · ambiguous development decisions

Gathering is strictly the best first action

  • Hindsight labels
  • Belief labels
View as table
SubsetDecisionsHindsight labelsBelief labels
Natural set1,3241.6%15.5%
Stress set, backup channel1,3741.7%12.5%
Stress set, no backup channel1,4161.8%33.1%

Paper, Table 6 · sealed test split, scored with belief labels

Belief-trained minus hindsight-trained rule: regret difference

Cost points with 95% cluster-bootstrap intervals. Left of zero: belief labels are better. Filled markers: the interval excludes zero.

View as table, with hindsight scoring
SubsetnBelief scoringHindsight scoring
Natural, all784−0.02 [−0.10, +0.05], p = 0.63−0.06 [−0.16, +0.01], p = 0.12
Natural, ambiguous family336−0.04 [−0.22, +0.13], p = 0.65−0.14 [−0.36, +0.03], p = 0.12
Stress, all (primary)1,200−0.25 [−0.51, −0.04], p = 0.016−0.24 [−0.58, +0.01], p = 0.066
Stress, ambiguous family726−0.44 [−0.89, −0.07], p = 0.016−0.42 [−1.00, +0.01], p = 0.058
Stress, backup channel available570+0.07 [−0.08, +0.23], p = 0.41+0.08 [−0.14, +0.30], p = 0.42
Stress, ambiguous family, backup channel available348+0.09 [−0.14, +0.37], p = 0.49+0.12 [−0.23, +0.46], p = 0.52
Stress, no backup channel630−0.54 [−1.02, −0.17], p < 0.001−0.53 [−1.16, −0.10], p = 0.003
Stress, ambiguous family, no backup channel378−0.93 [−1.75, −0.32], p < 0.001−0.92 [−1.91, −0.18], p = 0.002

All test numbers come from one pre-specified evaluation of the sealed test split (natural: 784 decisions, 199 episodes; stress: 1,200 decisions, 200 episodes), with 95% cluster-bootstrap intervals over episodes (2,000 replicates). The decision rule is a histogram gradient-boosted regressor (squared error, 300 iterations) on 90 action and 151 evidence features; it predicts each candidate's cost and picks the argmin. On the stress set it is the best policy tested, with a belief regret of 1.95 cost points: 43% below the investigate-first playbook (3.40), 69% below the act-first playbook (6.35), and statistically indistinguishable from the hindsight oracle, which knows the cause. In high-stakes decisions it lowers the trip probability of the chosen action from 0.33 under the act-first playbook to 0.19, close to the 0.14 of the cost-optimal candidate. Primary: the stress-set gain stays significant under Holm correction over the two primary tests (p = 0.016 against 0.025). Holm: significant after Holm correction over the 16 views of Table 6; the ambiguous no-backup comparison also survives correction over the 20 pre-specified comparisons.

02

How it works

Every candidate is priced from the same snapshot, in the world that happened and in the one the defender cannot yet rule out.

01

Simulate a plant, a network and a toolbox

The revised Tennessee Eastman process runs in mode 1 under Ricker's decentralized control (1.8 s control interval, 41 measurements, 12 manipulated variables), wrapped in a control network with one remote I/O module per sensor group, 36 s telemetry windows and an executor for 11 defensive tools. 1,990 incidents yield 9,908 decision points.

02

Branch every candidate with common random numbers

At each decision point the labeller snapshots the whole environment, then rolls out every candidate (13.8 natural and 14.9 stress on average) as the first action, four replicates each, followed by the act-first playbook for 3 h. Shared noise paths cut the variance of paired differences to 14.0% (natural) and 22.1% (stress).

03

Replay the defender's history in a twin

Every ambiguous episode runs again under the other cause with the same seed and random streams. The module fault starts one control interval (1.8 s) earlier, so delivered readings and window summaries are bit-identical until the causes diverge, and each defender action is replayed at the same control step.

04

Weight both worlds by the exact posterior

The posterior over the pair is analytic: a prior of 0.519 (natural) or 0.388 (stress), times the likelihood of link-health reports, trace results and operator reports. Deterministic evidence that differs excludes the twin. Expected calibration error: 0.015 (natural) and 0.014 (stress).

Paper, Table 2

The defender's toolbox and what time costs

Tools have log-normal durations and pass through an executor queue with 5 s latency. Effort and all other costs are in cost points; a trip ends the rollout, so its lump stands for every later loss.

Trip (protective shutdown)
100
Near-limit operation
5 per hour
Lost production
up to 10 per hour
Any sensor link on backup
0.5 per hour
ToolFamilyDurationEffort
monitor(T)wait until τ + TmonitorT0
query_historianrecent readingsobserve10 s0.04
trace_linkcorrect with probability 0.97observe2 min0.2
verify_sensorfield check of a groupobserve20 min1
switch_to_backupsame readings, 36 s laterespond1 min0.2
restore_primaryrespond1 min0.2
repair_linkrespond40 min2
recalibrate_sensorfrozen, drift, biasrespond60 min2
replace_io_modulerespond60 min2
set_productionrespond30 s0.2
escalateoperator names the true cause with probability 0.85escalate15 min4

03

Why it matters

Suppose the readings of a sensor group stop changing. A failed network link and a frozen remote I/O module both leave the controller acting on the same held values, so the plant behaves identically. The repairs differ: about 40 minutes for the link, about an hour to replace the module, and the wrong repair leaves the plant on stale measurements while it drifts toward a protective shutdown. Tracing the link takes two minutes and settles the question. Deciding when that trace is worth it needs the cost of every candidate action from the same situation, which no public cyber-physical security dataset provided until TE-GvA.

Labels computed under the true hidden cause cannot see this. Every hindsight rollout runs with the cause known, so gathering is best in only 1.1 to 1.3% of decisions, and in 29% (natural) and 45% (stress) of those the only difference is the cost of the tool itself. Measured at the defender's state of knowledge, acting as if the cause were known costs 1.55 (natural) and 2.69 (stress) cost points per ambiguous decision and is the wrong choice in 29% and 34% of them. Belief labels change the gather-or-act answer in 15% (natural) and 22% (stress) of ambiguous decisions.

The fix is principled. When the posterior is correct and the twin is faithful, belief labels have the same regression target as hindsight labels and a variance smaller by at least the between-cause term (Proposition 1, a Rao-Blackwell argument), and the noise they remove is largest exactly where gathering matters. They are also forgiving: soft labels with moderately misweighted evidence or a shifted prior were never significantly worse than hindsight labels on all decisions, while hard labels that commit to one cause were significantly worse under belief scoring. The code, the TE-GvA arrays and the datasheet are released with the paper.

04

Cite this work

@misc{mohammadiruzbahani2026gatheroract,
  title         = {Gather or Act? {B}elief-Level Counterfactual Labels for Deadline-Aware Incident Response in Cyber-Physical Systems},
  author        = {Mohammadi Ruzbahani, Ali},
  year          = {2026},
  eprint        = {2611.03974},
  archivePrefix = {arXiv},
  doi           = {10.48550/arXiv.2611.03974},
  url           = {https://arxiv.org/abs/2611.03974}
}