Graph-Structured Latin Hypercube Sampling: Accelerated Monte Carlo Convergence on Industrial Attack Graphs
J. McKenney
This paper is a standalone treatise in the WG-08 Monte Carlo Engine Application working group rather than an entry in a numbered series. Its own References section cites the confirmed working-group sibling whose engine it accelerates, the Cyber Digital Twin Monte Carlo Engine specification.
Licence: CC BY 4.0. 13 September 2026.
Executive Abstract#
Estimating how likely a catastrophic outcome is inside a large, complex industrial network with ordinary random sampling takes an enormous number of simulated trials, because catastrophes are rare and a purely random search wastes most of its effort re-running ordinary, non-catastrophic scenarios rather than the dangerous ones.
This paper chooses scenarios differently. Rather than drawing them at random, it spreads them systematically across the space of possibilities, guided by the facility's own attack graph, so rare and extreme scenarios are covered without wasted repetition. It also tracks, as the run proceeds, how heavy the tail of possible losses is, so the method adapts to how extreme the worst cases turn out to be, and it reserves a fixed set of trials for the most severe corner of the space so those pathways are examined every time.
On a simulated 100,000-component refinery, it reached the same statistical confidence an ordinary random search needed 50,000 trials for using only 2,500, a roughly twenty-fold saving, while narrowing the spread of the estimate by 81.4 percent. That makes extreme-risk analysis practical on facilities far too large for the older method to handle in reasonable time.
Abstract#
Quantitative risk analysis over operational technology networks evaluates path traversal likelihoods, multi-stage dwell latencies, and downstream physical kinetic consequences across massive attributed directed graphs. Pseudo-Random Monte Carlo (PRMC) path sampling suffers from sample clustering: in high-dimensional trajectory spaces, uniform draws leave large hyper-volumes unexplored while redundantly sampling typical, non-catastrophic trajectories. Because cyber-physical catastrophes occupy the extreme upper tail (Pareto index below two, the infinite-variance regime), PRMC needs more than one million iterations for stable Conditional Value at Risk, prohibitive on graphs exceeding 100,000 nodes. We present Graph-Structured Latin Hypercube Sampling (GLHS). Decomposing the five-dimensional traversal manifold into equiprobable orthogonal strata and pairing them with graph importance-weighted random walks, GLHS attains error convergence of order one over N under functional ANOVA decomposition, against order one over root N for PRMC. A dynamic Hill estimator tracks the Pareto index in real time, and a Deterministic Upper-Quantile Stratification protocol guarantees coverage of rare, high-consequence failure pathways. Across a verified 104,857-node continuous catalytic reformer, GLHS cuts the sample budget from 50,000 to 2,500 iterations while narrowing estimator variance by 81.4 percent, recovering a tail index near 1.26 and Conditional Value at Risk up to 4.3 times Value at Risk.
1. The Dimensional Sampling Bottleneck in Cyber-Physical Graphs#
Industrial operational technology facilities, such as ethylene crackers, cryogenic natural gas fractionators, and high-voltage transmission substations, exhibit tightly coupled cyber and physical layers. In these environments, attack graphs are neither simple directed acyclic graphs nor uniform planar lattices; they are dense, heterogeneous multi-graphs combining physical process equipment, field conduits, control loops, and software dependencies.
When assessing the risk of physical destruction, security engineers must model trajectories that traverse multiple decision variables. J. McKenney and the Eigenia Research Group have identified five orthogonal parameter dimensions that govern the propagation of a cyber-physical attack vector:
- Initial Conduit Penetration Latency (): The distribution of time required to breach a peripheral conduit, parameterized by network boundary exposure and credential entropy.
- Conditional Exploit Execution Probability (): The likelihood that a specific operational technology payload successfully executes against a vulnerable target, conditioned on Common Vulnerabilities and Exposures () attributes, Exploit Prediction Scoring System () velocity, and compiler architecture.
- Internal Subnet Dwell Time (): The operational delay between successive lateral movements as the adversary navigates segmented Purdue Model zones (e.g., crossing from Level 3 Operations to Level 2 Supervisory Control).
- CyHAZOP Detection Probability (): The likelihood that anomalous network telemetry or thermodynamic deviation triggers an automated interlock or operator intervention prior to actuator manipulation.
- Physical Kinetic Energy Transfer Efficiency (): The fraction of destructive energy delivered to mechanical or thermal containment boundaries (e.g., over-pressurization shock, rotor over-speed resonance, or thermal runaway).
Let the trajectory parameter space be denoted by the unit hypercube . When an analytical engine evaluates the cumulative financial loss for an arbitrary parameter vector , standard PRMC draws independent, identically distributed () vectors .
By the Central Limit Theorem, the variance of the PRMC sample mean estimator scales strictly as:
In complex industrial facilities where is amplified by extreme physical damage consequences, obtaining an estimator confidence interval within of the true mean requires iterations. On digital twin graphs containing nodes and edges, executing 500,000 multi-physics evaluations requires hours of distributed compute time, making real-time actuarial risk adjustment and live underwriter pricing impossible.
2. Mathematical Formulation of Graph-Structured Latin Hypercube Sampling#
To break the convergence constraint, we formulate Graph-Structured Latin Hypercube Sampling (). The method couples stratified multi-dimensional space-filling sampling with stochastic path generation across attributed multi-graphs.
2.1 Stratified Hypercube Partitioning#
Let denote the dimensionality of the cyber-physical traversal space. We partition the support of each dimension into mutually disjoint, equiprobable intervals:
For each dimension , let be an independent uniform random permutation of the integers , such that denotes the interval assigned to the -th sample along axis . The -th coordinate in dimension is then drawn as:
where are mutually independent random variables ensuring that exactly one sample falls within each stratum along each coordinate axis. This configuration ensures that the projection of the sample set onto any one-dimensional coordinate axis yields a uniform stratification across .
2.2 Coupling Hypercube Points to Graph Walk Ensembles#
Unlike classical Latin Hypercube designs that evaluate fixed black-box response functions, cyber risk models evaluate trajectories over discrete topologies. We define a mapping operator that projects continuous hypercube sample vectors into concrete realization paths over :
- Parameter Transformation: Each coordinate is transformed into its physical or operational domain via the inverse cumulative distribution function :
- Transition Probability Modulation: The Boltzmann transition probability for an adversary stepping from node to adjacent node under parameter realization is governed by: where is the traversal energy barrier derived from asset hardening, firewall conduits, and access control lists, modulated by the exploit probability and dwell window .
- Termination and Physical Injection: A walk terminates when either the elapsed time exceeds the detection threshold () or the path reaches an engineering actuator (). Upon reaching an actuator, the kinetic damage model computes total loss , where evaluates Joukowsky acoustic pressure surge, boiler over-pressurization, or thermal runaway dynamics.
3. ANOVA Decomposition and Variance Reduction Proof#
The theoretical superiority of over PRMC stems from the Functional Analysis of Variance () decomposition of the loss response surface.
3.1 Functional ANOVA Expansion#
Let denote the composite loss function mapping the hypercube to . Any square-integrable function admits a unique orthogonal decomposition:
where the constituent terms satisfy the orthogonality condition:
The base mean and main effects are defined by:
The total variance decomposes into orthogonal variance components:
where .
3.2 Variance of the GLHS Estimator#
Let be the Latin Hypercube estimator of .
Theorem 1 (Asymptotic Variance Reduction of GLHS). If , then as , the sampling variance of the estimator satisfies:
In contrast, the PRMC estimator variance contains the additive main effects:
Proof. Consider the estimator error . For any one-dimensional main effect , the stratified sum is:
Because is continuously differentiable on , we apply a Taylor expansion around the stratum midpoint :
Taking expectations with respect to , we note that . The variance of the sum of midpoints approximates the Riemann integral:
Consequently, . Summing across all samples, the main-effect contribution to the estimator variance drops from to . The remaining estimator variance is governed strictly by the interaction terms . In cyber-physical industrial topologies where primary equipment vulnerability and physical energy release represent additive separable terms ( of total variance), eliminates the dominant variance component entirely.
4. Extreme Value Theory and Live Pareto Tail Estimation#
Cyber-physical incidents follow extreme fat-tailed distributions rather than thin-tailed Gaussian or log-normal distributions. While common IT security incidents (e.g., commodity malware infection) have modest economic impacts, industrial OT compromises can cause physical destruction of multi-million dollar turbomachinery, trigger environmental contamination, and cause prolonged plant shutdowns.
4.1 The Power-Law Regime#
Formally, the probability density of financial loss in the upper tail satisfies a Pareto-type power law:
where is the Pareto tail index. The mathematical characteristics of the risk regime depend strictly on :
- If : The distribution has finite mean and finite variance.
- If : The distribution has a finite mean, but infinite variance.
- If : The distribution has infinite mean.
Empirical loss distributions across petrochemical, power distribution, and cleanroom manufacturing facilities yield tail indices in the range . In this regime, the sample variance does not converge to a constant as ; instead, it exhibits erratic fluctuations dominated by the largest observed loss. Standard Value at Risk () substantially understates exposure. Underwriters and risk committees must evaluate Conditional Value at Risk:
For , is exactly . A model assuming Gaussian tails () will misprice catastrophic risk by a factor of 4.3x.
4.2 Dynamic Hill Estimator Formulation#
To monitor the stability of the tail index during Monte Carlo execution, the engine implements a streaming Hill Estimator. Let represent the order statistics of the loss realizations obtained from iterations. For a tail cutoff threshold , the Hill Estimator is given by:
To prevent bias arising from subjective choice of , the engine employs the Danielsson-de Haan bootstrap method to identify the optimal threshold :
When , the simulation engine automatically flags the facility risk profile as operating within the Extremistan regime and activates deterministic upper-quantile sampling.
5. Deterministic Upper-Quantile Stratification#
In standard Latin Hypercube Sampling, although each coordinate interval is sampled once, the multidimensional conjunction of extreme values (e.g., simultaneously high exploit probability, zero operator detection, and maximum kinetic transfer efficiency) remains a probabilistic event that can fail to materialize in finite runs.
To provide deterministic upper-tail guarantees, we formulate the Deterministic Upper-Quantile Stratification () protocol.
5.1 Stratum Splitting Algorithm#
- Let denote the critical tail quantile threshold (conventionally set to ).
- The parameter hypercube is partitioned into two regions:
- Core Operating Domain: , carrying probability measure .
- Critical Vulnerability Domain: , containing the sub-hypercube with measure .
- We allocate the total computational budget into two dedicated subsets: where is the number of sub-strata per dimension within .
- Within , an exact grid or orthogonal array of strength is evaluated deterministically, guaranteeing that all high-order interactions between extreme parameter values are explored without probabilistic omission.
5.2 Tail Re-Weighting and Unbiased Integration#
Because the tail region is deliberately oversampled relative to its natural probability measure, the global expected loss estimator applies importance weights:
where the weights satisfy . This formulation guarantees that catastrophic kinetic events (e.g., catastrophic compressor casing rupture) are evaluated in every execution while preserving asymptotic unbiasedness:
6. Empirical Benchmark: 100,000-Node Refinery Digital Twin#
We implemented and within the Eigenia Cyber Digital Twin Monte Carlo core and executed benchmark comparisons against standard PRMC over an industrial-scale topology.
6.1 Benchmark Topology Specification#
The benchmark model represents a continuous catalytic reformer and hydrocracker facility synthesized from DEXPI 2.0 physical topologies and CycloneDX 1.6+ multi-BOMs:
- Total Graph Vertices (): nodes (encompassing physical process items, instrumentation and fieldbus transmitters, firmware binaries, and network access control entities).
- Total Graph Edges (): directed attributed edges.
- Physical Loss Function: Multi-physics dissipation model incorporating Joukowsky acoustic wave propagation in high-pressure fluid lines and thermal runaway kinetics in exothermic reactor jackets.
6.2 Convergence Results and Variance Metrics#
We evaluated the performance of PRMC across sample sizes against with identical parameter distributions.
| Metric | PRMC () | PRMC () | GLHS () | GLHS + DUQS () |
|---|---|---|---|---|
| Mean Loss Estimator () | ||||
| Estimator Relative Std Error | ||||
| Estimate | ||||
| Estimate | ||||
| Hill Tail Index () | ||||
| Gaussian-to-Pareto Ratio () | ||||
| Execution Wall-Clock Time |
6.3 Analysis of Empirical Findings#
- Catastrophic Tail Under-Sampling in PRMC: At , PRMC failed to sample any trajectories combining high conduit compromise velocity with severe actuator override, producing an artificially depressed of and an overestimated tail index . Only when PRMC was scaled to (8.4 hours of execution time) did it capture the heavy-tailed physics.
- Superior Accuracy at Low Compute Budgets: at (25.4 minutes) matched the fidelity of PRMC at , producing an estimated of and .
- Deterministic Tail Capture with DUQS: Combining with yielded an estimator error of only and locked the Gaussian-to-Pareto ratio to , confirming that catastrophic common-cause failures are captured reliably in every simulation cycle.
7. Operational Implementation and Actuarial API Integration#
To integrate with industrial risk engineering and underwriting workflows, the engine is exposed via high-performance Server-Sent Events () and REST endpoints.
7.1 Real-Time Actuarial Payload Structure#
Upon completion of the stratified walk ensemble, the engine produces an immutable actuarial risk artifact formatted for reinsurance treaty placement and continuous underwriting:
{
"simulation_id": "mc-glhs-2026-0913-a4f7",
"facility_id": "REF-HYDROCRACKER-TX04",
"method": "GLHS_DUQS",
"sample_count": 2500,
"graph_topology": {
"node_count": 104857,
"edge_count": 312450,
"purdue_levels_modeled": [0, 1, 2, 3, 4]
},
"actuarial_metrics": {
"annualized_loss_expectancy_usd": 16124000,
"value_at_risk_99_usd": 95100000,
"conditional_var_99_usd": 188400000,
"hill_tail_index_alpha": 1.264,
"regime": "EXTREMISTAN_INFINITE_VARIANCE",
"gaussian_vs_pareto_ratio": 4.32,
"barbell_defense_ratio": 2.45
},
"convergence_validation": {
"variance_reduction_factor": 5.38,
"relative_standard_error_pct": 1.41,
"deterministic_tail_strata_evaluated": 125
}
}8. Conclusion and Strategic Relevance#
Standard Monte Carlo techniques developed for financial options pricing or IT vulnerability scans cannot handle the multi-dimensional parameter spaces and heavy-tailed physical destruction dynamics of modern industrial infrastructure.
By grounding graph traversal in Latin hypercube stratification, ANOVA variance reduction, and extreme value tail estimation, the framework delivers:
- A 20x Acceleration in Compute Efficiency: Reducing required simulation iterations from to without loss of estimator precision.
- Accurate Fat-Tail Risk Quantification: Eliminating Gaussian distortions by directly modeling the infinite-variance Pareto regime () and measuring at up to standard .
- Provable Audit Integrity: Providing deterministic guarantees that low-probability, catastrophic physical failure pathways are rigorously sampled in every underwriting review cycle.
9. References#
- McKay, M. D., Beckman, R. J., & Conover, W. J. (1979). A comparison of three methods for selecting values of input variables in the analysis of output from a computer code. Technometrics, 21(2), 239-245.
- Owen, A. B. (1992). A central limit theorem for Latin hypercube sampling. Journal of the Royal Statistical Society: Series B (Methodological), 54(2), 541-551.
- Hill, B. M. (1975). A simple general approach to inference about the tail of a distribution. The Annals of Statistics, 3(5), 1163-1174.
- Danielsson, J., & de Haan, L. (1997). Extreme value theory and risk management. Journal of Banking & Finance, 21(11-12), 1405-1421.
- Embrechts, P., Klüppelberg, C., & Mikosch, T. (2013). Modelling extremal events: for insurance and finance. Springer Science & Business Media.
- McKenney, J. (2026). Cyber Digital Twin Monte Carlo Engine: Technical Specification & Engineering Reference. Eigenia Working Group WG-08-MO Canonical Standard.
- ISO 15926 series (Parts 1-12): Industrial automation systems and integration, Integration of life-cycle data for process plants including oil and gas production facilities.
- DEXPI (2024). Data Exchange in the Process Industry: DEXPI P&ID Specification 2.0. ProcessNet.
- OWASP (2024). CycloneDX v1.6 Standard: Cybersecurity Bill of Materials Specification. OWASP Foundation.