Dynamic Network Reconfiguration for Entropy Maximization using Deep Reinforcement Learning

Christoffel Doorman, Victor-Alexandru Darvariu, Stephen Hailes, Mirco Musolesi · OpenReview

Abstract

A key problem in network theory is how to reconfigure a graph in order to optimize a quantifiable objective. Given the ubiquity of networked systems, such work has broad practical applications in a variety of situations, ranging from drug and material design to telecommunications. The large decision space of possible reconfigurations, however, makes this problem computationally intensive. In this paper, we cast the problem of network rewiring for optimizing a specified structural property as a Markov Decision Process (MDP), in which a decision-maker is given a budget of modifications that are performed sequentially. We then propose a general approach based on the Deep Q-Network (DQN) algorithm and graph neural networks (GNNs) that can efficiently learn strategies for rewiring networks. We then discuss a cybersecurity case study, i.e., an application to the computer network reconfiguration problem for intrusion protection. In a typical scenario, an attacker might have a (partial) map of the system they plan to penetrate; if the network is effectively "scrambled", they would not be able to navigate it since their prior knowledge would become obsolete. This can be viewed as an entropy maximization problem, in which the goal is to increase the surprise of the network. Indeed, entropy acts as a proxy measurement of the difficulty of navigating the network topology. We demonstrate the general ability of the proposed method to obtain better entropy gains than random rewiring on synthetic and real-world graphs while being computationally inexpensive, as well as being able to generalize to larger graphs than those seen during training. Simulations of attack scenarios confirm the effectiveness of the learned rewiring strategies.

Introduction

In the realm of cybersecurity, Moving Target Defense (MTD) represents a paradigm shift from static to dynamic security postures. Static networks are vulnerable; once an attacker maps the topology, they can systematically navigate toward high-value targets. By constantly reconfiguring the network's structure—a process known as rewiring—defenders can render an attacker's reconnaissance obsolete.

However, network reconfiguration is a complex combinatorial problem. The number of possible edge modifications grows exponentially with network size, making traditional optimization methods like greedy searches computationally prohibitive for real-time defense. This paper introduces a Deep Reinforcement Learning (RL) framework designed to learn efficient rewiring strategies that maximize network entropy, thereby increasing the difficulty for intruders to traverse the system.

Methodology: Rewiring as a Markov Decision Process

The authors frame the network rewiring task as a Markov Decision Process (MDP). In this framework, an RL agent performs a sequence of discrete operations to modify the graph's topology while maintaining its overall connectivity and edge count.

Each rewiring operation is broken down into a three-step action sequence:

  1. Node Selection: Choosing a base node to initiate the change.
  2. Edge Addition: Connecting the base node to a new target node.
  3. Edge Removal: Deleting an existing edge from the base node's original neighborhood.
The sequential rewiring process illustrated as an MDP, showing states $S_t$ and actions $A_t$ that lead to a reconfigured graph.

To process the graph data, the system utilizes a Graph Neural Network (GNN) based on the structure2vec architecture. This GNN generates embeddings that capture the local and global structural properties of the network. These embeddings are then processed by a Deep Q-Network (DQN), which predicts the "Q-value" (expected long-term reward) for potential rewiring actions.

The primary objective is to maximize Entropy, which serves as a proxy for the "surprise" or unpredictability of the network layout. The study evaluates two metrics: Shannon Entropy (based on node degree distribution) and Maximal Entropy Random Walk (MERW) entropy (based on the adjacency matrix spectrum).

Experimental Results and Discussion

The proposed model was evaluated on both synthetic graphs (Barabási–Albert, Watts–Strogatz, and Erdős–Rényi) and real-world enterprise data from the Unified Host and Network (UHN) dataset provided by Los Alamos National Laboratory.

Performance and Scalability

The DQN-based agent consistently outperformed random rewiring strategies. Crucially, while greedy algorithms can find near-optimal solutions for very small graphs, they fail to scale. The DQN approach, once trained, provides near-instantaneous decision-making, making it suitable for dynamic environments.

Generalization

A significant finding is the model's ability to generalize. Agents trained on small synthetic graphs of only 30 nodes were able to effectively rewire much larger graphs (up to 300+ nodes) without additional training. This indicates that the GNN-DQN architecture learns fundamental topological principles rather than specific graph instances.

Security Impact

Simulations of attack scenarios, where an intruder uses a random walk to find a target node, validated the entropy-maximization strategy. On the real-world UHN graph, the RL-driven reconfiguration increased the attacker's exploration cost by 125% to 136% compared to the original static topology.

Conclusion

This research demonstrates that Deep RL, combined with GNNs, offers a powerful tool for automated network defense. By treating network topology as a dynamic variable and optimizing for entropy, defenders can significantly increase the operational cost for attackers. Future work will explore "attacker-aware" models where the reconfiguration strategy adapts in real-time to detected intrusion patterns, potentially creating "traps" or dynamically isolating sensitive assets.

Summary updated

BibTeX
@inproceedings{doorman2022dynamic,
  author = {Christoffel Doorman and Victor-Alexandru Darvariu and Stephen Hailes and Mirco Musolesi},
  title = {{Dynamic Network Reconfiguration for Entropy Maximization using Deep Reinforcement Learning}},
  booktitle = {LoG},
  year = {2022},
  url = {https://openreview.net/forum?id=-vshFhHpKhX},
}
Figure