Cocktail Edge Caching: Ride Dynamic Trends of Content Popularity with Ensemble Learning

Tongyu Zong, Chen Li, Yuanyuan Lei, Guangyu Li, Houwei Cao, Yong Liu · DOI

Abstract

Edge caching will play a critical role in facilitating the emerging content-rich applications. However, it faces many new challenges, in particular, the highly dynamic content popularity and the heterogeneous caching configurations. In this paper, we propose Cocktail Edge Caching (CEC), that tackles the dynamic popularity and heterogeneity through ensemble learning. Instead of trying to find a single dominating caching policy for all the caching scenarios, we employ an ensemble of constituent caching policies and adaptively select the best-performing policy to control the cache. We develop a deep reinforcement learning agent that adaptively combines base caching policies according to their virtual hit ratios on parallel virtual caches. Through extensive experiments driven by real content requests, we demonstrate that CEC not only consistently outperforms all single policies, but also improves the robustness of them.

Introduction: The Volatility of the Edge

Traditional caching policies like Least Recently Used (LRU) and Least Frequently Used (LFU) were designed for stable, stationary traffic. However, at the network edge, traffic patterns are highly non-stationary and volatile due to small user populations and the rapid rise of viral content. Edge caches are also heterogeneous, varying in buffer size and content types. No single static policy can dominate all scenarios. The challenge lies in identifying which policy to use and when to switch to maintain optimal performance.

Methods: The Cocktail Edge Caching (CEC) Framework

The authors propose Cocktail Edge Caching (CEC), a two-level hierarchy that treats caching policies as "ingredients" in a dynamic mix:

  1. Base Policies (The Ingredients): The ensemble includes variations of LFU and LRU using sliding windows (LFU-$\Delta$, LRU-$n$) and a novel LSTM-Int policy. LSTM-Int uses a Long Short-Term Memory network to predict the inter-arrival time of the next request for specific content.
  2. DRL Agent (The Mixer): A Double Deep Q-Network (DDQN) agent decides which policy controls the primary cache.
The CEC Architecture featuring the DRL agent selecting policies based on virtual cache hit ratios.

To manage the massive state space of a cache, the DRL agent monitors "virtual caches"—shadow versions of the cache running each base policy—and uses their hit ratios as input features. This allows the agent to remain lightweight and responsive. The agent is trained using an "oracle" (the Farthest-In-Future algorithm) to learn which policy most closely mimics perfect foresight.

Key Results and Insights

The framework was evaluated using large-scale, real-world video request traces from major streaming platforms. The results demonstrate that CEC successfully exploits the complementary strengths of LFU (robust for stable popularity) and LRU/LSTM (better for sudden bursts).

Cumulative hit ratio vs. cache size for prefix length 18, showing CEC outperforming base policies.
  • Superior Performance: CEC consistently achieved higher hit ratios than any single base policy across all tested scenarios. The most significant gains—up to 19% improvement over traditional LFU—occurred in smaller, more volatile subnets.
  • Robustness: Even when advanced predictors like LSTM-Int performed well, CEC improved the hit ratio by an additional 2-4%, proving its ability to "ride the trends" effectively.
  • Efficiency: With an inference time of approximately 4.12 ms, CEC is practical for real-time deployment in edge routers.

Conclusion

Cocktail Edge Caching successfully addresses the challenges of dynamic content popularity at the network edge. By adaptively mixing diverse caching policies through reinforcement learning and virtual cache monitoring, CEC provides a robust and high-performing solution that generalizes across different caching scenarios with low overhead. Future work may explore incorporating contextual features like time-of-day or social trends to further enhance the agent's predictive capabilities.

Summary updated

BibTeX
@misc{zong2021cocktail,
  author = {Tongyu Zong and Chen Li and Yuanyuan Lei and Guangyu Li and Houwei Cao and Yong Liu},
  title = {{Cocktail Edge Caching: Ride Dynamic Trends of Content Popularity with Ensemble Learning}},
  year = {2021},
  eprint = {2101.05885},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2101.05885},
}
Figure