TANGCO: Learning Topology-Aware Capacity Allocation for Overload-driven Cascading Failures

arXiv:2608.13212 · cs.LG, cs.SI · Submitted 2026-08-13 · Read on arXiv

Orkun Irsoy, Leman Akoglu, Osman Yagan

Carnegie Mellon University

cs.LG, cs.SI

Submitted: 2026-08-13

Updated: 2026-08-14

License: http://arxiv.org/licenses/nonexclusive-distrib/1.0/

Importance score: 100/100

The gist: TANGCO: Learning Topology-Aware Capacity Allocation for Overload-driven Cascading Failures Abstract Many networked systems, from power grids to traffic networks and cloud clusters, carry loads across

Terminology

Summary

TANGCO: Learning Topology-Aware Capacity Allocation for Overload-driven Cascading Failures

Abstract

Many networked systems, from power grids to traffic networks and cloud clusters, carry loads across nodes with limited capacity. A node whose load exceeds its capacity fails and sheds its load onto its neighbors, which can trigger a system-wide cascade. We study how to allocate a fixed capacity budget across nodes to resist these cascades under local load redistribution. The problem is difficult because no optimal allocation is known, and the fail-or-survive objective is non-differentiable and piecewise constant, so exact and gradient-based optimization methods do not directly apply. We introduce TANGCO (Topology-Aware Neural Graph-Guided Capacity Optimization), which uses a graph neural network policy trained through the cascade simulator with policy-gradient learning and a heuristic anchor. We evaluate TANGCO on five synthetic graph families and five real networks spanning power, road, air, and Internet topologies. The learned policy improves on the best of four hand-designed heuristics in all 450 synthetic instances and in 40 of 45 real-network conditions, with robustness gains ranging from 1.6% to 246%. The learned policies transfer to unseen graphs within a family and partially across related topologies, and TANGCOpre, pre-trained on synthetic graphs, matches per-network training on unseen real networks. Training scales near-linearly with graph size, and TANGCOpre allocates on a new network with no per-target training, matching the deployment cost of a hand-designed heuristic. Free-vector variants without the GNN, trained by policy gradient or by CMA-ES, stay close to the heuristics, so the graph representation carries the gain beyond numerical search; the depth analysis shows most of it arises from one-hop information. Finally, analysis of the learned allocations identifies when local risk is sufficient, leads to an improved closed-form heuristic, and reveals the regimes where a topology-aware learned policy remains necessary.

1. Introduction

Modern online services run on clusters of servers that share a request load. When one server becomes overloaded, its share of the load shifts to the remaining servers; if their updated load with the addition exceeds their capacity, they fail in turn, triggering a cascade that can end in a system-wide collapse. Such overload-driven cascades are a well-documented cause of large-scale outages at major cloud providers. The same pattern is prevalent across many networked systems, including power grids, transportation and traffic networks, supply chains, as well as financial systems where the failure of one institution imposes losses on its counterparties and can push them into failure. In each case a node carries a load and fails when that load exceeds its capacity, and a failed node passes its load to other functioning nodes. The failure of a few components can therefore propagate through the network and bring down the system.

Cascading failures are due to network effects, where entities are connected through dependencies in a graph. The interaction between the graph topology and the capacity allocation of nodes therefore becomes critical in the cascade dynamics. Flow-based models of cascading failure originate with Motter and Lai, who take each node's load to be its betweenness centrality and set its capacity to a fixed multiple of that load, c = (1 + α)l. A large literature builds on this model to relate network structure to robustness and to add mechanisms such as dynamical recovery of failed nodes and heterogeneous rules for how a failed node's load spreads to its neighbors. Almost all work in this line fixes the allocated capacity in advance and studies the robustness that results. The capacity allocation is thus an input to the model rather than a quantity to be designed.

In this work, we treat capacity as a decision variable and address the problem of allocating a limited capacity budget across nodes to maximize robustness against cascading failures, a question that has received far less attention. The few works that study this allocation problem solve it under a global redistribution rule, where a failed node's load is shared equally among all surviving nodes, irrespective of graph topology. That assumption yields a closed-form characterization of the final system size, and its allocations carry optimality guarantees while treating the network as fully connected and discarding topology.

