Skip to Content
SymmetrySymmetry
  • Article
  • Open Access

3 December 2026

19 Pages

Orchestrator–Expert Multi-Agent Reinforcement Learning for Cyber Network Defense

,
,
,
and
Information and Telecommunications Company, State Grid Shandong Electric Power Company, Jinan 250001, China
*
Author to whom correspondence should be addressed.

Abstract

Distributed cyber network defense presents complex decision-making challenges for reinforcement learning. As networks expand, the action space grows rapidly, making policy exploration and convergence more difficult. Security events and defensive operations may also span multiple time steps, so defense performance depends on both action selection and task timing and execution order. Existing studies primarily address task or policy decomposition, while the distinct roles of task scheduling and target selection remain insufficiently differentiated. We find that treating task scheduling and specific target selection as separate decision components can reduce the complexity of policy exploration and enable better optimization of when and in what order defensive tasks are executed. Motivated by this insight, we propose an orchestrator–expert multi-agent reinforcement learning framework. Task-specific experts generate concrete operation–target proposals from relevant observations. The orchestrator combines the mission phase, demand summaries, and proposal features to score candidate calls and select tasks under action constraints. Continuously updated historical information tracks unresolved security issues and task states to support defensive decisions across time steps. To reduce interference between decision levels during training, we adopt a staged procedure: experts are first trained through supervised learning on rule-based demonstrations, after which their parameters are frozen and subnet orchestrators are optimized using IPPO. We evaluate the proposed method in the CAGE 4 cyber defense environment. Compared with existing methods, our method converges faster and improves the average return by 54.81 return points over the best-performing baseline, showing better training efficiency and defense performance.

1. Introduction

Network infrastructures are continuously exposed to complex and evolving cyberattacks, making autonomous and sustained defense decision-making in dynamic adversarial environments an important research problem in cybersecurity [1]. The Cyber Operations Research Gym (CybORG) provides an experimental environment for autonomous cyber defense research. It models network topologies and attacker–defender interactions to support strategy development and evaluation [2]. Built on CybORG, the Cyber Autonomy Gym for Experimentation (CAGE) challenge series provides cyber defense tasks with different network scales and configurations. CAGE Challenge 4, as one of these tasks, focuses on distributed network defense with multiple blue agents collaboratively protecting the network [3,4].
Distributed cyber defense environments such as CAGE Challenge 4 present complex decision-making challenges for reinforcement learning policies due to the combination of multiple defensive operations, candidate targets, and temporally dependent task execution. As the network scale increases, the number of combinations between defensive operations and candidate targets grows rapidly, making policy exploration and optimization more difficult [5,6]. In addition, security events and some defensive operations may span multiple time steps, so current decisions depend not only on immediate observations but also on historical security information and task execution states [7,8]. Recent reinforcement learning studies on intrusion response to multi-stage attacks further show that the effectiveness of defensive actions is closely related to their execution timing [9].
These characteristics require defense policies to jointly handle large combinatorial decision spaces, partial observations, and task states that evolve across multiple time steps, further increasing the difficulty of policy learning. Accordingly, reducing decision complexity through task distribution and decomposition has become an important direction in complex cyber defense. For example, multi-agent reinforcement learning distributes complex defense tasks among multiple agents, allowing each agent to make decisions based on local information and thereby reducing the decision scope faced by individual agents [10]. Hierarchical reinforcement learning decomposes complex defense tasks into multiple subtasks to alleviate the learning difficulty caused by large action spaces and long-horizon decision processes [11]. Some studies further improve policy awareness under partial observability and persistent security events by augmenting observations or incorporating historical states [12]. Although these approaches alleviate the learning difficulty of complex cyber defense, they mainly focus on task or policy decomposition and do not clearly distinguish the different decision roles of task scheduling and specific target selection, which may limit defense performance.
We observe that different cyber defense tasks differ in their execution timing and duration, while the same type of defensive operation may need to target different network entities. These characteristics involve two distinct decision dimensions: task scheduling and target selection. Task scheduling determines which task to execute, when to execute it, and its order relative to other tasks, whereas target selection identifies the network entity on which a particular operation should act.
Motivated by this observation, we propose an orchestrator–expert multi-agent reinforcement learning (OE-MARL) framework. Each defense subnet is equipped with task-specific experts and an orchestrator. Experts generate concrete operation–target proposals, while the orchestrator combines task context and proposal information to score candidate calls and select the task to execute. To support decisions across time steps, OE-MARL maintains historical information about unresolved security issues and ongoing defensive tasks, from which separate observations are constructed for experts and orchestrators. We adopt a staged training procedure to reduce interference between the two decision levels. Experts are first trained on demonstrations generated by a rule-based policy. Their parameters are then frozen, and subnet orchestrators are optimized using Independent Proximal Policy Optimization (IPPO). Our main contributions are summarized as follows:
  • We propose OE-MARL, which separates target selection from task scheduling through an expert-proposal and orchestrator-scoring mechanism, allowing the two decision levels to address distinct defensive responsibilities;
  • We design a historical information maintenance mechanism that tracks unresolved security issues and task execution states, and construct role-specific observations to support expert target selection and orchestration across time steps;
  • We evaluate OE-MARL in the CAGE 4 cyber defense environment, demonstrating its defense performance, training efficiency, and adaptability across attack strategies. These results support OE-MARL as an effective decision-making framework for efficient autonomous defense in complex and dynamic networks.

3. Method

