A subscription to JoVE is required to view this content. Sign in or start your free trial.

Research Article

Multi-Latency Multi-Agent Task Offloading Strategy for Smart Education Platforms Based on Edge Computing

0 views

⸱

DOI:

10.3791/71569

⸱

October 9th, 2026

 , 

In This Article

Summary

To address cumulative subtask delays and multi-user resource competition in smart education platforms, a MEC- and MADDPG-based multi-delay multi-agent task offloading scheme was proposed and validated through simulations and scenario tests. The completion time was only 16.2 s for 50 tasks, while the completion rate remained 96.8% for 60 users.

Abstract

In smart education platforms, large-scale real-time interactive tasks usually involve complex subtask dependencies. The transmission, computation, and queuing delays generated by different subtasks are coupled with each other, making it difficult for traditional task offloading methods to achieve efficient scheduling. Meanwhile, multi-user concurrent requests further intensify edge computing resource competition. To address these challenges, this study proposes a task offloading scheme based on mobile edge computing (MEC) and multi-agent deep deterministic policy gradient (MADDPG). First, a smart education platform architecture including cloud nodes, edge nodes, and terminal devices is constructed to achieve cloud-edge-device collaborative computing. Second, addressing the shortcomings of existing task offloading methods that primarily focus on single latency metrics, ignore task dependencies, and lack flexibility in discrete offloading decisions, a MADDPG model is designed that integrates multi-latency perception, directed acyclic graph (DAG) task constraints, and continuous offloading ratio decision-making. This model incorporates task state, network state, and edge resource state into the agent decision-making process, achieving dynamic task offloading and resource optimization under multi-objective conditions. To validate the effectiveness of the proposed method, 19,200 task instances are generated using a DAG generator, and comparative experiments are conducted against ACO, GWO, DDPG, PPO, DQN, and Greedy Offloading methods. The results demonstrate that the proposed method outperforms all comparison approaches in terms of task completion time, energy consumption, task completion rate, and network adaptability. When the number of tasks reaches 50, the task completion time is reduced to 16.2 s, and the total energy consumption decreases to 0.95 J. When the number of users increases to 60, the task completion rate remains at 96.8%. The proposed scheme effectively addresses edge computing offloading problems under multi-task, multi-user, and multi-latency coupling conditions, providing a solution for intelligent resource scheduling in complex edge environments.

Introduction

Education is the foundation of national development, and it is undergoing profound changes. The technologies related to computer information construction are also becoming more and more mature1. The Ministry of Education’s “Action Plan for Educational Informatization 2.0”, issued in April 2018, clearly proposed to implement the “Smart Education Innovation and Development Action”. It emphasizes the use of information technology to promote the transformation of educational concepts, teaching models, and management methods to promote educational equity and quality2. Intelligent education emphasizes real-time interaction between teachers and students, which differs from passive learning in traditional education. The computational tasks generated by this interaction have time delay constraints and are highly time-sensitive3,4,5. With the continuous advancement of information technology, MEC has provided a new approach to real-time data processing in systems. For example, a research group6 proposed an intelligent processing architecture based on MEC, which reduced cloud dependence and transmission latency by pushing computing tasks to edge nodes. A research group7 proposed an intelligent device-aware edge computing system. The results show that MEC can distribute infrastructure across multiple edge data centers in the access network, thereby effectively reducing latency and network congestion. MEC meets the high bandwidth and low latency requirements of mobile networks and enables flexible allocation of computing and storage resources, but it only has limited edge node computing resources. In multi-user scenarios, the simultaneous operation of multiple intelligent sensing applications leads to resource contention8,9. This reduces application operating efficiency, increases system response time, and interferes with teaching activities. Therefore, it is necessary to introduce a suitable task offloading scheme to ensure system real-time performance and service quality10,11.

In the field of task offloading, existing research mainly follows three technical routes. The first route is the heuristic optimization method. For example, a study12 proposed a cloud-edge collaborative vehicle task offloading method. This uses the ACO algorithm for multi-objective optimization to determine the optimal offloading position for load balancing. It also combines a simple weighted method with a multi-criteria decision optimization objective function. This effectively alleviates system congestion and latency in data processing. Another study13 integrated GWO and cellular automata to achieve dynamic task scheduling, and introduced a low-complexity algorithm based on Nawas-Enscore-Ham to improve scheduling efficiency and reduce system latency. The second route is the single agent deep reinforcement learning method. For example, a research group14 combines the low-latency processing advantage of fog computing with the adaptive decision-making capability of single-agent deep reinforcement learning to realize dynamic resource state perception and task optimization, thereby improving service quality while increasing system benefits. The third route is multi-agent reinforcement learning. For example, a research group15 prioritized tasks according to fault tolerance time and proposed a priority-driven collaborative offloading algorithm based on multi-agent deep reinforcement learning, which effectively reduced task processing latency and improved edge computing resource utilization. A research group16 applied multi-agent deep reinforcement learning to edge cache optimization, verifying the effectiveness of the multi-agent collaborative mechanism in dynamic network environments.

In summary, with the rapid development of smart education platforms, the amount of data that Internet of Things (IoT) terminals need to process is increasing dramatically, and they also have high real-time requirements. MEC provides a new technological path for the deployment of intelligent services in educational scenarios. The introduction of heuristic algorithms, game theory, and deep reinforcement learning methods, among others, provides important support for the efficient allocation and utilization of computing resources. However, existing research mostly focuses on minimizing latency, paying less attention to the multi-task offloading problem under various latency constraints. To address these shortcomings, this study designs a multi-latency, multi-agent task offloading scheme based on MEC and MADDPG.

