Network reliability evaluation in multilayer stochastic systems is computationally expensive due to combinatorial explosion in capacity states. This paper proposes an edge-based spatio-temporal attention learning framework to approximate multilayer network reliability. Monte Carlo simulation is first used to generate reliability labels. A temporal-spatial attention model is then trained to learn the nonlinear mapping from stochastic edge features to network reliability. The proposed approach significantly reduces computational cost while maintaining high estimation accuracy.
Network Reliability; Monte Carlo Simulation; Spatio-Temporal Attention; Edge-Based Learning; Deep Learning Approximation
Network reliability plays a critical role in transportation systems, communication infrastructures, and energy grids. Traditional reliability computation relies on exhaustive state enumeration or Monte Carlo simulation, both of which suffer from high computational complexity.
To address this limitation, we reformulate reliability estimation as a supervised learning problem and propose an edge-based spatio-temporal attention model.
We consider a multilayer directed network:
G = (V, E)
Nodes are assumed perfectly reliable.
Each edge e ∈ E has stochastic capacity:
P(C_e = k) = p_k
Given demand D, network reliability is defined as:
R = P(max_flow(G) ≥ D)
To estimate ground-truth reliability:
Reliability estimator:
R ≈ (1/N) Σ I(flow_i ≥ D)
Computational complexity:
O(N · |E| · FlowComplexity)
Edge feature tensor:
X ∈ R^(T × E × F)
Where:
T = time steps
E = number of edges
F = feature dimension
Temporal attention weights:
α_t = softmax(W_t X_t)
Temporal aggregation:
Z_e = Σ α_t X_t
Spatial attention weights:
β_e = softmax(W_s Z_e)
Spatial aggregation:
Z = Σ β_e Z_e
Final prediction:
R_hat = sigmoid(WZ + b)
Loss function:
L = (R_hat - R_true)^2
Optimization performed using Adam optimizer.
Once trained:
Inference complexity:
O(EF)
Compared to Monte Carlo:
O(N · |E| · FlowComplexity)
This provides significant computational acceleration.
Experiments include:
Evaluation metrics:
The model approximates a high-dimensional stochastic flow probability function. Attention mechanisms enable automatic identification of critical edges and critical time steps.
The framework is extendable to:
This paper presents an edge-based spatio-temporal attention framework for multilayer network reliability estimation. By integrating Monte Carlo simulation with deep learning approximation, the approach significantly reduces computational burden while preserving estimation accuracy.
Future work includes theoretical error bounds and real-world infrastructure validation.
pythonimport torch
import torch.nn as nn
class TemporalAttention(nn.Module):
def __init__(self, feature_dim):
super().__init__()
self.attn = nn.Linear(feature_dim, 1)
def forward(self, x):
weights = torch.softmax(self.attn(x), dim=0)
return torch.sum(weights * x, dim=0)
class SpatialAttention(nn.Module):
def __init__(self, feature_dim):
super().__init__()
self.attn = nn.Linear(feature_dim, 1)
def forward(self, x):
weights = torch.softmax(self.attn(x), dim=0)
return torch.sum(weights * x, dim=0)
class ReliabilityModel(nn.Module):
def __init__(self, feature_dim):
super().__init__()
self.temporal_attn = TemporalAttention(feature_dim)
self.spatial_attn = SpatialAttention(feature_dim)
self.fc = nn.Linear(feature_dim, 1)
self.sigmoid = nn.Sigmoid()
def forward(self, x):
x = self.temporal_attn(x)
x = self.spatial_attn(x)
return self.sigmoid(self.fc(x))
本文作者:Darren
本文链接:
版权声明:本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!