Abstract
In any caching system, the admission and eviction policies determine which contents are added and removed from a cache when a miss occurs. Usually, these policies are devised so as to mitigate staleness and increase the hit probability. Nonetheless, the utility of having a high hit probability can vary across contents. This occurs, for instance, when service level agreements must be met, or if certain contents are more difficult to obtain than others. In this paper, we propose utility-driven caching, where we associate with each content a utility, which is a function of the corresponding content hit probability. We formulate optimization problems where the objectives are to maximize the sum of utilities over all contents. These problems differ according to the stringency of the cache capacity constraint. Our framework enables us to reverse engineer classical replacement policies such as LRU and FIFO, by computing the utility functions that they maximize. We also develop online algorithms that can be used by service providers to implement various caching policies based on arbitrary utility functions.
Introduction
Traditional network caching relies on heuristic policies like Least Recently Used (LRU) or First-In-First-Out (FIFO) to maximize overall hit probability. While effective for general use, these policies treat all content as having equal value. In a modern internet landscape characterized by heterogeneous content types and strict Service Level Agreements (SLAs), this "one-size-fits-all" approach is increasingly inadequate. A hit on a high-bandwidth video stream may be significantly more valuable than a hit on a small text file, yet standard heuristics cannot differentiate between them.
This paper introduces a unified framework that reimagines caching as a formal utility maximization problem. By treating hit probability as a resource to be allocated among competing content items, we can define specific utility functions for different contents and derive optimal eviction policies. This approach not only allows for the design of new, fairness-aware policies but also provides a theoretical lens to "reverse engineer" and understand the implicit objectives of classic heuristics.
The Utility-Driven Caching Framework
The core of our approach is the assignment of a utility function $U_i(h_i)$ to each content item $i$, where $h_i$ represents its hit probability. The global objective is to maximize the aggregate utility $\sum U_i(h_i)$ subject to the physical cache capacity $B$.
TTL Caches as the Control Mechanism
To implement this framework, we utilize Time-To-Live (TTL) caches as fundamental building blocks. In a TTL cache, an item is evicted once its associated timer expires. By dynamically adjusting the timer $t_i$ for each item, the system can precisely control the resulting hit probability $h_i$. This provides a more granular and mathematically tractable control mechanism than traditional list-based eviction.
Reverse Engineering Classic Policies
A significant contribution of this work is the demonstration that classic policies are actually optimal solutions for specific utility functions. For instance, we prove that LRU maximizes a utility function involving the logarithmic integral of the hit probability, weighted by the request rate. This reveals that the "characteristic time" ($T$) used in traditional cache analysis is essentially the Lagrange multiplier of the capacity constraint—the "shadow price" of cache space.
Online Optimization Algorithms
Since request rates ($\lambda_i$) are often unknown and non-stationary, we developed three decentralized online algorithms—Dual, Primal, and Primal-Dual—to solve the optimization problem in real-time. These algorithms employ gradient-based updates to adjust timers based on observed cache hits and misses. Using Lyapunov stability theory, we prove that these algorithms are globally and asymptotically stable, ensuring convergence to the optimal state regardless of initial conditions.
Evaluation and Results
We validated our framework through synthetic simulations using a Zipf-distributed popularity model ($s=0.8$) and Poisson request processes. The results demonstrate that our online algorithms can perfectly emulate the performance of standard policies and successfully implement new fairness models.
As shown in the figure above, the framework accurately reproduces the hit probability distributions of LRU and FIFO. Furthermore, it enables the implementation of "Proportionally Fair" and "Max-Min Fair" policies. Under Max-Min fairness, the system automatically equalizes hit probabilities across all content, effectively protecting the "long tail" of less popular items that might otherwise be starved of cache space.
Discussion and Future Work
By porting the Network Utility Maximization (NUM) framework from congestion control to caching, we provide a robust theoretical foundation for cache design. Our timer-based control allows for decentralized, local management that achieves global optimality.
However, challenges remain. Some algorithms require accurate estimation of request arrival rates, and errors here can impact performance. Additionally, managing unique timers for millions of files in a large-scale Content Delivery Network (CDN) may introduce computational overhead. Future research will explore grouping content into utility classes and extending this framework to hierarchical networks of caches.
Summary updated