Under local redistribution, where loads pass only to immediate neighbors, cascade outcomes depend jointly on the topology and the initial load and capacity, and the global-redistribution guarantees no longer apply. Existing allocations for local redistribution are hand-designed heuristics rather than optimized methods. Hence, even though prior work has studied robustness extensively by analyzing and modifying network structure, the design question of how to allocate capacities on a given network and load remains far less explored. In contrast, we ask how to allocate a fixed capacity budget over a given network under local redistribution, where no optimal allocation is known.

We introduce TANGCO (Topology-Aware Neural Graph-Guided Capacity Optimization), which employs a graph neural network (GNN) to learn capacity allocations directly from cascade dynamics. Given a graph and its initial loads, TANGCO outputs a capacity allocation that satisfies a fixed capacity budget.

Our paper introduces four main contributions:

  • Topology-aware capacity optimization: We cast capacity allocation as a topology-aware policy-learning problem and propose TANGCO to maximize robustness against cascading failures. Hard overload thresholds make the cascade objective piecewise-constant; TANGCO trains a GNN allocation policy from simulator AUC rewards with score-function updates, without differentiating through the discrete failures.

  • Synthetic Pre-training and Transfer: We also introduce TANGCOpre, pretrained on diverse synthetic graph topologies and load distributions, and demonstrate strong transfer to unseen real-world networks.

  • Effectiveness, Scalability, Speed: Across five graph families, three load distributions, three capacity budgets, and five real-world networks, TANGCO consistently outperforms four competitive heuristics. Training scales linearly with graph size, while TANGCOpre needs no per-target training, yielding the best latency–performance trade-off.

  • Characterizing Gains: We show that message passing contributes consistently beyond direct numerical optimization, develop a one-hop rule that recovers most gains in specific regimes, and find that TANGCO's gains are largest on heterogeneous topologies at intermediate capacity budgets.

2. Problem Formulation

We study overload-based cascading failures on an undirected graph G = (V, E) with N = V nodes. Each node v ∈ V has an initial load lv and a capacity cv. The capacity is the maximum load that the node can carry before it fails. We write l = (lv)v∈V and c = (cv)v∈V for the load and capacity vectors.

2.1 Cascade Dynamics

Consider a fixed graph G, load vector l, capacity vector c, and initial failure set F0 ⊆ V. The cascade starts by removing the nodes in F0. The loads of these nodes are then redistributed to the remaining network. After this redistribution, the surviving nodes are checked for overload. The same procedure is repeated in discrete iterations t = 1, 2,... until no new node fails.

Let lv(t) denote the load carried by node v at iteration t. The capacity cv is fixed during the cascade. A node remains active at iteration t if its current load does not exceed its capacity, i.e., lv(t) ≤ cv. If this condition is violated, the node fails and releases its current load for redistribution.

Let Ft, At, and Nt(v) denote the nodes that fail at iteration t, the nodes still active at that iteration, and the active neighbors of a node v. A failing node v ∈ Ft splits its current load lv(t) equally among its active neighbors Nt(v); if it has none (Nt(v) = ∅), the load spreads equally over all active nodes so that the total load is conserved in the system. Failures within an iteration resolve simultaneously, so an active node u accumulates the shares of its failing neighbors along with its part of the global term gt:

lu(t+1) = lu(t) + Σ v∈Ft, u∈Nt(v) lv(t)/Nt(v) + gt, where gt = (1/At) Σ v∈Ft, Nt(v)=∅ lv(t).

This additional load may cause neighboring nodes to exceed their capacities, which can trigger further failures in later iterations. The cascade stops when an iteration produces no new failures. Let t* denote the stopping iteration. The set of nodes still active at t* is the survivor set S. Then, for fixed G, l, c, and F0, the final surviving fraction is Φ(G, l, c; F0) = S/N. We use this quantity as the robustness measure for a single cascade.

Computational Complexity: Each cascade is cheap: a node fails at most once, so redistribution touches each edge once, and each round tests surviving nodes against their capacities. A cascade halting after t̄ rounds costs O(N t̄ + E), with t̄ ≤ N in the worst case but far smaller in practice.

2.2 Capacity Allocation Problem

The cascade model above determines the survival outcome for any fixed capacity assignment. Next, we consider how to allocate a given total capacity budget across the nodes of a given input graph to maximize robustness.

