WorksComputer Science
Feasibility-Aware Deep Reinforcement Learning for O-CU and O-DU Mapping in 6G O-RAN
Abstract
This paper studies the mapping of the virtual network function components (VNFCs) of the O-RAN central unit (O-CU) and O-RAN distributed unit (O-DU) onto virtual machines (VMs) in sixth-generation (6G) open radio access networks (O-RAN). The problem is formulated as a feasibility-aware sequential decision process that maximizes the number of placed VNFCs and, secondarily, favors fewer active VMs and lower residual resource wastage. Although conventional optimization techniques can solve this problem, their computational cost becomes prohibitive for larger instances or when optimization must be repeated. To address this limitation, we explore two neural reinforcement learning (RL)-based methods: a deep -network (DQN) and a double deep -network (Double DQN). Whereas DQN uses the same target network to both select and evaluate the bootstrap action, Double DQN decouples these two operations to mitigate maximization-induced overestimation. We compare both methods against six baselines: random feasible placement, first-fit, first-fit decreasing, best-fit, a resource-wastage-aware heuristic, and a time-bounded mixed-integer linear programming (MILP) solver. We conduct a controlled experimental evaluation across four problem sizes with independent instances each, together with capacity-stress, distribution-shift, and reward-ablation experiments. For the VNFC-to-VM scenario, DQN and Double DQN achieve mean placed-VNFC fractions of and , respectively. However, first-fit decreasing and the resource-wastage-aware heuristic match this placement quality with lower efficiency cost and lower decision time, whereas the MILP attains the lowest efficiency cost at a much higher runtime. The results clarify the strengths and limitations of neural placement for this static problem, without establishing superiority over conventional methods.
Authors’ Note: This is a preprint version of the article currently under review. We welcome constructive feedback and comments to further enhance the quality and clarity of this work. If you have any suggestions, insights, or critiques, please feel free to contact the corresponding author, Mohammad Asif Habibi, at [email protected]. We sincerely appreciate all feedback, whether minor, critical, or substantial.
Disclaimer: This article has been submitted to the IEEE for possible publication. Copyright may be transferred without notice, after which this version may no longer be accessible.
Copyright: © 2026 IEEE. Personal use of this material is permitted. If the article gets accepted, permission from IEEE must be obtained for all other uses in any current or future media, including reprinting/republishing this material for advertising or promotional purposes, creating new collective works, for resale or redistribution to servers or lists, or reuse of any copyrighted component of this work in other works.
Introduction
The evolution toward sixth-generation (6G) wireless networks is expected to enable highly dynamic, scalable, and intelligent communication systems that support heterogeneous service requirements, including ultra-low latency, massive connectivity, and ultra-high reliability [1]. These stringent and often conflicting requirements motivate a shift from rigid, monolithic network architectures toward flexible, software-driven designs. In this context, the open radio access network (O-RAN) architecture has emerged as a key enabler of flexibility and programmability [2]: it disaggregates traditional base stations into modular, interoperable components, namely the O-RAN central unit (O-CU), O-RAN distributed unit (O-DU), and O-RAN radio unit (O-RU), which are connected through open interfaces [3]. This functional decomposition promotes multi-vendor interoperability, can reduce deployment costs, and enables fine-grained control over network functions (NFs) [4]. Furthermore, when combined with virtualization and cloud-native principles, this disaggregation allows NFs to be implemented as virtual network functions (VNFs) and deployed on geographically distributed O-RAN cloud (O-Cloud) infrastructure, thereby supporting dynamic resource allocation, network slicing, and on-demand service provisioning [5].
However, the efficient mapping of the O-CU and O-DU, as VNFs, onto available virtual machines (VMs) in O-Cloud sites remains a fundamental challenge [6]. This problem is inherently complex because of the tight coupling among computational, networking, and radio resources [5] and the need to satisfy diverse performance constraints such as latency, throughput, and reliability. The challenge is further exacerbated by O-RAN slicing, where multiple coexisting slices impose heterogeneous and often conflicting requirements on a shared wireless infrastructure [6]. Each slice may demand specific quality of service (QoS) guarantees, isolation levels, and resource elasticity, turning the mapping problem into a multi-objective optimization task with stringent constraints. In such environments, suboptimal mapping decisions can lead to resource fragmentation, increased end-to-end latency, service-level agreement (SLA) violations, and limited scalability of 6G networks [7]. Underlying all of these formulations is a common core problem: deciding, under storage and compute capacity constraints, which VM should host each VNF component. This paper focuses on that core research problem.
Prior Studies
The VNF mapping problem has been extensively investigated across various network environments, including wireless and cloud-native infrastructures, using a wide range of conventional optimization and learning-based methodologies [5]. Because VNF placement is NP-hard and subject to strict constraints on latency, resource utilization, and energy efficiency, classical heuristic and metaheuristic methods have been widely adopted to obtain good solutions at acceptable computational cost [5]. For example, ant colony optimization (ACO) has been applied to joint VNF placement and routing in service function chain (SFC) deployment [8]. In ACO, artificial ants construct candidate mappings probabilistically, guided by pheromone trails that are reinforced by high-quality solutions. Mao et al. [8] combine this mechanism with online learning to adapt deployment decisions over time while balancing objectives such as cost, service delay, and load balancing.
Mixed-integer linear programming (MILP) is one of the common approaches to the VNF mapping problem, since it can yield provably optimal solutions under resource and QoS constraints. Representative works include Moens and De Turck [9], who introduced an MILP-based model for network functions virtualization (NFV) resource allocation; Bari et al. [10], who investigated integer linear programming (ILP)-based and heuristic orchestration methods; and Mehraghdam et al. [11], who formalized the placement of VNF chains as a mixed-integer quadratically constrained program. Martín-Pérez and Bernardos [12] extended the problem to multiple administrative domains, proposing scalable mapping algorithms that optimize inter-domain resource allocation under domain-level constraints and coordination overhead, which is particularly relevant for large-scale fifth-generation (5G) and 6G networks spanning several operators. However, exact formulations become computationally intractable for large instances with complex constraints [13]. Decomposition techniques such as column generation, which split the original problem into a master problem and pricing subproblems, improve tractability while preserving good solution quality [14, 15].
Recently, a growing body of research has turned to machine learning (ML)-driven approaches, motivated by their potential to enable adaptive, data-driven resource management in cloud-native networks [5]. In particular, reinforcement learning (RL) has attracted significant attention because VNF placement is naturally a sequential decision-making problem under uncertainty: an agent learns placement policies through repeated interaction with the network environment, without requiring an explicit model of its dynamics [16, 17].
Building on this direction, our previous work [18] introduced SliceMapper, an RL-based framework that maps the functionalities of the O-CU and O-DU, referred to as virtual network function components (VNFCs), onto VMs. It investigated four temporal-difference learning methods, namely the tabular and linear variants of state-action-reward-state-action (SARSA) and Q-learning. The results demonstrated that RL can solve the VNFC mapping problem effectively, but they also exposed the limits of these representations: tabular methods require state-action values whose number grows with the problem size, whereas linear methods restrict the action-value function to a linear combination of hand-crafted features. Whether nonlinear function approximation, combined with experience replay and target networks, improves placement quality, efficiency, or learning stability in this setting therefore remained an open research question.
Other studies have applied deep RL to VNF mapping in software-defined networking (SDN)/NFV and 5G networks. Quang et al. [17] embedded VNF forwarding graphs with a deep RL agent, and Pei et al. [16] used deep RL for VNF placement in SDN/NFV-enabled networks. Kuai et al. [19] applied proximal policy optimization to VNF mapping and scheduling, Tran et al. [20] proposed a deep RL framework for 5G SFC provisioning, and Wei et al. [21] adapted SFC mapping with multi-task deep RL. These works confirm the growing use of deep RL for resource allocation. However, none of them addresses the placement of the O-CU and O-DU VNFCs onto VMs in O-Clouds. Moreover, deep RL in general still faces challenges in training stability, computational overhead, and generalization across deployment scenarios.
Major Research Problems
The above studies, however, predominantly model VNFs as monolithic entities during the mapping process. Such an abstraction does not align with the fine-grained, cloud-native design principles of O-RAN, for two reasons. First, each VNF is composed of multiple VNFCs [22]; in the O-CU and O-DU, these correspond to protocol-layer functions with distinct compute and storage requirements [23]. A monolithic model must place all of them on a single host, whereas a component-level model admits every such co-located placement as well as placements that distribute the components across VMs. Component-level mapping can therefore only enlarge the set of feasible placements, enabling higher resource utilization and more flexible placement decisions, although distributed placements may incur additional inter-component communication overhead. Second, the resource demands of these components can vary considerably with service requirements and QoS constraints, which a monolithic model cannot represent.
Furthermore, the literature typically treats the placement layers in isolation. Cloud-computing-related studies focus on VM-to-physical machine (PM) mapping and treat the VMs as given [24], whereas VNF placement-related studies map entire VNFs onto physical servers or network nodes [11, 16]. Neither perspective models the intermediate step of assigning VNFCs to VMs. When VMs are provisioned in advance without regard to the components they will host, the storage and compute capacity left unused within each VM, i.e., its internal fragmentation, is not optimized. Explicitly modeling VNFC-to-VM mapping makes this residual capacity a decision variable, which we quantify through the active-VM residual wastage in § 5.
These observations motivate formulating VNFC-to-VM mapping explicitly as an optimization problem, which is the focus of this paper. Specifically, the mapping is many-to-one: each VNFC of the O-CU and O-DU, characterized by its storage and compute demands, is either assigned to exactly one candidate VM or rejected, whereas a VM may host multiple VNFCs as long as their aggregate demands do not exceed its storage and compute capacities. The primary objective is to maximize the number of placed VNFCs; among placements of equal size, those that use fewer active VMs and leave less residual capacity are preferred. Because each assignment reduces the capacity available to subsequent components, the problem can be cast as a sequential decision process, which makes it amenable to RL.
Summary of Key Contributions
To address the aforementioned research problems, this paper extends our prior work [18], in which the VNFCs of the O-CU and O-DU were mapped onto VMs using tabular and linear variants of SARSA and -learning. Building on the same system model, this study investigates two deep RL methods, namely deep -network (DQN) and Double DQN. The main contributions are as follows:
We extend our prior work [18] with DQN and Double DQN agents that share a 15-dimensional action-conditioned feature representation, whose number of parameters is independent of the number of candidate VMs. Both agents combine feasible-action masking, multi-step bootstrap targets that account for forced rejections, experience replay, and target networks.
We provide a comparative benchmark of both agents, each with independently tuned hyperparameters, against random feasible placement, first-fit, first-fit decreasing, best-fit, a resource-wastage-aware heuristic, and a time-bounded MILP. The benchmark covers four problem sizes with 30 independent instances each and reports placement quality, resource efficiency, decision latency, training time, and memory usage.
We assess robustness and design choices through capacity-stress and zero-shot distribution-shift scenarios and a terminal-reward ablation. The results show that both agents achieve near-complete placement, but strong heuristics match their placement quality at lower efficiency cost and computational overhead. We therefore report both the favorable and the unfavorable outcomes of neural placement in the paper.
The Structure of the Paper
The rest of this paper is organized as follows. Section II presents the system model. Section III formulates the VNFC-to-VM mapping problem, including its capacity constraints, the normalized efficiency cost, and the MILP formulation. Section IV motivates the use of RL, casts the problem as a sequential decision process, and introduces the DQN and Double DQN agents together with their pseudocode. Section V describes the experimental setup and compares both agents with heuristic and MILP baselines in terms of placement quality, efficiency, and computational cost; it also examines failure conditions, distribution shifts, reward ablation, the comparison with our earlier tabular and linear methods, and the limitations of the evaluation. Finally, Section VI concludes the paper and outlines directions for future research.
System Model
The system model is illustrated in Figure 1. The architecture is organized into three logical layers: the Management and Orchestration Layer, the Network Function Layer, and the Infrastructure Layer. The Management and Orchestration Layer encompasses the service management and orchestration (SMO) framework defined by the O-RAN Alliance, including the non-real-time RAN intelligent controller (Non-RT RIC), together with management components specified by other standards developing organizations (SDOs). These components manage and orchestrate the NFs of O-RAN slices and their underlying resources within a non-real-time control loop that operates
Figure 1. System model for mapping the VNFCs of the O-CU and O-DU onto O-Clouds. The numbered lines denote the internal virtual links between VNFCs. VMs #1 to #k reside in O-Cloud #1 and VMs #k+1 to #m in O-Cloud #2; they form the pool of candidate VMs. The optimization addresses the assignment of VNFCs to VMs; the eight VNFCs shown are illustrative, whereas we consider an arbitrary number . RRC: radio resource control; SDAP: service data adaptation protocol; PDCP: packet data convergence protocol; RLC-H/RLC-L: radio link control-high/-low; MAC-H/MAC-L: medium access control-high/-low; PHY-H: physical-high.
on timescales of 1 s or longer [25]. The Network Function Layer comprises the functional elements of an O-RAN next-generation Node B (O-gNB). Under the O-RAN split 7.2x [2], the O-gNB of an O-RAN slice is decomposed into an O-CU, an O-DU, and an O-RU, which are interconnected through the F1 interface and the open fronthaul (i.e., Fx), while the O-CU connects to the core network through the NG interface. Finally, the Infrastructure Layer consists of the O-Cloud sites, cell sites, and transport links. The O-Cloud sites host the O-CU and O-DU, and the cell sites host the O-RU. Each O-Cloud site comprises a set of VMs hosted on PMs, and each VM provides virtualized compute and storage resources to the VNFCs of the O-CU and O-DU. The O-RU is outside the scope of this work. This paper considers a single O-RAN slice subnet and focuses on the Infrastructure Layer: the Management and Orchestration Layer is assumed to execute the resulting placement decisions, and the Network Function Layer defines which VNFCs must be placed.
To formally model the functional decomposition introduced above, let denote the set of VNFCs, indexed in the order in which they are processed, where and contain the O-CU and O-DU components, respectively, with . Each is characterized by its storage demand and compute demand . Accordingly, the aggregate storage and compute demands are
which determine the resource load of an instance in Section V.
Although Figure 1 depicts eight functional components, the placement formulation admits an arbitrary number of VNFCs, each of which is treated as a placement request. This generalization accommodates the different problem sizes considered in Section V. In the synthetic instances, each request is labeled as an O-CU or O-DU component according to the adopted decomposition, without explicitly simulating the individual protocol-layer functions. These labels do not enter the capacity constraints; they are used only to construct the O-CU- and O-DU-heavy demand profiles in Section V.
The Infrastructure Layer comprises the virtualized resources available for hosting the VNFCs. Let denote the pool of candidate VMs, hosted on the underlying PMs of the O-Cloud sites, where VM has storage capacity and compute capacity . The VNFC-to-VM mapping is modeled as a many-to-one assignment problem: each successfully placed VNFC is assigned to exactly one candidate VM, whereas a VM may accommodate multiple VNFCs provided that sufficient residual storage and compute capacities remain. Following [22], each VNFC instance runs in its own virtualization container (e.g., an operating-system container), and several such containers can be co-hosted on a single VM; this paper allocates storage and compute resources at the VM level. The requests are processed sequentially, with request handled at placement step . Let and denote the residual storage and compute capacities of at step , respectively, initialized as and . A placement of onto is feasible if
If is placed on the selected VM , its residual capacities are updated as
while the residual capacities of all other VMs remain unchanged. If no VM satisfies (3), the request is rejected and all residual capacities remain unchanged.
The objectives and constraints of this mapping problem are formulated in Section III, and the sequential decision process is defined in detail in Section IV-B.
Problem Formulation
This section formulates the VNFC-to-VM mapping optimization problem introduced in Section II, following the formulation in [18]. The VNFCs with storage and compute demands and must be assigned to the candidate VMs with capacities and , such that the aggregate demands hosted on each VM do not exceed either capacity. The optimization problem is therefore a two-dimensional vector bin-packing problem in which the number of placed items is maximized [26]. Since each placement reduces the residual capacities of the selected VM, the feasibility of every subsequent placement depends on the earlier decisions.
For each and , let the binary variables , , and indicate whether is mapped to , whether is active, and whether is placed, respectively. The feasibility constraints are
Constraint (5) assigns each placed VNFC to exactly one VM, and (6)–(7) enforce the storage and compute capacities of active VMs. Constraints (8)–(9) ensure that exactly when hosts at least one VNFC; (8) is implied by (6) for positive demands tightens the relaxation.
A mapping is complete if for all . For a given mapping, the residual storage and compute capacities of are
which coincide with the residual capacities obtained after all requests have been processed by the sequential updates in (4).
Let denote the number of active VMs, and let . We define the aggregate residual fraction of the active VMs as
where normalizing each residual by the corresponding capacity makes storage and compute, which are measured in different units, directly comparable. The normalized efficiency cost is
Since each active VM hosts at least one VNFC, , and since each residual fraction lies in , ; hence . Among placements with the same number of placed VNFCs, a smaller favors fewer active VMs and lower residual capacity. In all experiments, . To report resource wastage, we additionally use the mean residual fraction over active VMs,
where the value 1 for is a convention assigning the worst wastage when no VNFC is placed.
The MILP minimizes
subject to (5)–(9), where is the dominance coefficient. Since , placing one additional VNFC decreases the second term of (15) by , whereas can increase by at most 1. Hence, any solution that places more VNFCs attains a strictly lower objective value, and any would suffice. The MILP maximizes the number of placed VNFCs and, among solutions with the same placement count, minimizes the efficiency cost. Substituting (10)–(13) and using , which follows from (8), yields the equivalent linear objective
The MILP is solved with SciPy’s milp interface to the HiGHS solver, using a 30 s time limit and a relative optimality-gap tolerance of . The solver status and reported gap are recorded to distinguish certified optimal solutions from incumbents returned at the time limit.
Proposed Solution
Building on the formulation in § 3, this section introduces two RL-based solutions for VNFC-to-VM mapping: Double DQN and DQN. We first motivate the use of RL and cast the mapping as a sequential decision process, and then present the two agents together with their training procedures. The key notation is summarized in Table I.
| Notation | Description |
| System Model and Problem Formulation | |
| Set of VNFCs; -th VNFC | |
| Sets of O-CU and O-DU VNFCs | |
| Set of candidate VMs; -th VM | |
| Storage and compute demands of | |
| Aggregate storage and compute demands | |
| Storage and compute capacities of | |
| Placement step, | |
| Residual capacities of at step | |
| Residual capacities of after all requests | |
| Binary VNFC-to-VM assignment variable | |
| VM activation indicator | |
| VNFC placement indicator | |
| Number of active VMs; | |
| Aggregate residual fraction of active VMs | |
| Mean residual fraction over active VMs | |
| Normalized efficiency cost; its weighting factor | |
| Dominance coefficient of the MILP objective | |
| Reinforcement Learning Formulation | |
| Current and remaining aggregate demand vectors | |
| Placement state and selected VM at step | |
| Action space; feasible actions in state | |
| Reward after processing request | |
| Completion indicator; terminal efficiency-bonus coefficient | |
| Consecutive forced rejections; bootstrap discount | |
| Placed-VNFC fraction | |
| Greedy-policy evaluation score | |
| 15-dimensional state-action features; placement progress | |
| Online and target action-value networks | |
| Online and target network parameters | |
| Greedy placement policy | |
| Discount factor | |
| Exploration rate in training episode | |
| Learning rate | |
| Minibatch size, replay capacity, warm-up size | |
| Training interval; target-update interval | |
| Maximum number of training episodes |
Table I. Table I. Notation used in the system model and the proposed solution
Why Reinforcement Learning for VNFC Mapping?
The MILP in (15) can be solved to optimality for small, static instances. Its cost, however, grows quickly with problem size: in our experiments, the solver certifies optimality within 30 s for all instances, but for only one of thirty instances and for none at (see § 5). Practical O-RAN deployments are, moreover, larger and dynamic: VNFC demands vary over time, VM capacities change with background workloads, and slice-level latency and bandwidth requirements differ across services, so the problem would have to be solved repeatedly. This paper addresses the static
problem as a first step, in order to establish whether learned placement policies can match exact and heuristic methods before extending them to dynamic settings.
RL is applicable because the VNFC-to-VM mapping can be decomposed into a sequence of decisions: at each step, the agent selects a VM for the current VNFC, and this choice changes the residual resources available to all subsequent requests. By maximizing a cumulative reward, an RL agent can learn placement policies that account for these downstream effects rather than only immediate feasibility. Once trained, a policy produces each decision with one forward pass of its network per candidate VM, which is far cheaper than solving the MILP, although heuristics remain faster still. This inference advantage, however, materializes only when a trained policy is reused across instances; in our main benchmark, a separate policy is trained for each instance, and its training cost must therefore be weighed against a single MILP solution. The role of RL in this paper is thus to learn sequential, feasibility-aware placement policies and to quantify their placement quality, efficiency, and computational cost relative to exact and heuristic methods, including their behavior on unseen instances (refer to § 5 for more details).
The DQN and Double DQN agents build on our previous work [18], which applied tabular and linear variants of SARSA and -learning to the same problem. They extend these methods with nonlinear, neural-network-based action-value approximation, experience replay, and target networks.
Sequential Decision Formulation
The RL agent processes the VNFCs sequentially at the placement steps defined in Section II. An episode is one complete pass over the entire request batch, and the complete ordered batch is known at the beginning of each episode. At step , the demand vector of the current request is
and the environment state is
which records the current request, the capacities of the candidate VMs, their residual capacities after preceding placements, and the aggregate demands of the unprocessed requests, including the current one,
At each step, an action selects one VM for the current request, so the action space contains the indices of all candidate VMs. The agent is, however, restricted to the feasible subset
i.e., infeasible VMs are masked and never selected during training or evaluation. If is selected, the residual capacities are updated according to (4).
If , the current request cannot be placed and is rejected; we refer to this as a forced rejection. Following [18], the reward received after step is
where equals one only if and the mapping is complete, and is the terminal efficiency-bonus coefficient. The placement reward of a complete mapping sums to one, so the bonus is granted only when all VNFCs are placed and favors more efficient mappings.
The placed-VNFC fraction of a mapping is
with as defined in § 3, and the greedy-policy evaluation score is
where corresponds to a complete mapping. Hence, : it exceeds one only for complete mappings, among which it prefers smaller efficiency costs. The score is used for checkpoint evaluation and for the stabilization criterion in § 5; it is distinct from the discounted temporal-difference return and from the MILP objective (15).
The DQN and Double DQN agents share the placement environment, the feasible-action constraints, and the reward formulation; they differ only in their bootstrap targets. Both use an action-conditioned representation: for every candidate , a feature vector is constructed, and the corresponding action value is approximated by
where is a fully connected network with online parameters , two hidden layers of 128 ReLU units, and a scalar output, i.e., 18,689 trainable parameters. Because the network scores one state-action pair at a time, its number of parameters is independent of the number of candidate VMs . During evaluation, the agent follows the greedy policy
which selects the feasible VM with the highest action value.
As in [18], comprises 15 features in three groups. The eight candidate-VM features are the residual storage and compute capacities of VM before and after a hypothetical placement of the current request, a feasibility flag, the activation status of VM , the post-placement fit , and the storage-compute balance , where and denote the post-placement residual storage and compute fractions of VM . The four demand features are the normalized storage and compute demands of the current request and the remaining storage and compute demand pressures from . The three global features are the fraction of active VMs, the placement progress , and a bias equal to one.
Double Deep Q-Network
Double DQN is an off-policy deep RL method. Like Double -learning, it separates action selection from action evaluation when constructing bootstrap targets, which reduces the overestimation caused by maximization [27, 28]. Both agents employ an online network and a target network , where the target network is initialized with and periodically synchronized during training. The online network is trained by gradient descent, and the target network provides the bootstrap values. In Double DQN, the online network selects the next action and the target network evaluates it.
States with require no decision. The agents learn only from decision states, and the forced rejections between two decision states are folded into a single transition. Let denote the number of consecutive forced rejections following the action at step . The accumulated discounted reward and the bootstrap discount of this transition are
so the negative rewards of forced rejections are included, and the discount accounts for the steps until the next decision state. For , these reduce to the one-step reward and discount.
Each stored transition comprises the decision state , the action , the accumulated reward , the discount , and the next decision state . In Double DQN, the online network selects the next action,
and the target network evaluates it:
This separation reduces overestimation, but does not guarantee unbiased value estimates or convergence to the optimal policy.
Both agents are trained with experience replay: transitions are stored in a replay buffer of capacity , from which minibatches of size are sampled uniformly. The online parameters minimize the Huber loss
where is the agent-specific target, treated as a constant, and is the Huber threshold. The parameters are updated with the AdamW optimizer [29] and gradient clipping, and the target network is synchronized periodically. Algorithm 1 summarizes the Double DQN training procedure, where stacks the feature vectors of all , and is the binary mask of . The stopping criterion, hyperparameters, and training results are given in § 5.
Deep Q-Network
DQN is an off-policy deep RL method that learns from temporal difference (TD) targets using experience replay and a target network [30, 31]. Our DQN agent shares all components described in § 4-C, i.e., the feature representation, network architecture, feasible-action masking, forced-rejection transitions, replay mechanism, and Huber loss (29), and differs only in its target. Instead of decoupling selection and evaluation, DQN uses the target network for both:
Algorithm 1 Double DQN training for VNFC-to-VM mapping
Require: • Ordered VNFC batch and VM capacities • Discount factor , exploration schedule • Learning rate , minibatch size • Replay capacity , warm-up threshold • Training interval , target-update interval • Maximum number of training episodes
Initialize online network randomly
Initialize target network with
Initialize replay buffer and AdamW optimizer
Initialize counters and
for do
Reset environment and process initial forced rejections
while a nonterminal decision state exists do
Determine and construct for all
Select -greedy feasible action using
Execute and process subsequent forced rejections
Compute and using (26)
Store in
if and then
Sample transitions uniformly from
for each sampled transition do
if is terminal then
else
Select with using (27)
Compute with using (28)
end if
end for
Update by minimizing (29) using AdamW with gradient clipping
if then
end if
end if
end while
Evaluate greedy policy at scheduled checkpoints
if stabilization criterion is satisfied after the minimum episode budget then
break
end if
end for
return trained online network and greedy policy
Algorithm 2 summarizes the training procedure. Because the hyperparameters of both agents are tuned independently (§ 5), their empirical differences cannot be attributed exclusively to the target construction.
Performance Evaluation
In this section, the two agents are compared with five conventional heuristics and a time-bounded MILP baseline, following the controlled experimental framework of our previous work [18]. We examine placement quality, resource efficiency, empirical learning stabilization, online decision latency, and training cost. We further investigate the learned policies under capacity stress and distribution shifts, conduct a reward ablation, compare the agents with the tabular and linear methods of [18], and discuss the limitations of the evaluation.
Experimental Setup and Evaluation Metrics
The experiments are implemented in Python using NumPy, SciPy, and PyTorch. Four controlled problem sizes are considered, . The VM storage and compute capacities are sampled independently from and , respectively. The Algorithm 2 DQN training for VNFC-to-VM mapping
Require:
Ordered VNFC batch and VM capacities
Discount factor , exploration schedule
Learning rate , minibatch size
Replay capacity , warm-up threshold
Training interval , target-update interval
Maximum number of training episodes
Initialize online network randomly
Initialize target network with
Initialize replay buffer and AdamW optimizer
Initialize counters and
for do
Reset environment and process initial forced rejections
while a nonterminal decision state exists do
Determine and construct for all
Select -greedy feasible action using
Execute and process subsequent forced rejections
Compute and using (26)
Store in
if and then
Sample transitions uniformly from
for each sampled transition do
Compute with using (30)
end for
Update by minimizing (29) using AdamW with gradient clipping
if $n_{\mathrm{grad}} \bmod K = 0 then
end if
end if
end while
Evaluate greedy policy at scheduled checkpoints
if stabilization criterion is satisfied after the minimum episode budget then
break
end if
end for
return trained online network and greedy policy
VNFC storage and compute demands are constructed from weights drawn independently from and scaled separately for each resource to a target load and of 0.75. Each demand is capped at 90% of the largest corresponding VM capacity, so that every VNFC fits into at least one empty VM, and rounded to a positive integer; the realized loads may deviate slightly from the target. All capacities and demands are in synthetic units.
| Parameter | Setting |
| Problem sizes | 8 × 4, 16 × 8, 32 × 16, 64 × 32 |
| Target load | 0.75 |
| Training budget / minimum | 3000 / 750 episodes |
| Greedy evaluation interval | 50 episodes |
| Stabilization window | 5 checkpoints with and range of $E \le 0.01 |
| Tuning | Seeds 100–104 (16 × 8), 8 candidates per agent |
| Main evaluation seeds | 300–329 (30 instances per size) |
| Failure and shift seeds | 500–509 (10 instances) |
| Reward-ablation seeds | 700–709 (10 instances) |
| MILP time limit / gap | 30 s / |
| Network / parameters | 15–128–128–1 / 18,689 |
| Formulation constants | , , |
Table 2. Experimental setup
We compare the agents with five heuristics and the MILP in
(15), using the definitions of [18]. Random feasible placement selects uniformly among the feasible VMs, and first-fit selects the feasible VM with the lowest index. First-fit decreasing sorts the requests in decreasing order of their maximum normalized storage and compute demand and then applies first-fit [26]. Best-fit selects the feasible VM that minimizes the mean of its normalized residual storage and compute fractions after placement. The resource-wastage-aware heuristic, introduced in [18], minimizes a score that combines this mean residual fraction, the absolute imbalance between the two fractions, and a penalty of 0.05 for activating an inactive VM. In contrast to these sequential methods, the MILP optimizes all requests jointly, using the solver settings given in Section III. The performance metrics follow [18]. In figures, for the sake of simplicity, Double DQN is abbreviated as DDQN.
| Parameter | DQN | Double DQN |
| Learning rate | ||
| Discount factor | 0.99 | 0.95 |
| Initial / final | 1.00 / 0.05 | 0.70 / 0.05 |
| Target-update interval (gradient steps) | 500 | 250 |
| Weight decay | ||
| Exploration-decay fraction | 0.80 | 0.80 |
| Minibatch size / replay capacity | 128 / 50,000 | 128 / 50,000 |
| Warm-up transitions | 500 | 500 |
| Training interval (transitions) | 4 | 4 |
| Optimizer / gradient-clip norm | AdamW / 10 | AdamW / 10 |
| Huber threshold | 1 | 1 |
Table 3. Selected hyperparameters of the DQN and Double DQN agents
Fraction of training episodes over which decays linearly.
The experimental setup is summarized in Table II. Hyperparameters are selected on five 16 × 8 instances generated from seeds 100–104 (Section V-B). For the main benchmark, each of the four sizes is evaluated on 30 independent instances generated from seeds 300–329. As discussed in Section IV-A, a separate policy is trained on each instance and evaluated greedily on that same instance; transfer to unseen instances is examined in Section V-F. Seeds 500–509 and 700–709 are used for the failure and distribution-shift experiments and the reward ablation, respectively, and none for tuning.
| Agent | Stable runs | Window start | Detection episode |
| DQN | 28/30 | 800 | 1000 |
| Double DQN | 28/30 | 650 | 850 |
Table 4. Empirical stabilization of the agents at 16 × 8
Medians over stable runs (episodes). Detection occurs four 50-episode intervals after the window start.
Placement quality is measured by the placed-VNFC fraction in (22). Resource efficiency is assessed by the efficiency cost in (13), the number of active VMs , and the active-VM residual wastage in (14). For the agents, we additionally report the greedy evaluation score , the number of training episodes, stabilization, training time, and memory allocation. Means are reported with normal-approximation 95% confidence intervals, , where is the sample standard deviation over independent instances; since is bounded by one, these intervals are approximate near the boundary. Differences between methods are evaluated on paired instances, and training time and peak allocation are reported as medians with interquartile ranges.
For the agents, decision time includes action-feature construction and greedy action selection; for the heuristics, it covers the VM selection rule. Both exclude environment updates. For the MILP, which solves the batch jointly, the reported per-VNFC time is the solver time divided by . Peak allocation is measured with Python’s tracemalloc, which traces Python-level and NumPy allocations, such as the replay buffer, but not memory allocated internally by PyTorch; it therefore does not represent the total process-resident memory.
Hyperparameter Selection
Each agent is tuned over eight candidate configurations, using the same five instances. The candidates are ranked lexicographically by the divergence rate, i.e., the fraction of runs with numerically unstable training (lower is better), followed by the mean placed-VNFC fraction (higher), the mean greedy evaluation score (higher), the mean efficiency cost (lower), and the mean training time (lower). The selected hyperparameters, listed in Table III, are fixed before the main benchmark, the failure analysis, and the reward ablation, and are used unchanged for all problem sizes.
Both agents use the architecture described in § 4-B, with 18,689 trainable parameters per online network, independent of the number of VMs. Their tuned hyperparameters, however, differ: DQN uses , a learning rate of , and a target-update interval of 500 gradient steps, whereas Double DQN uses , a learning rate of , and an interval of 250 gradient steps. The comparison evaluates the agents under independently tuned configurations.
Learning Behavior and Empirical Stabilization
Figure 2 shows the greedy evaluation score, the placed-VNFC fraction, and the efficiency cost during training, averaged over the 30 reference instances. Both agents fluctuate strongly at early checkpoints, after which their mean evaluation scores and placed fractions improve and vary less. Scores above one correspond to complete mappings that earn the efficiency bonus in (23). The efficiency cost remains within throughout, indicating that training mainly improves feasibility rather than efficiency. If a run terminates early, its last evaluated value is carried forward in the plot only, without implying further training.