In the CAGE 4 cyber defense environment, the growing number of target hosts and network entities rapidly expands the combinations of defensive operations and targets, increasing the difficulty of policy exploration and optimization. High-dimensional observations containing noise further increase the decision burden, while defensive operations with non-negligible durations require policies to consider both immediate responses and subsequent task scheduling. In this section, we introduce the proposed OE-MARL framework and describe how it reduces policy learning complexity through decision decomposition and coordinated task execution, while using historical information and task orchestration to coordinate defensive operations across time steps.
Specifically, OE-MARL groups defensive actions into five categories according to their responsibilities and assigns an orchestrator and corresponding task-specific experts to each subnet. Each expert generates a concrete action proposal from its task-related observation, while the orchestrator selects the task to execute using subnet-level demand summaries and proposal information. Meanwhile, the framework maintains historical information about unresolved security issues and ongoing defense tasks, updating it with new observations and execution feedback to support task orchestration across successive time steps. Figure 1 presents the overall architecture.
Figure 1. Overall architecture of OE-MARL. Current observations and execution feedback update historical information to construct expert and orchestrator inputs. The numbered steps indicate the decision sequence: (1) target selection by task-specific experts, (2) generation of action proposals, and (3) action selection by the orchestrator. Action masks constrain selection, and the selected proposal is executed in the environment.
For clarity, we describe the decision process for a single subnet and omit the subnet index. Historical information is updated as follows:
h t = U h t − 1 , o t , t ,
where ht is the updated historical information, ot includes current host and network information together with the action record and execution status returned by the environment, and t denotes the current time step. The update process U retains unresolved issues and updates relevant records using new observations and execution outcomes.
For brevity, time indices are omitted from observations, proposals, and policy expressions within the current decision step. Each expert constructs its task-specific observation ec from historical information ht and generates a concrete operation–target proposal when a feasible candidate is available:
a ^ c = π c e c ,
where πc denotes the decision policy of expert category c, and a ^ c is its proposed action.
The orchestrator extracts observation m from ht, scores the expert proposals, and selects a call under action constraints. The corresponding proposal is then executed:
c ∼ π ⋅ m , P , M a t = a ^ c ,
where π is the orchestrator policy and at is the action submitted to the environment. The observation m contains the mission phase and expert-specific demand summaries, while P comprises candidate action proposals and their compact target descriptions. The call mask M restricts available calls according to proposal feasibility and the current execution status. Sleep is included as an additional call indexed by c = 0, with a ^ 0 denoting the waiting action. The observation space and detailed decision mechanisms are presented in Section 3.1 and Section 3.2, respectively.

3.1. Observation Space Design

Defensive agents in CAGE 4 receive only local and incomplete network information, and some security indicators and action outcomes become available in subsequent time steps. To support successive defensive decisions, OE-MARL maintains subnet-level historical information and constructs distinct observation representations for experts and orchestrators according to their decision responsibilities. Expert observations focus on target selection for specific operations, whereas orchestrator observations comprise the mission phase, task-specific demand summaries, and candidate proposal information. Figure 2 illustrates the overall structure of the observation space.
Figure 2. Observation space components. {0, 1} denotes independent binary flags, whereas [0, 1] denotes normalized values. Mission phases and subnet identifiers use one-hot encoding, and “Numeric” denotes numerical statistics in the demand summaries.

3.1.1. Historical Information Maintenance

The absence of an event from a single-step observation does not imply that a previously detected security issue has been resolved. Relying solely on current observations may therefore cause subsequent decisions to overlook unresolved security issues and their response states. Based on this observation, OE-MARL maintains continuously updated historical information independently for each subnet, using defender-accessible observations and action execution feedback. These records include suspicious processes, hosts requiring restoration, decoy deployment states, and ongoing defensive operations.
At each time step, newly observed process, connection, and file indicators are incorporated into the corresponding records, while unresolved security issues are retained across decision steps. Suspicious processes are identified using heuristic indicators derived from observable process and connection information, whereas restoration requirements are inferred from analysis results and observed connection information rather than ground-truth compromise states. Historical records are updated or cleared according to action execution outcomes. Specifically, a successful Remove operation clears the corresponding pending process record, while a successful Restore operation clears the associated recovery records and cached file indicators, resets the decoy count, and removes relevant failure flags. Operations that remain in progress do not trigger record clearing, and previously recorded security issues are not automatically discarded merely because they are absent from the current observation. Historical information is reinitialized at the beginning of each episode, without applying a fixed time-to-live mechanism.
The framework also maintains analysis records, handled processes, and temporal information to support target selection and action constraints. These temporal records are managed internally, and expert policies do not directly receive explicit temporal features such as time steps, event ages, or waiting durations. All policy inputs are constructed from the official Blue observation interface, locally maintained historical records, and defender action feedback, without additional access to hidden attacker states or ground-truth compromise labels.

3.1.2. Expert Observation Representation

Each expert extracts target features relevant to its operation from the updated historical information. Analyze considers host alerts and the availability of process, connection, and file information; Remove focuses on unhandled suspicious processes and their counts; Restore combines connection and file indicators with pending restoration states; and Deploy Decoy considers decoy deployment states and host alerts. Host types, alerts, and task states are represented by binary indicators. Different security indicators are encoded separately, allowing process alerts, connection anomalies, and file indicators to coexist on the same host without being reduced to a single intrusion level. Information availability indicators distinguish between information that has been obtained without revealing an anomaly and information that has not yet been obtained. Count features, such as the numbers of pending processes and deployed decoys, are normalized before entering the network to reduce differences in numerical scale. Traffic Control uses one-hot encoding for local and peer subnet identities to avoid an artificial ordering, and a binary indicator to distinguish allow and block operations.

3.1.3. Orchestrator Observation Representation

The orchestrator selects tasks by considering both overall defensive needs within the subnet and the concrete targets selected by experts. Its observations therefore comprise the mission phase, expert-specific demand summaries, and candidate proposal information. The mission phase uses one-hot encoding to provide the current task context. Demand summaries use host proportions, normalized counts, and state indicators to characterize hosts awaiting analysis or lacking information, unhandled processes, hosts requiring restoration, decoy coverage and remaining capacity, and mismatches between current communication states and phase-specific communication rules. Host proportions are calculated over valid local hosts, while traffic control proportions are calculated over peer subnets. Candidate proposals retain the corresponding expert’s target-feature encoding and provide compact descriptions of the selected operations and targets. Demand summaries capture the distribution of defensive needs across the subnet, while proposal information supplies specific candidate-target features, allowing the orchestrator to compare tasks using both sources while keeping its input compact.

