NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Dynamic Function Allocation in Edge Serverless Computing Networks

Shuo Li, Ejder Baştuǧ, Catello Di Martino, Marco Di Renzo2023

Abstract

Edge serverless computing has been widely used in mobile and web applications thanks to its simplicity and cost efficiency of network resource management. Serverless functions, event-driven and often stateless, are deployed on edge servers to reduce the latency caused by data transfer and the workload on cloud servers. However, in many edge serverless application scenarios, such as in IoT networks, the network is usually hierarchical, with limited edge storage and computational capacity, and requests received by different edge nodes might be heterogeneous and time-varying. The function deployment policy becomes a key issue in achieving guaranteed network performances. In this paper, we focus on function allocation policy in edge serverless computing networks to help edge nodes dynamically choose the functions to deploy based on incoming requests, aiming to reduce latency and minimize request outage rate. A Deep Deterministic Policy Gradient (DDPG)-based function allocation algorithm is proposed for a multi-tier edge-serverless computing scenario where a set of functions are deployed to the edge nodes strategically. Simulation results show that our proposed method can reduce the latency of requests while also minimizing the outage rate.

Introduction

Serverless computing, or Function-as-a-Service (FaaS), is increasingly shifting from centralized data centers to the network edge. By deploying functions on smaller servers closer to end-users—such as IoT gateways or 5G base stations—latency can be significantly reduced. However, edge nodes face severe resource constraints in terms of storage and computational capacity. Managing these resources effectively requires solving three primary challenges: mitigating "cold starts" (delays when a function is not pre-loaded), handling hardware heterogeneity across different network tiers, and adapting to dynamic, time-varying user demand.

System Architecture

The proposed framework utilizes a three-tier hierarchical network consisting of Small Edge Servers (SEs), Intermediate Edge Servers (IEs), and a central Cloud Server. In this model, incoming requests are first handled by SEs. If an SE lacks the required function or is overloaded, the request is offloaded to an IE, and ultimately to the Cloud if necessary.

Figure 4: System architecture of the multi-tier edge serverless computing network, showing request flows between users, edge servers, and the central cloud.

This hierarchy allows for flexible resource management but introduces complexity in deciding which functions should be "warmed up" at each tier to minimize latency and prevent request drops (outages).

DDPG-based Function Allocation

To address the dynamic allocation problem, the authors propose a Deep Reinforcement Learning (DRL) approach using the Deep Deterministic Policy Gradient (DDPG) algorithm. DDPG is an Actor-Critic model designed for continuous action spaces.

Figure 5: The DDPG-based actor-critic framework used for dynamic function allocation, featuring online and target networks for both policy (actor) and value (critic) estimation.

Innovation: Continuous Action Mapping

A key innovation in this work is the transformation of the discrete function selection problem into a continuous optimization task. The DDPG agent outputs continuous values between 0 and 1, which are then mapped to specific function deployment decisions. This approach allows the model to converge more efficiently than traditional discrete Q-learning methods.

Reward Mechanism

The agent's reward function is designed to prioritize system stability. While it is rewarded for reducing latency, it receives a zero reward if any request is dropped. This "all-or-nothing" penalty for outages forces the AI to prioritize maintaining a zero-outage rate even under heavy workloads.

Performance Evaluation

The model was tested in a simulated environment with 20 unique functions following a Zipf popularity distribution. The DDPG approach was compared against "Greedy" and "Global Popularity" baselines.

  • Outage Rate: While baseline strategies saw outage rates rise to 10-15% under heavy loads, the DDPG method maintained a 0% outage rate across all tested arrival rates.
  • Latency: DDPG consistently provided lower latency as network congestion increased. Interestingly, at very high request rates, average latency decreased slightly because the high volume kept more functions in a "warm" state, a phenomenon the DDPG agent successfully exploited.

Conclusion

The DDPG-based allocation policy demonstrates superior performance in managing the limited resources of edge serverless networks. By strategically caching functions and anticipating demand, the model ensures low latency and high reliability. Future work will explore scaling this approach to handle thousands of functions and integrating multi-agent DRL for joint optimization of power and compute resources.

Summary updated

BibTeX
@misc{li2023dynamic,
  author = {Shuo Li and Ejder Baştuǧ and Catello Di Martino and Marco Di Renzo},
  title = {{Dynamic Function Allocation in Edge Serverless Computing Networks}},
  year = {2023},
  doi = {10.1109/globecom54140.2023.10436755},
}
Figure