While the MADDPG algorithm has been applied in some edge computing task offloading research, existing work mainly focuses on Vehicle-to-Everything (V2X), smart cities, or general MEC scenarios. Its optimization objectives are typically single-system latency or energy consumption, neglecting the multi-latency coupling characteristics of multiple subtasks within the same task in smart education scenarios, where transmission latency, computation latency, and queuing latency are superimposed due to dependencies. Furthermore, most existing MADDPG offloading schemes assume that tasks are independent of each other, failing to consider the constraints of the directed acyclic graph structure of subtasks on the offloading decision order. Their action space typically employs discrete offloading decisions (i.e., tasks are either completely executed locally or completely offloaded), making it difficult to achieve fine-grained task decomposition between local and edge environments. Unlike the aforementioned studies, this paper's innovation lies in three aspects: First, it is the first to explicitly model the multi-delay coupling characteristics into the state space of MADDPG. It enables each agent to simultaneously perceive the transmission delay, computation delay, and queue delay information of subtasks, thus comprehensively weighing the superimposed effects of the three types of delays during decision-making. Second, for the inherent directed acyclic graph dependency structure of teaching tasks in smart education platforms, a ready state judgment mechanism based on task topology sequences is designed. It is to ensure that the current subtask can only enter the unloading decision queue after the predecessor subtask is completed, filling the gap in existing MADDPG unloading models that cannot handle task dependencies. Third, a continuous action space is used to replace the traditional discrete unloading decision, enabling agents to output a continuous unloading ratio between 0 and 1, realizing partial unloading of subtasks between local and edge environments, which has higher scheduling flexibility than the complete unloading schemes in existing studies.

Access restricted. Please log in or start a trial to view this content.

Protocol

The MADDPG model training and main performance tests were based on a simulated task dataset generated from a directed acyclic graph, completed on the WANem network simulation platform and MEC test platform, and do not involve human experiments or biomedical research. To verify the solution's effectiveness in practical applications, the study used historical operational logs from the fall semester of 2024 of a university's online teaching platform for backtracking testing. The data only contains system information such as task requests, network status, resource utilization, and task execution results, and does not contain any personally identifiable information. All data was anonymized and desensitized before analysis and is used solely for algorithm performance evaluation and system verification. Therefore, this study is not a human subject study, and no ethical review or informed consent is required. All experiments comply with data security and privacy protection requirements and are used solely for scientific research. All the materials used in this study are listed in the Table of Materials.

MEC-based smart education platform

Teachers generate a large amount of real-time data (such as videos, interactive task feedback, etc.) during teaching17. MEC provides low-latency, high-bandwidth real-time services by processing data locally18,19. To improve teaching effectiveness and help teachers understand students' learning situations, a smart education platform based on MEC is proposed, as shown in Figure 1.

Overall architecture of the smart education platform

In Figure 1, the platform mainly consists of cloud nodes, edge nodes, and terminal devices. The cloud node architecture includes an AI training platform, a private image repository, a data repository, and a knowledge recommendation engine, as shown in Figure 2.

Cloud node architecture

As shown in Figure 2, to achieve rapid portability and efficient deployment of intelligent applications, Docker technology is introduced into cloud nodes. Docker is an open-source project that simplifies application deployment and management through lightweight containerization technology20,21. The system first packages the trained model and its running environment into a Docker image and uploads it to a private image repository for centralized management. To meet different task requirements, the cloud nodes regularly update the images to ensure that the application and model versions are up-to-date. Considering the limited storage capacity of edge nodes, the system adopts distributed storage and data backup technology to store resources such as teaching videos, e-textbooks, and exercise sets in the database. The Docker Engine version is v20.10, using the overlay2 storage driver.

The container runtime uses runc, and each container's CPU quota is limited to 2 cores, memory is limited to 4GB, and the log driver is json-file. The maximum size of a single container log file is limited to 100MB, and a maximum of 3 log files are retained. The Docker image is built on an Ubuntu 20.04 LTS base image and comes pre-installed with TensorFlow 2.0 and PyTorch 1.7 inference environments. The private image repository is deployed using Harbor v2.5 in a high-availability cluster (3 replicas). The storage backend uses MinIO distributed object storage, with security authentication via TLS-encrypted communication and Role-Based Access Control (RBAC). The use of MinIO distributed object storage ensures high availability of image data. Edge nodes establish a secure connection to the repository via Docker Engine v20.10 and periodically pull the latest model images using the “docker pull” command. The image pull policy is set to “IfNotPresent”, and the garbage collection cycle is set to execute every 72h. Cloud nodes automatically build and push updated images to the private repository every 24h via a CI/CD pipeline (Jenkins), ensuring image version consistency. The knowledge recommendation engine intelligently recommends resources based on user behavior and learning needs to enhance the teaching experience and learning efficiency. The edge node architecture mainly includes data middleware and the edge service layer, as shown in Figure 3.

Edge node architecture

As shown in Figure 3, after the device connects to the edge node, the data middleware first performs authentication to prevent attacks from malicious devices. The authentication mechanism uses JSON Web Token (JWT) verification, with a token validity period of 24 hours. The data middleware is deployed based on EMQX v5.0, supporting the MQTT protocol and WebSocket connections. The message queue is configured with QoS level 1, message retention enabled, message persistent storage to local SSD, and a maximum queue depth of 10,000 messages/second. After successful authentication, the middleware verifies the received data to ensure its legality and integrity. The validation rules include: data format validation (JSON Schema validation), integrity validation (MD5 hash comparison), and timestamp freshness validation (deviation less than 5 s). If the data is illegal, the data source will be blacklisted, preventing subsequent interactions. If the data is legal, it will be cleaned to remove invalid information and noise, improving processing efficiency and accuracy. The cleaned data is then transmitted to the edge service layer, which includes business management, data storage and visualization, collaborative computing services, and message queues. The business management module uses Docker to uniformly manage various business functions of the platform. Each edge node pre-deploys Docker containers, including: a data middleware container (EMQX), a message queue container (RabbitMQ), a collaborative computing service container (gRPC Server), and a resource monitoring agent container (Prometheus Node Exporter). All containers are orchestrated and managed using Docker Compose v2.20, the container network uses bridge mode, and inter-container communication is isolated through a custom network (edge_network, subnet 172.20.0.0/16).