3.2. OE-MARL Framework Design

OE-MARL decomposes defensive decisions into expert target selection and subnet-level task orchestration. Each expert generates a concrete action proposal from its task-specific observation, while the orchestrator combines the mission phase, demand summaries, and proposal information to select the defensive task to execute. Action constraints are maintained by the framework, and observations and execution feedback returned by the environment update historical information for subsequent decisions. Although this decomposition reduces the decision space faced by the orchestrator, jointly optimizing the orchestrator and expert policies can introduce additional training instability [25]. We therefore adopt the two-stage training procedure illustrated in Figure 3. Experts are first trained on demonstrations generated by a rule-based defense policy. Their parameters are then frozen, and the orchestrators are optimized under the IPPO framework, allowing reinforcement learning to focus on task timing and execution order.
Figure 3. Two-stage training framework of OE-MARL. In the first stage, task-specific experts are pretrained using rule-based demonstrations and cross-entropy loss. In the second stage, the expert parameters are frozen, and subnet orchestrators are optimized using IPPO through interactions with the CAGE 4 environment.

3.2.1. Expert–Orchestrator Decision Process

Each expert evaluates its candidate targets using a target-scoring MLP consisting of two fully connected layers with ReLU activations and a scalar output layer. Network parameters are shared across all candidate targets of the same expert. The input comprises candidate-target features and the corresponding task context, and the output is a target score. Candidate eligibility is determined primarily by environment-provided action validity constraints and subnet assignments. Additional constraints are applied to Analyze to distinguish candidates with identical target features, and to Traffic Control to restrict operations to those consistent with phase-specific communication requirements. For Remove, Restore, and Deploy Decoy, candidate eligibility follows the corresponding environment-provided validity conditions. Historical security indicators are incorporated into expert observations rather than uniformly imposed as hard eligibility constraints. The framework applies a target-level mask to exclude invalid candidates, after which the expert selects the highest-scoring legal candidate to generate a concrete operation–target proposal. For host-oriented operations, a candidate identifies a target host; for Traffic Control, it specifies both the peer subnet and the allow/block direction.
The orchestrator separately encodes task context and expert proposals. The context branch processes the mission phase and demand summaries, while the proposal branch processes the expert category and compact features of the selected target. Proposal features of different lengths are zero-padded to a common length before entering the shared proposal encoder. The two representations are concatenated and passed to a scoring MLP:
z = f m , q c = g p c , s c = F [ z , q c ] ,
where pc is a proposal vector containing the expert category and selected target features, with target features zero-padded to a common length. The functions f, g, and F denote the context encoder, proposal encoder, and scoring network, respectively, and brackets indicate feature concatenation.
Action masks explicitly restrict infeasible actions during policy decision-making and can also be used to encode action constraints that depend on historical states [26]. We apply masks at both the target-selection and expert-call levels. The former restricts the operations and targets that experts can propose, while the latter determines available expert calls according to proposal availability and the current execution state. The orchestrator applies the call-level mask to its scores and performs temperature-scaled normalization over legal calls:
π ( c ) = M c exp ( s c / T ) ∑ k M k exp ( s k / T ) ,
where Mc ∈ {0, 1} indicates whether call c is executable, and T > 0 is the call-scoring temperature. Sleep is retained as an additional call option, represented by zero proposal features and a separate category identifier. If an operation remains in progress, the framework permits only Sleep. Otherwise, the orchestrator selects a call from the legal call distribution and executes the corresponding action.

3.2.2. Rule-Based Demonstration Generation

To provide stable and reproducible demonstrations for expert training, we construct a deterministic rule-based defense policy πE. The policy combines the mission phase, subnet communication states, and historical information to select defensive operations according to a fixed priority order. It first corrects connections that conflict with phase-specific communication rules, then handles removal and restoration tasks associated with explicit security indicators, and performs host analysis or decoy deployment when no urgent response is required. For unfinished operations, it waits for execution outcomes and uses historical handling records to reduce repeated responses.
The rule-based and learned policies use the same candidate-generation and action-constraint mechanisms. During environment interaction, expert observations, legal target sets, and rule-selected targets are recorded and partitioned by subnet and operation category to construct a demonstration dataset Dc for each expert c. Each sample consists of an expert input e, a target mask u, and a target label y, where y identifies the demonstrated candidate. Training and validation sets are separated by scenario seed to prevent adjacent observations from the same scenario from appearing in both sets.

3.2.3. Expert Policy Training

Learning policies from demonstrations is a standard approach in imitation learning, and recent studies have extended this paradigm to cooperative multi-agent settings [27,28]. We use rule-based demonstrations to train experts for target selection within their respective operation categories. During training, expert scores are converted into a candidate probability distribution using the target mask and softmax, and cross-entropy loss increases the probability assigned to the demonstrated target:
L c = − E ( e , u , y ) ~ D c [ log π c ( y | e , u ) ] ,
where πc(y|e,u) is the probability assigned by expert c to the demonstrated target. Experts of different categories learn their respective target-selection policies, and their parameters are frozen after training. During orchestrator training, experts generate proposals from current observations while their parameters remain fixed. Algorithm 1 summarizes demonstration collection and expert training.
Algorithm 1 Action Expert Training
Input:  Environment   M , rule policy πE, demonstration episodes Ndemo
Output:  Frozen   expert   policies   { π c i }
1: Initialize   expert   datasets   D c i
2:for n = 1,…,Ndemo do
3:    Reset   M and initialize subnet histories.
4:   while the episode is not terminated do
5:      Update histories using observations and execution feedback.
6:      Generate feasible rule actions using πE
7:       Store   expert   samples   ( e , u , y )   in   the   corresponding   D c i .
8:       Execute   rule   actions   in   M .
9:    end while
10:end for
11:for each subnet–expert pair (i,c) do
12:    Train   π c i   on   D c i using Equation (6) and freeze its parameters.
13:end for
14:return  π c i

