1. Introduction
Driven by the explosive growth of latency-sensitive applications and the proliferation of heterogeneous IoT devices, mobile edge computing (MEC) has emerged as a pivotal paradigm that offloads computation from resource-limited end devices to geographically distributed edge nodes, enabling real-time processing at the network periphery [
1,
2]. In practical MEC deployments, executor nodes exhibit substantial heterogeneity in computing capacity, communication bandwidth, and task compatibility, while task streams arrive with diverse priority levels, deadline constraints, and resource demands, forming a complex heterogeneous executor-task interaction structure [
3,
4]. The co-existence of operationally distinct workload conditions—including high-demand task bursts, resource-constrained periods, and stable equilibrium states—further requires that assignment strategies adapt fundamentally to prevailing system states, posing substantial challenges to the intelligent orchestration of heterogeneous edge networks [
5,
6]. Secure communication and reliable data aggregation have also attracted attention in heterogeneous aerial and satellite-assisted networks, including dynamic group-key agreement for cross-domain heterogeneous data aggregation and authentication mechanisms for UAV flying ad hoc networks [
7,
8].
Existing approaches to task assignment in heterogeneous MEC environments span combinatorial optimization formulations, heuristic algorithms, and learning-based methods, yet they share a common fundamental limitation: assignment strategies and their associated optimization weights are determined offline and remain fixed throughout deployment, regardless of the prevailing workload scenario [
9,
10]. While combinatorial optimization methods can yield high-quality solutions under well-specified parameters, their objective coefficients and resource-constraint thresholds are typically hand-tuned for a single workload assumption and cannot be reconfigured in response to dynamic shifts in task arrival rates, node availability, or capacity utilization [
1,
2]. Heuristic and meta-heuristic algorithms, though computationally efficient, make myopic, greedy decisions that maximize immediate local utility without accounting for cross-task resource coordination or long-term capacity sustainability, leading to node resource depletion under sequential high-demand workloads [
6,
11]. Reinforcement learning offers strong adaptive potential, yet existing formulations predominantly rely on scalar or low-dimensional state vectors that fail to capture the relational structure between heterogeneous executor nodes and tasks, limiting their effectiveness in multi-node edge environments [
12,
13].
Motivation. The inability of existing methods to adapt assignment strategies to workload context carries significant operational consequences. Under resource-constrained conditions, scenario-agnostic policies tend to over-commit executor nodes, causing resource depletion and leaving the system unable to handle subsequent task arrivals; conversely, under high-demand bursts, overly conservative policies leave available node capacity underutilized and fail to meet task deadlines [
5,
11]. As edge systems are increasingly expected to operate autonomously across the full spectrum of workload conditions without manual reconfiguration, the capacity to perceive the system state and dynamically adjust assignment behavior becomes a prerequisite for sustained quality of service rather than an optional enhancement [
14,
15]. Developing a workload-adaptive task assignment framework that bridges situational awareness and precise resource allocation therefore represents both a pressing engineering need and a meaningful research gap in the intelligent orchestration of heterogeneous edge networks [
12].
Challenges. Realizing a scene-adaptive task-offloading framework for heterogeneous edge networks entails three principal technical challenges. First, the bipartite interaction structure between heterogeneous executor nodes and incoming tasks involves two semantically distinct entity types with different feature spaces—including node-computing capacity, link quality, and task resource demand—requiring dedicated relational encoders that go beyond homogeneous graph neural network architectures [
12,
13]. Second, the system state of a heterogeneous edge deployment is characterized by a high-dimensional, dynamically evolving context vector spanning node utilization, task-queue depth, deadline urgency, and workload intensity, making it non-trivial to extract discriminative scenario features that reliably condition the assignment policy to the current operational regime [
5,
14]. Third, integrating a learned meta-controller with an MILP solver—wherein the reinforcement learning agent selects problem-formulation parameters that steer the solver toward workload-appropriate solutions—introduces a challenging bi-level optimization structure: the effect of the agent’s strategy selection is mediated through the solver’s deterministic optimization process, creating structural delay between action and reward; moreover, the same strategic action can yield substantially different returns across environmental instances due to varying scene configurations—different task distributions and node states—amplifying reward variance and complicating policy convergence [
12,
16].
Contributions. To address the above challenges, this work makes the following contributions:
Heterogeneous Graph-State Representation: We construct a bipartite graph over executor nodes and tasks with type-specific projection layers and edge-gated message passing. Three-dimensional edge features encoding task-success probability, normalized service distance, and link quality are integrated to yield a situationally aware graph embedding that captures the relational structure of the heterogeneous edge network, providing the policy with an expressive representation of executor-task interactions.
Scene-Adaptive Meta-Controller: We design a dueling double DQN meta-controller that fuses the graph embedding with a seven-dimensional situational state vector to perceive the current workload regime and select among a set of discrete offloading strategies. Each strategy configures the MILP solver with a distinct total assignment budget, chain quality threshold, and deadline-sensitivity weight, enabling the system to adapt its resource allocation behavior to the prevailing workload scenario without manual reconfiguration.
Principled Action-Space Design via Grid Scanning and Clustering: Rather than manually specifying offloading strategies, we conduct a systematic grid scan over the joint space of assignment budget, chain quality threshold and deadline-sensitivity weight; evaluate each configuration across representative workload scenarios; and apply clustering to identify K behaviorally distinct strategy prototypes. By compressing the continuous parameter space into a compact, discrete action set with well-separated behavioral profiles, this design reduces per-action return variance, sharpens the action–reward correspondence, and thereby alleviates the training difficulty inherent to the bi-level optimization structure.
Comprehensive Evaluation: We conduct extensive experiments on 60 fixed evaluation episodes spanning three representative workload scenarios. Systematic comparisons with five fixed-strategy baselines, a greedy heuristic, and an end-to-end MAPPO baseline, together with ablation studies, parameter sensitivity analyses, and repeated-run statistical validation with three SAGE training seeds, collectively validate SAGE’s adaptability, resource efficiency, and generalization.
2. Related Work
Task offloading in mobile edge computing is a fundamental research problem involving distributed computing, network resource management, and combinatorial optimization. With the rapid proliferation of resource-constrained IoT devices and latency-sensitive applications, effective offloading mechanisms have become critical for maintaining quality of service in heterogeneous edge environments. Existing approaches can be broadly categorized into two research lines: (i) optimization-based methods, which formulate task offloading as integer programming, convex optimization, or combinatorial optimization problems and seek exact or near-optimal solutions under given system parameters, and (ii) learning-based methods, including deep reinforcement learning, meta-reinforcement learning, multi-agent reinforcement learning, and graph neural network-enhanced approaches, which learn task-offloading policies through interaction with the environment. Although both lines of research have advanced the field in different ways, existing methods still struggle to simultaneously achieve scenario awareness, heterogeneous node representation, constraint feasibility, and multi-round task-service capability in complex heterogeneous environments.
Optimization-based methods. Combinatorial optimization formulations have been widely adopted for MEC task offloading due to their explicit objective functions and constraint representations. Mao et al. [
1] proposed a latency-optimal joint task assignment and resource allocation framework for heterogeneous MEC systems. Zhang et al. [
2] further considered task dependency constraints and developed a two-stage alternating optimization method to decouple offloading decisions from resource allocation. Kang et al. [
17] investigated incentive-aware dependent task offloading from an economic perspective and proposed an iterative combinatorial auction mechanism. Sardellitti et al. [
18] jointly optimized radio and computational resources in multicell MEC systems through successive convex approximation. Dinh et al. [
16] studied task allocation and computational frequency scaling, using semidefinite relaxation to optimize the trade-off between delay and energy consumption under frequency constraints. Although these methods can obtain high-quality solutions when system parameters are well specified, their objective functions, weighting coefficients, and constraint thresholds are typically predefined, making it difficult to automatically adjust the decision logic in response to changes in task arrivals, node states, and resource availability.
Learning-based methods. Deep reinforcement learning has been widely applied to MEC task offloading because of its ability to learn dynamic offloading policies through environmental interaction. Tang and Wong [
3] combined LSTM, dueling DQN, and double DQN to address task offloading in heterogeneous MEC systems. He et al. [
6] and Zhao et al. [
19] applied multi-agent DRL to D2D MEC and UAV-assisted MEC scenarios, respectively, to model cooperative decision-making among multiple nodes. To improve cross-scenario adaptability, Wang et al. [
5] and Li et al. [
20] introduced meta-reinforcement learning mechanisms that enable offloading policies to adapt quickly to new environments. Furthermore, GNNs have been employed to enhance topology awareness in edge networks. Sun et al. [
12] applied graph reinforcement learning to online computational offloading, Xu et al. [
13] proposed TransEdge to capture the spatial correlations of task requests in transportation systems, and Li et al. [
21] proposed GASTO to enable fast policy transfer across edge topologies. Shao et al. [
22] and Eisen and Ribeiro [
23] further demonstrated the generalization capability of GNNs in scalable network resource allocation. Although learning-based methods improve the dynamism and generalization of offloading decisions, most DRL methods still rely on relatively flat state representations, which makes it difficult to fully characterize the relational structure between task nodes and executor nodes. Meanwhile, existing GNN-enhanced methods often lack type-specific modeling for heterogeneous node roles and are rarely integrated with exact combinatorial optimization solvers. As a result, they remain limited in terms of constraint feasibility, decision interpretability, and task-chain-level precise allocation.
As shown in
Table 1, the proposed method integrates type-specific heterogeneous graph representation, high-level learning-based strategy selection, and MILP-based exact task-chain allocation within a unified framework, thereby simultaneously supporting scenario awareness, heterogeneous node modeling, exact optimization, decision interpretability, and multi-round task execution.
3. System Model and Problem Formulation
We study a multi-round task-offloading system in which a heterogeneous UAV-assisted edge network serves a stream of geographically distributed computational tasks arriving with deadlines and priority weights. Executor nodes are modeled as mobile edge computing (MEC) nodes—such as UAVs or vehicle-mounted edge servers—that can be dispatched to the vicinity of tasks, enabling on-site low-latency computation. The objective is to maximize the cumulative weighted task success over a finite episode horizon while managing resource utilization and preventing executor-node depletion.
3.1. Network Architecture
The heterogeneous edge network consists of three types of nodes, as illustrated in
Figure 1.
Sensing nodes (): Fixed IoT devices or lightweight ground monitoring agents are deployed across the service area. Each sensing node (s) continuously measures the quality of links to reachable executor nodes (), monitors task activity in its vicinity, and forwards task metadata and sensing observations to coordination nodes. The spatial proximity of sensing node s to task j determines the quality of task-related sensing data, which directly influences task execution success probability. denotes the observation link quality between sensing node s and task j, modeled analogously to but over the sensing-to-task channel rather than the sensing-to-executor channel.
Coordination nodes () are ground-based edge controllers that aggregate task information from sensing nodes, maintain task queues, and relay dispatch instructions to executor nodes. The communication relay delay () between sensing node s and executor i is incurred through the coordination layer and is incorporated into the feasibility constraint of each service chain.
Executor nodes () are Mobile edge computing nodes (e.g., UAVs or vehicle-mounted servers) that are dispatched to the vicinity of assigned tasks to perform computation on site. Each executor () is characterized by remaining resource capacity (), a task-type-specific base success probability profile (), and maximum flight/travel speed ().
Communication between sensing and executor nodes is modeled as a sparse graph (). For an edge (), the link quality ( captures channel reliability, and encodes whether sensing node s can reach executor i within its communication range.
3.2. Task Model
Let denote a global task pool of size . At each round (t), a subset () of active tasks is available. Each active task () is described by priority weight (), remaining deadline (), task type (), position (), and baseline maximum executor count (). The system operates for up to decision rounds per episode.
3.3. Service-Chain Model
Each assignment decision is a service chain , representing a complete execution pathway in which sensing node s provides task monitoring data, and mobile executor i is dispatched to the vicinity of task j at service distance level k (near, mid, far) and performs the computation on site. The parameter denotes the corresponding service-radius threshold.
The task success probability of a service chain captures two independent degradation effects: (i) executor-side degradation, where operating at service distance
from the task reduces computation quality due to limited sensing coverage and communication fidelity, and (ii) sensing-side degradation, where a larger spatial separation between sensing node
s and task
j implies lower quality of task-related observations forwarded to the executor. These are modeled multiplicatively as follows:
where
is the base success rate of executor
i for task type
and
are distance-decay coefficients. When multiple chains are assigned to task
j, their contributions are combined via cooperative probability aggregation:
The flight time for executor i to reach the service radius of task j at level k is , where is the executor’s maximum travel speed. A service chain is feasible only if the total response time satisfies , where is the coordination relay delay between sensing node s and executor i.
3.4. Dynamic Per-Task Executor Limit
To prevent resource over-commitment under constrained conditions, we introduce a dynamic per-task executor limit (
) that adapts to the current system state. Let
be the average resource ratio. The effective limit is
where
with the cap increased by one level (up to 3) for high-priority tasks (
) or imminent deadlines (
). The thresholds in Equation (
4) partition the normalized average resource ratio into three operating regimes rather than being tuned on the evaluation episodes. When
, the system is treated as being close to resource depletion, so, at most, one executor is assigned to each task to preserve future service capability. When
, the system has moderate remaining capacity and can support limited cooperation with two executors per task. When
, the system has sufficient resource headroom, and allowing up to three executors improves the completion probability of urgent or high-priority tasks. This coarse three-level rule also avoids frequent solver reconfiguration caused by small fluctuations in
while keeping the effect of the dynamic cap interpretable.
3.5. Problem Formulation
The round reward is
where
is the set of tasks whose deadlines expire in round
t without completion;
is the total priority weight of tasks remaining unspawned in the pool at the moment of resource depletion, serving as an amplifier that makes the depletion penalty proportional to the magnitude of missed opportunity;
is the per-task deadline-miss coefficient; and
is the resource-depletion coefficient. The value of
is selected to keep the resource-depletion penalty comparable in scale to the deadline-miss penalty while still preserving the normalized task-success term as the primary reward component. In other words, one unit of unserved future task priority caused by complete resource depletion is penalized at the same coefficient level as an expired active task, reflecting the fact that early depletion removes the ability to serve subsequent tasks rather than merely reducing the success probability of the current round. This setting is further examined in the sensitivity analysis in Table 12, where
achieves the lowest depletion rate while retaining competitive overall reward and completion performance. The cumulative objective over an episode is
4. Methodology
The proposed SAGE framework decouples task offloading into two levels: a
meta-controller that perceives the workload scenario and selects an offloading strategy and an
MILP solver that executes precise task-chain assignment under the selected configuration.
Figure 2 illustrates the overall architecture.
4.1. Heterogeneous Graph-State Representation
4.1.1. Graph Construction
At each decision round (t), we construct a bipartite graph () over executor nodes () and active tasks (). Representing both node types within a unified graph allows the encoder to capture spatial proximity relationships between mobile executors and tasks, directly governing dispatch feasibility and success probability.
Although the MILP decision variable () spans a four-tuple (sensing node, executor, task, sand ervice distance level), the GNN graph intentionally omits sensing nodes and service distance levels as explicit vertices. The meta-controller operates at the strategy level and does not need to select individual sensing nodes; instead, sensing-side communication is compactly exposed through an aggregated communication-support feature on each executor-task edge. Specifically, the edge feature includes the maximum reachable sensing-to-executor link quality (), allowing the controller to observe the communication condition that also appears in the MILP surrogate objective while avoiding an unnecessarily larger tripartite graph. Service distance level (k) is an internal enumeration variable within each service chain and is fully handled by the MILP solver; the meta-controller need not select k explicitly—only the strategy configuration that governs the solver’s feasibility constraints. The GNN therefore captures the relational executor–task structure and the aggregated communication support needed for workload-scenario perception while delegating fine-grained chain selection to the MILP solver—a deliberate separation of responsibilities between the two levels of the bi-level framework.
Node features. Executor node i is represented by , encoding its resource ratio, position, velocity, and capability profile. Task j is represented by , encoding its priority weight, remaining deadline, position, and type.
Edge features. For each feasible pair
, a three-dimensional edge feature vector is constructed, representing the base success probability, normalized service distance, and aggregated sensing-to-executor communication support:
The third component is computed over reachable sensing nodes and exposes the same communication-quality factor () that influences the MILP objective while still preserving the compact executor–task bipartite graph used by the meta-controller.
4.1.2. Heterogeneous GraphSAGE Encoder
Given the constructed graph, a key challenge is that executor nodes and task nodes carry semantically distinct feature spaces and play fundamentally different roles in the assignment process. A shared graph encoder would conflate these differences. We therefore adopt a Heterogeneous GraphSAGE encoder that applies type-specific input projections before message passing so that each node type is embedded in a meaningful way before neighborhood aggregation begins. The encoder consists of two layers of edge-gated GraphSAGE aggregation (
Figure 3).
For reproducibility, the heterogeneous GraphSAGE encoder is implemented as a lightweight PyTorch module without relying on external graph-learning libraries. The executor and task input projections are two independent linear layers with an output dimension of . Each of the two message-passing layers uses a separate edge-gate layer that maps the three-dimensional edge feature () to a scalar gate through a linear transformation followed by a sigmoid activation. The weighted adjacency matrix is obtained by element-wise multiplication of the binary adjacency with the learned edge gate. The aggregated neighbor representation is concatenated with the node’s previous hidden representation, then passed through a linear layer and ReLU activation. After two such layers, executor-side and task-side embeddings are pooled separately using both mean and max pooling, producing four 64-dimensional summary vectors that are concatenated and mapped by a final linear readout layer to the 64-dimensional graph embedding used by the meta-controller. The implementation uses the same padded node order in all batches: executor nodes are placed before active task slots, and inactive task slots are represented by zero features with zero adjacency entries.
Heterogeneous input projection. Executor and task nodes are projected to a shared
-dimensional space via separate linear layers:
where
are type-specific projection matrices.
Edge-gated message passing. At each layer (
ℓ), the edge gate modulates neighbor contributions. A small positive stabilization constant (
) is included in the normalization denominator to avoid division by zero for isolated or fully gated neighborhoods:
where
is sigmoid,
is the bipartite adjacency, and
denotes concatenation.
Heterogeneous readout. The graph embedding is obtained by separately pooling executor and task sides:
4.2. Situational State Vector
To complement the graph embedding with global workload context, we construct a seven-dimensional state vector:
where
is the average link quality,
is the average remaining deadline ratio (
),
is the active task density,
is the average executor resource ratio (
),
is the high-priority task ratio,
represents round progress (
), and
is the task-pool consumption ratio. The full state fed to the Q-network is
. This fused representation enables the meta-controller to condition strategy selection on both the local executor-task interaction structure captured by the graph and the global workload context captured by the situational vector.
4.3. Scene-Adaptive Meta-Controller
4.3.1. Action Space
The meta-controller selects from discrete offloading strategies, each specifying a configuration that directly parameterizes the MILP solver via three control variables: the total assignment budget (), the chain quality threshold (), and the deadline sensitivity weight () on the latency-risk penalty in the objective function.
Action-space design via grid scanning and clustering. Rather than hand-tuning strategy configurations, we derive the action set through a data-driven procedure. We generate episodes from three representative workload scenario types:
high-demand (dense, high-priority tasks and ample executor resources),
resource-constrained (low executor resource availability), and
balanced (moderate task density and resource levels). For each episode, we exhaustively evaluate all parameter combinations over a discrete grid, i.e.,
,
, and
, yielding 150 candidate configurations, and record the best-performing configuration for that episode. The resulting set of per-episode best-configuration vectors is then clustered using
K-means with
into behaviorally distinct prototypes, and each cluster center is snapped to the nearest grid point to obtain the final action set. This procedure ensures that the five actions collectively cover the full spectrum of workload conditions, with well-separated behavioral profiles that reduce per-action return variance and sharpen the action-reward signal during policy learning. The resulting five strategy configurations are shown in
Table 2.
To avoid information leakage, the episodes used for action-space construction are generated independently from the episodes used for DQN training and final evaluation. The prototype-building set shares only the scenario-family definitions with the training and evaluation sets while using disjoint random seeds and no overlapping episode instances.
4.3.2. Dueling Double DQN
The Q-network adopts the dueling DQN architecture [
25], decomposing the action-value function into state-value and advantage streams:
where
V and
A are two-layer MLPs (hidden dimension of 256) sharing feature extraction layers. The double DQN target [
26] decouples action selection from value estimation:
where
are the parameters of the target network, updated every 20 episodes. Once action
is selected, it configures the MILP solver by instantiating
,
, and
according to
Table 2, which then determines the service-chain assignments for round
t.
4.4. MILP-Based Task Assignment Solver
Given the action configuration selected by the meta-controller, the MILP solver computes the optimal task-chain assignment. The decision variable (
) indicates whether service chain
is selected. The solver maximizes a weighted utility that balances task success against deadline risk:
where
is the normalized latency risk of chain
and
is the deadline sensitivity weight set by the selected action, subject to the following:
The first newly added constraint ensures that, for any executor–task pair, at most, one service chain can be selected across different sensing nodes and service distance levels. The second, newly added constraint further enforces the physical scheduling assumption that each mobile executor can serve, at most, one task in a decision round, preventing one executor from being assigned to multiple spatially separated tasks simultaneously. Constraints (
19) and (
20) enforce per-task executor limits and per-executor resource capacity. Constraint (
21) bounds the total assignment count. Constraint (
22) filters chains with insufficient success probability. Constraint (
23) ensures reachability.
Remark (surrogate objective). The MILP objective (
16) is a linear surrogate for the round reward (
5). The true reward aggregates per-task cooperative success probability (
) via a nonlinear multi-chain combination, which would render the MILP non-convex and computationally intractable. The surrogate replaces
with a chain-level linear term (
), preserving the qualitative incentive structure—higher-quality, higher-priority chains are preferred—while keeping the formulation MILP-tractable for branch-and-bound solvers. The gap between surrogate and true reward is absorbed by the meta-controller: because the DQN is trained end-to-end on the actual environmental reward (
), it implicitly learns to select strategies whose solver solutions yield high true reward, even though the solver itself optimizes only the surrogate.
Small-instance surrogate fidelity check. To quantify the mismatch between the linear surrogate and the nonlinear true reward, we conducted an exhaustive enumeration check on randomly generated small instances that preserve the structural scale of each decision round: 8 sensing nodes, 12 executor nodes, 5–8 active tasks, and 5 service distance levels. For each assignment budget (
), 1000 valid instances were generated. All feasible assignments satisfying executor exclusivity and task-capacity constraints were enumerated, and the assignment selected by the linear surrogate was compared with the assignment that maximizes the nonlinear true reward based on cooperative success aggregation. The surrogate does not always select the identical true-reward-optimal assignment, but the true-reward loss remains small, on average, as summarized below (
Table 3).
These results show that the surrogate may choose a different assignment in roughly half of the enumerated instances, but the average relative true-reward gap remains limited to 2.05–4.57%. Thus, the surrogate should be interpreted as a tractable approximation rather than an exact reformulation of the nonlinear reward; nevertheless, under the assignment constraints used in this work, its empirical fidelity is sufficient to provide reliable solver feedback to the meta-controller.
The solver is implemented using PySCIPOpt with a 3.0 s time limit per round; given the problem scale (at most, 12 executor nodes, 45 task slots, and 5 service distance levels), SCIP consistently reaches a near-zero optimality gap well within this budget in practice, and the time limit serves as a safeguard against pathological instances rather than a binding constraint. The MILP solution determines which service chains are executed; the environment then computes the round reward () and advances to state , completing one step of the bi-level interaction loop. The meta-controller is trained on the resulting transitions as described below.
4.5. Training Procedure
The meta-controller is trained via experience replay and -greedy exploration. Key hyperparameters: learning rate of , discount factor of , batch size of , replay buffer size of 50,000, minimum buffer before training of 1000, exploration decay over 1500 steps (: ), and 8000 total training episodes. At each round, the agent observes state , selects action , drives the MILP solver, receives reward , stores the transition , and updates the Q-network via mini-batch gradient descent on the double DQN loss.
5. Simulation and Results
This section evaluates the proposed framework from three complementary perspectives: overall performance against baselines, ablation analysis of key architectural components, and sensitivity to critical design parameters. Under a shared evaluation protocol consisting of 60 fixed episodes spanning three representative workload scenarios, the proposed SAGE method is compared against five fixed offloading strategies, a greedy heuristic, and an end-to-end MAPPO baseline, assessing its adaptability across varying workload conditions and its advantage over both non-adaptive and learning-based alternatives. Ablation experiments are then conducted to quantify the individual contributions of edge-gated graph encoding, heterogeneous node projection, and the dynamic per-task executor limit. Sensitivity analyses examine how the depletion penalty coefficient () and the number of discrete actions (K) affect reward and resource efficiency, identifying robust operating points.
5.1. Experimental Setup
Evaluation protocol. All methods are evaluated on a fixed set of 60 episodes generated prior to any training, comprising 20 episodes each from three representative workload scenarios: High-Demand (HD), Resource-Constrained (RC), and Balanced (BL). These 60 held-out episodes are used exclusively for final performance comparison and are not involved in action-space construction, DQN training, hyperparameter selection, or model checkpoint selection. Fixed evaluation scenes eliminate sampling noise and ensure fair comparison.
Workload scenarios. Three scenario types are defined by distinct parameter ranges governing task density, resource availability, and task priority composition, as summarized in
Table 4. (1)
High-Demand (HD): The largest task pool (36–45 tasks), with a high proportion of high-priority tasks (
ratio: 0.65–1.0) and ample executor resources (
: 0.7–1.0), stressing assignment throughput. (2)
Resource-Constrained (RC): Executor nodes begin with severely limited resources (
: 0.1–0.35), the defining characteristic that distinguishes this scenario and creates strong pressure for conservative strategy selection. (3)
Balanced (BL): Moderate task count (18–36), intermediate priority composition (0.2–0.5), and sufficient resources (
: 0.7–1.0), representing the nominal operating condition.
Workload generation and fixed simulation parameters. To improve reproducibility,
Table 5 reports the fixed simulation parameters and workload-generation rules used across all training and evaluation episodes. All random variables are sampled independently under the seed assigned to each episode.
The workload generator follows a deterministic seed-controlled pipeline. For each episode, the scenario label first determines the sampling intervals reported in the scenario-parameter table. The episode seed is then used to sample the graph density, communication-quality scale, executor resource ratio, total task-pool size, and high-priority ratio. Based on these sampled values, the generator creates the sensing nodes, mobile executor nodes, coordination nodes, sparse communication topology, and task pool. The task pool is maintained as a sequential workload: only 5–8 tasks are active at initialization, and after each decision round, new waiting tasks are activated whenever the active set falls below five. The same episode seed also fixes task mobility, deadline countdown, stochastic task-success realization, and resource-consumption evolution within the simulation. For the final evaluation, 20 seeds per scenario are materialized before training and reused unchanged by all compared methods.
Software, hardware, and statistical settings. Table 6 summarizes the implementation environment, training configuration, and statistical protocol used for the learning-based models and baselines. Fixed-strategy baselines and the greedy heuristic are deterministic once the evaluation episode is fixed; therefore, they do not involve optimizer, batch-size, or training-seed settings. For SAGE, repeated-run validation is conducted with three independently trained dueling double DQN models. MAPPO is evaluated from the available trained checkpoint on the same held-out episodes, and this single-checkpoint limitation is explicitly considered when interpreting the MAPPO comparison.
5.2. Evaluation Metrics
Six metrics are reported: (i)
overall reward (primary; Equation (
5)), the normalized cumulative weighted task success minus deadline-miss and depletion penalties; (ii) the
task completion rate, the fraction of all activated tasks successfully completed within their deadlines; (iii) the
high-priority completion rate, the completion rate restricted to tasks with high priority weights (
); (iv)
Resource Utilization, the fraction of total executor node resources consumed across the episode; (v) the
resource depletion rate, the fraction of episodes in which all executor resources are exhausted before the episode horizon; and (vi) the
mean , the average per-assignment task success probability (Equation (
1)) over all service chains executed in an episode, reflecting the quality of individual offloading decisions independently of resource consumption.
5.3. Baseline Methods
Seven baselines spanning three categories are evaluated.
Fixed-strategy baselines (1–5). Each baseline corresponds to one of the five discrete offloading strategies in
Table 2 and applies that strategy uniformly across all decision rounds, regardless of the current workload scenario. Conservative (CO) uses the smallest assignment budget (
) and is designed for severe resource shortage, Economy (EO) sets
with a strict quality threshold (
) for moderate constraints, Moderate (MO) allows up to eight assignments with a relaxed threshold to maximize coverage under balanced conditions, Aggressive (AO) combines
with the strict threshold to prioritize quality under high demand, and Maximum (MaxO) deploys the full budget (
) for intensive workloads. These baselines collectively test whether a single fixed configuration can match the performance of scene-adaptive selection across all scenarios.
Greedy heuristic. At each round, all feasible service chains are enumerated and ranked in descending order of ; chains are greedily selected in this order until each executor’s resource capacity is exhausted or no feasible chains remain. Unlike the MILP solver, the greedy approach makes no attempt at global resource coordination or per-task executor-count control, serving as a strong non-learning baseline that validates the necessity of exact combinatorial optimization.
End-to-end MAPPO. In a multi-agent proximal policy optimization baseline [
24,
27] in which each of the 12 executor nodes acts as an independent agent, each agent observes a 231-dimensional local observation (own resource state plus features of all task slots) and selects one of 46 discrete actions (idle or offload to one of 45 task slots) with action masking to suppress infeasible choices. A centralized critic conditioned on the 79-dimensional global state is used during training (CTDE paradigm), while execution is fully decentralized. This baseline directly compares end-to-end multi-agent RL against the proposed two-level meta-controller plus MILP-solver architecture, isolating the contribution of the MILP solver for global resource-constrained assignment.
MAPPO implementation details. For reproducibility, the MAPPO baseline is trained for 5000 episodes, with each episode lasting, at most, eight decision rounds and containing 12 executor agents. Each episode produces one trajectory, followed by four PPO update epochs. Curriculum learning is used during training: the balanced and high-demand scenarios are used in the first 2000 episodes, and the resource-constrained scenario is introduced from episode 2001. The learning rate is 3 , the discount factor is 0.95, the PPO clipping coefficient is 0.2, the entropy coefficient is 0.01, the generalized advantage estimation parameter is 0.95, the value-loss coefficient is 0.5, the gradient-clipping threshold is 0.5, and the training seed is 42. Actor parameters are shared by executor type, yielding three actor networks for heavy, light, and intercept executors, each with a 231-128-128-46 multilayer perceptron; the centralized critic uses a 79-256-256-1 multilayer perceptron. The total parameter counts are 156,426 for the actors and 86,529 for the critic. The action mask keeps no-op always feasible and permits task-slot actions only when the executor is available and has at least one remaining resource unit and the task is active; logits of infeasible actions are set to a large negative value before sampling. Training uses masked categorical sampling, whereas evaluation uses deterministic argmax from the final checkpoint. Unlike SAGE, MAPPO does not call the SCIP-based MILP solver; instead, agents directly select task slots, and the environment retains the highest-success assignments up to each task’s executor limit. It is therefore used as a decentralized multi-agent baseline under the same scenario generator, episode horizon, and penalty definitions rather than as a solver-assisted counterpart to SAGE.
5.4. Comparison with Baseline Methods
5.4.1. Overall Performance
Table 7 presents performance averaged across all 60 evaluation episodes. Unless otherwise specified, bold entries indicate the best results and underlined entries indicate the second-best results for each metric; for the resource depletion rate, lower values are better, whereas higher values are better for the other metrics. The proposed
SAGE method achieves the highest overall reward of
, outperforming the best fixed strategy (AO:
) by
15.9% and the greedy baseline (
) by
54.1%. The proposed method also attains the lowest resource depletion rate (16.7%), substantially below AO (25.0%), MO (40.0%), MaxO (43.3%), and Greedy (50.0%), demonstrating that scene-adaptive strategy selection effectively prevents over-commitment under resource-constrained conditions while maintaining competitive task completion. Notably, MAPPO achieves the lowest overall reward (
), falling even below the weakest fixed strategy (CO:
). This is attributable to the absence of a global resource coordination mechanism: without an MILP solver to enforce cross-agent capacity constraints, the 12 independently acting executor agents greedily consume local resources in the early rounds, causing systematic resource depletion that leaves subsequent tasks unserviceable. The result confirms that end-to-end multi-agent RL, despite its expressive policy class, cannot substitute for explicit combinatorial feasibility enforcement when agents share a common resource pool.
Repeated-run statistical validation. To address run-to-run variability, SAGE is additionally trained with three independent random seeds (24, 25, and 26) and re-evaluated on the same 60 held-out episodes used in the main comparison. The corresponding mean rewards of the three SAGE models are 2.878, 2.553, and 2.697, indicating stable training behavior around the main reported model. For statistical testing, the three SAGE rewards are averaged for each evaluation episode and compared with each baseline on the matched scenario–episode pair. As shown in the
Table 8, SAGE remains significantly better than all compared baselines under paired
t-tests. In particular, relative to the strongest fixed strategy, AO, SAGE obtains a positive mean reward difference of 0.226, with a 95% confidence interval of [0.095, 0.356] and
, confirming that the main ranking is not caused by a single favorable training seed.
5.4.2. Per-Scenario Breakdown
Table 9 presents the per-scenario breakdown. Under the
High-Demand scenario, the proposed method achieves 4.338, surpassing the best fixed baseline (MaxO: 4.023) by 7.8%. In this scenario, the agent predominantly selects aggressive strategies (AO: 44.4%; MaxO: 36.2%), effectively matching task demand. Under the
Resource-Constrained scenario, the advantage is most pronounced: the proposed method achieves
, compared to
for the best fixed strategy (EO),
reducing the reward deficit by 72.3%, reflecting the system’s ability to recognize resource scarcity and shift toward conservative strategies (CO: 58.4%, EO: 22.4%). Under the
Balanced scenario, a modest 2.3% improvement confirms that the adaptive controller does not incur a penalty when conditions are stable.
Comparison against the greedy baseline validates the two-level architecture of SAGE. SAGE outperforms Greedy by 54.1% overall, with a particularly large gap in the resource-constrained scenario ( vs. ). The Greedy depletion rate of 50.0%—three times higher than that of SAGE—confirms that myopic chain selection without resource coordination leads to systematic over-commitment and executor depletion.
Comparison against the MAPPO end-to-end baseline further validates the necessity of the MILP solver. MAPPO achieves an overall reward of only , which is substantially below that of SAGE (). The gap is most severe under the resource-constrained scenario ( vs. ), where MAPPO’s depletion rate reaches 95.0%: without a global MILP constraint to coordinate resource consumption across twelve independently acting agents, MAPPO systematically over-depletes executor resources within the first few decision rounds. By contrast, SAGE embeds resource constraints directly into the MILP solver, producing allocation plans that respect per-executor capacity limits by construction and thereby maintaining the lowest depletion rate (16.7%) among all baselines.
Figure 4 visualizes the per-scenario breakdown across six metrics. The “Best Overall Fixed” bar corresponds to AO, the fixed strategy with the highest average reward across all 60 episodes; note that the per-scenario best fixed strategy differs (MaxO in HD and BL and EO in RC), so AO does not dominate in every individual scenario. In the
Overall Reward subplot, all methods yield negative mean rewards under the resource-constrained condition; however, SAGE substantially limits the deficit (
) compared to Greedy (
), MAPPO (
), and the best fixed strategy (
) and achieves positive rewards in both the high-demand and balanced scenarios. The
Task Completion Rate and
HP Completion Rate subplots show that SAGE achieves competitive or leading completion rates across all three scenarios, with the gap over MAPPO particularly pronounced under the high-demand condition. In the
Resource Utilization subplot, SAGE maintains balanced utilization without the over-commitment observed in Greedy or the under-utilization seen in MAPPO. The
Resource Depletion Rate subplot most clearly illustrates the adaptive advantage: SAGE holds a near-zero depletion rate in the balanced scenario and a substantially lower rate than all baselines in the resource-constrained scenario, where MAPPO reaches approximately 95%. Finally, in the
Mean subplot, SAGE maintains competitive executor–task matching quality across scenarios, confirming that conservative strategy selection under resource pressure does not substantially degrade assignment effectiveness.
5.5. Ablation Study
We conduct three ablation experiments to isolate the contributions of key architectural decisions.
Experiment A (
Table 10) evaluates the GNN encoding module via a factorial design over two binary factors—type-specific node projection and three-dimensional edge features—yielding four GNN variants, together with a parameter-matched MLP baseline that removes graph structure entirely.
Experiment B (
Table 11) examines the dynamic per-task executor limit (
) by substituting it with fixed constants (
), directly testing whether the adaptive limit contributes independently of the meta-controller’s strategy selection. Each variant is evaluated on the same 60 fixed episodes under the shared three-scenario protocol.
Table 10 reveals a clear hierarchy among the GNN variants. The two dominant factors are type-specific projection and graph structure. Removing type-specific projection (
w/o type projection) causes the largest single-factor reward drop (
) and more than doubles the depletion rate (
), indicating that without separate linear projections for executor and task nodes, the encoder conflates structurally distinct node types and loses the feature contrast needed for conservative resource management. Replacing the entire GNN with a parameter-matched MLP reduces the reward by
and raises depletion by
, confirming that graph-structured relational encoding—not merely representational capacity—is the primary driver of performance. Removing edge features (
w/o edge features) yields a more modest reward penalty (
) and a moderate depletion increase (
), suggesting that the three-dimensional edge features contribute positively to assignment quality but are not individually decisive. The homogeneous variant (
w/o both) degrades the reward by
and raises depletion by
; notably, its reward gap is smaller than either single-factor ablation, suggesting partial mutual compensation when both biases are introduced simultaneously.
Table 11 reveals a monotonic degradation pattern as the fixed executor limit increases. A fixed
incurs a modest reward loss (
) and a
depletion increase, as the tight limit passively prevents over-commitment, even without adaptive control. A fixed
produces a larger reward drop (
) while sharing the same depletion penalty, indicating that at moderate limits, the system begins to lose assignment flexibility without gaining additional resource safety. A fixed
is the most damaging configuration: the reward falls by
, the task completion rate drops by
, high-priority completion declines by
, and the mean
plunges by
, suggesting that a permissive fixed limit removes the friction that motivates conservative assignments while simultaneously reducing the effective executor capacity per task. Thus, the dynamic
mechanism provides automatic resource pacing that is complementary to rather than redundant for the meta-controller’s discrete strategy selection.
Figure 5 presents the training dynamics of all GNN ablation variants across 8000 episodes. All variants exhibit a rapid initial reward rise within the first 1000 episodes, driven primarily by the MILP solver: once the meta-controller commits to any strategy, the solver immediately produces feasible high-quality assignments, providing a strong reward floor that substantially compresses the exploration phase relative to end-to-end RL approaches. Beyond this early phase, the training curves diverge according to architectural completeness. SAGE sustains steady reward improvement throughout training as the meta-controller progressively refines its scene-to-strategy mapping, whereas ablation variants plateau earlier and at lower reward levels. The TD loss curves mirror this pattern: SAGE achieves the lowest Bellman residual throughout, while ablation variants settle at visibly higher loss levels, indicating weaker Q-function self-consistency. The narrow confidence bands for SAGE across both metrics confirm stable convergence across different random seeds, in contrast to the wider bands of the
w/o edge features variant, which reflects increased training variance when relational edge signals are absent.
5.6. Sensitivity Analysis
5.6.1. Depletion Penalty Coefficient ()
Table 12 reports the effect of
on all six evaluation metrics. At
, the agent achieves the highest reward (3.150) but incurs the worst depletion rate (25.0%), indicating that a weak penalty provides insufficient deterrence against resource over-consumption. Increasing
to 0.2 reduces depletion to 20.0% at the cost of a moderate reward drop. At
, the agent becomes excessively conservative, and the reward falls to 2.431 while task completion and the high-priority hit rate also decline. The selected
achieves the lowest depletion rate (16.7%) while retaining competitive reward (2.878) and the highest completion rates, confirming it as the best-balanced operating point.
5.6.2. Number of Discrete Actions (K)
Table 13 summarizes the effect of
K across all six metrics.
achieves the highest reward (2.878) and the lowest depletion rate (16.7%), with the best task completion and high-priority hit rates. At
, the coarse-grained action space limits the policy’s ability to differentiate between workload scenarios, reducing the reward to 2.593. At
, resource utilization drops noticeably (67.5%), and depletion rises to 25.0%, suggesting that four strategies cannot adequately cover both aggressive and conservative regimes. For
, the action space becomes fragmented, making it harder for the agent to associate strategies with specific operational contexts within the fixed 8000-episode training budget, and both reward and completion rates decline monotonically.
5.7. Computational Complexity and Runtime Scalability
Let I denote the number of executor nodes, J represent the number of active tasks, S denote the number of sensing nodes, N = I + J be the graph size used by the HeteroGNN encoder, L be the number of graph message-passing layers, and d represent the hidden dimension. With the dense adjacency representation used in the present implementation, one HeteroGNN forward pass has a time complexity of and memory complexity of . The MILP stage first enumerates feasible sensing–executor–task candidate chains whose pre-filtered count is upper bounded by . The resulting mixed-integer optimization problem contains one binary decision variable per feasible candidate chain, together with resource-capacity, task-cardinality, assignment-budget, and feasibility constraints. As with general MILP problems, the worst-case solve complexity is exponential in the number of binary variables; in practice, reachability filtering, success-probability thresholds, dynamic per-task executor limits, and the selected assignment budget substantially reduce the effective candidate set.
To quantify practical runtime scalability,
Table 14 reports wall-clock decision time across four problem scales. Each scale contains 20 independently generated cases. The MILP timing includes candidate filtering, model construction, SCIP optimization, and solution extraction; HeteroGNN timing is measured by repeated CPU forward passes of the implemented HeteroGNN encoder. All cases are solved to optimality within the 3 s SCIP time limit. At the original evaluation scale, the average total decision time is 24.57 ms. Even at the largest tested scale, with 40 graph nodes and 2284.8 candidate chains, on average, the total decision time remains 149.03 ms, indicating that the proposed two-level learning-optimization pipeline is computationally feasible for the problem sizes considered in this study. The runtime is dominated by the MILP solver, whereas the HeteroGNN forward pass remains below 0.5 ms across all tested scales.
5.8. Scene-Adaptive Strategy Selection Analysis
Figure 6 traces the evolution of the learned action distribution across four training stages, providing interpretable evidence of how scene-adaptive behavior emerges over the course of training.
The Resource-Constrained scenario exhibits the earliest and most stable differentiation. As early as episode 1000, the agent already assigns 38.5% to CO and 39.0% to EO, with MaxO entirely absent—indicating that the penalty signal from resource depletion is strong enough to drive conservative preferences within the first training phase. By episode 3000, CO consolidates to 58.9% and remains dominant through convergence (48.9%), confirming that the mapping from resource scarcity to conservative strategy is among the first associations the meta-controller acquires.
In contrast, the High-Demand and Balanced scenarios require more training to differentiate. At episode 1000, the two scenarios show similar distributions, dominated by AO and MO, with the agent not yet reliably distinguishing between them. By episode 3000, the HD distribution shifts toward MaxO (45.3%), while the BL distribution temporarily concentrates on MaxO (56.6%) as well, reflecting an intermediate stage where the agent has learned to be aggressive but has not yet learned to modulate intensity. By convergence, the two scenarios separate clearly: HD stabilizes at AO (45.3%) and MaxO (32.8%), while BL shifts toward AO (48.1%), with a reduced MaxO share (27.8%) and a growing conservative component, reflecting the more moderate resource conditions of the balanced scenario.
To further clarify feature-level interpretability,
Table 15 links the dominant situational cues in the seven-dimensional state vector to the observed action-frequency transitions. The analysis shows that the average executor resource ratio is the most decisive cue for conservative policy selection: when the resource ratio is low, the policy rapidly shifts toward CO and EO to suppress depletion. In contrast, high active-task density and a high-priority task ratio increase the preference for AO and MaxO, indicating that the policy uses aggressive strategies mainly when the workload contains enough urgent or valuable tasks to justify higher resource expenditure. Balanced scenarios combine moderate task density with sufficient resources; the policy therefore keeps AO as the dominant action but retains non-negligible conservative selections, preventing the controller from behaving as a uniformly aggressive policy.
Taken together, the four-panel progression confirms that scene discrimination is learned incrementally: resource-constrained recognition emerges early from strong depletion signals, while finer discrimination between high-demand and balanced conditions develops gradually as the meta-controller accumulates sufficient experience to distinguish their subtler differences in task density and resource availability.
6. Conclusions
This paper presented SAGE, a scene-adaptive task-offloading framework for heterogeneous edge networks combining a heterogeneous graph neural network encoder, a dueling double DQN meta-controller, and an MILP solver. The key insight is to decouple task offloading into two levels: a learned meta-controller that perceives the workload scenario through a fused graph-plus-situational-state representation and selects a suitable offloading strategy and a combinatorial solver that executes precise task-chain assignment under the selected configuration.
Experiments on 60 fixed evaluation episodes across three representative workload scenarios demonstrate that SAGE achieves a 15.9% improvement in overall reward over the best fixed-strategy baseline and a 54.1% improvement over a greedy heuristic. Under resource-constrained conditions, SAGE reduces the reward deficit by 72.3% (from to ), driven by the agent’s learned ability to automatically shift toward conservative strategies when executor resources are scarce. Ablation studies confirm the individual contributions of edge-gated GNN encoding, heterogeneous node projection, and the dynamic per-task executor-limit mechanism. Sensitivity analyses identify and as robust operating points.
The present evaluation is simulation-based, which enables controlled comparison across independently generated and seed-fixed workload scenarios but does not yet replace validation on physical edge-computing testbeds or public operational traces. Future work will therefore validate SAGE under hardware-in-the-loop or real testbed deployments, calibrate the workload generator with operational traces when available, and examine the robustness of the learned strategy-selection policy under sensing noise, communication uncertainty, and device-level execution delays.
Future work will also investigate multi-agent extensions in which decentralized meta-controllers coordinate across multiple edge clusters and the integration of real-time workload prediction to proactively reconfigure assignment strategies before scenario transitions occur.