2.2.1 Capacity Constraint. Because additional capacity is costly in practice, we fix a total capacity budget and treat the node capacities as the decision variables. With an unlimited budget, robustness is trivially maximized. We parameterize a node v's capacity as cv = lv + sv, where sv ≥ 0 is the excess capacity, or free space, assigned to node v before any initial failures. This parameterization rules out trivial initial failures and simplifies the notation. Rather than optimize over capacities subject to lv ≤ cv, we optimize over non-negative free space under a fixed budget on the total free space. Let s = (sv)v∈V denote the free-space vector. For a given free-space budget B, the feasible allocations are ΔB = s ∈ R+N: Σ v∈V sv = B. Thus, optimizing the capacity vector c is equivalent to choosing a free-space allocation s ∈ ΔB, with capacities given by cv = lv + sv.

2.2.2 Robustness Objective. The fraction Φ(G, l, s; F0) measures robustness against one fixed initial failure set, F0. To evaluate an allocation for failures of a given size, let Fk = F0 ⊆ V: F0 = k be the collection of all initial failure sets containing exactly k nodes. The exact average survival fraction under k initial failures is Jk(G, l, s) = (1 / (N choose k)) Σ F0∈Fk Φ(G, l, s; F0). This is a finite average over the initial failure sets of size k. Weighting the members of Fk equally evaluates expected survival under uniformly random initial failures; targeted removal calls for a worst-case rather than an average-case objective and lies outside our scope. To obtain a single robustness score across failure sizes, we aggregate the average survival fractions over a set of failure sizes K ⊆ 0,..., N: AUC(G, l, s) = Σ k∈K wk Jk(G, l, s), where wk ≥ 0 and Σ k∈K wk = 1. The weights specify how much emphasis is placed on different failure sizes. Plotting Jk against the failure fraction p = k/N traces the survival curve J(p), and with uniform weights the objective is the discretized area under that curve, hence the name AUC. In our experiments we place uniform weight on failure fractions p ∈ [0, 0.5] and zero weight outside this range. This range focuses the evaluation on low-to-moderate failure fractions, where robustness depends strongly on how the cascade propagates after the initial failures, while keeping the same evaluation criterion for all methods.

Then, given an input graph G and budget B, the capacity allocation objective is max s∈ΔB AUC(G, l, s).

2.2.3 Why the Optimization is Difficult. Although the feasible set ΔB is simple, the objective in (8) is not. Each node's survival is set by a hard overload threshold, so the outcome stays fixed as s varies until a threshold is crossed, then jumps. The objective AUC(G, l, s) is therefore step-like and non-concave: convex methods do not apply, and gradients are uninformative on flat regions and undefined at the jumps. Exact evaluation is also intractable: Jk(G, l, s) sums over (N choose k) initial failure sets, each requiring a full multi-round cascade. Because the outcome couples topology, load and capacity, and the location and order of failures, no closed-form characterization is available as in prior global-redistribution models, which motivates a simulation-based learning approach.

3. Proposed TANGCO

TANGCO combines a message-passing GNN policy with simulation-based reinforcement learning. For a fixed instance (G, l) and free-space budget B, the goal is to learn a policy that outputs an allocation s ∈ ΔB with high robustness. The pipeline works as follows: node features feed a GNN policy, whose output is projected onto the budget simplex as a feasible free-space allocation. The allocation can only be evaluated through the cascade simulator, whose hard failure thresholds and discrete redistribution steps make the robustness score non-differentiable. We therefore train the policy with REINFORCE: at each iteration, the algorithm samples candidate allocations, scores them using empirical AUC rewards, and updates the policy from these rewards.

3.1 Node Features and GNN Policy

The allocation depends on both the load vector and each node's local topology. We therefore use a message-passing GNN rather than learning N unrelated parameters. The GNN shares parameters across nodes and aggregates multi-hop information, which is useful since failures can propagate beyond one round. For each node v we compute a log-transformed feature vector xv from its own load, its degree, the mean, maximum, and variance of its one-hop neighborhood loads, and its two-hop degree. The GNN stacks K message-passing layers; its architecture follows GraphSAGE with mean aggregation, differing in two respects: messages are normalized by the sender's degree, in parallel with the load-redistribution mechanism where a failing node splits its load among its neighbors, and each layer adds a residual connection to its MLP update to avoid oversmoothing. A final linear map produces one scalar residual logit μθ,v per node, and we write μθ(G, X) = (μθ,v)v∈V for the vector of outputs. The output layer is zero-initialized, so the initial residual logits are exactly zero and the policy starts at the anchor allocation described next.