3.2.4. Orchestrator Policy Optimization

After expert training, subnet orchestrators are independently optimized using IPPO. Each orchestrator maintains separate parameters and uses locally collected trajectories to maximize the expected team return. It contains an actor branch for policy scoring and a critic branch for value estimation. The actor scores candidate expert calls, while the critic uses the subnet context representation and current execution state to estimate the expected discounted return under the continuing policy. The two branches use a common context representation but have separate output layers. The critic supports advantage estimation and value learning during training and does not participate in call selection during inference.
Trajectories record task observations, proposals, call masks, selected calls, old policy probabilities, value estimates, and team rewards at each environment time step. Waiting steps during ongoing operations are also retained so that subsequent rewards propagate across the actual elapsed time. Generalized advantage estimation produces A ^ t , and the value-learning target is constructed as R ^ t = A ^ t + V t old , where V t old is the value estimate recorded during trajectory collection.
Policy updates use the PPO clipped objective. Let xt = (mt,Pt,Mt) denote the orchestrator input at time step t, and let I contain time steps with at least two legal calls. The policy objective is:
J = E t ∈ I [ min ( ρ t A ^ t ,   clip ( ρ t , 1 − ϵ , 1 + ϵ ) A ^ t ) ] ,
where ρt = π(ct∣xt)/πold(ct∣xt) is the probability ratio between the current and old policies for the selected call ct, evaluated using identical inputs and temperature settings. The parameter ϵ controls clipping. Steps with only one legal call are excluded from the policy objective and entropy term but remain part of value learning and return estimation.
The critic is trained using the mean squared error between predicted values and return targets. Combining this loss with the policy objective and entropy regularization, each orchestrator minimizes:
L   =   − J + α L V − β H ,   L V = E t [ ( V t − R ^ t ) 2 ] ,
where Vt is the current value prediction, α and β weight the value loss and entropy regularization, respectively, and H is the mean entropy of the legal call distribution over decision time steps. Each orchestrator performs multiple minibatch updates on collected trajectories before interacting with the environment again. Expert parameters remain fixed throughout this process, while orchestrators learn task-invocation policies from team return. Algorithm 2 summarizes the training procedure.
Algorithm 2 Orchestrator Policy Training
Input:  Environment   M , frozen experts π c i , training iterations N
Output: Trained orchestrator policies {πi}
1:Initialize orchestrator actors, critics, and buffers {Bi}
2:for n = 1,…,N do
3:    Reset   M initialize histories, and clear {Bi}
4:   while the episode is not terminated do
5:      Update histories using observations and execution feedback.
6:      for each subnet i do
7:         Generate proposals P using frozen experts
8:         Construct task observation m and call mask M
9:         Sample c∼πi(⋅∣m,P,M)
10:          Set   a i = a ^ c
11:      end for
12:      Execute joint actions {ai} and store transitions in {Bi}
13:   end while
14:   for each subnet i do
15:      Compute advantages and value targets from Bi
16:      Update actor and critic using Equations (7) and (8).
17:    end for
18:end for
19:   return {πi}

4. Experiments

We evaluate the proposed orchestrator–expert multi-agent reinforcement learning approach in the CybORG CAGE 4 environment and compare it with representative baselines. The experiments are designed to address the following research questions: (i) Does the proposed method achieve better cyber defense performance than existing approaches under different attack strategies? (ii) Does OE-MARL achieve higher training efficiency than the compared methods? (iii) Does the learned policy generalize across different attack strategies? (iv) How do different orchestration strategies and key hyperparameter settings affect the performance of OE-MARL?

4.1. Experimental Setup

4.1.1. Training Data and Environment

The experiments are conducted in the CybORG CAGE Challenge 4 environment, which simulates a distributed enterprise network consisting of nine subnets, including the Internet subnet. Seven defense subnets are protected by five blue agents, with four agents each responsible for one subnet and the remaining agent responsible for three subnets. Each subnet supports up to 16 hosts, including a maximum of 10 user hosts and 6 servers, while the actual number of hosts varies across episodes according to the scenario configuration. The environment also includes six red agents that simulate adversarial activities. This setting requires the blue agents to make defensive decisions under partial observability while coordinating their actions to protect distributed network assets.
We run a fixed rule-based policy in the CAGE 4 environment to collect demonstrations over 432 episodes, comprising 215,568 recorded environment interaction steps. During collection, we record the observations available to the blue agents, feasible actions, and targets selected by the rule-based policy. For the five action experts—Analyze, Remove, Restore, Deploy Decoy, and Traffic Control—we extract the corresponding candidate-selection samples. Each sample contains the expert-specific observation, a feasible-candidate mask, and the demonstrated candidate index as the supervision label. For Traffic Control, each candidate specifies a peer subnet and an allow/block operation. We initially retain 1500, 1000, 1000, 1500, and 600 samples for the five expert types, respectively. After excluding 88 Analyze samples incompatible with the updated target masks, 5512 valid samples remain, including 4462 training samples and 1050 validation samples. Because different task types occur at different frequencies, we examine their coverage across episodes, subnets, mission phases, and target types, and then split the training and validation sets by complete-episode random seeds. The orchestrator policies are randomly initialized, and each subnet agent independently collects online interaction trajectories and updates its orchestrator parameters using the shared team reward returned by the environment.

4.1.2. Training Configuration

