Manuscript Offprint
arXiv:2610.10386Efficient Heuristics and Machine Learning Approach for Fault Characterization in Distributed Self-Stabilizing Programs
Abstract
Modern large-scale systems rely on distributed protocols to maximize efficiency while preserving the correctness guarantees of single-process execution. However, designing such protocols is non-trivial: adding resources to a system inherently increases its complexity, which in turn introduces faults that must be addressed during design. One such fault class, arising in systems that use distributed shared memory (e.g., replicated databases), is consistency violating fault (cvf), a fault in which a process accessing shared memory reads stale data previously written by another process. Cvf's are inherent to systems that prioritize availability over strict consistency. Prior work has shown that self-stabilizing programs remain correct under high availability, provided such faults stay within a tolerable bound. Characterizing the behavior of self-stabilizing programs in the presence of cvfs can therefore help system designers build systems that are both correct and efficient. In this paper, we study self-stabilizing programs under cvfs to understand when and where such faults occur, enabling runtime measures that improve computational efficiency. Since exhaustive state-space exploration does not scale, it suffers from state-space explosion; our study investigates two complementary approaches: a conflict-based state-space exploration technique for monotonically stabilizing ( )-Graph Coloring programs, and a machine-learning-based approach for a Maximal Independent Set program. We propose a conflicting-edges-based state-space exploration algorithm alongside a rigorously validated ML model, evaluated on an out-of-distribution dataset through structural consistency checks against known graph invariants.
Keywords
Static Program Analysis, Consistency Fault, Stabilization, State Space Explosion, Distributed Graph Computation, Machine Learning
The effect of a cvf can vary substantially with its location where and timing when in the system. It is natural to expect that faults at more central nodes are more destructive than faults at peripheral ones, though identifying which nodes are central in this sense is itself non-trivial and depends on the specific self-stabilizing problem under study. Cascading cvfs may also have a disproportionately larger effect than isolated faults, and a cvf occurring near the invariant may be more damaging than one occurring far from it, since a configuration close to legitimacy has comparatively little room to absorb a perturbation without moving further away. This study aims to answer several such research questions: given a self-stabilizing problem and an input graph, which nodes are most susceptible to damaging faults, which transitions warrant the most attention, and how self-stabilizing graph problems can be solved more reliably in distributed systems. Answering these questions, however, requires exhaustively enumerating the full configuration space of the system, which quickly becomes computationally intractable as graph size grows.
This intractability is not unique to cvf analysis: exhaustive state space exploration is a well-known bottleneck in the analysis and verification of concurrent systems generally, since the number of reachable states typically grows exponentially with the number of state variables in the system [26]. For example, a self-stabilizing graph coloring algorithm on a 10-node complete graph must explore on the order of states. This is already too many states to store on a modern system, making an exhaustive search infeasible. This is known as the State Space Explosion problem, and much of the research in model checking over the past several decades has focused on developing techniques to mitigate it [4, 23].
In our setting, large-scale graph processing is carried out using a Distributed Shared Memory (DSM) abstraction, which gives processes on separate machines the illusion of a single, shared address space [16]. Since the underlying data is not actually co-located, DSM systems need a memory coherence protocol to keep reads and writes consistent across machines, historically implemented via centralized or distributed manager algorithms [16]. In practice, this abstraction is often implemented atop a replicated storage layer for low-latency access and fault tolerance, which introduces further consistency challenges of its own.
A replicated system maintains multiple copies of shared data across geographically distributed machines, enabling low-latency access and fault tolerance in the presence of network partitions and node failures. This model underlies much of modern distributed
Amit Garu, Duong Nguyen
infrastructure, from edge computing and compliance-driven architectures to large-scale cloud services; geo-replicated databases such as Amazon's Dynamo, Cassandra, and Google Spanner are prominent industrial examples [5, 6, 14]. A central challenge in these systems is managing the trade-off between consistency, availability, and latency across replicas [9], which motivates the range of consistency models, from strong consistency guarantees to weaker, eventually consistent semantics, considered in this work.
As data volumes and problem sizes continue to grow, large-scale graph processing has become a cornerstone of modern distributed systems built on this kind of infrastructure. Distributed Graph Computation is widely employed for algorithms such as PageRank and Triangle enumeration [22], as well as shortest-path, bipartite matching, and clustering algorithms implemented within vertex-centric frameworks such as Pregel [18]. Computation over data local to a node is fast and avoids the risk of acting on outdated information, since the data is directly and immediately available. When computation instead depends on data held at other locations, the possibility of cvf arises, since a node may act on a stale copy of remote data before it is updated. Self-stabilizing algorithms are one prominent approach to designing graph computations that remain correct despite such faults, which motivates our focus on cvf analysis in this setting.
2 System Model and Architecture
2.1 Self stabilization
Given as a distributed program, as the program's state space, as a program state in , and as the program's state transition function. Suppose is a set of the program's invariants (legitimate states where the program's specification is met). Then program is self-stabilizing with respect to if it satisfies two properties [7]:
(1) Convergence: from an arbitrary initial state, every computation reaches a state in within a finite number of steps:
(2) Closure: Any program transition from a state inside the invariant will lead to another state also inside the invariant.
2.2 Static Program Analysis
Static program analysis (SPA) is a technique for reasoning about a program's properties by examining its structure and specification directly, without executing it [10]. Because it forgoes execution, static analysis is typically faster and less computationally expensive than dynamic, execution-based approaches. We adopt this technique primarily for the generalization it affords: conclusions drawn from static analysis extend across graphs of varying size and topology, rather than being tied to a specific instance evaluated at runtime.
SPA on self-stabilizing algorithms. Let P denote a self-stabilizing program and G the graph over which P executes, and let denote the resulting system under study. We define the configuration space of as a forest of trees, in which each edge represents a single program transition: the parent node is the source configuration, and each child node is a configuration obtained by applying one step of P to the parent. The leaf nodes of the forest are exactly those configurations satisfying the Invariant predicate, corresponding to the stabilized (legitimate) configurations of .
Algorithm 1 Static Program Analysis (computation of Ranks) of any self-stabilizing program using Full Analysis.
1: procedure FULLANALYSIS(G) 2: configurations ← GENERATECONFIGURATIONS(G) 3: ranks 4: for config ← GETUNLABELEDCONFIG(configurations, ranks) do 5: DFSUNTILINVARIANT(config, ranks)
6: function GETUNLABELEDCONFIG(configurations, ranks) 7: while config ∈ configurations do 8: if config ∉ ranks then 9: return config 10: return null
11: procedure DFSUNTILINVARIANT(config, ranks) 12: L ← 0 13: C ← 1 14: M ← 0 15: while config' ∈ GETPROGRAMTRANSITIONS(config) do 16: L', C', M' ← DFSUNTILINVARIANT(config') 17: L ← L + L' + C' 18: C ← C + C' 19: M ← max(M, M') 20: ranks[config] ← 21: return L, C, M
2.3 Exhaustive Full Analysis (FA)
Exhaustive FA is an SPA technique in which the entire configuration space of a program is exhaustively studied. For instance, -coloring on a star graph with 4 nodes yields configurations, all of which are examined under FA. Algorithm 1 presents a memory-efficient method for traversing the entire configuration space using Depth-First Search (DFS). We now introduce the following terminology used throughout our FA-based analysis:
Definition 2.1 (Rank of the Configuration). The rank of a configuration in is the number of correct program transitions required for that configuration to reach a legitimate state.
Definition 2.2 (Max Rank and Average Rank). The Max Rank of a configuration, denoted , is the maximum rank (Definition 2.1) observed across all possible transition sequences from that configuration to legitimate states of . The Average Rank, denoted , is the mean rank observed across the same set of transition sequences.
Figure 1 illustrates the rank calculation for the root configuration and the intermediate configurations that lead from the root configuration to the legitimate states (i.e., the stabilization program transitions). Here, M, L, and C denote the Max Rank, Total Path Length, and Total Path Count, respectively, for any given configuration. The Average Rank is the ratio of L to C. In the sections that follow, we focus our study on Average Rank, as it is the more complex of the two measures and the analysis applies equally to Max Rank.
Efficient Heuristics and Machine Learning Approach for Fault Characterization in Distributed Self-Stabilizing Programs
Conference'17, July 2017, Washington, DC, USA

Figure 1: Max rank (M) and Average rank ( ) calculations, starting from Invariant (M=0, L=0, C=1) and extending to the configuration at the root (M=2, L=8, C=4). are the Invariant configurations.
Rank Effect (RE). RE quantifies the impact of a state transition in that results from reading stale values from neighboring nodes. Within our cvf analysis model, RE is defined as the difference in rank between the source configuration and the perturbed configuration :
Intuitively, RE captures how many extra (or fewer) steps the perturbed state needs to reach the invariant, relative to the number of steps required under the correct (unperturbed) state transition.
2.4 Conflicting Edges (CE) Method
The CE algorithm computes configuration ranks by exploiting conflicting edges directly, rather than exhaustively exploring the configuration space as in FA. Algorithm 2 presents the CE method for computing ranks; a detailed workflow example is provided in the appendix (Figure 8). Compared to exhaustive FA (Section 2.3), CE is substantially more memory-efficient and modestly faster, as demonstrated in Section 4.1.
2.4.1 Proof of Correctness
Definition 2.3 (Monotonic Stabilization). A self-stabilizing system is monotonically stabilizing if, following a transient fault, every process changes its output at most once before the system reaches a legitimate state [8, 31]. Equivalently, recovery proceeds without oscillation: each process moves directly from its post-fault output to its final, legitimate output, and the system as a whole progresses monotonically closer to a legitimate state at every step.
Definition 2.4 (Branching and Elimination of Eligible Nodes). Given an edge state s with an eligible node (i.e., a node with at least one enabled action), the algorithm branches by generating the successor state yielded by executing that action at . By Definition 2.3, this successor state eliminates the edges associated with , since a monotonically stabilizing algorithm stabilizes the node with at most one action on it.
Definition 2.5 (Relabeling of the Subgraph). Given an edge state , the relabeling of the subgraph relabels the node ids in serial
Algorithm 2 Static Program Analysis (computation of Ranks) of a monotonically stabilizing program using CE-based FA.
1: procedure CONFLICTINGEDGESBASEDFULLANALYSIS(G) 2: nodeEdgesMap ← MAPNODESToEDGES(G) 3: configurations ← GENERATECONFIGURATIONS(G) 4: ranks ← INITRANKS(configurations) 5: for config ← GETUNLABELEDCONFIG(configurations, ranks) do 6: L, C ← CEBASEDRANK(G, nodeEdgesMap, config) 7: ranks[config] ←
8: function CEBASEDRANK(G, nodeEdgesMap, config) 9: state ← GETEDGESTATE(config) 10: state ← FILTERNONCONFLICTINGEDGES(state) 11: if |state| = 1 then 12: return (0, 1) 13: if state ∈ CACHE then 14: return CACHE[state] 15: L ← 0 16: C ← 0 17: for node ∈ nodes do 18: if NODEISELIGIBLE(state, node) then 19: state' ← state \ nodeEdgesMap[node] ▷ Branching by eliminating edges associated with the node. 20: RELABELSTATE(state') ▷ Relabeling of edges. 21: L', C' ← TRAVERESECESTATE(G, nodeEdgesMap, state') 22: L ← L + L' + C' 23: C ← C + C' 24: CACHE[state] ← (L, C) 25: return (L, C)
26: procedure RELABELSTATE(state) 27: nodes ← GETUNIQUENODEIDS(state) 28: SORT(nodes) 29: newNodeIds ← MAPNODEIDSSERIALLY(nodes) 30: for edge ∈ state do 31: edge[0] ← NEWNODEIDS(edge[0]) 32: edge[1] ← NEWNODEIDS(edge[1])
order such that the existing node ids are as close as possible to the relabeled node ids in the subgraph. Since the subgraphs are structurally identical, the Rank (Definition 2.1) of the original subgraph and that of the relabeled subgraph are the same.
Definition 2.6 (Invariant Edge State). An edge state s is an invariant edge state if , i.e., no conflicting edges remain. By Definition 2.1, an invariant edge state has rank 0, and by convention L = 0 and C = 1 for such a state.
LEMMA 2.7 (CORRECTNESS OF CE-BASED RANK COMPUTATION). For any edge state s in , the CE-based method correctly computes the Total Path Length L and Total Path Count C of s.
PROOF. We proceed by induction on the number of transitions from s to an invariant edge state (Definition 2.6). In the base case, s is itself an invariant edge state, i.e., , for which L = 0 and C = 1 by definition. For the inductive step, assume the claim holds for all edge states reachable from s in fewer transitions than s requires. The CE-based method comprises two steps, applied in order: Branching and Elimination of Eligible Nodes (Definition 2.4) and Relabeling of the Subgraph (Definition 2.5). For each eligible node in s (i.e.,
Amit Garu, Duong Nguyen
a node incident to one or more conflicting edges), branching and elimination correctly model the state transition of s when a move is made by that eligible node, producing one successor per eligible node, each with strictly fewer conflicting edges than s. Relabeling, applied on top of each successor, introduces no side effects and thus allows the rank to be computed correctly for s without altering the correctness established by the inductive hypothesis. Since L and C for s are computed by aggregating over these successors, the claim holds for s, completing the induction.
2.5 Machine Learning (ML) Method
Algorithm 3 ML-based cvf analysis across rank and centrality attributes (degree, clustering, closeness, betweenness), stratified into high- and low-valued regimes. S is the number of sampled configurations per regime; C is the number of perturbed configurations sampled per configuration in S.
1: procedure MLBASEDCVFANALYSIS(MLModel, Attribute, S, C) 2: HiValConfigs, LoValConfigs ← GETHiLoVALCONFIGS(Attribute, S) 3: HiValPertConfigs ← GETPERTURBEDCONFIGS(HiValConfigs, C) 4: LoValPertConfigs ← GETPERTURBEDCONFIGS(LoValConfigs, C) 5: HiREDist ← 0 6: LoREDist ← 0 7: COMPUTERE(MLModel, HiValConfigs, HiValPertConfigs, HiREDist) 8: COMPUTERE(MLModel, LoValConfigs, LoValPertConfigs, LoREDist) 9: procedure COMPUTERE(MLModel, Configs, PertConfigs, Dist) 10: for config ∈ Configs do 11: rank ← MLModel(config) 12: for config' ∈ PertConfigs do 13: rank' ← MLModel(config') 14: Dist ← Dist ∪ (rank' - rank)
An efficient way of computing the rank of a configuration in without exhaustively computing all the ranks is to use ML methods to learn the pattern of configurations in to get their ranks. In our study, we design a black-box ML model that takes as input a configuration alongside other precomputed attributes to predict the rank of the configuration. Since training data (which requires true rank labels) can only feasibly be generated for smaller graphs, it is important to consider how the model generalizes to the larger graphs used at inference time. Once we can compute rank efficiently for any configuration, we can analyze results based on sampled configurations in the configuration space. We leverage this ML-based approach to analyze faults in terms of when and where they occur, by examining sampled configurations in high- and low-valued regimes of each attribute. Algorithm 3 illustrates our ML-based approach for cvf analysis across the evaluation attributes. GETHiLoVALCONFIGS first identifies the high- and low-valued regimes for a given attribute, then samples S configurations from each regime.
2.6 Case Study of Distributed Programs
2.6.1 ( )-Graph Coloring (GC). For CE-based full analysis, we study a monotonically stabilizing ( )-Graph Coloring algorithm from [12]. Each node's state is the numeric color it currently holds, drawn from , where is the maximum degree of G. A node need not hold the minimum color among its neighbors; correctness only requires that its color differs from every neighbor's color.
2.6.2 Maximal Independent Set (MIS). For ML-based cvf analysis, we study the MIS algorithm from [25]. Each node's state takes one of three values, {IN, OUT, WAIT}. A configuration of (MIS, G) is legitimate when (1) no two neighboring nodes are both labeled IN (independence), (2) every node labeled OUT has at least one neighbor labeled IN (maximality), and (3) no node is labeled WAIT (all nodes have settled).
3 Experimental Setting
3.1 Graph Datasets
Graph families. We evaluate on four structurally distinct graph families, common to both the FA/CE experiments and the ML-based method: complete graphs (K), star graphs (St), powerlaw cluster graphs (Pl), and path graphs (Pa). This diversity lets us assess whether the learned rank predictor generalizes across topologies with markedly different degree distributions and diameters, rather than overfitting to a single structural regime.
In-Distribution (ID) and Out-of-Distribution (OOD) datasets. For the ML-based method specifically, because FA suffers from state-space explosion, exhaustive enumeration is intractable beyond small graphs. We therefore train the model on an ID dataset restricted to graphs within a limited node-count range, and evaluate extrapolation on an OOD dataset consisting of larger graphs whose node counts were never seen during training. The OOD set serves as our validation set, and we track its metrics alongside the ID training metrics throughout training to monitor generalization rather than memorization.
ML Features. Also specific to the ML-based method, features used to train the rank predictor follow a three-level taxonomy, from granular to coarse. Node features are local to a single node in a given configuration: structural properties (degree, clustering, closeness, betweenness centrality) and program state (e.g., is_in, can_request for MIS). Configuration features aggregate state across all nodes at a fixed configuration (e.g., multi_gh_max_norm, eligible_frac). Graph features are global, configuration-independent properties of (e.g., the adjacency matrix), fixed regardless of system state.
3.2 Measurement Protocol
The following measurement protocol applies specifically to the FA and CE experiments.
Definition 3.1 (Comprehensive Phase). For a program-graph pair , the comprehensive phase of rank computation, , denotes the total wall-clock cost of (i) allocating memory to store the rank of every configuration in the configuration space of , (ii) computing the rank of each configuration, and (iii) writing each computed rank into its allocated location.
Definition 3.2 (Core Phase). The core phase, , denotes the cost of step (ii) alone, isolated from allocation and storage overhead. Under exhaustive full analysis (FA), is the cost of a depth-first traversal of the full configuration space of . Under CE-based full analysis (CE), is the cost of enumerating all conflicting-edge states reachable in .
Efficient Heuristics and Machine Learning Approach for Fault Characterization in Distributed Self-Stabilizing Programs
Conference'17, July 2017, Washington, DC, USA
3.3 ML Model Architecture
Graph Neural Networks (GNNs) are the standard model architecture for learning over graph-structured data, following a general message-passing scheme: at each layer, every node aggregates information from its neighbors, then combines this aggregated message with its own previous representation to produce an updated representation. Stacking such layers allows a node to incorporate information from nodes up to hops away. Different GNN variants are distinguished primarily by their choice of aggregation and combination functions, which in turn determines their expressive power. In recent years, several such architectures have emerged, including Graph Convolutional Networks (GCN) [13], GraphSAGE [11], Graph Attention Networks (GAT) [27], and Graph Isomorphism Networks (GIN) [30].
For our study, we consider GCN- and GIN-based networks: GIN as our primary architecture for its expressivity, since it is provably as powerful as the Weisfeiler-Lehman (WL) test [28] at distinguishing non-isomorphic graphs [30], and GCN (following the standard formulation of [13]) as a point of comparison in our architecture ablation (Section 4.2), where its mean-based aggregation, not injective, and therefore strictly less expressive, provides a natural lower bound on model expressivity. We describe our primary GIN formulation below, where denotes the representation of node at layer and its neighborhood.
GIN [30] updates each node representation via a learned, injective aggregation:
where is a learnable (or fixed) scalar and is a multi-layer perceptron. Because summation over neighbors, combined with an MLP, can approximate any injective function on multisets, GIN can, in principle, distinguish any pair of graphs that the WL test can distinguish.
3.4 ML Training and Evaluation Setup
Table 1: Rank distribution by split, training summary, and hardware. is the number of configurations employed for training/validation.
| Split | Mean | Median | Max | |
|---|---|---|---|---|
| ID Train | 36,015 | 5.65 | 5.00 | 16.33 |
| ID Validation | 6,355 | 5.65 | 5.00 | 15.71 |
| OOD Validation | 39,600 | 12.60 | 12.51 | 30.02 |
Model Parameters: 34,499 Epochs: 50 Train time: 184s Loss Function: Mean Absolute Error (MAE) GPU: RTX 4090 CPU: Intel i7 (13th Gen) RAM: 128 GB
Table 1 presents the training setup for our ML model designed for predicting rank for a given configuration in (MIS, G). ID graphs (train/validation) range from 3 to 8 nodes, while the OOD split ranges from 9 to 13 nodes; mean and median rank roughly double between the two, reflecting this size shift. Despite the modest training footprint, the model is evaluated against an OOD state space several orders of magnitude larger than what FA can exhaustively enumerate at comparable graph sizes, underscoring the scalability motivation for the ML-based approach over exhaustive analysis.
We evaluate the trained ML model along two complementary axes. The first is rank-based cvf analysis (the when aspect), in which high- and low-rank configurations are sampled from the configuration space as described in Section 3.4.1; the rank effect distribution is then generated by applying a limited number of single-step perturbations to each sampled configuration and computing the resulting rank effect. The second is node-based cvf analysis (the where aspect), in which we use four centrality measures: degree, clustering, closeness, and betweenness, described in Section 3.4.2, and sample high- and low-valued nodes for each; for a given source configuration, we perturb the sampled node and compute the resulting rank effect distribution.
3.4.1 Sampling Low- and High-Rank Configurations. To study how RE (Section 2.3) varies across the configuration space, we construct two contrasting pools of configurations for a given graph . The low-rank pool is built systematically: for every invariant configuration , we enumerate all single-node perturbations of (perturbing exactly one node), and retain a perturbed configuration only if it is not itself invariant but has at least one enabled action transitioning directly back into , guaranteeing a rank of .
The high-rank pool is instead hand-constructed to cover several qualitatively distinct failure patterns: uniform extremes (all OUT, all IN, all WAIT), high concentrations of simultaneous WAIT nodes, dense IN-IN conflicts, alternating IN/OUT patterns, hub-concentrated messes, and random mixes weighted toward IN and WAIT states.
3.4.2 Centrality Measures. For node-based cvf analysis, we characterize each node in a graph , , using four standard centrality measures.
Degree centrality measures a node's direct connectivity:
where is the number of neighbors of .
Clustering coefficient measures how interconnected a node's neighbors are:
where and is the number of edges among 's neighbors; if .
Closeness centrality measures how close a node is, on average, to all other nodes:
where is the shortest-path distance between and .
Betweenness centrality measures how often a node lies on shortest paths between other node pairs:
where is the number of shortest paths between and , and is the number of those passing through .
Amit Garu, Duong Nguyen
For each measure, we identify the highest- and lowest-valued nodes as the high- and low-valued node samples used in node-based cvf analysis (Section 2.3).
3.5 Graph Size-Invariant Design for OOD Generalization
3.5.1 Multi Greedy Height. The configuration features prefixed by multi_gh estimate a configuration's distance from the invariant, analogous to the rank function itself: zero at the invariant, and decreasing along legal transitions toward it. As a proxy for this distance, we use the height of a greedy rollout to an invariant state, i.e. its path length, computed over 16 such rollouts (two deterministic, two greedy on violation_score/privilege_count, and twelve random). multi_gh_mean_norm and multi_gh_max_norm are the mean and maximum height over these 16 rollouts, respectively, each normalized by the number of nodes in the graph; the unnormalized maximum height additionally serves as the Lyapunov base for the model's residual prediction target (lyap_base=max; Section 3.5.2). Two of the greedy trials probe different notions of "distance from done": one maximizes privilege_count, the number of nodes with a currently enabled move (zero only at the invariant), while the other maximizes violation_score, a count of adjacent IN-IN conflicts, WAIT nodes, and uncovered OUT nodes, together steering rollouts toward busier or more structurally unresolved configurations, respectively.
3.5.2 Scaled Residual. Rather than predicting rank directly, the model predicts a scaled residual below a Lyapunov upper bound, computed as follows.
Lyapunov base lyap (lyap_base=max): the raw maximum greedy height to an invariant configuration (Section 3.5.1), i.e. multi_gh_max_norm before normalization by n.
Scale: scale = max(diameter, n - 1, 1), where diameter is the diameter of the graph and n is the number of nodes, so larger graphs receive a proportionally larger denominator.
Training target:
The gap between the Lyapunov bound and the true rank, expressed in units of graph scale rather than absolute rank.
Decoding at inference:
Since rank (Definition 2.1) can never be negative, floors the raw decoded value at 0, guaranteeing a valid rank even when prediction error would otherwise yield a negative result.
This scaling is what allows the model to share weights across graph sizes: under a raw residual , the gap grows directly with n, making a fixed prediction error correspond to very different relative errors on small versus large graphs. The scaled residual instead expresses the gap as a size-relative quantity. For example, a residual near 1 means the gap is about as large as the graph's diameter, whether n = 5 or n = 12.
4 Results & Discussions
4.1 CE-based analysis on -GC

Powerlaw cluster
Path
FA Time (s)
CE Time (s)
FA Peak Memory (MB)
CE Peak Memory (MB)
(a) Comparison of total time (seconds) and peak memory (MB) between FA and CE for rank (Comprehensive phase from definition 3.1) computation, shown across four graph families.

Powerlaw cluster
Star
Path
FA Time (s)
CE Time (s)
FA Peak Memory (MB)
CE Peak Memory (MB)
(b) Comparison of total time (seconds) and peak memory (MB) between FA and CE for rank (Core phase from definition 3.2) computation, shown across four graph families.
Figure 2: Total time and peak memory for computing rank via exhaustive FA versus the CE-based method on the -GC program, across graph families and sizes.
Figure 2 compares the performance of exhaustive FA and CE-based FA for the GC program across different graph types and sizes. CE-based FA proves more efficient than exhaustive FA in both time and memory, with its memory advantage being most pronounced during the core phase (Definition 3.2). As graph size increases, the memory gap between exhaustive FA and CE-based FA widens.
Efficient Heuristics and Machine Learning Approach for Fault Characterization in Distributed Self-Stabilizing Programs
Conference'17, July 2017, Washington, DC, USA
Table 2: Cache hits and misses of edge states when employing the CE-based method for rank computation.
| Family | Graph | Configs | Cache Hits | Cache Misses | Hit Rate (≈%) |
|---|---|---|---|---|---|
| K | n7 | 823543 | 824778 | 221 | 99.97 |
| K | n8 | 16777216 | 16783456 | 936 | 99.99 |
| K | n9 | 387420489 | 387454129 | 4361 | 100.00 |
| St | n23 | 96468992 | 96469244 | 23 | 100.00 |
| St | n24 | 201326592 | 201326867 | 24 | 100.00 |
| St | n25 | 419430400 | 419430699 | 25 | 100.00 |
| St | n26 | 872415232 | 872415556 | 26 | 100.00 |
| Pl | n11 | 4572288 | 4625212 | 6932 | 99.85 |
| Pl | n12 | 27216000 | 27460998 | 28593 | 99.90 |
| Pl | n13 | 97977600 | 98511962 | 57334 | 99.94 |
| Pl | n14 | 466560000 | 467705784 | 116214 | 99.98 |
| Pa | n15 | 6377292 | 6389514 | 987 | 99.99 |
| Pa | n16 | 19131876 | 19153248 | 1597 | 99.99 |
| Pa | n17 | 57395628 | 57432792 | 2584 | 100.00 |
| Pa | n18 | 172186884 | 172251197 | 4181 | 100.00 |
| Pa | n19 | 516560652 | 516671477 | 6765 | 100.00 |
| Pa | n20 | 1549681956 | 1549872220 | 10946 | 100.00 |
superlinearly rather than growing linearly. This trend is supported by the cache hit rate, which likewise increases superlinearly with graph size.
Among the four graph types studied, powerlaw cluster graphs incurred the most cache misses, despite having a substantially smaller state space than the largest path and star instances tested (Table 2). Star graphs, by contrast, incurred the fewest misses in absolute and relative terms: misses remained pinned at essentially the node count even as the number of configurations grew substantially larger, yielding a cache hit rate that rounds to 100.00% for the larger instances tested. This is consistent with the underlying graph structure: powerlaw cluster graphs, being highly heterogeneous, produce a greater number of structurally distinct subgraphs, whereas star graphs, owing to their highly symmetric structure, produce comparatively few distinct subgraphs [32].
Since rank effect calculation proceeds identically under FA and CE as described in Section 2.3, we omit it from our cvf analysis.
4.2 Ablation Study of ML-based method on MIS
Table 3: Group ablation on the 8-feature set. is the number of features remaining after removal.
| Configuration | ID MAE | OOD MAE | |
|---|---|---|---|
| Full model (8 features) | 8 | 0.0756 | 0.2875 |
| w/o node group is_in, is_eligible, can_request, can_join, can_leave | 3 | 0.1656 | 0.6567 |
| w/o configuration group multi_gh_max_norm, multi_gh_mean_norm | 6 | 0.1010 | 0.4322 |
| w/o eligible_frac | 7 | 0.0922 | 0.2920 |
Feature Importance. Table 3 presents an ablation study of the features used to train the (MIS, G) ML model. Features are grouped from granular to coarse: node features (per-node, program MIS related: is_in, can_request, can_join, can_leave, plus the generic feature is_eligible), configuration features (per-configuration, constant across nodes: multi_gh_max_norm, multi_gh_mean_norm, eligible_frac), and graph features (global, fixed across all configurations: the adjacency matrix of G).
Each node feature marks a specific fact about that node's current role: is_in indicates current set membership, is_eligible indicates whether any MIS rule is enabled, and can_request, can_join, and can_leave are the enabled-action bits for requesting membership (OUT → WAIT, no IN neighbor), joining the set (WAIT → IN, no IN neighbor and no lower-id WAIT neighbor), and leaving the set to resolve an ID-based conflict (IN → OUT, a lower-id IN neighbor exists). At the configuration level, eligible_frac gives the fraction of nodes with any enabled rule, zero only at the invariant.
Table 4: Ablation over GNN layer type, depth, hidden size, and pooling.
| Component | Setting | ID MAE | OOD MAE |
|---|---|---|---|
| GNN layer | GIN | 0.0756 | 0.2875 |
| GCN | 0.0785 | 0.3424 | |
| Depth (L) | 2 | 0.0733 | 0.2797 |
| 3 | 0.0673 | 0.3186 | |
| 4 | 0.0745 | 0.3173 | |
| Hidden dim | 64 | 0.0791 | 0.3125 |
| 96 | 0.0673 | 0.3186 | |
| 128 | 0.0738 | 0.3278 | |
| Pool | mean | 0.0673 | 0.3186 |
| max | 0.0829 | 0.3378 | |
| add | 0.1060 | 0.4257 |
Model Architecture Ablation. Table 4 presents the ablation of key components and hyperparameters, where depth (L) is the number of GNN layers. GIN outperforms GCN, consistent with its stronger expressivity under the WL test. Shallower depth and smaller hidden dimension generalize better OOD, suggesting reduced capacity aids robustness to distribution shift. Pooling has the largest effect: mean pooling's OOD advantage is consistent with add pooling's sensitivity to graph-size shift between splits.
4.3 Evaluation of ML-based analysis on MIS
Figure 3 (rank-based, the when aspect) and Figures 4, 5, 6, and 7 (node-based, the where aspect) present the ML-based cvf analysis for the MIS program on four graph types: complete, star, powerlaw cluster, and path, each with nodes ( configuration space for MIS). In Figure 3, it can be observed for all graph types that lower-rank configurations skew toward positive rank effects, while higher-rank configurations skew toward negative rank effects. This is consistent with rank being bounded below by the invariant (rank = 0): a low-rank configuration has comparatively little room to decrease further but substantial room to increase, so perturbations more often move it to a higher-rank configuration, while a high-rank configuration has the reverse asymmetry, with substantially more of the configuration space reachable at lower rank than higher, so perturbations more often decrease its rank. This indicates the ML model successfully learned the relative pattern of cvf rank effects distinguishing higher-rank from lower-rank configurations.
Amit Garu, Duong Nguyen
In Figures 4, 5, 6, and 7, the ML model successfully learns the relative pattern of cvf rank effects across nodes with differing centrality scores. This is most directly verifiable on structurally symmetric graphs: the complete graph is vertex-transitive, meaning every node is structurally equivalent to every other node, so all four centrality measures agree across nodes, and the model's predicted rank effect distribution is correspondingly uniform. The star graph, by contrast, has two structurally distinct groups of nodes, the hub and the leaves, and the model's predictions correctly reflect this two-group structure rather than treating all nodes as equivalent. The path graph offers an intermediate case: degree centrality varies only slightly between endpoint and internal nodes, and the model's predicted rank effects vary correspondingly little across the graph. For powerlaw cluster graphs, high- and low-valued nodes show clear differences in predicted rank effect under degree, closeness, and betweenness, matching the underlying structural differences in those measures; clustering coefficient is the exception, where high- and low-valued nodes show similar predicted effects despite structural differences in clustering, a discrepancy left for further investigation.
In both analyses, the ML model produced logically sound observations when comparing rank effects between the high- and low-valued extremes of a given attribute. However, it remains unclear whether the model's absolute predicted rank effects are also accurate, since ground-truth labels are computationally intractable for a state space of ; verifying absolute accuracy at this scale is therefore out of scope for this paper. It can nonetheless be observed from the plots that predicted rank effects scale with graph size, even though the training graphs had substantially smaller rank effects, supporting our use of multi greedy height (Section 3.5.1) and scaled residual (Section 3.5.2).

Figure 3: Cvf analysis of configurations across different graph types in ( configuration space), sampling 100 initial configurations 50 perturbations each, per group (high/low-rank).
5 Related Works
Cvfs have been studied in [20, 21] using exhaustive state space exploration and sampling methods. However, neither study provides analysis on large graphs or a scalable method for handling them.

Figure 4: ML-based cvf analysis for high- and low-value configurations across different centrality scores in (MIS, K_N100) ( state space). Sampling 100 initial configs × 50 perturbations each, per group (high/low-value).

Figure 5: ML-based cvf analysis for high- and low-value configurations across different centrality scores in (MIS, St_N100) ( state space). Sampling 100 initial configs × 50 perturbations each, per group (high/low-value).
Efficient Heuristics and Machine Learning Approach for Fault Characterization in Distributed Self-Stabilizing Programs
Conference'17, July 2017, Washington, DC, USA

Figure 6: ML-based cvf analysis for high- and low-value configurations across different centrality scores in (MIS, PI_N100) ( state space). Sampling 100 initial configs × 50 perturbations each (on the targeted node), per group (high/low-value).

Figure 7: ML-based cvf analysis for high- and low-value configurations across different centrality scores in (MIS, Pa_N100) ( state space). Sampling 100 initial configs × 50 perturbations each (on the targeted node), per group (high/low-value).
Prior work has explored a range of techniques for improving OOD generalization in GNNs, including feature decorrelation [15], sparsity regularization [19], causal invariant learning [3, 29], data augmentation and graph structure extrapolation [17], and explicit size-generalization regularization [2]. In our setting, we instead exploit multi-greedy height and scaled residual connections to achieve OOD generalization.
Model checking has been applied to verify self-stabilizing algorithms, using techniques such as symbolic state representation with OBDDs [24] and weak-stabilization relaxations to improve scalability [1]. These approaches reduce the cost of exhaustive verification through symbolic encoding or relaxed fairness assumptions, but do not target cvf analysis specifically, nor do they exploit the structural properties of the underlying graph to guide exploration. We instead propose a conflicting edges based state space exploration method that models the behavior of monotonically stabilizing programs on graphs efficiently by directly exploiting the structural properties of the underlying graph to guide exploration.
6 Conclusion and Future Works
Distributed systems are inherently susceptible to a range of faults because they comprise multiple independently updated, replicated components rather than a single unified state. One such fault is cvf, which occurs when a node acts on stale information about its neighbors. Self-stabilizing programs are tolerant of such faults within certain bounds; however, analyzing self-stabilizing graph programs is inherently non-trivial due to the size of the configuration space, which grows intractable even for small graphs (around 10 nodes). In this paper, we propose two methods for cvf analysis that avoid the state-space explosion inherent to exhaustive exploration: a conflicting-edge (CE) based analysis that exploits the monotonic stabilization property, studied over the -Graph Coloring program, and a machine-learning-based analysis, studied over the Maximal Independent Set (MIS) program. The designed ML model was able to capture, in a computationally tractable way, the relative pattern between rank-effect distributions of configurations at the extremes of several attributes, including rank and node centrality, even on out-of-distribution graphs.
For future work, one direction is to study the absolute accuracy of predicted rank effects on OOD graphs, which would provide stronger guarantees for cvf analysis beyond the relative patterns validated in this paper. A second direction is combining CE-based analysis with ML to compute ranks more efficiently for monotonically stabilizing programs: configurations could be cached by their edge state, so that a rank is fetched directly from a matching cached edge state rather than recomputed via ML inference, substantially reducing resource use at scale. A third direction is extending the ML-based approach to other self-stabilizing programs beyond MIS, reusing the multi greedy height (Section 3.5.1) and scaled residual (Section 3.5.2) techniques for OOD modeling.
References
[1] Towards scalable model checking of self-stabilizing programs. Journal of Parallel and Distributed Computing (2012). doi:10.1016/j.jpdc.2012.11.008
[2] Buffelli, D., Liò, P., Vandin, F.: Sizeshiftreg: A regularization method for improving size-generalization in graph neural networks. In: Advances in Neural Information Processing Systems (NeurIPS) (2022)
Amit Garu, Duong Nguyen
[3] Chen, Y., Zhang, Y., Bian, Y., Yang, H., Ma, K., Xie, B., Liu, T., Han, B., Cheng, J.: Learning causally invariant representations for out-of-distribution generalization on graphs. Advances in Neural Information Processing Systems 35 (2022)
[4] Clarke, E.M., Klieber, W., Nováček, M., Zuliani, P.: Model checking and the state explosion problem. In: Tools for Practical Software Verification, Lecture Notes in Computer Science, vol. 7682. Springer, Berlin, Heidelberg (2012). doi:10.1007/978-3-642-35746-6_1
[5] Corbett, J.C., Dean, J., Epstein, M., Fikes, A., Frost, C., ...: Spanner: Google's globally distributed database. ACM Transactions on Computer Systems 31(3), 8 (2013)
[6] DeCandia, G., Hastorun, D., Jampani, M., Kakulapati, G., Lakshman, A., Pilchin, A., Sivasubramanian, S., Vosshall, P., Vogels, W.: Dynamo: amazon's highly available key-value store. In: Proceedings of Twenty-First ACM SIGOPS Symposium on Operating Systems Principles. p. 205–220. SOSP '07, Association for Computing Machinery, New York, NY, USA (2007). doi:10.1145/1294261.1294281, https://doi.org/10.1145/1294261.1294281
[7] Dijkstra, E.W.: Self-stabilizing systems in spite of distributed control. Communications of the ACM 17(11), 643–644 (1974)
[8] Faghih, F., Bonakdarpour, B., Tixeuil, S., Kulkarni, S.: Automated synthesis of distributed self-stabilizing protocols. Logical Methods in Computer Science 14 (2018)
[9] Gilbert, S., Lynch, N.: Brewer's conjecture and the feasibility of consistent, available, partition-tolerant web services. SIGACT News 33(2), 51–59 (Jun 2002). doi:10.1145/564585.564601, https://doi.org/10.1145/564585.564601
[10] Gosain, A., Sharma, G.: Static analysis: A survey of techniques and tools. In: Mandal, D., Kar, R., Das, S., Panigrahi, B.K. (eds.) Intelligent Computing and Applications. pp. 581–591. Springer India, New Delhi (2015)
[11] Hamilton, W.L., Ying, R., Leskovec, J.: Inductive representation learning on large graphs (2018), https://arxiv.org/abs/1706.02216
[12] Hedetniemi, S.T., Jacobs, D.P., Srimani, P.K.: Linear time self-stabilizing colorings. Information Processing Letters 87(5), 251–255 (2003). doi:https://doi.org/10.1016/S0020-0190(03)00299-0, https://www.sciencedirect.com/science/article/pii/S0020019003002990
[13] Kipf, T.N., Welling, M.: Semi-supervised classification with graph convolutional networks (2017), https://arxiv.org/abs/1609.02907
[14] Lakshman, A., Malik, P.: Cassandra: A decentralized structured storage system. In: Proceedings of the 2009 ACM SIGOPS/SOSP Workshop on Large-Scale Distributed Systems and Middleware (2009)
[15] Li, H., Wang, X., Zhang, Z., Zhu, W.: Ood-gnn: Out-of-distribution generalized graph neural network (2021), https://arxiv.org/abs/2112.03806
[16] Li, K., Hudak, P.: Memory coherence in shared virtual memory systems. ACM Transactions on Computer Systems 7(4), 321–359 (1989). doi:10.1145/75104.75105
[17] Li, X., Gui, S., Luo, Y., Ji, S.: Graph structure and feature extrapolation for out-of-distribution generalization. arXiv preprint arXiv:2306.08076 (2023)
[18] Malewicz, G., Austern, M.H., Bik, A.J., Dehnert, J.C., Horn, I., Leiser, N., Czajkowski, G.: Pregel: a system for large-scale graph processing. In: Proceedings of the 2010 international conference on Management of data. pp. 135–146. New York, NY, USA (2010), http://doi.acm.org/10.1145/1807167.1807184
[19] Nerem, R.R., et al.: Graph neural networks extrapolate out-of-distribution for shortest paths. In: Proceedings of Machine Learning Research. vol. 336 (2026), https://openreview.net/forum?id=zAdC99LPZU
[20] Nguyen, D., Kulkarni, S.S., Datta, A.K.: Benefit of self-stabilizing protocols in eventually consistent key-value stores: a case study. In: Proceedings of the 20th International Conference on Distributed Computing and Networking. p. 148–157. ICDCN '19, Association for Computing Machinery, New York, NY, USA (2019). doi:10.1145/3288599.3288609, https://doi.org/10.1145/3288599.3288609
[21] Nguyen, D.N., Gupta, A.T., Kulkarni, S.: Analyzing program transitions to compute benefit of tolerating consistency violation faults. In: Proceedings of the 24th International Conference on Distributed Computing and Networking. pp. 58–69 (2023)
[22] Pandurangan, G., Robinson, P., Scquizzato, M.: On the distributed complexity of large-scale graph computations (2018), https://arxiv.org/abs/1602.08481
[23] Pelánek, R.: Fighting state space explosion: Review and evaluation. In: Formal Methods for Industrial Critical Systems (FMICS 2008), Lecture Notes in Computer Science, vol. 5596, pp. 37–52. Springer, Berlin, Heidelberg (2009). doi:10.1007/978-3-642-03240-0_7
[24] Tsuchiya, T., Nagano, S., Paidi, R.B., Kikuno, T.: Symbolic model checking for self-stabilizing algorithms. IEEE Transactions on Parallel and Distributed Systems 12(1), 81–95 (2001). doi:10.1109/71.899941
[25] Turau, V.: Linear self-stabilizing algorithms for the independent and dominating set problems using an unfair distributed scheduler. Information Processing Letters 103(3), 88–93 (2007). doi:https://doi.org/10.1016/j.ipl.2007.02.013, https://www.sciencedirect.com/science/article/pii/S0020019007000488
[26] Valmari, A.: The state explosion problem. In: Lectures on Petri Nets I: Basic Models, Lecture Notes in Computer Science, vol. 1491, pp. 429–528. Springer, Berlin, Heidelberg (1998). doi:10.1007/3-540-65306-6_21
[27] Veličković, P., Cucurull, G., Casanova, A., Romero, A., Liò, P., Bengio, Y.: Graph attention networks (2018), https://arxiv.org/abs/1710.10903
[28] Weisfeiler, B., Lehman, A.A.: A reduction of a graph to a canonical form and an algebra arising during this reduction. Nauchno-Technicheskaya Informatsia (9) (1968)
[29] Wu, Q., Nie, F., Yang, C., Bao, T., Yan, J.: Graph out-of-distribution generalization via causal intervention. In: Proceedings of the ACM Web Conference (WWW) (2024)
[30] Xu, K., Hu, W., Leskovec, J., Jegelka, S.: How powerful are graph neural networks? In: International Conference on Learning Representations (2019), https://openreview.net/forum?id=ryGs6iA5Km
[31] Yamauchi, Y., Tixeuil, S.: Monotonic stabilization. In: Principles of Distributed Systems (OPODIS 2010). Lecture Notes in Computer Science, vol. 6490, pp. 475–490. Springer, Berlin, Heidelberg (2010). doi:10.1007/978-3-642-17653-1_34
[32] Zenil, H., Soler-Toscano, F., Dingle, K., Louis, A.A.: Correlation of automorphism group size and topological properties with program-size complexity evaluations of graphs and complex networks. Physica A: Statistical Mechanics and its Applications 404, 341–358 (2014)
Efficient Heuristics and Machine Learning Approach for Fault Characterization in Distributed Self-Stabilizing Programs
Conference'17, July 2017, Washington, DC, USA
Appendixes
A Additional Figures
→ Move by eligible node
Relabeling
Rank-0 configuration (Invariant)

Figure 8: Execution of the CE algorithm on a 5-node power-law cluster graph, where same-colored edges denote conflicts between connected nodes. Each layer branches on eligible node moves, removing the moved node and its incident edges, then relabels serially to the nearest available id (red: post-branching; green: post-relabeling). If relabeling produces a subgraph seen before, its rank is retrieved from cache instead of recomputed. Only 15 cached subgraphs were needed to cover all states. Numbers in blue circles are unique subgraph ids explored.