SD-ZFS: RL for Minimum Zero-Forcing Sets
- The paper adapts S2V-DQN to model the sequential construction of a zero-forcing set as a Markov decision process with a per-step cost, addressing an NP-hard problem.
- It employs specialized structure2vec embeddings and deep Q-networks to capture global graph properties such as clustering and hub connectivity.
- The framework generalizes across diverse graph families, consistently outperforming greedy heuristics on random, scale-free, and real-world networks.
SD-ZFS, short for Structure2Vec-DQN for Zero-Forcing Sets, is a reinforcement-learning framework for the minimum zero-forcing set problem on simple undirected graphs. In this problem, an initial blue set propagates color through a network under the zero-forcing color-change rule, and the objective is to find a smallest set whose closure colors the entire graph. The framework adapts S2V-DQN to this combinatorial setting, evaluates generalization and transfer across graph families with varying structure, and is reported to be effective relative to both optimal solutions on small instances and a greedy heuristic across several synthetic and real-world datasets (Halley et al., 16 Jun 2026).
1. Problem definition and graph-theoretic setting
Let be a simple undirected graph with vertex set and edge set . An initial set is colored blue, while the remaining vertices are white. The zero-forcing color-change rule is then applied repeatedly: if a blue vertex has exactly one white neighbour , then forces to blue. The closure of under zero-forcing is defined by
0
and 1. A set 2 is a zero-forcing set if 3. The minimum zero-forcing number is
4
The paper characterizes the task as a graph coloring problem with applications in network science, network control, and designing logical circuits. It also states that finding the minimum zero-forcing set is NP-hard. These properties motivate heuristic and learning-based methods rather than exact optimization on general graphs (Halley et al., 16 Jun 2026).
2. Markov decision process formulation
SD-ZFS models the sequential construction of a zero-forcing set as a Markov decision process. The state 5 consists of the graph 6, the partial solution 7, and the current set of blue vertices 8. Each vertex 9 is assigned a feature vector 0 indicating whether 1 has already been selected into 2 and whether 3 is currently blue.
An action 4 selects one white, unselected vertex 5 to add to the solution. The transition adds 6 to 7 and then performs zero-forcing propagation, producing
8
The reward is a per-step cost of 9 for each addition,
0
with no further penalty at termination. Episodes terminate when 1. The optimization target is the discounted return
2
with 3 close to 4, so that shorter episodes correspond to smaller final sets.
This formulation makes the cardinality objective operational through sequential decision making: every unnecessary addition incurs an explicit cost. A plausible implication is that the method is designed to learn not merely immediate closure gains, but also action sequences whose delayed forcing consequences reduce 5 (Halley et al., 16 Jun 2026).
3. Adapted S2V-DQN architecture
The framework combines a Structure2Vec graph embedding with a Deep Q-Network. In the Structure2Vec component, each node begins with the feature vector 6, and message passing is performed for 7 mean-field iterations: 8 for 9, with 0. Here 1 is any edge feature. After 2 hops, 3 encodes local structure. A graph-level representation is then obtained by sum pooling,
4
The DQN component assigns a Q-score to each legal action 5: 6 where 7 denotes concatenation. The policy is greedy,
8
Relative to generic S2V-DQN, the adaptation is specified in three ways: the node features 9 are specialized to encode selection and blue-state information; zero-forcing propagation is enforced by the environment after each action; and redundant selections are pruned at the end of each episode. The paper’s interpretation is that the message-passing embeddings capture structural properties such as hubs and clustering and use them to guide node selection beyond purely local gain (Halley et al., 16 Jun 2026).
4. Training setup and model variants
Three models are trained on distinct graph distributions.
| Model | Training distribution | Episodes |
|---|---|---|
| SD-ZFS ER | Erdős–Rényi 0 | 5,760 |
| SD-ZFS BA | Barabási–Albert 1 | 6,765 |
| SD-ZFS FB | small real-world Facebook ego-networks | 12,849 |
The common hyperparameters are: 2-step returns with 3; latent dimension of 4 equal to 5; hidden size in the Q-MLP equal to 6; discount factor 7; 8-greedy exploration with 9 linearly decayed from 0 to 1; Adam with learning rate 2; replay buffer capacity 3; minibatch size 4; and target network update every 5 steps. No special data augmentation or curriculum was used beyond re-sampling fresh graphs each episode (Halley et al., 16 Jun 2026).
This training regime emphasizes distribution-specific learning while also testing transfer across graph families. Because fresh graphs are re-sampled each episode, the setup is explicitly oriented toward learning policies over graph distributions rather than memorizing fixed instances.
5. Evaluation metrics and reported results
Evaluation is performed on a test set 6 of graphs using three metrics: 7
8
and
9
On small graphs, the reported values are as follows.
| Model | Small ER | Small BA |
|---|---|---|
| SD-ZFS ER | Dev = +11.45%, Diff = +4.47, Approx = 1.048 | — |
| SD-ZFS BA | Dev = +10.39%, Diff = +4.06, Approx = 1.060 | — |
| SD-ZFS FB | Dev = −7.85%, Diff = −3.13, Approx = 1.090 | — |
The accompanying discussion states that, on Small_ER, SD-ZFS ER beats the greedy heuristic by 0 nodes on average, at an approximation ratio 1, and that all three models closely match or outperform the greedy solution on small scale-free graphs. This suggests that the paper’s narrative interpretation should be read together with the reported Difference and Deviance sign convention (Halley et al., 16 Jun 2026).
On large and real-world graphs, the reported outcomes are:
| Model | Large ER | Large BA | COLLAB | IMDB | |
|---|---|---|---|---|---|
| SD-ZFS ER | Dev +0.71%, Diff +1.37 | Dev −0.64%, Diff −2.77 | Dev −0.30%, Diff −0.13 | 0.00% | Dev −0.95%, Diff −1.56 |
| SD-ZFS BA | Dev +1.59%, Diff +6.23 | Dev +1.18%, Diff +1.24 | Dev −0.02%, Diff −0.07 | 0.00% | Dev −0.29%, Diff −0.67 |
| SD-ZFS FB | Dev −3.06%, Diff −11.5 | Dev −2.13%, Diff −6.41 | Dev +0.45%, Diff +0.20 | 0.00% | Dev −0.80%, Diff −1.21 |
The paper highlights several specific findings. On large Erdős–Rényi graphs, SD-ZFS ER improves by 2 nodes with Dev 3. SD-ZFS BA generalizes from scale-free to random graphs and, on Large ER, wins 4 of the time. On COLLAB real-world networks, SD-ZFS FB slightly outperforms greedy with Dev 5. On IMDB-BINARY, all methods essentially reach optimal on small instances of at most 6 nodes. On REDDIT-BINARY, none of the models beat greedy on average; the dataset is described as dominated by hub-and-spoke components, for which 7 makes sophisticated selection inconsequential. The reported approximation-ratio plots and the ER_Scale and BA_Scale experiments are said to show consistent outperformance of greedy as graph size grows (Halley et al., 16 Jun 2026).
6. Structural interpretation, transfer behavior, and limitations
The central conclusion is that SD-ZFS learns problem-specific heuristics that substantially improve on the classic greedy closure-based algorithm, especially on random and scale-free graphs. The reported explanation is that message-passing embeddings capture global structure, including hubs and clustering, and thereby support node choices that are not reducible to immediate local closure effects.
Transfer across graph families is a prominent feature of the reported results. Models trained on one structure, such as Barabási–Albert graphs, can successfully transfer to others, such as Erdős–Rényi graphs, although performance degrades on extreme cases, particularly hub-and-spoke networks. This makes the method neither uniformly dominant nor structure-agnostic: its behavior depends materially on the relation between training distribution and test topology (Halley et al., 16 Jun 2026).
The paper also delineates graph classes where the room for improvement is intrinsically limited. Dense graphs, or graphs near clique-like structure, force 8, so all heuristics converge. Very sparse tree-like graphs, including paths and trees, are solvable in 9 by classical methods. A common misconception would be that a learned policy should outperform simpler procedures on every network type; the reported REDDIT-BINARY results, together with the observations on clique-like and hub-and-spoke regimes, indicate that structural degeneracy can make sophisticated selection strategies largely inconsequential.
Within those boundaries, SD-ZFS is presented as an end-to-end reinforcement-learning-based heuristic that learns from graph topology, scales to hundreds or thousands of vertices, and yields solutions that on average are closer to optimal than the best known greedy methods (Halley et al., 16 Jun 2026).