Each action expert is implemented as an independent target-scoring network. The network takes expert-specific observations and per-target features as input and uses two fully connected ReLU layers with 64 hidden units each to produce scores for candidate hosts or subnet connections. The experts are trained with cross-entropy loss using Adam with a learning rate of 10−3, a batch size of 256, and 30 training epochs. The model with the lowest validation loss is retained. The supervised optimization of all five experts took 5.30 ± 0.35 s in a separate single-threaded timing experiment on an Intel Core i5-14600KF CPU, measured over three repetitions. The pretrained experts achieve validation accuracies of 98.19%, 100.00%, 100.00%, 98.97%, and 98.06% for Analyse, Remove, Restore, Deploy Decoy, and Traffic Control, respectively. These results indicate strong agreement with the rule-based demonstrator on held-out scenario episodes, supporting the effectiveness of supervised expert pretraining.
The orchestrator is implemented using an actor–critic architecture. The actor and critic share a context encoder consisting of two fully connected ReLU layers with 64 hidden units each. A separate candidate encoder uses a 64-unit ReLU hidden layer followed by a 256-dimensional ReLU representation. The policy head combines the context and candidate representations to score expert calls, while the value head estimates the state value from the context representation. Both heads contain one 64-unit ReLU hidden layer. The call-sampling temperature is set to 1.0. PPO optimization uses Adam with a learning rate of 10−3, a discount factor of γ = 0.99, and GAE with λ = 0.95. The orchestrator is trained for approximately 1 × 108 training timesteps. Performance is evaluated over 100 episodes with distinct scenario seeds, each lasting 500 environment steps, and the mean episodic return and standard deviation across episodes are reported.

4.2. Comparative Evaluation of Defense Performance

Evaluation Metrics. Episodic return alone cannot fully characterize network compromise, the effectiveness of defensive responses, or their impact on normal services [29,30]. We therefore evaluate defense performance using the following five metrics.
Overall performance is measured by the mean episodic return across N evaluation episodes. Here, Tn is the number of recorded steps in episode n, and rnt is the shared team reward at step t. The mean episodic return is calculated as follows:
  R ¯ = 1 N ∑ n = 1 N ∑ t = 1 T n r nt .
The clean-host proportion measures the fraction of protected hosts without active attacker sessions, averaged over time steps and episodes. Let Hn denote the number of protected hosts in episode n, and let cnt denote the number containing at least one active attacker session at step t. The metric is calculated as:
C = 1 N ∑ n = 1 N 1 T n ∑ t = 1 T n 1 − c nt H n .
Successful cross-subnet exploits count successful remote-service exploits originating from a different subnet and targeting protected hosts, with repeated successful exploits counted separately. Successful OT impacts count successful Impact actions targeting operational assets. Green access failures count unsuccessful Green Access Service actions, irrespective of whether they incur a reward penalty. All three event counts are reported as means per episode.
Baselines. To evaluate the defense performance of the proposed method, we compare it against H-MARL, MARL Decentralized, MARL Centralized Critic (CTDE), and KEEP. These baselines represent hierarchical multi-agent decision-making, decentralized policy learning, centralized training with decentralized execution, and graph-based reinforcement learning, respectively.
Figure 4 shows that OE-MARL achieves the highest mean return and smallest return standard deviation, whereas MARL-CTDE has the lowest mean return and widest distribution. MARL-DTDE and H-MARL Meta exhibit similar mean returns, but H-MARL Meta shows lower variability; KEEP has a slightly lower mean, with variability between these two methods. Mean OT impact counts are lowest for OE-MARL, followed by H-MARL Meta, KEEP, MARL-DTDE, and MARL-CTDE. The ranking differs for green access failures, with MARL-DTDE recording the fewest failures, followed by MARL-CTDE, H-MARL Meta, KEEP, and OE-MARL. Overall, OE-MARL achieves higher returns and fewer OT impacts, although Green access failures remain comparatively frequent. The additional costs of demonstration collection and expert pretraining are reported in Section 4.1.1 and Section 4.1.2, respectively. Figure 5 focuses on convergence and environment-interaction efficiency during online orchestrator optimization, excluding these preceding stages from the reported training timesteps.
Figure 4. Comparison of episodic return distributions, OT impacts, and Green access failures. Orange and blue bubbles represent OT impacts and Green access failures, respectively. Each bubble corresponds to an episode; its horizontal position indicates episodic return, and larger bubbles indicate more events.
Table 1 summarizes the overall defense performance of the evaluated methods. OE-MARL achieves the highest average return (-124.99) and the lowest number of successful OT impacts, indicating stronger protection of critical assets. Its number of successful cross-subnet exploits is comparable to those of the other methods, suggesting a similar ability to limit lateral movement. However, OE-MARL incurs more Green access failures caused by communication blocking, indicating that stronger security control comes at a greater cost to normal network connectivity. Overall, the proposed method provides improved protection of critical assets, while still exhibiting a trade-off between security and service continuity.
Table 1. Comparison of defense performance under the Default Red strategy.

4.3. Evaluation of Training Efficiency

Figure 5 shows the evolution of average return over training timesteps for the different methods. OE-MARL improves rapidly during the early stage of training and enters a relatively stable regime after approximately 0.2 × 108 training timesteps, maintaining a higher return thereafter. H-MARL reaches stable performance earlier, but converges to a substantially lower return than OE-MARL. KEEP improves more gradually and stabilizes later in training. In contrast, MARL Decentralized and MARL Centralized Critic exhibit slower improvement, with MARL Centralized Critic converging to the lowest return among the evaluated methods. Overall, OE-MARL reaches a high-return regime within fewer training timesteps, indicating better training efficiency.
This training behavior is consistent with the intended effect of separating task scheduling from target selection. With pretrained experts providing stable target-selection behavior, the orchestrator can focus its reinforcement learning process on task timing and execution order.
Figure 5. Comparison of Training Efficiency Across Different Methods.

4.4. Robustness Across Attack Strategies