Figure 2. Learning behavior of the two agents at 16 × 8: (a) greedy evaluation score , which exceeds one only for complete mappings earning the efficiency bonus, (b) placed-VNFC fraction , and (c) efficiency cost of the greedy policy. Curves are means over the 30 reference instances, and shaded bands are normal-approximation 95% confidence intervals. For runs that stop early, the last evaluated value is carried forward.
To distinguish observed stabilization from theoretical convergence, we apply the operational stopping criterion of [18]. Greedy evaluations are performed every 50 episodes, and the stabilization test is enabled after at least 750 episodes. A run is considered stabilized when its five latest checkpoints all satisfy , i.e., yield complete mappings, and the range of their evaluation scores is at most 0.01. Runs that do not meet this rule continue up to episodes. As summarized in Table IV, both agents stabilize in 28 of the 30 runs, and Double DQN does so about 150 episodes earlier in median. Since the two agents use different hyperparameters, this difference cannot be attributed to the target construction alone, and neither the stopping rule nor the learning curves certify convergence to the optimal action-value function.
Main Benchmark at
The main benchmark compares the two agents and the six baselines on the reference setup. Figure 3 summarizes placement quality, efficiency, and online decision time, and Table V lists the corresponding values with 95% confidence intervals. Both agents achieve high mean placed fractions, for DQN and for Double DQN. However, first-fit decreasing and the resource-wastage-aware heuristic match or slightly exceed them, both reaching , with overlapping confidence intervals, and the MILP places every VNFC in all 30 instances.
Figure 3. Main comparison at 16 × 8: (a) placed-VNFC fraction , (b) efficiency cost , and (c) decision time per VNFC on a logarithmic scale, where the MILP time is the batch solve time divided by . RF: random feasible placement; FF: first-fit; FFD: first-fit decreasing; BF: best-fit; RWA: resource-wastage-aware heuristic; DDQN: Double DQN. Error bars show normal-approximation 95% confidence intervals over 30 instances.
| Method | Placed-VNFC fraction | Efficiency cost | Active-VM wastage | Decision time (ms/VNFC) |
| Random feasible placement | 0.965 ± 0.016 | 0.630 ± 0.010 | 0.265 ± 0.014 | 0.023 ± 0.001 |
| First-fit | 0.992 ± 0.008 | 0.617 ± 0.003 | 0.235 ± 0.006 | 0.011 ± 0.001 |
| First-fit decreasing | 0.998 ± 0.004 | 0.606 ± 0.011 | 0.221 ± 0.011 | 0.010 ± 0.001 |
| Best-fit | 0.988 ± 0.011 | 0.615 ± 0.010 | 0.235 ± 0.012 | 0.034 ± 0.002 |
| Resource-wastage-aware heuristic | 0.998 ± 0.004 | 0.601 ± 0.016 | 0.221 ± 0.015 | 0.048 ± 0.002 |
| MILP* | 1.000 ± 0.000 | 0.414 ± 0.015 | 0.048 ± 0.011 | 118.29 ± 28.04† |
| DQN | 0.990 ± 0.014 | 0.620 ± 0.009 | 0.244 ± 0.010 | 0.354 ± 0.007 |
| Double DQN | 0.996 ± 0.008 | 0.617 ± 0.008 | 0.239 ± 0.009 | 0.352 ± 0.007 |
Table V. Results at 16 × 8: means ± normal-approximation 95% confidence half-widths over 30 instances
The differences become clearer in resource efficiency. DQN and Double DQN obtain mean costs of and , respectively, compared with for first-fit decreasing and for the resource-wastage-aware heuristic, although the confidence intervals overlap. Their active-VM wastage of 0.244 and 0.239 is likewise slightly higher than the 0.221 of the heuristics. The MILP attains a substantially lower cost, , and a wastage of only , because it optimizes the batch jointly and consolidates the VNFCs onto fewer, more fully utilized VMs. Hence, complete placement does not imply efficient resource utilization: the agents achieve high completion but neither match the MILP in efficiency nor consistently improve on the strongest heuristics.
In terms of decision time, DQN and Double DQN require 0.354 and 0.352 ms per VNFC, about 35 times longer than first-fit decreasing (0.010 ms) and 7 times longer than the resource-wastage-aware heuristic (0.048 ms). The MILP requires 118.29 ms per VNFC, i.e., about 1.9 s per batch, and all 30 solutions at this size are certified optimal. Once trained, the agents decide more than two orders of magnitude faster than the MILP but remain slower than the heuristics.
Placement Quality and Computational Scaling
We next examine how placement quality and computational cost change across the four problem sizes. Figure 4 reports the mean placed-VNFC fraction and efficiency cost of all eight approaches. Both agents maintain high completion across all sizes, with mean placed fractions from 0.990 to 1.000 for DQN and from 0.996 to 1.000 for Double DQN. At , both place all requests in all 30 instances, and at they reach and , respectively. This suggests that the action-conditioned representation remains effective within the studied sizes. Since a new model is trained for each instance, however, this experiment does not establish transfer to unseen problem sizes, which is examined in § 5-F.