The data storage and visualization module is primarily responsible for data storage, caching, and visualization. This module uses Redis v6.2 as the caching middleware, configured with an LRU eviction policy, a maximum memory limit of 4GB, and a cache expiration time of 300 s. The storage module reduces system response time by caching hot resources and duplicate computation results. Through a graphical interface, the visualization module displays system status, task progress, and resource usage in real time, allowing users to quickly grasp the overall picture and make decisions. The collaborative computing service enables interaction among the cloud, the edge, and devices, enabling collaborative task allocation and execution. The collaborative computing service is implemented based on the gRPC protocol, using port 50051 and TLS 1.3 encryption. The maximum gRPC message size is set to 50MB, the connection timeout is 10s, the keepalive interval is 30s, the keepalive timeout threshold is 10s, and the TLS encryption suite uses TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256. The heartbeat detection interval is 5s, the timeout threshold is 30s, and the retry mechanism uses an exponential backoff strategy (initial interval 1s, maximum interval 60s).

The message queue module, responsible for asynchronous communication between components, alleviates multi-task concurrency conflicts, ensuring tasks are processed according to priority and time order, improving system response speed and operational stability. The message queue is deployed using RabbitMQ v3.9, configured as a persistent queue with an acknowledgment mechanism. RabbitMQ listens on ports 5672 (AMQP) and 15672 (management interface). The queue persistence policy is set to “durable = true”, the dead-letter exchange is set to “dlx.exchange”, and the message unacknowledged timeout is set to 30 s. The exchange type is “topic”, the queue binding keys are set to “task.#” and “resource.#”, the message acknowledgment mode is manual ack, and the prefetch count is 100. For EMQX configuration, it listens on ports 1883 (MQTT), 8083 (WebSocket), and 8883 (MQTT over TLS). The maximum concurrent connections are set to 10,000, the heartbeat interval is set to 60 s, and the maximum message ordering queue depth is set to 100. The MQTT protocol supports QoS levels 0, 1, and 2, with QoS 1 used by default. Reserved messages are enabled, and the maximum message packet size is set to 256MB. For resource monitoring, each edge node deploys Prometheus Node Exporter v1.3, collecting CPU utilization, memory usage, network I/O, and disk read/write metrics at 15-second intervals. Data is aggregated to a central Prometheus server via Pushgateway, with Grafana v9.0 providing a real-time monitoring dashboard. Alarm rules are set as follows: CPU utilization exceeding 85% for 5 minutes triggers an alert, exceeding 95% triggers an emergency alert. Memory utilization exceeding 90% for 5 minutes triggers an alert. Disk utilization exceeding 85% triggers an alert, and network packet loss exceeding 1% triggers an alert. The terminal device architecture is shown in Figure 4.

Terminal device architecture

In Figure 4, the terminal device architecture is broken into a hardware layer, a business support layer, and a presentation layer. The hardware layer includes a CPU and communication modules such as WiFi and Bluetooth, providing underlying support for data acquisition, communication, and basic computing. The business support layer provides edge-end collaboration and supports task offloading decisions. The presentation layer is responsible for the visual interface and improves the user experience. The sub-task attributes of devices of the same type are usually consistent22. It assumes that the edge node computing power is 16 cores and the main frequency is 3.6 GHz. During the data acquisition phase, the study conducts multiple rounds of testing on the intelligent sensing application within the platform by accessing the /proc file system, recording the attribute values of the subtasks during each round of runtime. Simultaneously, to adapt to different types of directed acyclic graph structures, a directed acyclic graph generator is designed to control the number of nodes, the maximum in-degree, and the maximum out-degree based on user input. The dataset construction process is as follows:

The study first uses Python 3.8 to implement a directed acyclic graph generator, and then randomly generates task topologies based on the number of nodes, the maximum in-degree, and the maximum out-degree. The number of nodes is set to 5–20, the maximum in-degree to 3, and the maximum out-degree to 4. Each directed acyclic graph corresponds to a complete teaching task, with nodes representing executable subtasks and edges representing dependencies between tasks. Subsequently, computational and communication attributes are assigned to each subtask. The task data size is randomly set to 1–3MB, the computational requirement to 500–6,000 Mcycles, the task deadline to 5–25s, and the task arrival interval to 2–10s. To simulate scenarios such as real-time video analysis, classroom interaction feedback, and online assessment in a smart education platform, the system further randomly generates user request intensity, task priority, and resource requirement levels. The task priority is divided into three levels: high, medium, and low, with corresponding weights of 1.0, 0.7, and 0.4, respectively. The network environment is built using WANem. Communication bandwidth between terminal devices and edge nodes is randomly set to 10–100 Mbps, link latency to 5–50 ms, packet jitter to 1–10 ms, and packet loss rate to 0.1%. Six edge nodes are deployed in the edge computing layer, each configured with a 16-core 3.6 GHz processor and 64 GB of memory. Terminal device CPU frequencies are set to 1.8–2.4 GHz, and memory capacity to 4–8GB. During task generation, task status, network status, and edge resource usage are recorded in real time. Task status includes task data volume, computational requirements, and remaining deadline; network status includes available bandwidth and link latency. Resource status includes CPU utilization, memory utilization, and task queue length. A total of 19,200 task instances are generated, with 80% used for environment interaction and policy learning during model training, and 20% used for model testing and performance evaluation. To reduce the impact of random initialization on experimental results, all experiments are run independently using five different random seeds, and the final result is the average of the five experiments.

Multi-delay multi-agent task offloading model based on MADDPG