To evaluate the adaptability of the learned policies to different attack behaviors, we consider four predefined Red strategies in CAGE 4, each characterized by distinct attack behaviors and objectives. Default Red combines aggressive and stealthy service discovery and includes both service degradation and critical operational technology (OT) impact objectives. Stealthy Red emphasizes covert reconnaissance by employing less detectable service discovery, which requires three time steps and has a detection probability of 0.25. In contrast, Aggressive Red prioritizes rapid reconnaissance, completing service discovery in one time step but with a higher detection probability of 0.75. Impact Red focuses primarily on disrupting critical OT services rather than degrading other network services.
Both rule-based demonstration collection and orchestrator reinforcement learning are conducted exclusively under Default Red. During evaluation, the trained policies are tested against all four Red strategies without retraining or parameter updates, with the results reported in Table 2. OE-MARL achieves the highest average return under all four attack strategies, with values of −124.99, −111.38, −130.03, and −195.46, respectively. Compared with the other methods, its performance advantage is particularly pronounced under the Aggressive Red scenario, while it also maintains strong defense performance in more intensive settings such as Impact Red. In addition, OE-MARL exhibits relatively low return variability across the evaluated scenarios, indicating that its performance gains are not limited to a specific attack behavior and that it maintains stable defense performance across different adversarial conditions.
Table 2. Comparison of defense performance across different attack strategies.

4.5. Ablation Study

To examine the roles of the orchestration mechanisms, we compare the Full orchestration policy with three variants: removing the additional historical information maintained by the orchestrator, replacing expert-query scoring with a direct classification MLP of approximately matched parameter count, and replacing learned scheduling with fixed rules. Recovery precision measures the proportion of successfully executed Remove and Restore actions that target compromised hosts and satisfy the corresponding recovery conditions. As shown in Table 3, the full orchestration policy achieves a mean return of −124.99. Removing historical information reduces the mean return to −143.06 and recovery precision from 97.17% to 82.52%, while increasing mean OT impacts per episode from 0.75 to 1.32. The direct classification MLP and rule-based scheduler obtain mean returns of −131.17 and −129.71, respectively, which are 6.18 and 4.72 below the full policy. The full policy achieves the highest mean return and recovery precision, whereas rule-based scheduling records the fewest OT impacts, at 0.65 per episode. These ablation results further support the proposed decision decomposition. In particular, the comparison with rule-based scheduling indicates that learned orchestration contributes to the observed performance improvement, while the direct classification comparison suggests that scoring concrete expert proposals provides an advantage over direct task classification under the evaluated setting.
Table 3. Ablation results for the orchestration mechanisms.

4.6. Observation and Parameter Sensitivity Analysis

To investigate the sensitivity of OE-MARL to different observation components, we conduct observation-group interventions during policy evaluation. For each intervention, the features belonging to a selected observation group are set to zero while preserving the original input dimensionality, and all remaining observation components are left unchanged. The trained policy parameters remain fixed throughout the evaluation, without additional training. The performance impact of each intervention is quantified as the difference in mean episodic return between the original policy with complete observations and the corresponding policy with the selected observation group masked.
The illustrative patterns in Figure 6a show that return reductions are concentrated in the orchestrator’s demand summaries and the restoration-state inputs, followed by host-type information used by Analyze. This ordering is consistent with their decision responsibilities: demand summaries support comparisons between competing tasks, restoration states distinguish unresolved remediation needs, and host types provide context for selecting analysis targets. Other observation groups exhibit smaller changes, although these differences alone do not establish that the corresponding information is unnecessary. Figure 6b shows that moderate temperatures generally produce higher displayed returns, whereas a temperature of 2.0 yields lower values across all query dimensions. This pattern may reflect the greater sampling variability introduced by higher temperatures. Increasing the query dimension does not consistently improve performance: the highest value occurs at 256 dimensions and a temperature of 1.0, while expanding to 512 dimensions provides no further improvement at that temperature. The configuration rankings therefore depend on the combination of representation dimension and sampling temperature.
Figure 6. Observation and parameter sensitivity analysis. (a) The inner three rings represent three evaluation runs with different random seeds, and the outer ring shows their mean; colors indicate return drops following observation-group interventions. (b) Returns across scheduling temperatures and query dimensions; the outlined cell marks the highest displayed value.

5. Discussion

Taken together, episodic return and the complementary defense metrics highlight the need to distinguish between different defensive outcomes. Accurate target selection can support compromised-host remediation once relevant security evidence becomes available, but it does not by itself ensure early suppression of attack propagation or the preservation of normal services. These outcomes also depend on when experts are invoked, how competing tasks are prioritized, and how local defensive actions affect communication across subnets. The observed performance differences should therefore be interpreted as the combined effects of target selection and task orchestration, rather than attributed to either component alone. This distinction also indicates that improving remediation decisions and limiting attack progression are related but separate objectives.
The staged training design reflects the different information requirements of target selection and task orchestration. Expert target selection relies on task-relevant local evidence, making rule-based demonstrations a practical source of supervision. Task orchestration must additionally account for ongoing operations, unresolved tasks, and changing mission requirements, making the consequences of decisions across successive time steps important. Freezing the experts allows the reinforcement learning stage to focus on task invocation while keeping target-selection behavior fixed. This separation may also support expert reuse when attack strategies change, with adaptation concentrated on task timing and execution order. However, such reuse depends on the coverage of the demonstration data and the consistency of observation and action semantics. Its effectiveness in larger networks, dynamic topologies, and previously unseen attack scenarios requires further evaluation.

6. Conclusions