3.2 Residual Softmax Allocation

Directly searching over all allocations in ΔB is high-dimensional and noisy. We therefore learn a residual correction around a fixed anchor allocation: the anchor gives the policy a reasonable starting point, and the GNN shifts capacity from it using the graph and load features. Let sanchor ∈ ΔB be a fixed anchor allocation. We use two anchors in the experiments. The first is the uniform allocation, sv uniform = B/N. Beyond serving as an intuitive baseline, the uniform allocation is optimal under global redistribution, where the network is treated as fully connected, with extensions to partial load loss and max-load targeted attacks. The second anchor is a local-redistribution heuristic. Irsoy and Yağan allocate free space in proportion to a node's one-hop local-risk, giving the Localized Risk-based Free-Space Allocation (LR-FSA) heuristic, sv lrfsa = B (rv / Σ u∈V ru), where rv = Σ u∈N(v) lu/du. The score rv estimates the load that node v may receive from its neighbors in one round of local redistribution. We train a separate policy for each anchor. Reported TANGCO performance uses the better of the two completed runs (each trained and evaluated independently), a two-start procedure that uses the cascade simulator already required for training.

We encode an anchor allocation as a logit vector aanchor by taking elementwise logs, aanchor = log(sanchor + ε). Since Σ v sv anchor = B, the softmax maps these logits back to sanchor at initialization; the budget B re-enters through the leading factor, and the small floor ε keeps the log finite where an anchor entry is zero. During training, the GNN output μθ(G, X) is treated as the mean of a Gaussian over residual logits. We sample residual logits as z(b) ∼ N(μθ(G, X), σ2I), where σ > 0 controls exploration and is annealed downward over training, and add the residual to the anchor logits before a softmax that projects onto the budget simplex: sv(b) = B (exp(av anchor + zv(b)) / Σ u∈V exp(au anchor + zu(b))), for v ∈ V. By construction, s(b) ∈ ΔB for every sample. At initialization μθ = 0, so the deterministic policy with σ = 0 exactly recovers the anchor, while stochastic samples are centered around it in logit space; as training progresses the GNN learns residual adjustments that improve robustness. The residual parameterization gives REINFORCE a warm start and reduces training noise, at the cost of restricting the search to softmax perturbations of the chosen anchor. This is not binding in our experiments, where the best allocation builds on one of the two anchors in every tested case, but it motivates future work on improved anchors and less anchor-tied parameterizations.

3.3 Simulator-Based Reward

Each sampled allocation is scored by the cascade model. Exact AUC evaluation is infeasible, so we use a Monte Carlo estimate: over a finite grid P of failure fractions, we draw M initial failure sets Fp,1,..., Fp,M of size ⌊pN⌋ at each p ∈ P, giving the empirical survival fraction Ĵp(G, l, s) = (1/M) Σ m=1 M Φ(G, l, s; Fp,m), and the reward is the empirical AUC over the grid, R(s) = AUĈ(G, l, s) = (1/P) Σ p∈P Ĵp(G, l, s), the empirical counterpart of the AUC objective with uniform weights.

3.4 Non-differentiable Optimization

The cascade simulator contains threshold failures and discrete rounds, so we cannot differentiate through it. We instead maximize the expected empirical AUC under the stochastic residual-logit policy, J(θ) = E z∼pθ [AUĈ(G, l, s(z))], for a fixed instance (G, l), budget B, and anchor, where pθ is the Gaussian and s(z) the softmax allocation. We optimize it with REINFORCE: the score-function estimator turns the simulator's scalar reward into a gradient on the GNN parameters through the log-probability of the sampled logits, and we reduce its variance with a batch-mean baseline over the Q samples per iteration and stabilize it with a small L2 penalty on the residual logits. We train with Adam, periodically evaluate the deterministic policy (σ = 0) on a held-out set of failure samples, and keep the allocation with the best validation AUC as the final output for that instance.

4. Experiments

We evaluate TANGCO through the following research questions (RQs):

  • RQ1: Effectiveness — Does TANGCO improve robustness over the baseline heuristics?

  • RQ2: Transferability — Does a trained policy transfer to held-out instances within a family, and across families?

  • RQ3: Scalability — How does TANGCO's allocation optimization grow with network size?

  • RQ4: Gain Attribution — Does the gain come from message-passing inductive bias or black-box numerical optimization?

  • RQ5: Gain Characterization — Which topologies, load distributions, and budgets yield the largest robustness gains?