In edge computing environments, the efficiency of task offloading directly affects the overall performance of MEC smart education platforms. The offloading process is constrained by various latency factors, mainly including transmission latency, computation latency, and queuing latency23,24. Among them, transmission latency is mainly affected by transmission distance and bandwidth; computation latency depends on the resource load and processing capacity of edge nodes. Computational latency depends on the resource load and processing capacity of edge nodes, while queuing latency stems from the system's task scheduling and resource allocation mechanisms. Various types of latency overlap during the offloading, increasing the complexity of task offloading. In multi-agent scenarios, multiple users run multiple intelligent applications simultaneously, and each user may initiate multiple computationally intensive tasks at the same time, with varying resource requirements and priorities, further exacerbating the difficulty of computing resource scheduling and allocation25,26.

MADDPG adopts a "centralized training, distributed execution" architecture, which is suitable for multi-user offloading scenarios27. In this model, each computational task corresponds to an agent, and decision optimization is performed based on the Actor-Critic architecture. This study models the multi-latency task offloading problem as a partially observable Markov decision process (POMDP). For any agent, its state space consists of the task data volume, task computation requirements, current network bandwidth, link latency, and edge node queue length. The observation space is defined as the local information that each agent can acquire, including the local state of the corresponding task (task data volume, computation requirements, remaining deadline) and the available bandwidth and queue length of the currently connected edge nodes. The action space is defined as continuous offloading decision variables, with values ranging from [0,1], where 0 indicates that the task is executed entirely locally, 1 indicates that the task is completely offloaded to the edge node, and intermediate values indicate partial offloading. The offloading decision encoding uses a direct continuous-valued output without discretization.

The core idea of the Actor-Critic architecture is to improve the efficiency and performance of the decision-making process through cooperation and optimization between Actor networks and Critic networks28,29. The structure of the Actor is denoted in Figure 5.

Actor network structure

In Figure 5, the Actor consists of two fully connected layers: the first layer contains 1024 neurons and uses the ReLU activation function to enhance nonlinear expressive power. The second layer contains 500 neurons and is used for high-dimensional abstraction and mapping of features. The output layer generates continuous action values based on the agent's action dimensions, realizing forward propagation of the optimal policy's action decisions. The Critic structure is denoted in Figure 6.

Critic network structure

In Figure 6, the Critic contains three fully connected layers. The input layer is first mapped to a 500-dimensional feature representation through the first fully connected layer. Then, it is further compressed into a 128-dimensional feature space through the second fully connected layer. Finally, the Q-value estimate corresponding to the action space dimension is output through the third fully connected layer. Information is passed layer by layer through forward connections. Each agent stores its observations, actions, rewards, and next state in a local experience pool. The experience data of all agents are periodically merged to form a shared experience pool for all agents to learn from. In this way, each agent can learn not only from its own experience but also from the experience of other agents, reducing inefficient decisions caused by insufficient information. During training, the platform randomly selects a batch of data from the merged experience pool to update each agent's decision network. The agent uses the policy gradient of the current state to calculate the loss, updates the evaluation network, and thus optimizes the policy. This entire process uses gradient ascent to maximize the system's long-term reward. During the update process, the parameters of the evaluation and decision networks are updated softly, so that the agent's decision strategy can gradually approach the optimum.

In addition, the reasonable design of the reward function is the key prerequisite for the multi-agent deep reinforcement learning algorithm to maximize long-term rewards30. Considering that the task offloading objective in the smart education platform not only needs to reduce system energy consumption, but also needs to ensure that the task can be completed within the deadline. The reward function ri designed in the study mainly consists of two parts: energy consumption reward and task completion rate reward, as shown in Equation (1).

Static equilibrium equation: ri=-α(Δfnorm(ei))+βk̂; mechanical force analysis.  (1)

In Equation (1), Δfnorm (ei) represents the normalized increase in system energy consumption after completing the current subtask, Static equilibrium diagram with vectors ΣFx=0, ΣFy=0; force balance analysis setup. is the reward coefficient for task completion rate, α and β represent the energy consumption increment and the weight coefficient for task completion, respectively. Task completion rate reflects the platform's Quality of Service (QoS), while system energy consumption reflects the efficiency of edge computing resource utilization, both jointly determine the effectiveness of the task offloading strategy. To avoid imbalances caused by different metric dimensions during training, the energy consumption metric is first normalized. The task completion reward is defined in binary form: 1 for completion within the deadline, 0 otherwise. To ensure the reward value remains stable within the [-1, 1] interval, linear normalization is further applied during training. The weight parameters α and β are determined using a validation set search. The study sets α ∈ {0.2, 0.4, 0.6, 0.8} and β = 1 − α, and runs five experiments independently under the same training environment. The comprehensive evaluation index of task completion time, task completion rate, and system energy consumption is used as the optimization objective for parameter selection. Experimental results show that when α = 0.6 and β = 0.4, the model achieves the best balance between task completion rate and system energy consumption. If is too small, the model tends to frequently unload tasks to pursue higher task completion rates, leading to increased overall energy consumption. If is too large, the model focuses excessively on energy optimization, and some high-priority tasks cannot be completed in time. Therefore, α = 0.6 and β = 0.4 are ultimately chosen. Furthermore, to improve training stability, all reward values are smoothed using a sliding window mean, with a window length of 100 steps. During the experiment, it is observed that the average reward stabilizes after approximately 7.8 × 104 steps, indicating that the designed reward function can effectively guide MADDPG to learn a reasonable task offloading strategy and promote model convergence. Based on the above design, the multi-latency, multi-agent task offloading process is shown in Figure 7.

Task offloading process