Figure 4. Scalability across the four problem sizes: (a) mean placed-VNFC fraction and (b) mean efficiency cost . Error bars show normal-approximation 95% confidence intervals over 30 instances per size. The agents are trained separately on each instance. At 32 16 and 64 32, the MILP values are mostly time-bounded incumbents rather than certified optima.
Near-complete placement does not eliminate differences in resource utilization. At , DQN achieves and Double DQN , while first-fit decreasing and the resource-wastage-aware heuristic still attain lower mean costs. The mean paired difference in (Double DQN minus DQN) favors DQN at and , at 0.011 and 0.008 , respectively. Since these unadjusted intervals stem from exploratory comparisons across several configurations and independently tuned agents, they do not show that DQN is generally more efficient. The MILP attains the lowest mean cost at every size, but its certification status changes markedly: all 30 solutions are certified optimal at 8 × 4 and 16 × 8, compared with 1 at 32 × 16 and none at 64 × 32. Its results at the two larger sizes are time-bounded incumbents rather than certified optima. The Figure 5 shows the computational cost across sizes. The agents’ decision times remain between 0.31 and 0.35 ms per VNFC over the evaluated range, as the candidate VMs are scored in a single batched forward pass whose fixed overhead dominates at these sizes. This does not imply size-independent complexity, since every candidate VM still requires a value evaluation. The heuristics remain faster for online decisions, whereas the MILP is orders of magnitude more expensive. Its per-VNFC time is non-monotonic because, once the solver reaches the 30 s limit at the larger sizes, the capped batch time is divided by a growing number of requests .

