Adaptive Caching via Deep Reinforcement Learning.

Alireza Sadeghi, Gang Wang, Georgios B. Giannakis

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.

Introduction

Caching popular content at the network edge—closer to the end-user—is a primary strategy for reducing latency and saving bandwidth in modern networks. However, real-world networks are inherently hierarchical. For example, a fog server (parent node) might serve multiple edge servers or base stations (leaf nodes). Optimizing caching in this environment is challenging due to the complex dependencies between nodes, highly dynamic user requests, and the "curse of dimensionality" inherent in massive file catalogs.

Hierarchical network architecture showing the central parent node and distributed leaf nodes.

This paper introduces a deep reinforcement learning (DRL) framework for adaptive content caching in these hierarchical networks. By utilizing a two-timescale approach and a scalable Deep Q-Network (DQN), the system allows parent nodes to implicitly learn and adapt to both the dynamic popularity of files and the unknown caching policies of their leaf nodes.

Methodology

To tackle the complexities of hierarchical caching, the problem is formulated as a Markov Decision Process (MDP) solved via a novel DRL approach:

  • Two-Timescale MDP: The system operates on two distinct clocks. Leaf nodes experience rapid fluctuations in user requests and update their caches on a fast timescale ($t$). The parent node, which sees aggregated (and thus smoother) requests from all leaf nodes, makes caching decisions on a slow timescale ($\tau$).
  • Deep Q-Network (DQN): Instead of maintaining an impossibly large lookup table for RL states and actions, a neural network approximates the Q-function. The DQN takes the network's state (average requests and leaf node states) and predicts the long-term cost of caching specific files.
  • Scalability via Hyper-DQN: To handle massive file catalogs, the authors introduce a "Hyper-DQN" architecture. This splits the file catalog into $K$ smaller groups, running $K$ DQNs in parallel to output predicted costs for all files efficiently.
The two-timescale framework: leaf nodes operate on fast time slots (t) while the parent node operates on slow time slots (τ).

Key Insights and Results

The DRL agent demonstrates that implicit coordination is possible; the parent node does not need explicit knowledge of the specific caching algorithms (e.g., LRU, FIFO) running on leaf nodes. By observing aggregated request states, the agent implicitly learns to adapt to leaf node behavior.

Numerical tests using simulated synthetic datasets (where file requests follow Markov processes) yielded several key findings:

  • Superior Cost Reduction: In simulations with up to 1,000 files and 1,000 leaf nodes, the DRL policy consistently achieved lower costs compared to standard baselines like Least Recently Used (LRU) or Least Frequently Used (LFU).
  • Learning and Adaptation: While heuristic policies like LRU may perform slightly better initially, the DRL agent quickly surpasses them as it learns the underlying popularity dynamics.
  • Improved Scaling: Performance actually improves as the number of leaf nodes increases. Aggregating data from more nodes smooths out popularity fluctuations, making the environment more predictable for the neural network.

Conclusion

The proposed DRL framework offers a scalable, adaptive solution for hierarchical network caching. By leveraging timescale separation and deep learning, parent nodes can optimize storage decisions without prior knowledge of leaf node policies. Future work may involve exploring multi-armed bandit learning for unknown delays and using Recurrent Neural Networks (RNNs) to better capture complex spatio-temporal request sequences.

Summary updated

BibTeX
@misc{sadeghi2019adaptive,
  author = {Alireza Sadeghi and Gang Wang and Georgios B. Giannakis},
  title = {{Adaptive Caching via Deep Reinforcement Learning.}},
  year = {2019},
  eprint = {1902.10301},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1902.10301},
}
Figure