As shown in Figure 7, the terminal device first generates a batch of new computing tasks. The system then determines the dependencies and execution order between each task and its subtasks, clarifying the requirements for serial and parallel processing. Based on a preset task priority model, the platform parses the computing tasks and generates corresponding topology sequences. After task parsing, an unloading decision is made for each task, determining whether it should be executed locally or unloaded to the edge server. If a subtask needs to be unloaded, it is added to the local transmission queue, waiting to be uploaded to the edge node. Each terminal device directly connected to the edge node independently formulates an unloading strategy for each subtask through the task offloading module (using the MADDPG algorithm). After the decision is made, the terminal device executes the corresponding operation according to the unloading command. The platform then transmits the subtask data (including the task topology sequence and all data of ready subtasks) in the local transmission queue to the designated edge node according to the decision result. The edge node executes the subtasks in the computing queue in a first-in-first-out order. This process realizes dynamic scheduling and collaborative computing in multi-latency and multi-agent environments, effectively ensuring the real-time performance and stability of the MEC smart education platform in complex scenarios. The training process for the MADDPG model is as follows:

First, the study initializes the parameters of the Actor network, Critic network, and corresponding target network, and establishes an experience replay pool with a capacity of 1,000,000. The system generates unloading actions based on the current state information (using an ε-greedy strategy, with an initial exploration noise standard deviation of 0.2, a noise attenuation coefficient of 0.995, and a minimum noise standard deviation of 0.01). After executing task scheduling, it obtains the immediate reward and the state at the next time step, and stores the state transition samples in the experience pool. When the number of samples in the experience pool reaches the batch update condition, 64 samples are randomly selected for training. The Critic network uses gradient descent to minimize the temporal difference error to improve the accuracy of the value function estimation. The Actor network updates its parameters according to a deterministic strategy gradient, continuously optimizing the task offloading strategy by maximizing the long-term cumulative reward. To ensure training stability, a soft update mechanism is used to synchronize the target network parameters, with the soft update coefficient set to 0.005. The total number of training steps is set to 100,000. The network parameters are updated every 10 steps. The model is considered to have converged, and training is stopped when the maximum number of training steps of 100,000 is reached, or when the average reward change is less than 1% within 5,000 consecutive steps.

The study primarily uses task completion time, task completion rate, task failure rate, system energy consumption, and resource utilization as evaluation metrics. Task completion time is defined as the total time elapsed from task generation to completion. Task completion rate is defined as the percentage of tasks successfully completed within the deadline. Task failure rate is defined as the percentage of tasks failing to complete within the specified time. System energy consumption includes local computing energy consumption and transmission energy consumption, and resource utilization is defined as the ratio of the actual resource usage of edge nodes to the total resource capacity.

Theoretical analysis and theorem proof

To further verify the effectiveness and theoretical feasibility of the proposed multi-delay multi-agent task offloading model, the study conducted a theoretical analysis from two aspects: task delay characteristics and MADDPG policy optimization characteristics. Assumed that there are agents in the smart education platform, and each agent corresponds to a task. The total delay Di of task i consists of data transmission delay Static equilibrium formula Dᵢᵗʳ; equilibrium analysis in physics or engineering study., queuing, waiting, delay Equation showing subscript and superscript notation in mathematical expressions. and calculation execution delay Static equilibrium, formula ΣFx=0, ΣFy=0, symbol; diagram illustrating force balance., as shown in Equation (2).

Equation showing diffusion coefficients in fluid dynamics; includes equations for \(D_i^t\), \(D_i^q\), \(D_i^c\).  (2)

In Equation (2), Li represents the amount of input data for the task i, Bi represents the current available communication bandwidth for the task i, Qi represents the queue length of the task i in the edge node, μi represents the average service rate of the edge server for the task i, Ci represents the number of CPU computation cycles required for the task i, fi represents the edge computing resources allocated to the task i, αi and represents the task offloading ratio. Therefore, the system optimization objective can be expressed as:

Optimization formula, min Σ from i=1 to N (ω₁Dᵢ + ω₂Eᵢ), mathematical equation.   (3)

In Equation (3), Ei represents the total energy consumption of the task, Static equilibrium, ΣFx=0, diagram, force balance, educational physics concept, vector analysis. represents the latency weighting coefficient, and Static equilibrium; ΣFx=0; mechanical diagram; force balance analysis; educational physics. represents the energy consumption weighting coefficient.

Lemma 1: Under the condition of fixed computing resources at edge nodes, the total latency Di of task i is a convex function of its offloading ratio αi.

Proof: From equation (2), the study can obtain:

Equation for calculating Di in dynamic systems; includes symbols ai, Li, Bi, Qi, μi, Gi, Fi.   (4)

The first derivative is taken with respect to αi:

Partial derivative equation, diagram of mixed variables; useful for mathematical modeling.   (5)

The study continues to find the second derivative:

Second-order derivative equation, ∂²Di/∂αi²=0, mathematical formula, stability analysis.   (6)

Since linear functions are convex functions, the total delay Di of task i is a convex function of its unloading ratio αi. Lemma 1 is thus proved.

Theorem 1: For a POMDP task offloading model with a finite state space and a finite reward function, there exists at least one optimal policy π* that maximizes the long-term cumulative reward.

Proof: Assume that the long-term cumulative discounted return of the agent is as shown in Equation (7).

Equation for future value calculation, Gₜ = Σγᵏrₜ₊ₖ, depicting financial summation formula.   (7)

In Equation (7), Gt represents the cumulative discount reward at time t, k represents the future time step index, γ represents the discount factor, and rt+k represents the instant reward obtained at time t + k. The Bellman optimal equation is shown in Equation (8).

Q-learning equation: reinforcement learning formula for optimal action-value estimation.   (8)