Figure 5. Computational cost across problem sizes: (a) mean decision time per VNFC on a logarithmic scale, with the MILP solve time given as batch solve time divided by , (b) median training time of the agents, and (c) median peak allocation traced by tracemalloc during training, which excludes memory allocated internally by PyTorch. Error bars show 95% confidence intervals for decision times and interquartile ranges for training time and allocation.
The agents’ main cost lies in training. In Table VI, median training time grows from 16.9 s at 8 × 4 to 449.2 s at 64 × 32 for DQN and from 17.8 s to 385.5 s for Double DQN, with broad interquartile ranges at the larger sizes. Since a policy is trained per instance, this cost exceeds the 30 s MILP limit by more than an order of magnitude at 64 32. The median peak traced allocation rises from 6.6 MiB to 216.1 MiB for both agents, although each online network retains the same 18,689 parameters. This growth stems from the replay buffer: each transition stores the successor features of all VMs, and at 64 32 the buffer reaches its capacity of 50,000 transitions, which explains the nearly constant allocation across runs.
| Size | Agent | Decision time (ms/VNFC) | Training time (s) | Peak allocation (MiB) |
| 8 4 | DQN | 0.318 0.012 | 16.9 [16.1, 20.8] | 6.6 [6.5, 8.5] |
| 8 4 | Double DQN | 0.311 0.012 | 17.8 [17.1, 20.1] | 6.6 [6.5, 7.6] |
| 16 8 | DQN | 0.354 0.007 | 48.6 [39.0, 61.6] | 24.6 [19.8, 30.3] |
| 16 8 | Double DQN | 0.352 0.007 | 43.3 [40.0, 69.3] | 20.8 [18.5, 32.3] |
| 32 16 | DQN | 0.340 0.007 | 145.8 [90.2, 282.0] | 98.2 [67.0, 123.6] |
| 32 16 | Double DQN | 0.351 0.005 | 140.8 [104.2, 203.5] | 99.9 [70.1, 123.6] |
| 64 32 | DQN | 0.315 0.013 | 449.2 [300.5, 609.1] | 216.1 [216.1, 216.2] |
| 64 32 | Double DQN | 0.317 0.010 | 385.5 [249.9, 769.0] | 216.1 [216.1, 216.2] |
Table VI. Computational cost of the agents across problem sizes: decision times are means 95% confidence half-widths; training times and peak allocations are medians [Q1, Q3]
These measurements distinguish representation size from computational scalability: a fixed number of network parameters does not imply constant training or memory cost, and therefore does not by itself establish superior deployment efficiency. Overall, neural inference avoids repeated MILP optimization, but at a substantial offline training cost and without an online-latency advantage over strong heuristics.
Failure Conditions and Distribution Shifts
To identify conditions under which the methods lose completion performance, we evaluate capacity stress and controlled distribution shifts on ten instances generated from seeds 500–509. For each seed, both agents are trained on the corresponding instance, and the trained policies are then evaluated without retraining in all scenarios; the in-distribution reference (ID) is the training instance itself. Figure 6 and Table VII cover the ID reference, abundant and scarce resources, a fragmentation instance (Frag.), global infeasibility (Infeas.), heavier demands, smaller VM capacities (Small cap.), O-CU- and O-DU-heavy request profiles, positively and negatively correlated demands (+Corr., −Corr.), and an unseen problem size of . The reference, abundant, scarce, and infeasible cases use target loads of 0.75, 0.50, 0.95, and 1.20, respectively. Heavier demands scale all demands by 1.25, and small capacities scale all VM capacities by 0.80. The O-CU-heavy case multiplies the compute demands of the O-CU components by 1.50, and the O-DU-heavy case the storage demands of the O-DU components, leaving all other demands unchanged. For +Corr., the storage and compute demands are each sorted in ascending order and then paired; for −Corr., the storage demands are sorted in ascending and the compute demands in descending order. The fragmentation case is a globally feasible but order-sensitive fixed instance.

