aiqbench analysis
This paper addresses a theoretical gap in caching algorithms by proving that existing hybrid LRU/LFU methods can suffer linear regret, then introducing H-MC to guarantee sublinear performance while managing switching costs. The work sits at the intersection of online learning theory and network architecture, offering rigorous mathematical bounds for memory management systems.
No-Regret Mixing of LRU and LFU with Optimal Switching Cost
From arXiv
Full textCaching systems often rely on simple eviction policies such as Least Recently Used (LRU) and Least Frequently Used (LFU), which perform well in complementary request regimes. Recent policies such as LeCar and Cacheus combine LRU and LFU using ideas from the experts problem in online learning. Specifically, upon a miss, they randomize between the two eviction rules using probabilities derived from scores updated by tracking the history of past evictions.
While these policies exhibit strong empirical performance, it remains unclear whether they are guaranteed, on every request sequence, to perform asymptotically as well as the better of LRU and LFU, i.e., whether they achieve sublinear regret with respect to this benchmark. We first show that LeCar suffers linear regret against an oblivious adversary, even with unbounded history. We then propose H-MC, a Hedge-based mixture of virtual LRU and LFU caches that preserves Hedge's selection probabilities, and hence its regret guarantees, while minimizing the switching cost among all joint selection rules with these marginals.
Full text under the publisher's open licence · 163 words