In Equation (8), Q-learning algorithm equation Q*(s,a), mathematical formula for optimal action-value function. represents the optimal action value function, s represents the current system state, a represents the current action, Reward function equation, r(s,a), in reinforcement learning context for decision-making process. represents the immediate reward, s' represents the state at the next moment, a' represents the action at the next moment, and Markov decision process formula (P(s'|s,a)), probability transition representation. represents the state transition probability. The Bellman operator T(Q) is shown in Equation (9).

Equation for temperature as a function of power and pressure, T(Q)=r+γPQ, scientific analysis.  (9)

In Equation (9), Q represents the action value function, represents the reward function, and represents the state transition matrix. For any two Q functions:

Mathematical stability concept; formula: ‖T(Q₁)-T(Q₂)‖≤γ‖Q₁-Q₂‖; equations in research context.  (10)

Since 0 < γ < 1, the Bellman operator is a contraction mapping. According to Banach's fixed-point theorem, there exists a unique fixed point:

Fixed-point equation \(Q^*=T(Q^*)\), mathematical concept in a symbolic representation.   (11)

Corresponding to the unique optimal strategy:

Optimal policy formula π*(s)=argmaxₐQ*(s,a); reinforcement learning equation.   (12)

Therefore, the optimal unloading strategy exists. Theorem 1 is proved.

Theorem 2: Under the conditions that the experience replay pool is sufficiently large, the learning rate satisfies the Robbins-Monro condition, and the target network adopts a soft update mechanism, the MADDPG policy parameters can converge to a local stable equilibrium point.

Proof: The Actor update process is shown in Equation (13).

Gradient descent update formula, θ(k+1)=θ(k)+η∇θJ(θ), mathematical equation.   (13)

In Equation (13), Theta symbol raised to the power k formula with calculus and algebra concepts. represents the Actor network parameters at the k-th iteration, θ^(k+1) update; iterative process in algorithm; mathematical formulation in optimization. represents the updated parameters, η represents the learning rate, J(θ) represents the policy objective function, and Gradient descent formula ∇θJ(θ), key concept in optimization algorithm study. represents the gradient of the objective function with respect to the parameters. According to the deterministic policy gradient theorem:

Partial derivative formula, reinforcement learning policy gradient equation, mathematical diagram.   (14)

In Equation (14), Expected value formula E[x] symbol in statistical data analysis. represents the mathematical expectation, Reinforcement learning policy function πθ(S) equation for decision-making models. represents the policy function with a parameter Static equilibrium diagram, ΣFx=0, analysis of forces and torques, physics education., Reinforcement learning policy gradient equation ∇θπθ(s). represents the policy gradient, Q-learning equation, reinforcement learning, Q(s,a), formula, machine learning algorithm. represents the action value function, and Gradient of Q-function ∇a Q(s, a), equations, reinforcement learning concept. represents the gradient of the Q function with respect to the action. The target network uses soft updates:

Gradient descent update equation for optimizing neural networks; mathematical formula display.   (15)

In Equation (15), θ represents the current network parameters, θ' represents the target network parameters, represents the soft update coefficient. According to the theory of stochastic approximation, when Sigma convergence equation, Σk ηk=∞, mathematical concept, limit illustration. and Series convergence, mathematical equation Σkηk² < ∞, convergence analysis, formula interpretation., the parameter update sequence converges to the neighborhood of the stable equilibrium point. Therefore, MADDPG can gradually approximate the local optimal policy and achieve a stable task offloading decision. Theorem 2 is proved.

Model complexity analysis

The study analyzes the proposed MADDPG model from two aspects: time complexity and space complexity. Assume the number of agents is N, the number of parameters in the Actor network is PA, the number of parameters in the Critic network is PC, the number of training steps is T. For a single agent, the forward propagation complexity of the Actor network is Quantum operation formula \(O(P_A)\) symbol for quantum computing concepts.. The forward and backward propagation complexity of the Critic network is Algorithm complexity notation, O(Pc); Computational efficiency analysis; Diagram for research.. Since there are agents in the system, the computational complexity of a single parameter update is Computational complexity, Big O notation, algorithmic efficiency, equation, analyze performance.. The training process involves iterations, so the overall training time complexity is Complexity formula O(TN(PA + PC)), algorithm efficiency in computational analysis, text equation.. The study employs a fixed network structure, with the network size remaining constant during training. Therefore, Static equilibrium, equation PA + PC = c, mathematical formula for balance analysis., where c is a constant. The overall training time complexity can be further simplified to Computational complexity formula O(TN), algorithm efficiency analysis, mathematical concept..

Assume the experience pool capacity is Mathematical notation M=10^6, representing exponential expressions in equations., and the storage overhead of the experience pool is Mathematical expression, L(M), related to statistical probability analysis in equations format.. The storage complexity of the Actor network parameters is Mathematical likelihood function \( L(P_A) \) equation for statistical analysis., and Equation of inductance in L(PC) notation; describes inductance in circuit analysis context. the storage complexity of the Critic network parameters is Equation for load distribution in static system, L(M + Pᴀ + P꜀).. Therefore, the total space complexity is . Since the size of the experience pool is much larger than the size of the network parameters, the space complexity can be approximated as Mathematical expression, L(M), related to statistical probability analysis in equations format..

Therefore, the time complexity increases linearly with the number of agents N. The space complexity is mainly affected by the capacity of the experience replay pool. When training with an Intel Xeon 16-Core 3.6GHz CPU and a Tesla V100 GPU, a single complete training session takes approximately 2.4 hours, with peak memory usage of approximately 7.8GB, both below the upper limit of available resources on the experimental platform. Thus, as the number of users and the scale of tasks increase, the computational cost of the proposed model scales linearly, demonstrating good scalability and engineering-deployment feasibility, and meeting the computational needs of multi-user, multi-task, real-time offloading scenarios in smart education platforms.

While the theoretical analysis above validated the rationality of the proposed method from aspects such as task latency modeling and reinforcement learning policy optimization, certain limitations still exist. Due to the nonlinear function approximation characteristics of deep reinforcement learning models and the complex policy interactions among multiple agents, rigorously proving the global convergence and theoretical optimality of the MADDPG policy in dynamic edge computing environments remains a significant challenge. Furthermore, as the task scale and the number of agents increase, the computational complexity and scalability of the algorithm still require further systematic theoretical derivation. Therefore, this paper primarily analyzed the effectiveness of the proposed multi-latency, multi-agent task offloading strategy through mathematical modeling and experimental verification. Future research will further delve into the convergence boundary of reinforcement learning policies, theoretical analysis of complexity, and scalability in large-scale edge computing scenarios.

Access restricted. Please log in or start a trial to view this content.

Results

Effectiveness analysis of a multi-latency multi-agent task offloading model

To verify the model's performance, a corresponding experimental environment was set up. The dataset was generated using a directed acyclic graph generator and broken into training and test sets in an 8:2 ratio. A discount factor of 0.95, a learning rate of 0.0001, and a target network update rate of 0.005 were set. A priority experience replay mechanism was adopted, with an experience pool size of 1,00...

Access restricted. Please log in or start a trial to view this content.

Discussion

To verify the effectiveness and advancement of the proposed multi-latency multi-agent task offloading scheme based on MEC and MADDPG, the study analyzed and discussed it from three aspects: task execution efficiency, resource allocation capability, and network environment adaptability. In terms of task execution efficiency, traditional heuristic algorithms (such as ACO) could guarantee a certain task completion rate, but as the task scale increased, their search efficiency and global optimization ability would gradually ...

Access restricted. Please log in or start a trial to view this content.

Disclosures

The authors declare no conflicts of interest.

Acknowledgements

The research is supported by: Jilin province higher education scientific research topic, Research on the construction of quality assurance system for innovative talents training in colleges and universities, (NO. JGJX24D1060); Scientific Research Project of Jilin Provincial Department of Education, "Research on the Evaluation of Teacher Ethics Cultivation for Students Majoring in Preschool Education in Applied Undergraduate Programs", (NO. JJKH20260718SK); A project of the "14th Five-Year Plan" of Jilin Provincial Education Science in 2025. Research on the Cultivation Model of Top-notch Innovative Skilled Talents in Vocational Undergraduate Colleges, (NO. GH25712); Jilin Provincial Primary and Secondary School Teaching Research Association, "15th Five-Year Plan" 2026 Annual Project, Research on the Integration of Study Travel, School Curriculum and Labor Education in Primary and Secondary Schools from the Perspective of Jilin Regional Culture, (NO. YJKT2026-0913), funded June 2026; Jilin Provincial Vocational and Adult Education Teaching Reform Research Project, Research on the Comprehensive Education Model of "Post-Course-Competition-Certificate" Integrating Intangible Cultural Heritage Skills into Vocational Colleges, funded April 2026.

Access restricted. Please log in or start a trial to view this content.

Materials

List of materials used in this article
NameCompanyCatalog NumberComments
Conda4.10.3Anaconda Inc.Python environment management
CUDA11NVIDIA CorporationGPU acceleration for model training
DAG GeneratorCustom implementationDeveloped in this studyGeneration of task topologies and task datasets
Docker Engine20.1Docker Inc.Container deployment and service management
Docker Compose2.2Docker Inc.Multi-container orchestration
EMQX5EMQ TechnologiesMQTT message middleware
Grafana9Grafana LabsSystem monitoring and visualization
Harbor2.5CNCF ProjectPrivate container image repository
JenkinsLatest stable releaseJenkins ProjectCI/CD pipeline management
Keras2.4.3GoogleAuxiliary implementation of baseline algorithms
Matplotlib3.3.4Matplotlib Development TeamFigure generation and visualization
MinIORELEASE version used during experimentsMinIO Inc.Distributed object storage
NumPy1.19.5NumPy DevelopersNumerical computation
OpenAI Gym0.18.0OpenAIReinforcement-learning environment construction
Prometheus2.xPrometheus AuthorsResource monitoring and metric collection
Pushgateway1.xPrometheus AuthorsMetric aggregation
PyTorch1.7Meta AIMADDPG model implementation and training
Python3.8Python Software FoundationDevelopment language
RabbitMQ3.9VMwareMessage queue service
Redis6.2Redis Ltd.Caching and data storage
Samsung 970 Evo Plus SSD2 TBSamsung ElectronicsExperimental data storage
SciPy1.5.4SciPy CommunityStatistical analysis
TensorFlow2GoogleCloud-side inference environment
Tesla V100 GPU32 GBNVIDIA CorporationDeep-learning model training
Ubuntu Linux20.04 LTSCanonical Ltd.Operating system
WANem3IIT BombayNetwork emulation and latency simulation

References

  1. Badshah A et al. Towards smart education through internet of things: a survey. ACM Comput Surv. 2023;56(2):1-33.
  2. He W, Yan JL, Liu HX, Hu XY. Research on the rural teachers’ constant usage willingness toward the national smart education platform for primary and secondary schools from the perspective of digital transformation. Mod Educ Technol. 2024;34(8):59-68.
  3. Ma R, Chen X. Intelligent education evaluation mechanism on ideology and politics with 5G: PSO-driven edge computing approach. Wirel Netw. 2023;29(2):685-696.
  4. Wang Y, Wang W, Lau VK, Nakachi T, Zhang Z. Stochastic resource allocation and delay analysis for mobile edge computing systems. IEEE Trans Commun. 2023;71(7):4018-4033.
  5. Dai Z, Zhang Q, Zhao L, Zhu X, Zhou D. Cloud-edge computing technology-based internet of things system for smart classroom environment. Int J Emerg Technol Learn. 2023;18(8):79-96.
  6. Bing Z, Wang X, Dong Z, Dong L, He T. A novel edge computing architecture for intelligent coal mining system. Wirel Netw. 2023;29(4):1545-1554.
  7. Cárdenas R, Arroba P, Risco-Martín JL, Moya JM. Modeling and simulation of smart grid-aware edge computing federations. Cluster Comput. 2023;26(1):719-743.
  8. Xiao Y, Song Y, Liu J. Collaborative multi-agent deep reinforcement learning for energy-efficient resource allocation in heterogeneous mobile edge computing networks. IEEE Trans Wirel Commun. 2024;23(6):6653-6668.
  9. Mei J, Tong Z, Li K, Zhang L, Li K. Energy-efficient heuristic computation offloading with delay constraints in mobile edge computing. IEEE Trans Serv Comput. 2023;16(6):4404-4417.
  10. Acheampong A, Zhang Y, Xu X, Kumah DA. A review of the current task offloading algorithms, strategies and approach in edge computing systems. Comput Model Eng Sci. 2023;134(1):35-88.
  11. Cao H. The analysis of edge computing combined with cloud computing in strategy optimization of music educational resource scheduling. Int J Syst Assur Eng Manag. 2023;14(1):165-175.
  12. Sun Y, Wu Z, Meng K, Zheng Y. Vehicular task offloading and job scheduling method based on cloud-edge computing. IEEE Trans Intell Transp Syst. 2023;24(12):14651-14662.
  13. Zhao M, Zhang X, He Z, Chen Y, Zhang Y. Dependency-aware task scheduling and layer loading for mobile edge computing networks. IEEE Internet Things J. 2024;11(21):34364-34381.
  14. Zhang DG et al. Novel approach of computational resource allocation in fog computing based on deep reinforcement learning strategies. IEEE Internet Things J. 2025.
  15. Yang J et al. Cooperative task offloading for mobile edge computing based on multi-agent deep reinforcement learning. IEEE Trans Netw Serv Manag. 2023;20(3):3205-3219.
  16. Zhang D et al. Novel edge caching approach based on multi-agent deep reinforcement learning for internet of vehicles. IEEE Trans Intell Transp Syst. 2023;24(8):8324-8338.
  17. Hazra A, Kalita A, Gurusamy M. Meeting the requirements of Internet of Things: the promise of edge computing. IEEE Internet Things J. 2024;11(5):7474-7498.
  18. Zhang P, Wang G, Chen S, Yu Y, Chen L. The application of mobile edge computing in the space-air-ground integrated network. J Intell Comput Netw. 2025;1(1):71-97.
  19. Zhang DG et al. New method of edge computing-based data adaptive return in internet of vehicles. IEEE Trans Ind Inform. 2024;20(2):2042-2052.
  20. Vasireddy I, Ramya G, Kandi P. Kubernetes and docker load balancing: state-of-the-art techniques and challenges. Int J Innov Res Eng Manag. 2023;10(6):49-54.
  21. Rosa G, Scalabrino S, Bavota G, Oliveto R. What quality aspects influence the adoption of docker images? ACM Trans Softw Eng Methodol. 2023;32(6):1-30.
  22. Marella V. Comparative analysis of container orchestration platforms: Kubernetes vs. docker swarm. Int J Sci Res Sci Technol. 2024;11(5):526-543.
  23. Yang Y et al. Multi-agent reinforcement learning based file caching strategy in mobile edge computing. IEEE/ACM Trans Netw. 2023;31(6):3159-3174.
  24. Liu P et al. Computation rate maximization for SCMA-aided edge computing in IoT networks: a multi-agent reinforcement learning approach. IEEE Trans Wirel Commun. 2024;23(8):10414-10429.
  25. Tilahun FD, Abebe AT, Kang CG. Multi-agent reinforcement learning for distributed resource allocation in cell-free massive MIMO-enabled mobile edge computing network. IEEE Trans Veh Technol. 2023;72(12):16454-16468.
  26. Zhang X, Wang Y. DeepMECagent: multi-agent computing resource allocation for UAV-assisted mobile edge computing in distributed IoT system. Appl Intell. 2023;53(1):1180-1191.
  27. Jiang L, Wei R, Wang D. UAVs rounding up inspired by communication multi-agent depth deterministic policy gradient. Appl Intell. 2023;53(10):11474-11489.
  28. Lotfy A, Chaoui H, Kandidayeni M, Boulon L. Enhancing energy management strategy for battery electric vehicles: incorporating cell balancing and multi-agent twin delayed deep deterministic policy gradient architecture. IEEE Trans Veh Technol. 2024;73(11):16593-16607.
  29. Rajasekhar N, Radhakrishnan TK, Samsudeen N. Decentralized multi-agent control of a three-tank hybrid system based on twin delayed deep deterministic policy gradient reinforcement learning algorithm. Int J Dyn Control. 2024;12(4):1098-1115.
  30. Goto T, Kizumi Y, Iwasaki S. Design of reward function on reinforcement learning for automated driving. IFAC-PapersOnLine. 2023;56(2):7948-7953.
  31. Zhang J et al. New multi-user computation unloading method of edge computing based on improved pelican optimization control strategy for smart city. J Netw Comput Appl. 2026:104480.
  32. Zhang D et al. New method of vehicular network content distribution based on edge caching and catch fish optimization strategy. IEEE Trans Reliab. 2025.
  33. Zhang J, Zhang DG, Chen XB, Zhang T, Wang S. UAV-assisted geo-edge routing protocol for internet of vehicles based on reinforcement learning strategy. IEEE Trans Veh Technol. 2026.

Access restricted. Please log in or start a trial to view this content.

Reprints and Permissions

Explore More Articles

Multi-Agent SystemsDeep Deterministic PolicyMulti-Latency SchedulingResource OptimizationDirected Acyclic GraphCloud Edge CollaborationTask Dependencies