TL;DR
In modern high-throughput systems, requests often arrive faster than a missed item can be fetched from backend storage—creating "delayed hits" that shatter the classic assumption that maximizing cache hit rates minimizes latency. This paper introduces the first online learning framework for delayed-hit caching that achieves "no-regret" guarantees, meaning the algorithms learn to match the best possible caching strategy over time. By valuing items based on burst structure rather than raw frequency, their new algorithms significantly reduce latency on both synthetic and real-world workloads.
What Problem Does This Paper Address?
Traditionally, caching is treated as binary: an item is either in the cache (an instant hit) or it isn't (a slow miss). Under this worldview, maximizing the hit ratio automatically minimizes user wait time.
However, in modern networks and storage systems, backend fetch latency ($Z$) is often much larger than the time between incoming requests. If a request misses at $t=3$ and takes 3ms to fetch, requests for that same item arriving at $t=4$ and $t=5$ aren't clean hits—they get stuck waiting in the queue for the in-flight fetch to finish. These are delayed hits.
While previous work tackled delayed hits using heuristics or competitive ratios (worst-case multiplicative bounds), a bounded competitive ratio doesn't prevent an algorithm from making a constant stream of additive mistakes forever. The authors ask: Can we design online learning algorithms for delayed-hit caching that achieve sublinear regret? ("No-regret" means the average difference in latency between the online learner and an omniscient hindsight baseline shrinks to zero over time $T$).
Doing this requires overcoming three tricky hurdles:
- Circular benchmarks: Whether a request is a delayed hit depends on what fetches are currently in flight, which depends on the algorithm's own past actions.
- Frequency isn't value: Ten isolated misses cost ten full fetch latencies. Ten requests arriving in a tight burst only trigger one fetch and nine shorter residual waits. A less frequent, non-bursty item can actually save more latency when cached than a popular, bursty one.
- Delayed admission: Even if your learning algorithm decides right now that an item belongs in the cache, you physically cannot insert it until its backend fetch finishes.
Methods
First, to stop the benchmark from depending on the learner's own actions, the authors invent an action-independent shadow fetch process. This virtual tracker simulates what fetch windows and residual latencies would occur for an uncached item purely based on the request trace and latency $Z$, giving a clean yardstick for both stationary (static regret) and shifting workloads (switching regret).
On top of this, they build two lightweight algorithms that only update the cache lazily when fetches physically complete:
- UCB-DH (for stochastic/stationary traffic): Adapts Upper Confidence Bound (UCB) bandit learning. Instead of counting raw request frequencies, it uses a sliding-window density test to detect bursts online ($O(1)$ per request) and estimates an amortized episode value—charging isolated requests full latency while spreading burst penalties across the episode.
- LA-FTPL (for adversarial traffic): Adapts Follow-The-Perturbed-Leader (FTPL), which adds random noise to cumulative losses to outsmart worst-case request sequences. Here, the authors scale the random noise specifically to the fetch latency $Z$ and prove that waiting for physical fetch completions only adds a manageable synchronization cost.
- Periodic Restarts: For changing workloads, both algorithms can be periodically reset to track shifting "hot sets."
Datasets
The authors evaluate their algorithms by replaying three traces of $10^5$ requests with induced fetch latencies (primarily capacity $K=100, Z=100$, plus a high-latency sensitivity test at $Z=1500$):
- SYN-ZIPF: A synthetic stationary trace following a Zipf distribution ($\alpha=1.2$), yielding 51.12% delayed-hit coverage.
- SYN-ADV: A synthetic adversarial trace cycling through cyclic, scan, and recovery phases to break stationary assumptions (96.55% delayed-hit coverage).
- ML-1M: The real-world MovieLens 1M timestamped request stream (5.84% delayed-hit coverage at $Z=100$, rising to 59.76% at $Z=1500$).
Key Insights and Ideas
- Classical policies fail the regret test: The authors prove mathematically that all deterministic demand-admission policies (like LRU or LFU) and even randomized competitive classics like
MARKERsuffer linear $\Omega(T)$ regret under delayed hits. One bad eviction can get amplified into a full window of delayed-hit pain. - Popularity is a trap under bursts: Ranking items by request frequency systematically overvalues bursty items, because subsequent requests in a burst already "piggyback" on the initial miss's fetch. Learning avoided latency per episode is the statistically optimal objective.
- Latency amplifies exploration cost: In standard multi-armed bandits, distinguishing two items scales with unit reward ranges. Under delayed hits, observations happen at the episode level with a maximum penalty of $C_B = Z(Z+1)/2$. The authors prove a matching lower bound showing a $C_B^2$ factor in sample complexity is statistically unavoidable.
Key Results
- Theoretical Bounds:
- For stochastic traffic, UCB-DH achieves $O(\log T)$ static regret (scaling with $C_B^2 \log T / \Delta_j$, matching their lower bound). With $B$ unknown workload shifts, periodic restarts yield sublinear $\widetilde{O}(\sqrt{TB})$-type regret.
- For adversarial traffic, LA-FTPL achieves sublinear $O(\sqrt{KT \log N (Z^2 + C_B Z)})$ shadow static regret, and $O(T^{2/3}B^{1/3}[ZK \log N(Z^2 + C_B Z)]^{1/3})$ switching regret when $B = o(T)$.
- Empirical Performance: Across SYN-ZIPF, SYN-ADV, and ML-1M, UCB-DH and LA-FTPL consistently achieve sublinear cumulative regret (flattening curves) and lower latency compared to eight baselines—including latency-aware heuristics (
LRU-MAD,LAC), competitive-ratio policies (CALA,Cadle), and deep learning methods (NeuralRank,Online-DRL), several of which still suffer nearly linear regret. As expected, LA-FTPL shines on SYN-ADV where UCB-DH's stationarity assumption is violated.
Limitations and Future Work
- Simple adaptation to shifts: To handle changing workloads, the authors rely on simple periodic restarts rather than optimal dynamic-regret techniques (like automated change-point detection). Integrating adaptive tracking with physical completion-time admission constraints is left for future work.
- Uniform item sizes: The core regret proofs assume unit-sized items. While the authors note their algorithms can swap top-$K$ selection for a 0-1 knapsack oracle to handle variable object sizes, proving regret bounds under multi-item evictions and knapsack approximation gaps remains an open problem.
Summary updated