2. Background and Related Work
Computational systemic risk and its reactive limit. The post-2008 literature has produced powerful diagnostic tools for financial fragility. CoVaR [
3] measures the value-at-risk of the system conditional on an institution being in distress; DebtRank [
4] propagates shocks through balance-sheet networks using iterative impact algorithms; SRISK [
14] provides capital shortfall forecasts from equity dynamics. Graph neural network architectures [
5,
15,
22] have advanced contagion modelling by learning from dynamic network topologies, and temporal hypergraph frameworks [
16,
17] have demonstrated that higher-order interactions among groups of assets carry information beyond pairwise correlations. These frameworks are methodologically mature but share a fundamental computational limitation: they measure fragility that already exists in observed prices and co-movements. None encodes physical infrastructure as a structural constraint on the computation itself, and none generates an actionable pre-crisis lead time by measuring topological preconditions rather than realized outcomes. The critical transitions literature [
19] established that complex systems , ranging from ecosystems to financial markets and the climate, exhibit generic early-warning signals (rising variance, critical slowing down) before tipping points; [
20] confirmed statistically significant critical slowing down before several financial crises. TENSORnet’s cross-scale divergence
is the infrastructure-constrained financial analogue of these generic signals, with the gate
providing the physical causal mechanism that Scheffer-type indicators lack. [
21] established the foundational contagion model in which balance-sheet linkages propagate distress; the TPH-NODE’s interconnection matrix
formalises this mechanism in a port-Hamiltonian structure. [
18] identified this as the central unmet challenge for macroprudential policy: the toolkit must become genuinely forward-looking. Two decades later, the gap remains open.
Physics-informed computing, port-Hamiltonian systems, and Neural ODEs. Scientific machine learning has demonstrated that encoding governing physical equations directly into neural architectures produces qualitatively different generalisation behaviour from purely data-driven models [
6]. PINNs embed PDEs as constraints on the loss function; the consequence is that the model satisfies the physics even in regions unseen during training. Port-Hamiltonian systems theory provides the natural mathematical framework for this encoding in dynamical systems [
8]: the structured decomposition
, where
is skew-symmetric (energy-conserving interconnection) and
is positive semi-definite (irreversible dissipation), automatically satisfies the second law of thermodynamics. Port-Hamiltonian neural networks [
8,
23] have been applied to robotics, power systems, and fluid dynamics; their application to financial networks under physical infrastructure constraints remains unexplored. Neural ODEs [
9] provide the continuous-time backbone that enables trajectory prediction under novel input sequences via the neural adjoint method, overcoming the distributional limitations of discrete-time stress tests. Landauer’s Principle [
2] provides the foundational link between information processing and energy: since financial transactions are computation, infrastructure failure is not merely an operational inconvenience but a thermodynamic constraint on the market’s information-processing capacity. Maximum entropy production [
24] connects this to the entropy dynamics observed in financial networks: The critical entropy threshold
is the point below which entropy production cannot be maintained by the infrastructure-constrained system. Shannon entropy [
25] provides the information-theoretic measure that operationalises this insight: entropy over the cross-asset return distribution quantifies the informational diversity of market activity, and its depletion is the computational signature of metabolic arrest.
Infrastructure-finance coupling and the South African laboratory. Infrastructure-finance interdependencies have received growing empirical attention. [
26] document how climate-driven infrastructure shocks cascade into financial system disruptions through multiple transmission channels. [
27] demonstrate that climate stress-tests of European banking networks reveal topological signatures consistent with the Densification Paradox documented here: rising correlation coupled with structural fragility. [
28] quantify the direct impact of South African load-shedding on JSE trading volumes and sectoral output, and [
29] establish theoretically that network connectivity is a double-edged sword, with the stability-fragility transition governed by percolation-type thresholds [
30] that correspond to the data-derived Arrest Coefficient boundaries in
Section 3.4. Critically, all existing infrastructure-finance studies are ex-post: they document linkages after crises have materialised. South Africa’s decade-long load-shedding crisis (2015–2026) constitutes a uniquely clean natural experiment: the infrastructure constraint is exogenous to financial market dynamics, providing uncontaminated identification of the infrastructure-entropy mechanism. Crucially, the cross-asset network structure adopted here, pairing equities, bonds, commodities, and volatility in a temporal graph, is not South Africa-specific: it is the standard architecture of any multi-asset financial market globally. JSE is the laboratory; ERCOT, the National Grid, and AEMO are the next natural experiments. The 2,838-day panel assembled here is the first publicly archived cross-asset dataset pairing JSE returns with official Eskom stage classifications at daily resolution [
31], enabling the empirical tests reported in
Section 4. No existing framework has transformed this natural experiment into a real-time, forward-looking computational detection protocol. TENSORnet is designed to fill this gap.
Positioning across disciplines. TENSORnet sits at the intersection of four computational disciplines that have not previously been integrated in financial network analysis: (1)
Statistical physics supplies the entropy framework (Shannon information, Landauer dissipation, maximum entropy production) that converts market microstructure into thermodynamic signals; (2)
Physics-informed machine learning [
6] provides the architectural principle of encoding governing physical laws as structural constraints rather than learnable features; (3)
Port-Hamiltonian systems theory [
8,
23] furnishes the energy-conserving/dissipative decomposition that makes the intervention layer thermodynamically consistent; and (4)
Computational finance supplies the walk-forward evaluation protocol, benchmark suite, and macroprudential application context. This integration is what makes TENSORnet a
computational contribution: the physics is not decoration, it is the algorithm.
Figure 2 summarises how TENSORnet differs from representative methods.
Figure 2 positions TENSORnet against representative methods in the literature.
Figure 1.
TENSORnet computational pipeline. Left: data inputs (JSE returns, Eskom stage L, VIX) with walk-forward design (train 2015–2018; OS 2019–2026). Centre: physics encoding comprising the Landauer inhibitory gate (red; 77.8% suppression at Stage 6), Shannon entropy (amber), modulated entropy (purple), and Arrest Coefficient (purple). Right: three-regime classification (Regime I/II/III), walk-forward performance (F1=92.4%, AUC=1.000, FP=0, 17-day lead), ablation result (AUC=0.469 without gate), and TPH-NODE theoretical extension (dashed border). Red arrow: infrastructure causal pathway .
Figure 1.
TENSORnet computational pipeline. Left: data inputs (JSE returns, Eskom stage L, VIX) with walk-forward design (train 2015–2018; OS 2019–2026). Centre: physics encoding comprising the Landauer inhibitory gate (red; 77.8% suppression at Stage 6), Shannon entropy (amber), modulated entropy (purple), and Arrest Coefficient (purple). Right: three-regime classification (Regime I/II/III), walk-forward performance (F1=92.4%, AUC=1.000, FP=0, 17-day lead), ablation result (AUC=0.469 without gate), and TPH-NODE theoretical extension (dashed border). Red arrow: infrastructure causal pathway .
Figure 2.
Positioning of TENSORnet in the computational systemic risk literature. (a) Radar chart: TENSORnet (shaded polygon) dominates all five criteria (physics encoding, lead time, infrastructure coupling, open data, formal validation). (b) Scatter plot: TENSORnet is the only method combining advance lead time (>5 days) with near-perfect F1, occupying the top-right corner while all reactive methods cluster at lead time = 0.
Figure 2.
Positioning of TENSORnet in the computational systemic risk literature. (a) Radar chart: TENSORnet (shaded polygon) dominates all five criteria (physics encoding, lead time, infrastructure coupling, open data, formal validation). (b) Scatter plot: TENSORnet is the only method combining advance lead time (>5 days) with near-perfect F1, occupying the top-right corner while all reactive methods cluster at lead time = 0.