4.1 Experimental Setup

Graphs: We use five synthetic families and five real-world networks spanning power, road, air-transport, and Internet router/AS domains. Each synthetic family has N = 5000 nodes and about 12 edges per node, and captures a distinct structural regime: ER (homogeneous degrees, no hubs), PowL (a heavy-tailed degree distribution, exponent γ = 2.5), ClusPowL (the same degrees with local clustering C ≈ 0.15), CorPer (a dense core with a sparse periphery), and RandGeo (spatial proximity edges with high clustering). The five real networks span few infrastructure domains: the Western US power grid (N = 4941), the Oregon AS graph (N = 10,670), the Chicago road network (N = 12,979), the OpenFlights airport network (N = 3188), and the Rocketfuel AS1221 topology (N = 3515). They cover a diverse set of structures, from near-planar (Chicago, maximum degree 7) to hub-heavy (OpenFlights and Oregon, maximum degree 248 and 2312). For each synthetic family we generate ten independent realizations and report the mean over the ten.

Loads and budgets: We evaluate each graph under three initial-load distributions: uniform (bounded variation around the mean), Pareto (a heavy tail, so a few nodes carry much larger loads), and bimodal (a two-group high/low mixture). The budget B is the total free space to allocate; we set B/Σ v lv ∈ 0.5, 0.75, 1.0, from tight to loose, giving nine load-budget conditions in all.

Baseline heuristics: We compare TANGCO with four deterministic capacity rules from the cascade literature, all normalized to Σ v sv = B: the two anchors of Section 3.2, Uniform (equal free space) and LR-FSA (one-hop local-risk); Load, proportional to initial load; and Degree, proportional to degree.

Architecture, training, and protocol: We use K = 3 message-passing layers and hidden width 64 throughout, except in the depth ablation of Section 4.5, and train each instance with Adam. We report the robustness score AUC(G, l, s) of Eq. (7), the average survival fraction over p ∈ [0, 0.5]. The primary comparison is TANGCO (maximum AUC over the two anchors) against the best heuristic (maximum AUC over Uniform, Degree, Load, LR-FSA) on each configuration. We replicate training over five seeds per configuration and report the mean; training-seed variance is small.

4.2 Overall Performance (RQ1)

Figure 3 shows a robustness curve for a representative instance and makes the AUC metric concrete: each curve traces the survival fraction as the failure fraction grows, and a more robust allocation keeps the curve higher for longer, enclosing more area. TANGCO pushes its curve well to the right of every heuristic, holding a high survival fraction out to roughly twice the failure fraction that the heuristics withstand.

Two observations follow:

  • TANGCO improves on the best heuristic in almost every condition. The policy improves on the best heuristic in all 450 synthetic cells (5 families × 9 conditions × 10 realizations) and in 40 of the 45 real-world conditions, with gains from +1.6% on ER at a loose budget to +246% on OpenFlights. The five exceptions all sit at the tightest budget on a spatially embedded network (Chicago under all three loads, the US grid under uniform and bimodal loads), where the improvement is ≈ 0 because no allocation survives even p ≈ 0.01.

  • Training two anchors guards against anchor failure. We anchor the policy on either Uniform or LR-FSA and keep the better of the two. LR-FSA is the stronger prior in most conditions, but it risks trapping the policy: on Oregon AS, the LR-FSA anchor collapses along with the heuristic it starts from, which concentrates too much free space on a few extremely connected hubs. The Uniform anchor is the more stable prior, supplying the winning policy on both hub-heavy AS topologies, at the risk of missing the gain LR-FSA offers where its prior holds. Keeping the better of the two captures LR-FSA's upside without its risk.

4.3 Transferability (RQ2)

Every result so far trains one policy per graph instance. We now ask whether a trained policy transfers to unseen graphs: first across held-out instances within and between families, then as a model deployable on any new network.

Per-graph policies transfer within a family and across families that share structure. For within-family transfer we train one policy jointly on eight of a family's ten realizations and evaluate it on the two held out; for cross-family transfer we apply each such policy to every other family's held-out graphs. Within-family transfer is positive on all five families and matches per-instance training within about ±0.002 AUC. Cross-family, transfer still improves on the target heuristic in 17 of 20 cells, holding among the heavy-tailed families PowL, ClusPowL, and CorPer, and failing only when a RandGeo policy, trained on spatial graphs without hubs, is applied to a hub-dominated target (e.g. RandGeo→PowL, −0.062). Pareto load shows the same pattern, improving in 14 of 20 cross-family cells.