Figure 6. Placed-VNFC fraction under (a) capacity and feasibility stress and (b) changed demand profiles, correlations, and problem size, averaged over ten instances (seeds 500–509). ID: in-distribution reference; Frag.: fragmentation instance; Infeas.: globally infeasible load; Small cap.: reduced VM capacities; O-CU/O-DU: O-CU-/O-DU-heavy profiles; ±Corr.: positively/negatively correlated demands; Size: unseen problem size. The agents are trained on the ID instance of each seed and evaluated without retraining. Error bars show normal-approximation 95% confidence intervals.
| Method | ID | Abundant | Scarce | Frag. | Infeas. | Heavy |
| Random feasible placement | 0.956 | 1.000 | 0.781 | 0.938 | 0.594 | 0.806 |
| First-fit | 0.981 | 1.000 | 0.787 | 0.938 | 0.619 | 0.812 |
| First-fit decreasing | 0.994 | 1.000 | 0.769 | 1.000 | 0.613 | 0.794 |
| Best-fit | 0.981 | 1.000 | 0.781 | 0.938 | 0.606 | 0.800 |
| Resource-wastage-aware heuristic | 1.000 | 1.000 | 0.863 | 0.938 | 0.613 | 0.863 |
| MILP* | 1.000 | 1.000 | 0.944 | 1.000 | 0.738 | 0.944 |
| DQN | 0.994 | 1.000 | 0.794 | 0.944 | 0.588 | 0.806 |
| Double DQN | 1.000 | 1.000 | 0.769 | 0.931 | 0.606 | 0.812 |
| Method | Small cap. | O-CU | O-DU | +Corr. | −Corr. | Size |
| Random feasible placement | 0.806 | 0.919 | 0.806 | 0.906 | 0.938 | 0.956 |
| First-fit | 0.800 | 0.925 | 0.825 | 0.938 | 0.912 | 0.981 |
| First-fit decreasing | 0.806 | 0.944 | 0.850 | 1.000 | 0.988 | 1.000 |
| Best-fit | 0.794 | 0.912 | 0.831 | 0.975 | 0.931 | 0.984 |
| Resource-wastage-aware heuristic | 0.850 | 0.963 | 0.844 | 0.956 | 1.000 | 1.000 |
| MILP* | 0.944 | 1.000 | 0.956 | 1.000 | 1.000 | 1.000 |
| DQN | 0.806 | 0.950 | 0.831 | 0.944 | 0.938 | 0.984 |
| Double DQN | 0.806 | 0.938 | 0.838 | 0.944 | 0.944 | 0.988 |
Table VII. Mean placed-VNFC fraction under failure conditions and distribution shifts over ten instances (seeds 500–509); abbreviations and confidence intervals as in Figure 6. *Solved with a 30 s time limit; solutions are not necessarily certified optimal.
Under abundant resources, all approaches place every request. In contrast, scarce resources reduce the mean placed fraction to 0.794 for DQN and 0.769 for Double DQN, heavier unseen demands to 0.806 and 0.812, and smaller VM capacities to 0.806 for both agents. In these three cases, the resource-wastage-aware heuristic retains higher fractions (0.850–0.863), and the MILP reaches 0.944, mainly because it optimizes the whole batch jointly. The globally infeasible case serves as a consistency check, since complete placement is impossible when capacity is insufficient: the agents’ mean fractions fall to 0.588 and 0.606, compared with 0.738 for the MILP. This reduction reflects physical infeasibility, method-specific allocation behavior, and, for the agents, the transfer of policies trained under the reference conditions, and should not be interpreted as a learning failure alone.
The fragmentation instance highlights the importance of request order and resource fit: first-fit decreasing and the MILP place all requests, whereas DQN and Double DQN reach 0.944 and 0.931, on par with the remaining heuristics (0.938). The O-CU-heavy and correlation scenarios cause moderate changes, whereas the O-DU-heavy scenario, which scales storage demands, reduces all non-MILP methods to 0.81–0.85. Hence, performance under a distribution shift depends on the remaining feasibility margins rather than on the existence of a shift. In the unseen-size test, the trained networks are applied to and reach placed fractions of 0.984 for DQN and 0.988 for Double DQN, close to their in-distribution level but below first-fit decreasing, the resource-wastage-aware heuristic, and the MILP, which place all requests. Unlike the scalability experiment, no new network is trained here. These results characterize behavior under selected changes but do not establish broad out-of-distribution robustness.
Reward Ablation
The reward in (21) combines a basic placement reward with an efficiency bonus that is awarded only when all requests are placed. To examine whether this bonus improves the learned resource allocation, we compare the full reward with a feasibility-only variant without the efficiency bonus on ten instances generated from seeds 700–709. The architecture and hyperparameters are unchanged, so that only the reward differs. Figure 7 and Table VIII summarize the placed fractions, efficiency costs, and active-VM wastage.