We propose OE-MARL, an orchestrator–expert multi-agent reinforcement learning framework for autonomous cyber defense that separates task scheduling from specific target selection. Task-specific experts learn target selection from rule-based demonstrations, while subnet-level orchestrators combine mission phases, demand summaries, and expert-generated proposals to select defensive tasks. Continuously updated historical information supports task tracking and defensive decisions across time steps. The staged training procedure first trains the experts and then optimizes the orchestrators with the expert parameters frozen, limiting interference between the two decision levels. Experiments in the CybORG CAGE 4 environment evaluate defense performance, training efficiency, and generalization across attack strategies. Among the evaluated methods, OE-MARL achieves the highest mean episodic return, exceeding the strongest baseline by 54.81 return points, and reaches a relatively stable performance level after approximately 20 million training timesteps. These results support the effectiveness of separating target selection from task orchestration for autonomous defense in complex network environments.
The current experiments establish the effectiveness of OE-MARL in the CAGE 4 environment and provide a basis for investigating its applicability to more complex and dynamic networks. Future work will focus on three directions. First, we will investigate adaptive multi-agent coordination for more dynamic adversarial settings, enabling the orchestrator to better respond to environmental changes, shifts in attack strategies, and uncertain states while supporting more flexible coordination among action experts. Second, we will explore continual learning and adaptation of expert policies by incorporating online reinforcement learning, knowledge transfer, and experience reuse, with the aim of reducing dependence on predefined rule-based demonstrations and improving adaptation to previously unseen attacks and defense tasks. Finally, we will evaluate the framework in larger and more realistic network environments that incorporate partial observability, resource constraints, heterogeneous assets, and changing attacker strategies, while further studying generalization and transfer across network topologies and attack scenarios to improve robustness, scalability, and practical applicability in autonomous cyber defense systems.

Author Contributions

Investigation, H.H.; resources, H.L.; writing—original draft preparation, H.H.; writing—review and editing, W.L. and F.W.; visualization, H.Z. All authors have read and agreed to the published version of the manuscript.

Funding

This work is supported in part by the Science and Technology Project of State Grid Shandong Electric Power Company: “Research on Key Technologies of Attack Mechanism Mining, Analysis and Decision-Making for Power System Cross-Domain Security Boundary Protection” under Grant 520627250002.

Data Availability Statement

The data supporting the findings of this study are available from the corresponding author upon reasonable request.

Conflicts of Interest

Authors Hua Huang, Weite Liu, Fuyang Wei, Haizhuang Liu and Haobo Zhao were employed by the company Information and Telecommunications Company, State Grid Shandong Electric Power Company. The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest. This study received funding from Science and Technology Project of State Grid Shandong Electric Power Company (Grant No. 520627250002). The funder was not involved in the study design, collection, analysis, interpretation of data, the writing of this article or the decision to submit it for publication.

