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

Cost Optimization for Serverless Edge Computing with Budget Constraints using Deep Reinforcement Learning

Chen Chen 0073, Peiyuan Guan, Ziru Chen, Amir Taherkordi, Fen Hou, Lin X. Cai · DOI

Introduction

Serverless computing, or Function-as-a-Service (FaaS), has revolutionized cloud application development by offering a "pay-as-you-go" model that abstracts away infrastructure management. However, this flexibility introduces significant cost unpredictability, which can be a major barrier for organizations operating under strict financial constraints. The challenge intensifies when serverless functions are deployed at the network edge. Unlike centralized cloud environments, edge computing is characterized by heterogeneous hardware, limited resources, and complex network topologies, making efficient function scheduling a critical yet difficult task.

The Edge Serverless Challenge

Scheduling serverless functions at the edge involves balancing three primary cost components:

  1. Switching Costs: The overhead associated with "cold starts" when initializing new containers.
  2. Running Costs: The actual resource consumption (CPU and memory) on the edge nodes.
  3. Routing Costs: The expense of transferring data between the user's location and the processing node.

Finding an optimal scheduling policy that minimizes these costs while adhering to a strict user-defined budget is an NP-hard problem. Traditional mathematical solvers, while accurate, are computationally expensive and cannot meet the real-time requirements of dynamic edge environments where requests arrive in milliseconds.

Methodology: From ILP to DRL

To address this, the researchers first formulated the scheduling challenge as an Integer Linear Programming (ILP) problem. To make the problem solvable in real-time, they transitioned the model into a Markov Decision Process (MDP), allowing for the application of Deep Reinforcement Learning (DRL).

Two specific DRL-based scheduling policies were developed:

  • DFaaS (Deep FaaS): Utilizes Deep Q-Networks (DQN) to estimate the expected reward (minimum cost) for specific state-action pairs.
  • PFaaS (Proximal FaaS): Employs Proximal Policy Optimization (PPO), a policy gradient method known for its stability and efficiency in high-dimensional state spaces.

In this framework, the DRL agent observes the current state of the edge network—including remaining node capacity, currently hosted functions, and incoming request parameters—and decides which node should handle the request and whether a new container instance is required.

Experimental Setup

The framework was validated using a combination of real-world datasets to ensure practical relevance:

  • Network Topology: The EUA dataset, which maps 125 edge nodes across the Melbourne CBD area.
  • Workload Traces: The Huawei serverless dataset, containing invocation data for 200 functions over a 141-day period.
  • Hardware Heterogeneity: Nodes were modeled with varying CPU frequencies (2.4 to 3.6 GHz) and memory capacities (16 to 24 GB) to simulate a realistic edge ecosystem.

Key Results and Insights

The DRL-based approach demonstrated significant advantages over traditional optimization methods:

  • Near-Optimal Performance: Both DFaaS and PFaaS achieved deployment costs within a factor of 1.03 (only 3% higher) of the results produced by the Midaco ILP solver.
  • Extreme Computational Efficiency: The DRL models made scheduling decisions for a full day's worth of requests in approximately 1.3 to 1.5 seconds. In contrast, the ILP solver required over 24 hours to reach a solution. This represents a five-order-of-magnitude improvement in speed.
  • Superior Constraint Handling: Interestingly, the DRL models achieved a higher acceptance rate (the percentage of requests successfully scheduled within budget and capacity) than the ILP solver. This suggests that learning-based approaches are better at navigating the complex constraints of high-dimensional spaces than traditional stochastic search methods.

Conclusion

This research demonstrates that Deep Reinforcement Learning is a highly effective tool for managing serverless functions at the edge. By treating budget constraints as a hard requirement rather than a soft penalty, the DFaaS and PFaaS frameworks provide a reliable way for organizations to leverage the benefits of edge computing without the risk of cost overruns. The massive speedup in decision-making time makes these DRL models ideal for real-time, online deployment in dynamic network environments. Future work will focus on multi-objective optimization (including latency and energy) and testing these models on commercial serverless platforms.

Summary updated

BibTeX
@inproceedings{chen2025cost,
  author = {Chen Chen and Peiyuan Guan and Ziru Chen and Amir Taherkordi and Fen Hou and Lin X. Cai},
  title = {{Cost Optimization for Serverless Edge Computing with Budget Constraints using Deep Reinforcement Learning}},
  booktitle = {ICC},
  year = {2025},
  doi = {10.1109/icc52391.2025.11162063},
}
Figure