TANGCOpre transfers to unseen real networks with no per-target training. The cross-family result suggests that a policy exposed to enough structural variety during training should transfer broadly. We therefore pre-train TANGCOpre on a curated suite of 64 synthetic graphs spanning different families and a wide range of sizes, densities, and family-specific parameters (separate checkpoint per anchor). Applied with no parameter update on the target (reporting the better of the two anchors), TANGCOpre reaches mean AUC 0.18 on the five real networks under uniform load, matching per-instance training and improving on the best heuristic (0.12) by about 1.5× on average, up to 3× on OpenFlights. It recovers the gain even where family-specific transfer fails, reaching 0.261 on OpenFlights against a heuristic 0.076 and 0.336 on Oregon AS against 0.237. It improves on the best heuristic on four of the five real networks under uniform load, and delivers this at heuristic deployment cost.

4.4 Scalability (RQ3)

  • Training scales near-linearly with network size, and cascade simulator dominates while the GNN stays under 2%. Each run performs ≈ 8.4M cascade simulations, each O(N t̄ + E), while the policy adds one forward and one backward pass per iteration at O(N + E), negligible beside it. Across three synthetic families up to 40,000 nodes the fitted exponents lie between 0.97 and 1.10, and the five evaluated networks fall on the same trend; RandGeo scales worst, consistent with its deeper cascades.

  • Once trained, TANGCOpre needs no per-target training and deploys at heuristic-scale cost, capturing most of the robustness gain. At deployment each pretrained anchor allocates in one forward pass (reported robustness uses the better of the two); wall-clock placement is about half a second per pass, comparable to a heuristic and roughly 400× faster than training from scratch. It reaches mean AUC 0.18 across the five real networks, matching instance-trained TANGCO (0.18) and well above the best heuristic (0.12). T-LR, the tuned local-risk rule we introduce in §4.6, improves on the heuristics for a few seconds of search, while per-network training buys the final increment of robustness for minutes.

4.5 Ablations: Optimizer and Depth (RQ4)

A learned policy could beat heuristics by searching the allocation space more thoroughly than any fixed formula, or by encoding graph structure through message passing. We isolate the first with two variants that optimize a free allocation vector directly, No-GNN (same REINFORCE protocol as TANGCO) and a derivative-free CMA-ES optimizer, and the second by varying message-passing depth.

Direct search stays near the best heuristic whether policy-gradient or evolutionary; message passing carries the gain. No-GNN barely clears the best heuristic (mean ΔAUC −0.001 uniform, +0.002 Pareto); CMA-ES gains more (+0.009, +0.012), mostly on hub-heavy graphs, reaching 0.145 on OpenFlights against a heuristic 0.076, but still falls well short of TANGCO (0.262). Both lose on AS1221, where Degree is already strong. TANGCO beats the No-GNN variant in all 10 uniform cells (mean +0.052 AUC) and in all 10 Pareto cells, and beats the CMA-ES variant in every cell.

One message-passing hop is enough. A per-node MLP with no message passing (K = 0) already improves on the best heuristic; the first hop adds further gain, after which K = 2–5 stay flat. The K=0 → 1 step is small under the LR-FSA anchor, which already injects a one-hop local-risk estimate.

4.6 What Drives the Gains (RQ5)