Figure 7. Reward ablation at with feasibility-only and feasibility-plus-efficiency rewards: (a) placed-VNFC fraction, which equals one for all configurations, and (b) active-VM residual wastage . Error bars show normal-approximation 95% confidence intervals over ten instances (seeds 700–709).
| Agent | Reward | Placed-VNFC fraction | Efficiency cost | Active-VM wastage |
| DQN | Feasibility only* | 1.000 ± 0.000 | 0.598 ± 0.030 | 0.225 ± 0.023 |
| DQN | Feasibility + efficiency | 1.000 ± 0.000 | 0.619 ± 0.005 | 0.239 ± 0.009 |
| Double DQN | Feasibility only* | 1.000 ± 0.000 | 0.612 ± 0.022 | 0.239 ± 0.017 |
| Double DQN | Feasibility + efficiency | 1.000 ± 0.000 | 0.609 ± 0.025 | 0.232 ± 0.024 |
| *Reward (21) with . |
Table VIII. Reward ablation at : means ± normal-approximation 95% confidence half-widths over ten instances (seeds 700–709)
Both agents place all requests under both reward definitions, so the terminal bonus has no effect on completion in these instances. For DQN, the bonus increases the mean efficiency cost from 0.598 ± 0.030 to 0.619 ± 0.005 and the active-VM wastage from 0.225 to 0.239, although it markedly reduces the variability across instances. For Double DQN, the effect is smaller and in the opposite direction, with the cost decreasing from 0.612 ± 0.022 to 0.609 ± 0.025 and the wastage from 0.239 to 0.232. For both agents, these differences lie within the confidence intervals. Hence, the terminal efficiency bonus with does not yield a consistent improvement in resource efficiency. We retain it for consistency with [18]; a likely reason for its limited effect is that a bonus granted only once per episode provides a sparse learning signal, which motivates denser efficiency rewards in future work.
Comparison with Tabular and Linear Methods
We compare DQN and Double DQN with the tabular and linear variants of SARSA and -learning investigated in our previous work [18]. Both studies use the same placement objective, constraints, performance metrics, and evaluation instances (seeds 300–329); the results of the tabular and linear methods are taken from [18], and Table IX reports them for the reference setup.
| Method | Parameters | ||
| Tabular SARSA | size-dep. | 0.996 ± 0.008 | 0.621 ± 0.004 |
| Tabular -learning | size-dep. | 0.992 ± 0.013 | 0.618 ± 0.008 |
| Linear SARSA | 15 | 0.992 ± 0.010 | 0.617 ± 0.010 |
| Linear -learning | 15 | 0.990 ± 0.010 | 0.618 ± 0.010 |
| DQN | 18,689 | 0.990 ± 0.014 | 0.620 ± 0.009 |
| Double DQN | 18,689 | 0.996 ± 0.008 | 0.617 ± 0.008 |
Table IX. Comparison with the tabular and linear methods of [18] (results taken from [18], same instances) at : means ± normal-approximation 95% confidence half-widths over 30 instances
All six methods achieve high placed fractions, from 0.990 to 0.996, and nearly identical efficiency costs, from 0.617 to 0.621. Double DQN matches the placed fraction of tabular SARSA, and DQN that of linear -learning. These results therefore show no consistent improvement in placement quality or efficiency attributable to neural function approximation.
The methods differ mainly in their learned representations: the tabular methods store size-dependent state-action values, whereas the linear and neural methods use 15 and 18,689 parameters, respectively, independent of the number of candidate VMs (Table IX). The neural representation thus adds training and inference cost without improving placement quality or efficiency on this static problem, and the comparison does not establish the superiority of either approach. Its potential advantages lie rather in transfer across instances and in dynamic settings, as indicated by the zero-shot results in § 5-F.
Limitations and Scope of the Evaluation
The results should be interpreted within the scope of the simulated setup. First, the experiments consider static, ordered batches of VNFCs; they therefore do not establish performance in dynamic environments or in a deployed O-Cloud controlled by an operational Non-RT RIC. Second, the model captures storage and compute capacities only, without O-RAN-specific constraints such as fronthaul or F1 latency budgets and placement affinities, and the instances are synthetic. Third, the evaluated sizes extend only to and do not establish behavior at larger scales. Fourth, the main benchmark trains and evaluates each policy on the same instance, so it measures instance-specific optimization rather than generalization; the zero-shot analysis covers only a selected set of stress and shift scenarios. Fifth, the hyperparameters of both agents were tuned independently and only at , which limits the attribution of their differences to the target construction. Finally, the decision times exclude offline training, and the traced allocations do not represent the full process memory.
Concluding Remarks and Future Outlook
In this paper, we extended SliceMapper [18] by investigating DQN and Double DQN agents for the capacity-constrained mapping of O-CU and O-DU VNFCs onto VMs in O-Clouds, and evaluated them against five heuristics and a time-bounded MILP. At , DQN and Double DQN achieved mean placed-VNFC fractions of and , and both satisfied the empirical stabilization criterion in 28 of 30 runs. However, first-fit decreasing and the resource-wastage-aware heuristic matched or slightly exceeded their placement quality at lower efficiency cost and lower decision time, while the MILP attained the lowest efficiency cost at a much higher runtime. Across the investigated sizes, the agents maintained high placed fractions, but their training time and memory grew substantially; with per-instance training, this cost exceeds a single MILP solve at the larger sizes. Neither Double DQN over DQN nor the terminal efficiency bonus yielded a consistent improvement, and the agents achieved placement quality and efficiency comparable to the tabular and linear methods of [18]. The results highlight the trade-offs of neural placement and do not establish its superiority over conventional methods for the static problem considered. Future work will address the settings in which learned policies may pay off. First, we will train policies across distributions of instances and evaluate them on unseen instances and sizes, so that the inference advantage over the MILP can be realized without per-instance training. Second, we will extend the formulation to dynamic request arrivals and to O-RAN-specific constraints, such as fronthaul and F1 latency budgets and placement affinities, as well as to multiple slice types with heterogeneous service requirements. Third, we will investigate denser efficiency rewards that provide a stronger learning signal than a terminal bonus.
Acknowledgment
This research was supported in part by the German Federal Ministry of Research, Technology and Space (BMFTR) through the Open6GHub+ project (Grant No. 16KIS2402K) and the 6G Terafactory project (Grant No. 16KISK186).
Acronym List
| 5G | fifth-generation |
| 6G | sixth-generation |
| ACO | ant colony optimization |
| DQN | deep -network |
| ILP | integer linear programming |
| MILP | mixed-integer linear programming |
| ML | machine learning |
| NF | network function |
| NFV | network functions virtualization |
| Non-RT RIC | non-real-time RAN intelligent controller |
| O-Cloud | O-RAN cloud |
| O-CU | O-RAN central unit |
| O-DU | O-RAN distributed unit |
| O-gNB | O-RAN next-generation Node B |
| O-RAN | open radio access network |
| O-RU | O-RAN radio unit |
| PM | physical machine |
| QoS | quality of service |
| RL | reinforcement learning |
| SARSA | state-action-reward-state-action |
| SDN | software-defined networking |
| SDO | standards developing organization |
| SFC | service function chain |
| SLA | service-level agreement |
| SMO | service management and orchestration |
| TD | temporal difference |
| VM | virtual machine |
| VNF | virtual network function |
| VNFC | virtual network function component |
References
Biographies
Mohammad Asif Habibi
Mohammad Asif Habibi (M’26) received the B.Sc. degree in telecommunication engineering from Kabul University, Afghanistan, in 2011, the M.Sc. degree in systems engineering and informatics from the Czech University of Life Sciences, Czech Republic, in 2016, and the Dr.-Ing. degree (summa cum laude) from the University of Kaiserslautern (RPTU), Germany, in 2025. From 2011 to 2014, he was a radio access network engineer with Huawei. From 2017 to 2025, he was a Researcher and Senior Researcher with the Division of Wireless Communications and Radio Navigation, University of Kaiserslautern (RPTU). Since 2026, he has been a Senior Researcher with the German Research Center for Artificial Intelligence (DFKI). His research interests include network and service management, network slicing, network architecture, machine learning, and radio access networks.
Xavier Costa-Pérez
Xavier Costa-Pérez (M’06–SM’18) received the M.Sc. and Ph.D. degrees in telecommunications from the Polytechnic University of Catalonia (UPC), Spain, receiving a national award for his doctoral thesis. He is an ICREA Research Professor, Scientific Director at the i2CAT Research Center, and Head of Space and Terrestrial Systems (ASTRO) R&D at NEC Laboratories Europe. His research focuses on the convergence of space and mobile networks with artificial intelligence. His innovations have been integrated into commercial mobile phones, base stations, and network management systems, and have led to several start-ups. He has contributed to standardization in IEEE 802.11, IEEE 802.16, the Wi-Fi Alliance, and 3GPP, and is an inventor of over 100 granted patents, including standard-essential patents. He has served on the organizing committees of conferences such as AAAI, ACM MobiCom, and IEEE INFOCOM, and as an Editor of the IEEE TRANSACTIONS ON MOBILE COMPUTING, the IEEE TRANSACTIONS ON COMMUNICATIONS, and Computer Communications (Elsevier).
Hans D. Schotten
Hans D. Schotten (S’93–M’97) received the Diploma and Ph.D. degrees in electrical engineering from the Aachen University of Technology, Germany, in 1990 and 1997, respectively. Since August 2007, he has been a Full Professor and Head of the Division of Wireless Communications and Radio Navigation, University of Kaiserslautern (RPTU). Since 2012, he has also been Scientific Director at the German Research Center for Artificial Intelligence (DFKI), heading the Intelligent Networks Research Department. Previously, he held positions as a senior researcher, project manager, and research group head at Aachen University of Technology, Ericsson Corporate Research, and Qualcomm Corporate R&D, where he was also Director for Technical Standards and coordinated Qualcomm’s activities in European research programs.
References
- [1]W. Jiang et al., “The road towards 6G: A comprehensive survey,” IEEE Open J. Commun. Soc., vol. 2, pp. 334–366, 2021.DOI
- [2]O-RAN Alliance, “Working Group 1; O-RAN Architecture Description; Technical Specification; V15.00.” After, Germany, Oct. 2025.
- [3]C. A. O. Rauber et al., “Exploring the capabilities of xApps in O-RAN: From conceptualization to practical implementation,” IEEE Open J. Commun. Soc., vol. 7, pp. 11036–11077, 2026.DOI
- [4]K. Alam et al., “Transport network management and orchestration in 6G O-RAN: Standards, frameworks, and proposals,” IEEE Open J. Commun. Soc., vol. 7, pp. 10503–10539, 2026.DOI
- [5]W. Attaoui et al., “VNF and CNF placement in 5G: Recent advances and future trends,” IEEE Trans. Netw. Serv. Manag., vol. 20, no. 4, pp. 4698–4733, 2023.DOI
- [6]M. A. Habibi et al., “Mapping the VNFs and VLs of a RAN slice onto intelligent PoPs in beyond 5G mobile networks,” IEEE Open J. Commun. Soc., vol. 3, pp. 670–704, 2022.
- [7]H. Hoiej et al., “On flexible placement of O-CU and O-DU functionalities in Open-RAN architecture,” IEEE Trans. Netw. Serv. Manag., vol. 22, no. 1, pp. 660–674, 2025.
- [8]Y. Mao et al., “Ant colony based online learning algorithm for service function chain deployment,” in Proc. IEEE Conf. Comput. Commun. (INFOCOM), pp. 1–10, 2023.DOI
- [9]H. Moens and F. De Turck, “VNF-P: A model for efficient placement of virtualized network functions,” in Proc. 10th Int. Conf. Netw. Serv. Manag. (CNSM), pp. 418–423, 2014.DOI
- [10]M. F. Bari et al., “On orchestrating virtual network functions,” in Proc. 11th Int. Conf. Netw. Serv. Manag. (CNSM), pp. 50–56, 2015.DOI
- [11]S. Mehraghdam et al., “Specifying and placing chains of virtual network functions,” in Proc. IEEE 3rd Int. Conf. Cloud Netw. (CloudNet), pp. 7–13, 2014.DOI
- [12]J. Martín-Pérez and C. J. Bernardos, “Multi-domain VNF mapping algorithms,” in Proc. IEEE Int. Symp. Broadband Multimedia Syst. Broadcast. (BMSB), pp. 1–6, 2018.
- [13]R. Uneyama et al., “Service function chain update and buffer scheduling model with state consistency,” IEEE Open J. Commun. Soc., vol. 6, pp. 7333–7348, 2025.DOI
- [14]A. Murray et al., “The cost of quality of service: SLA aware VNF placement and routing using column generation,” in Proc. 13th Int. Workshop Resilient Netw. Des. Model. (RNDM), pp. 1–8, 2023.DOI
- [15]A. Gupta et al., “A scalable approach for service chain mapping with multiple SC instances in a wide-area network,” IEEE J. Sel. Areas Commun., vol. 36, no. 3, pp. 529–541, 2018.DOI
- [16]J. Pei et al., “Optimal VNF placement via deep reinforcement learning in SDN/NFV-enabled networks,” IEEE J. Sel. Areas Commun., vol. 38, no. 2, pp. 263–278, 2020.DOI
- [17]P. T. A. Quang et al., “A deep reinforcement learning approach for VNF forwarding graph embedding,” IEEE Trans. Netw. Serv. Manag., vol. 16, no. 4, pp. 1318–1331, 2019.DOI
- [18]M. A. Habibi et al., “SliceMapper: Intelligent mapping of O-CU and O-DU onto O-Cloud sites in 6G O-RAN,” Mar. 2026. arXiv:2603.15242.arxiv.org/abs/2603.15242
- [19]Z. Kuai et al., “Fair virtual network function mapping and scheduling using proximal policy optimization,” IEEE Trans. Commun., vol. 70, no. 11, pp. 7434–7445, 2022.DOI
- [20]T. D. Tran et al., “5G service function chain provisioning: A deep reinforcement learning-based framework,” IEEE Trans. Netw. Serv. Manag., vol. 21, no. 6, pp. 6614–6629, 2024.DOI
- [21]M. Wei et al., “An adaptive service function chains mapping with multi-task deep reinforcement learning,” IEEE Trans. Netw. Sci. Eng., vol. 12, no. 4, pp. 3093–3107, 2025.DOI
- [22]ETSI, “Network functions virtualisation (NFV): terminology for main concepts in NFV,” Group Specification ETSI GS NFV 003 V1.4.1, European Telecommunications Standards Institute (ETSI), Sophia Antipolis, France, Aug. 2018.
- [23]3GPP, “Study on new radio access technology: Radio access architecture and interfaces (Release 14),” Technical Report TR 38.801 V14.0.0, 3rd Generation Partnership Project (3GPP), Mar. 2017.
- [24]H. Tabatabaei et al., “Optimizing virtual machine placement in IaaS data centers: Taxonomy, review and open issues,” Clust. Comput., vol. 23, pp. 837–878, 2020.DOI
- [25]M. A. Habibi et al., “Unifying 3GPP, ETSI, and O-RAN SMO interfaces: Enabling slice subnets interoperability,” in Proc. IEEE Future Netw. World Forum (FNWF), (Baltimore, MD, USA), pp. 1–8, 2023.
- [26]H. I. Christensen et al., “Approximation and online algorithms for multidimensional bin packing: A survey,” Comput. Sci. Rev., vol. 24, pp. 63–79, 2017.DOI
- [27]H. van Hasselt et al., “Deep reinforcement learning with double Q-learning,” Proc. AAAI Conf. Artif. Intell., vol. 30, no. 1, 2016.arxiv.org/abs/1509.06461
- [28]H. Van Hasselt, “Double Q-learning,” in Proc. 24th Int. Conf. Neural Inf. Process. Syst. (NIPS), vol. 2, (Vancouver, BC, Canada), pp. 2613–2621, 2010.
- [29]I. Loshchilov and F. Hutter, “Decoupled weight decay regularization,” in Proc. Int. Conf. Learn. Represent. (ICLR), 2019.
- [30]V. Mnih et al., “Human-level control through deep reinforcement learning,” Nature, vol. 518, no. 7540, pp. 529–533, 2015.DOI
- [31]S. Zhao, Mathematical Foundations of Reinforcement Learning. New York, NY, USA: Springer, 2025.DOI
