Deep Reinforcement Learning for Adaptive Caching in Hierarchical Content Delivery Networks.

Alireza Sadeghi, Gang Wang, Georgios B. GiannakisIEEE Trans. Cogn. Comm. & Networking 2019 · DOI

Abstract

Caching is envisioned to play a critical role in next-generation content delivery infrastructure, cellular networks, and Internet architectures. By smartly storing the most popular contents at the storage-enabled network entities during off-peak demand instances, caching can benefit both network infrastructure as well as end users, during on-peak periods. In this context, distributing the limited storage capacity across network entities calls for decentralized caching schemes. Many practical caching systems involve a parent caching node connected to multiple leaf nodes to serve user file requests. To model the two-way interactive influence between caching decisions at the parent and leaf nodes, a reinforcement learning framework is put forth. To handle the large continuous state space, a scalable deep reinforcement learning approach is pursued. The novel approach relies on a deep Q-network to learn the Q-function, and thus the optimal caching policy, in an online fashion. Reinforcing the parent node with ability to learn-and-adapt to unknown policies of leaf nodes as well as spatio-temporal dynamic evolution of file requests, results in remarkable caching performance, as corroborated through numerical tests.

Problem Statement: The Challenge of Hierarchical Caching

In modern Content Delivery Networks (CDNs) and 5G cellular architectures, caching popular files at the "edge" (closer to users) saves bandwidth, reduces latency, and smooths out peak traffic. These networks are inherently hierarchical: multiple edge servers (leaf nodes) connect to a higher-level fog server or gateway (the parent node).

Hierarchical network architecture showing the relationship between the cloud, central node, and leaf nodes.

If a user requests a file and the leaf node doesn't have it, the request is passed up to the parent node. If the parent doesn't have it, it must be fetched from the cloud at a high cost. Designing an optimal caching policy for the parent node is difficult due to three main challenges:

  1. Networked Interactions: The parent's optimal cache depends heavily on leaf node caching, but leaf node policies are often unknown.
  2. Complex Dynamics: File popularity changes dynamically over time and space.
  3. Curse of Dimensionality: Tracking request history and making binary cache decisions for thousands of files creates an impossibly large state space for traditional optimization.

Proposed Methodology: Two-Timescale DRL

To tackle this, the authors formulate the problem as a Markov Decision Process (MDP) and propose a two-timescale Deep Reinforcement Learning (DRL) approach.

Two-Timescale Operation

Leaf nodes experience rapid fluctuations in user requests, making caching decisions on a fast timescale (e.g., every 1-2 minutes). The parent node sees aggregated, smoothed-out requests and makes decisions on a slow timescale (e.g., every 4-5 minutes). This separation allows the parent node to focus on long-term trends rather than local noise.

Deep Q-Network (DQN) and Hyper-Architecture

The parent node uses a DQN to approximate the "Q-function," predicting the long-term cost of caching specific files based on the current state of network requests.

Deep Q-network architecture used to learn the optimal caching policy in an online fashion.

To solve the curse of dimensionality, the authors introduce a "hyper" architecture. Instead of one massive neural network, the file catalog is split into smaller groups. Multiple DQNs run in parallel to predict costs, and a final decision module aggregates these to choose the best files to cache. The model also employs experience replay and target networks to stabilize training and prevent runaway feedback loops.

Key Insights

  • Implicit Policy Learning: The parent node implicitly learns to adapt to leaf nodes' behavior (e.g., LRU, LFU) purely by observing the cost of missed requests over time, without needing explicit programming of their rules.
  • Aggregation Smooths Learning: DRL performance improves when connected to more leaf nodes. Aggregating requests from many sources smooths out random local noise, making underlying popularity trends easier for the neural network to predict.
  • Scalability: Partitioning the catalog into parallel, smaller DQNs successfully scales the system to handle large file libraries without sacrificing decision quality.

Results and Performance

The proposed DRL approach was tested against traditional caching algorithms like Least Recently Used (LRU), Least Frequently Used (LFU), and First-In-First-Out (FIFO). While traditional methods perform well initially, the DRL approach quickly surpasses them as it learns the underlying Markovian popularity dynamics. In simulations with 1,000 files and 1,000 leaf nodes, the DRL policy achieved a cumulative cost reduction closely approaching the theoretical "non-causal optimal policy"—an upper bound assuming perfect knowledge of future requests.

Limitations and Future Directions

The primary limitation is the reliance on synthetic Markovian data, whereas real-world traffic may exhibit burstiness and heavy-tailed distributions. Future work could explore multi-armed bandit online learning for unknown delays and the use of Recurrent Neural Networks (RNNs) to better capture sequential, spatio-temporal request patterns.

Summary updated

BibTeX
@article{sadeghi2019deep,
  author = {Alireza Sadeghi and Gang Wang and Georgios B. Giannakis},
  title = {{Deep Reinforcement Learning for Adaptive Caching in Hierarchical Content Delivery Networks.}},
  journal = {IEEE Trans. Cogn. Comm. \& Networking2019},
  year = {2019},
  doi = {10.1109/tccn.2019.2936193},
}
Figure