TANGCO's gains concentrate on heterogeneous topologies at intermediate budgets. Analyzing the learned allocations shows local risk is a strong signal in some regimes but incomplete in others, where TANGCO draws on additional structural and nonlinear signals.

  • Gains scale with structural heterogeneity and peak at intermediate budgets. The largest improvements fall on heavy-tailed and hub-heavy topologies (ClusPowL +89%, PowL +65%, OpenFlights up to +246%, Oregon AS up to +108%), while homogeneous ER stays between +1.6% and +18.1%. Across budgets the gain is largest where the baseline is weak but survivable: it shrinks with budget on the strong-baseline families and grows with budget on the weak-baseline ones. Chicago and the US grid are the extreme, with no gain at B=0.5 until the budget buys enough survival to reallocate.

  • A systematic, nested analysis identifies local risk as the primary signal the policy uses, and where it falls short. We fit the normalized allocation log(sv/(B/N)) with a nested model sequence: the one-hop local-risk score rv alone, then cumulatively adding degree, load, and k-core, then a generalized additive model where the linear fit fails. Local risk alone explains the allocation in regime A (R2 ≥ 0.90: the moderately heavy-tailed families PowL, ClusPowL, CorPer, and several networks under uniform load). The rest need either an additional local feature such as degree (regime B, e.g. RandGeo) or nonlinear effects (regime C), as on the extreme-hub Oregon AS and AS1221, where a nonlinear fit reaches 0.82–0.98 against linear 0.03–0.33. Local risk is thus strong but incomplete: TANGCO rescales capacity-versus-risk where it dominates and draws on higher-order structure elsewhere.

  • Tuned Local-Risk (T-LR) recovers most of the heuristic-to-TANGCO gap where local risk dominates. Regime A motivates fitting a per-graph exponent, sv ∝ rv γ, by a bounded search on training failures rather than fixing γ = 1. T-LR recovers about 85% of the gap in regime A and matches TANGCO on OpenFlights (0.265 vs. 0.262). Outside regime A it falls below the best heuristic on Oregon AS and AS1221, where only TANGCO's higher-order graph reasoning recovers the gain.

5. Related Work

Cascading failures in flow networks are a long-studied problem. The foundational model of Motter and Lai assigns each node a load equal to its betweenness and a capacity fixed to a multiple of that load; when a node fails its load redistributes to others, which may overload them and trigger a cascade. A large body of work builds on this setup to study how cascades propagate under different mechanisms, including interdependent networks where failures couple across systems, dynamical recovery of failed nodes, and heterogeneous rules for how a failed node's load spreads to its neighbors. A related line engineers robustness by setting capacity as a fixed function of a local statistic, either a nonlinear function of load or a tuned power of node degree under a fixed budget. These models treat capacity as a closed-form rule fit to load or degree, rather than an allocation optimized against the cascade itself.

Fewer works take capacity allocation as a decision variable to optimize. Researchers optimize the capacity of a power system for robustness against cascades; prove that a uniform redundancy allocation maximizes robustness under random failures and extend the analysis to max-load targeted attacks; and derive optimal load-capacity allocations in multiplex networks. These analyses assume global redistribution, where a failed node's load spreads equally to all surviving nodes. Global redistribution yields clean, often closed-form optima, but it discards the network topology, and the resulting allocations do not transfer to local redistribution, where a node sheds load onto its neighbors and cascade outcomes depend on multi-round structure. Our baselines draw on both lines: the Uniform allocation follows the global-redistribution optimum, LR-FSA is a one-hop local-risk heuristic, Degree instantiates the degree-weighted rule, and Load the fixed-tolerance rule.

Learning for graph problems: A separate line learns to solve graph optimization problems. Graph neural networks with reinforcement learning construct combinatorial solutions node by node, and learn constrained resource allocations such as wireless power control or resource distribution in observational science. These methods assume a differentiable objective or a differentiable relaxation. Our fail-or-survive cascade objective is piecewise-constant and non-differentiable, so we train TANGCO with score-function gradients (REINFORCE) and keep the budget exact through a residual-softmax output.

Learning for cascading failures: Closest to our setting is work that learns to predict or mitigate cascades. Like TANGCO, Mao et al. train a graph neural network with reinforcement learning against a cascade simulator, here to surface the most vulnerable nodes of interdependent urban infrastructure. Jhun et al. reinforce the highest-ranked nodes under a learned avalanche-centrality measure to suppress nonlocal cascades; others treat defense as an adversarial game over discrete targets, steer spreading through node interventions, or learn a diffusion surrogate. A broader body predicts cascade outcomes and risk, identifies vulnerable node sets, and benchmarks these tasks. All rank, classify, or discretely reinforce a node set; none outputs a continuous, budget-feasible capacity allocation optimized end-to-end through the overload cascade.

6. Conclusion

