Skip to content
E

ECNS Systemic Risk Engine

The Architecture of Collapse

Created on 8th February 2026

•

E

ECNS Systemic Risk Engine

The Architecture of Collapse

The problem ECNS Systemic Risk Engine solves

The ENCS Systemic Risk Engine is designed to solve the challenge of identifying and mitigating systemic financial risks that arise from the complex interdependencies within global banking networks. It addresses several critical problems identified in the provided documentation:

1. Mapping Invisible Fault-Lines and Cascading Failures

The system models the "Architecture of Collapse" by mapping the hidden connections (credit exposures and settlement obligations) between over 4,500 financial institutions. It solves the problem of predicting how a local failure at one bank can trigger a chain reaction of defaults across the entire network through Eisenberg-Noe clearing physics.

2. Strategic Coordination Failures (Bank Runs)

Unlike static models, ENCS accounts for strategic behavior under incomplete information. It models "coordination failures" where banks may withdraw credit or "run" on a counterparty not because the counterparty is insolvent, but because they fear other banks will withdraw first. This helps identify "self-fulfilling panics" that can collapse a system even when fundamentals are relatively strong.

3. Information Asymmetry and Transparency

The engine evaluates the impact of Opaque vs. Transparent regimes. It demonstrates how a lack of public information (Opaque regime) forces banks to rely on noisy private signals, leading to prisoner's dilemma dynamics and systemic instability. Conversely, it shows how Graph Neural Networks (GNNs) can provide accurate "public signals" to anchor beliefs and prevent coordination failure.

4. Self-Reinforcing Liquidity and Margin Spirals

The engine simulates complex feedback loops where:

  • Fire-sale losses degrade asset values, triggering further liquidations.
  • Margin spirals occur when variation margin calls force banks to liquidate assets, driving prices down further.
  • Dynamic risk aversion causes distressed banks to become increasingly conservative and prone to hoarding liquidity, which accelerates the system-wide collapse.

5. Green Swan Climate Risks

It addresses the emerging problem of climate transition risk. The model simulates how sudden regulatory shifts, such as a carbon tax, create shocks that propagate through the network. It specifically demonstrates that even "green" banks (e.g., in the EU) can default if their "brown" counterparties (e.g., in the US) are hit by climate shocks.

6. Regulatory Policy and Infrastructure Design

The system provides a sandbox for testing the effectiveness of financial infrastructure and regulations, such as:

  • Central Clearing Counterparty (CCP) Default Funds: Modeling how pre-pledged member capital affects systemic resilience without creating "fictional equity".
  • Circuit Breakers (Trading Halts): Quantifying how much systemic damage is prevented by halting liquidations when prices drop below a certain threshold.

Challenges we ran into

1. Fragmented and Missing Interbank Data

The team had to reconstruct a trillion-scale global banking network from fragmented regulatory filings, such as US FFIEC Call Reports and EU EBA Transparency Exercises. A major challenge was that interbank bilateral data is often missing or not publicly reported. To solve this, the engine uses a Gravity Model calibrated to BIS statistics and the Sinkhorn-Knopp (RAS) algorithm to impute missing connections while satisfying balance sheet constraints.

2. Computational Scale and Complexity

Modeling over 4,500 banks creates an network complexity that is computationally expensive for standard simulation. The developers addressed this by:

  • Using sparse matrix construction (scipy.sparse.csr_matrix) for memory-efficient storage of millions of interbank edges.
  • Offloading the heavy simulation logic to a high-performance Rust core via PyO3 to handle massive Monte Carlo runs.

3. Underestimation of Risk in Standard Models

A core challenge was that standard industry models (like the "Max-Entropy" or "Uniform" models) often underestimate systemic risk by assuming interbank connections are spread out thinly and uniformly. This "artificial dilution" absorbs shocks that should realistically trigger a cascade. The ENCS team had to implement a "Smart" Core-Periphery topology to correctly capture the high interconnectivity of major systemic banks (SIFIs).

4. Modeling Nonlinear "Cliff-Edge" Dynamics

The engine had to account for complex, self-reinforcing feedback loops that create sudden, catastrophic failures rather than linear declines:

  • Liquidity and Margin Spirals: Modeling how variation margin calls force banks to liquidate assets, which further drives down prices and triggers more calls.
  • Exponential Fire-Sales: Implementing non-linear price impacts where asset prices decay exponentially based on the volume of liquidated assets.

5. Transitioning from Mechanical to Strategic Behavior

Moving beyond simple mechanical defaults (where a bank only fails if it is insolvent) required modeling strategic coordination failures. This involved assigning "Edge-level agents" to every interbank exposure to decide whether to "Roll Over" or "Withdraw" based on Bayesian beliefs and expected utility. A key challenge here was implementing Dynamic Risk Aversion, where a bank's internal behavior changes as its equity is depleted, making it twice as likely to hoard liquidity and accelerate a run.

6. Ensuring Conservation of Money

In complex simulations involving Central Counterparties (CCPs) and margin shortfalls, there is a risk of "conjuring capital" or violating basic accounting principles. The developers had to ensure the Conservation of Money by:

  • Funding CCP Default Funds through pro-rata deductions from bank equity.
  • Tracking margin shortfalls as systemic credit losses rather than phantom liquidation pressure.

Tracks Applied (1)

Core ML

Discussion

Builders also viewed

See more projects on Devfolio