References

  1. Nguyen, T.T.; Reddi, V.J. Deep reinforcement learning for cyber security. IEEE Trans. Neural Netw. Learn. Syst. 2021, 34, 3779–3795. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  2. Standen, M.; Lucas, M.; Bowman, D.; Richer, T.J.; Kim, J.; Marriott, D. CybORG: A gym for the development of autonomous cyber agents. In Proceedings of the 1st International Workshop on Adaptive Cyber Defense, Virtual, 19–20 August 2021. [Google Scholar]
  3. Kiely, M.; Ahiskali, M.; Borde, E.; Bowman, B.; Bowman, D.; Van Bruggen, D.; Cowan, K.C.; Dasgupta, P.; Devendorf, E.; Edwards, B.; et al. CAGE Challenge 4: A scalable multi-agent reinforcement learning gym for autonomous cyber defence. AI Mag. 2025, 46, e70021. [Google Scholar] [CrossRef] [Scilit]
  4. Kiely, M.; Ahiskali, M.; Borde, E.; Bowman, B.; Bowman, D.; Cody, T.; Coles, J.; Dron, M.; Fralick, C.; Harrald, A.; et al. Exploring the efficacy of multi-agent reinforcement learning for autonomous cyber defence: A CAGE Challenge 4 perspective. Proc. AAAI Conf. Artif. Intell. 2025, 39, 28907–28913. [Google Scholar] [CrossRef] [Scilit]
  5. Vyas, S.; Mavroudis, V.; Burnap, P. Towards the deployment of realistic autonomous cyber network defence: A systematic review. ACM Comput. Surv. 2025, 58, 1–36. [Google Scholar] [CrossRef] [Scilit]
  6. Palmer, G.; Parry, C.; Harrold, D.J.B.; Willis, C. Deep reinforcement learning for autonomous cyber defence: A survey. arXiv 2023. [Google Scholar] [CrossRef] [Scilit]
  7. Bashendy, M.; Tantawy, A.; Erradi, A. Intrusion response systems for cyber-physical systems: A comprehensive survey. Comput. Secur. 2023, 124, 102984. [Google Scholar] [CrossRef] [Scilit]
  8. Mat, N.I.C.; Jamil, N.; Yusoff, Y.; Kiah, M.L.M. A systematic literature review on advanced persistent threat behaviors and its detection strategy. J. Cybersecur. 2024, 10, tyad023. [Google Scholar] [CrossRef] [Scilit]
  9. Iturbe, E.; Rego, A.; Llorente-Vazquez, O.; Rios, E.; Dalamagkas, C.; Merkouris, D.; Toledo, N. Reinforcement learning in action: Powering intelligent intrusion responses to advanced cyber threats in realistic scenarios. Expert Syst. Appl. 2026, 296, 129168. [Google Scholar] [CrossRef] [Scilit]
  10. Finistrella, S.; Mariani, S.; Zambonelli, F. Multi-agent reinforcement learning for cybersecurity: Classification and survey. Intell. Syst. Appl. 2025, 26, 200495. [Google Scholar] [CrossRef] [Scilit]
  11. Pateria, S.; Subagdja, B.; Tan, A.H.; Quek, C. Hierarchical reinforcement learning: A comprehensive survey. ACM Comput. Surv. 2022, 54, 1–35. [Google Scholar] [CrossRef] [Scilit]
  12. Simon, R.; Libin, P.; Mees, W. Learning Robust Penetration Testing Policies under Partial Observability: A systematic evaluation. Trans. Mach. Learn. Res. 2026. [Google Scholar] [CrossRef] [Scilit]
  13. Landolt, C.R.; Würsch, C.; Meier, R.; Mermoud, A.; Jang-Jaccard, J. Multi-agent reinforcement learning in cybersecurity: From fundamentals to applications. In Proceedings of the International Conference on Military Communication and Information Systems (ICMCIS), Oeiras, Portugal, 13–14 May 2025. [Google Scholar] [CrossRef] [Scilit]
  14. Bernstein, D.S.; Givan, R.; Immerman, N.; Zilberstein, S. The complexity of decentralized control of Markov decision processes. Math. Oper. Res. 2002, 27, 819–840. [Google Scholar] [CrossRef] [Scilit]
  15. de Witt, C.S.; Gupta, T.; Makoviichuk, D.; Makoviychuk, V.; Torr, P.H.S.; Sun, M.; Whiteson, S. Is independent learning all you need in the StarCraft multi-agent challenge? arXiv 2020. [Google Scholar] [CrossRef] [Scilit]
  16. Yu, C.; Velu, A.; Vinitsky, E.; Gao, J.; Wang, Y.; Bayen, A.; Wu, Y. The surprising effectiveness of PPO in cooperative multi-agent games. In Proceedings of the 36th Conference on Neural Information Processing Systems, New Orleans, LA, USA, 28 November–9 December 2022. [Google Scholar]
  17. Rashid, T.; Samvelyan, M.; de Witt, C.S.; Farquhar, G.; Foerster, J.; Whiteson, S. QMIX: Monotonic value function factorisation for deep multi-agent reinforcement learning. In Proceedings of the 35th International Conference on Machine Learning, Stockholm, Sweden, 10–15 July 2018; pp. 4295–4304. [Google Scholar]
  18. Chen, R.; Milani, S.; Zhang, Z.; Sadeh, N.; Fang, F. Making teams and influencing agents: Efficiently coordinating decision trees for interpretable multi-agent reinforcement learning. Proc. AAAI/ACM Conf. AI Ethics Soc. 2025, 8, 567–578. [Google Scholar] [CrossRef] [Scilit]
  19. Foley, M.; Hicks, C.; Highnam, K.; Mavroudis, V. Autonomous network defence using reinforcement learning. In Proceedings of the 2022 ACM Asia Conference on Computer and Communications Security (ASIA CCS), Nagasaki, Japan, 30 May–3 June 2022; pp. 1252–1254. [Google Scholar] [CrossRef] [Scilit]
  20. Singh, A.V.; Rathbun, E.; Graham, E.; Oakley, L.; Boboila, S.; Chin, P.; Oprea, A. Hierarchical multi-agent reinforcement learning for cyber network defense. Reinf. Learn. J. 2025, 6, 790–810. [Google Scholar]
  21. Tang, Y.; Sun, J.; Wang, H.; Deng, J.; Tong, L.; Xu, W. A method of network attack-defense game and collaborative defense decision-making based on hierarchical multi-agent reinforcement learning. Comput. Secur. 2024, 142, 103871. [Google Scholar] [CrossRef] [Scilit]
  22. Hürten, T.; Loevenich, J.F.; Spelter, F.; Adler, E.; Braun, J.; Moxon, L.; Gourlet, Y.; Lefeuvre, T.; Lopes, R.R.F. Hierarchical multi-agent reinforcement learning for autonomous cyber defense in coalition networks. In Proceedings of the 2024 IEEE Military Communications Conference (MILCOM), Washington, DC, USA, 28 October–1 November 2024; pp. 176–181. [Google Scholar] [CrossRef] [Scilit]
  23. Collyer, J.; Andrew, A.; Hodges, D. ACD-G: Enhancing autonomous cyber defense agent generalization through graph embedded network representation. In Proceedings of the 39th International Conference on Machine Learning, ML4Cyber Workshop, Baltimore, MD, USA, 17–23 July 2022. [Google Scholar]
  24. King, I.J.; Bowman, B.; Huang, H.H. Generalizable graph-based reinforcement learning agents for automated cyber defense. In Proceedings of the 56th Annual IEEE/IFIP International Conference on Dependable Systems and Networks (DSN), Charlotte, NC, USA, 22–25 June 2026; pp. 813–824. [Google Scholar] [CrossRef] [Scilit]
  25. Zhu, C.; Dastani, M.; Wang, S. Correction: A survey of multi-agent deep reinforcement learning with communication. Auton. Agents Multi-Agent Syst. 2024, 38, 11. [Google Scholar] [CrossRef] [Scilit]
  26. Varricchione, G.; Alechina, N.; Dastani, M.; De Giacomo, G.; Logan, B.; Perelli, G. Pure-past action masking. Proc. AAAI Conf. Artif. Intell. 2024, 38, 21646–21655. [Google Scholar] [CrossRef] [Scilit]
  27. Bui, T.V.; Mai, T.; Nguyen, T.H. MisoDICE: Multi-agent imitation from mixed-quality demonstrations. In Proceedings of the 39th International Conference on Neural Information Processing Systems, San Diego, CA, USA, 2–7 December 2025. [Google Scholar]
  28. Bui, T.V.; Mai, T.; Nguyen, T.H. Inverse factorized soft Q-learning for cooperative multi-agent imitation learning. In Proceedings of the Advances in Neural Information Processing Systems, Vancouver, BC, Canada, 10–15 December 2024; Volume 37. [Google Scholar]
  29. Morris, A.; Procter, R.; Wallbank, C. Evaluating reinforcement learning agents for autonomous cyber defence. Appl. AI Lett. 2025, 6, e125. [Google Scholar] [CrossRef] [Scilit]
  30. Bates, E.; Hicks, C.; Mavroudis, V. Beyond rewards in reinforcement learning for cyber defence. arXiv 2026, arXiv:2602.04809. [Google Scholar]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.