We introduced TANGCO, a topology-aware learning framework for capacity allocation under local load redistribution. The framework contributes in two ways. First, it provides a viable method for improving robustness when the cascade objective is non-differentiable and no analytical allocation rule is available. Second, it helps explain the allocation problem itself by identifying when local-risk is sufficient and when additional or nonlinear structure matters. This analysis led to Tuned Local-Risk (T-LR), a rule that improves on the original heuristic in the regimes it can represent, while also showing why a GNN remains necessary in regimes that cannot be reduced to a simple rule. TANGCOpre, pre-trained on synthetic graphs, transfers to unseen real networks at the deployment cost of a hand-designed heuristic, extending the method to settings without per-network training. TANGCO therefore serves both as an allocation method and as a tool for extracting simpler principles from cascade dynamics. Future work can extend the framework to domain-specific redistribution models and develop graph-adaptive anchor selection from features alone.

Improvements for AI systems

Improvements to AI Systems Based on This Paper:

  1. Non-Differentiable Optimization with Graph Neural Networks (GNNs)
  • Improvement: Use GNN policies trained via REINFORCE (policy gradient) with a residual-softmax parameterization around a heuristic anchor, avoiding the need for differentiable objectives or closed-form solutions.

  • Capability: AI can optimize piecewise-constant, non-convex objectives (e.g., fail-or-survive thresholds) in networked systems, where gradient-based methods fail.

  1. Topology-Aware Capacity Allocation
  • Improvement: Incorporate multi-hop graph structure (via message passing) and node features (load, degree, neighborhood load variance) into allocation decisions, rather than treating nodes independently.

  • Capability: AI can allocate limited resources (e.g., capacity, budget, redundancy) across heterogeneous networks (power grids, cloud clusters, transport) to maximize resilience against cascading failures.

  1. Transferable Pre-Training Across Graph Topologies
  • Improvement: Pre-train a single policy (TANGCOpre) on diverse synthetic graphs (varying families, sizes, densities) and deploy it on unseen real networks without per-network retraining.

  • Capability: AI can generalize to new, unseen network structures at near-zero deployment cost, matching or exceeding per-instance training performance.

  1. Simulator-in-the-Loop Reinforcement Learning
  • Improvement: Train policies directly against a cascade simulator using Monte Carlo AUC rewards, with batch-mean baselines and L2 regularization for variance reduction.

  • Capability: AI can learn robust strategies in environments with discrete events (e.g., node failures) and stochastic dynamics, without requiring analytical models or differentiable simulators.

  1. Interpretable Allocation via Feature Attribution
  • Improvement: Use nested regression models (local-risk, degree, load, k-core) to explain learned allocations, identifying regimes where simple rules suffice vs. where nonlinear/higher-order structure is needed.

  • Capability: AI can generate explainable policies that reveal dominant factors (e.g., one-hop local risk) and automatically derive improved closed-form heuristics (e.g., Tuned Local-Risk) for specific regimes.

  1. Scalable Optimization for Large Networks
  • Improvement: Achieve near-linear training scaling with graph size (O(N+E) per iteration) and negligible GNN overhead compared to simulation, enabling deployment on networks with tens of thousands of nodes.

  • Capability: AI can optimize resource allocation in large-scale infrastructure (e.g., 40,000-node networks) within practical time budgets.

  1. Robustness Under Tight Budgets and Extreme Topologies
  • Improvement: Use dual-anchor training (uniform and local-risk) to avoid heuristic failure modes (e.g., over-concentration on hubs) and maintain gains across tight-to-loose capacity budgets.

  • Capability: AI can maintain performance even in adversarial conditions (e.g., hub-heavy networks, minimal free capacity) where single heuristics collapse.

  1. Automatic Heuristic Discovery
  • Improvement: Analyze learned allocations to derive new closed-form rules (e.g., T-LR with exponent γ) that recover most of the performance gap in regimes where local risk dominates.

  • Capability: AI can distill complex learned policies into simple, deployable rules for resource-constrained or real-time applications, while flagging regimes where full GNN reasoning is required.

What the Improved AI System Can Do:

  • Design capacity allocations for power grids, cloud server clusters, or transport networks to maximize survival against cascading failures, even when the objective is non-differentiable.

  • Deploy a pre-trained model on a new network (e.g., a city’s road system) in under a second, with robustness gains of 1.6%–246% over hand-designed heuristics.

  • Explain its allocations by identifying whether local risk, degree, or nonlinear interactions drive decisions, and automatically generate simpler rules where possible.

  • Scale to networks with tens of thousands of nodes, training in near-linear time and transferring across related topologies without retraining.

Sources

Related papers