Depth-Specific Memory for Partial Video Caches

Edge caches for video increasingly store pieces of videos rather than whole files, because most viewers quit early. Measured on 13 million requests, 73% of sessions ended before the 30-minute mark, even though only 43% of requests were for videos shorter than that (Leveraging Video Viewing Patterns for Optimal Content Placement). To decide which pieces to keep, a cache needs a retention curve for each video: the probability that a session which fetched chunk $j$ goes on to fetch chunk $j+1$. Every partial-caching scheme in the literature either assumes this curve is known and fixed, or ignores it. Real curves are not fixed. They change when a video goes viral to a different audience, when the time of day shifts the device mix, and when client players change how far ahead they buffer.

The proposal rests on one observation. Different depths of the same video need different amounts of memory. Early chunks are seen by nearly every session, so their continuation rate can be re-estimated from a short, recent history. Deep chunks are reached by few sessions, so they need a long history just to get a usable estimate, and that history goes stale. We propose to give each depth, and separately each video's request rate, its own look-back window, chosen online by a statistical test for drift. The cache's placement decisions then come from these estimates. The claim is that one shared timescale is wrong in a predictable way: it is too noisy for the tail of a video and too sluggish for its head. Separating the timescales should beat both fixed-curve partial caching and whole-file adaptive caching on hit rate and backhaul traffic when viewer behavior changes.

Core Claim

An edge cache that estimates fetch-retention per chunk depth, with an adaptive look-back window at each depth, will match fixed-curve partial caching when behavior is stationary. It will clearly outperform it, and outperform any single shared window or tuned decay rate, when retention and popularity drift at different rates.

The quantity the cache needs is fetch survival, not viewing survival. A request for chunk $j$ that arrives at the edge is what consumes cache space, whether or not the viewer eventually watches it. Players that buffer ahead fetch past the point where viewers quit. Post-Streaming Wastage Analysis found that 25–52% of downloaded data is never viewed, and that skipping causes roughly twice as much waste as early departure. Two consequences follow. First, the estimation problem is fully observed at the edge: every session's sequence of chunk requests is a complete label, which removes the delayed-feedback objection raised against discrepancy-based methods. Second, deploying a wastage-reducing player such as BE-ABR (Reducing Traffic Wastage in Video Streaming via Bandwidth-Efficient Bitrate Adaptation) is itself a sudden drift in fetch retention, which an offline-fit curve cannot follow.

Mechanism

For video $i$ we write $\lambda_i$ for the current session arrival rate and $h_i(k)$ for the probability that a session fetching chunk $k$ also fetches chunk $k+1$. The expected request rate for chunk $j$ is

$$ v_{ij} = \lambda_i \prod_{k<j} h_i(k), $$

and the cache keeps the chunks with the highest $v_{ij}$ per byte, up to its capacity. This greedy, popularity-ordered rule follows the Popularity-based Cache Allocation of Audience-Retention-Rate-Aware Caching and Coded Video Delivery. That paper found the greedy rule nearly matches its convex-optimal allocation. We reuse that placement rule unchanged; it supplies the method for placement, not the contribution. That work assumes $h_i$ is stationary and known. We estimate it online.

Each $h_i(k)$ and each $\lambda_i$ gets its own window, sized by the doubling discrepancy rule of An Adaptive Algorithm for Learning with Unknown Distribution Drift. The rule compares the most recent $r$ observations against the preceding $r$. It doubles $r$ for as long as the difference stays within a confidence bound of order $\sqrt{\log(1/\delta)/r}$, where $\delta$ is the allowed failure probability, and it stops at the first violation. That paper shows the resulting error is within a constant factor of an oracle that knows the drift size. For depth $k$, "observations" are the sessions that reached depth $k$. The window is therefore counted in sessions, not in seconds, and deep chunks automatically get longer wall-clock memory. This is the depth-specific ingredient. Because continuation rates are Bernoulli, the noise scale needed by the bound is known. That sidesteps the unknown-variance dependence noted for A Stability Principle for Learning Under Nonstationarity and FITNESS.

Videos with few sessions shrink their deep-depth estimates toward a pooled curve from similar videos. This borrows the template-prior idea of TARPA, which averages the retention curves of the $k=5$ most similar videos, but here the template itself is recomputed with an adaptive window. Memory stays bounded by storing per-depth counts at power-of-two checkpoints rather than raw sessions. This costs $O(\log T)$ counters per depth, where $T$ is the number of sessions seen so far, and addresses the memory concern raised for historical buffering at edge devices.

How this relates to the closest work: Accurate Learning or Fast Mixing? motivates the proposal. It proves that whole-file caches trade steady-state accuracy against how quickly they adapt, and it introduces A-LRU with a parameter $\beta$ whose automatic tuning it leaves open. We automate the trade-off and apply it to chunks rather than whole files. Soft-TTL makes the cached fraction of a file decay with time since its last request, but it assumes the request statistics are known and stationary and treats the fraction as uniform bytes. gLRU admits one chunk per request and evicts single chunks, and its authors acknowledge it is slow to react to viral spikes. The multi-server edge scheme of A More Refined Mobile Edge Cache Replacement Scheme hard-codes a 15% prefix and two fixed update frequencies. Our per-depth windows can be read as a learned, continuous replacement for that two-speed design. The neuroscience findings that sensory systems integrate signals over short windows and context over long ones (Maravall et al.) only inspire the split between timescales. We do not rely on them as evidence.

Research Program

The program has three parts.

The first part is an analysis. In a single-video model with piecewise-constant drift, we bound the excess miss rate of per-depth windows against one shared window. The expected result is that the shared window's error grows with how unequal the session counts are across depths, while the per-depth error does not. This follows from the variance-plus-drift bias decomposition applied to each depth with its own sample count.

The second part is a trace-driven simulator. It replays session arrivals and records each session's last fetched chunk, under several player buffering policies.

The third part is the evaluation, described in the closing section, which mixes real popularity dynamics, real retention shapes, injected retention drift, and a real swipe workload.

Baselines

The naive reference point is whole-file LRU, which most of the cited partial-caching papers compare against. On their own benchmarks, chunk-level methods beat it by large margins: gLRU reported a 32% median reduction in stall duration (Generalization of LRU), and the multi-server edge scheme reported up to 35.3% less backhaul traffic (A More Refined Mobile Edge Cache Replacement Scheme). It anchors the scale of every result.

The strongest existing partial-caching competitors are gLRU, gLRU(d), and the fixed-15%-prefix scheme with two update speeds. All are reimplemented in the same simulator with identical cache sizes and chunk sizes. gLRU(d)'s acceleration parameter receives the same tuning budget as our confidence level, chosen on a held-out trace segment.

The strongest whole-file adaptive competitor is A-LRU, with $\beta$ tuned the same way. Its paper reports that A-LRU beats LRU, 2-LRU, and ARC on the ~611,000-request YouTube trace, but no reported numerical hit rate was found on Lacuna for A-LRU. We will therefore reproduce it rather than quote a figure.

The fixed-curve oracle is greedy placement with retention curves fit offline on the full trace. This is the strongest form of the stationary assumption made by the coded-caching paper. Beating it under drift, while matching it within one percentage point of byte hit rate when there is no drift, is the success criterion. Beating gLRU and A-LRU on backhaul bytes by a margin larger than the variation across random seeds is the second criterion.

The ablation that isolates the key ingredient is identical machinery with a single adaptive window shared across all depths and the request rate. If this ablation matches the full method, the central claim fails.

Why not just…?

Why not just use a per-chunk exponentially weighted moving average with a tuned decay? This is the real threat. We will give it a stronger budget than our own method: a decay rate tuned per depth bucket with oracle access to the test trace, plus a bank of several decays mixed together, which produces the heavy-tailed memory described in Danskin et al.. FITNESS and SAWS each found every fixed window worse than adaptive selection on their own tasks, but caching is a different setting. If an untuned bank of moving averages matches our method on the drift-schedule sweep, the honest conclusion is that per-depth separation matters and the statistical window test does not. The note would then be reframed around that finding.

Why not just let gLRU's chunk-at-a-time admission track retention implicitly? Incremental admission does learn depth popularity from the stream of requests. It does so at a single, implicit timescale, and its authors concede it lags on viral spikes. The comparison under injected retention shifts settles whether that implicit tracking is enough.

Why not just re-profile curves offline periodically, as PSWA does for player parameters? Periodic refits are a fixed window with a deployment delay added. We include a nightly refit variant. Drift caused by a sudden change in client player policy is the case where it should fail, and we test that case explicitly.

Proposed Experiments

Popularity dynamics come from the ~611,000-request YouTube trace used in Accurate Learning or Fast Mixing?. Each video is assigned a retention curve drawn from the 85 per-second YouTube Studio curves in the TARPA corpus.

Retention drift is injected in three ways. In the first, curves are swapped at random change points. In the second, curves drift slowly toward earlier drop-off. In the third, a fraction of clients is switched from fetch-ahead buffering to BE-ABR-style pauses between chunk requests, which changes fetch retention without changing viewing. Real retention shapes and real popularity are both present, but the drift is synthetic, and we state this limitation plainly. The short-video multi-queue simulator from Bandwidth-Efficient Multi-video Prefetching supplies a regime with very fast swiping, where every session is shallow. If the AT&T video-on-demand trace, which records viewed duration, is obtainable, it provides the only real-drift test. Our sole quantitative anchor on that trace is the reported 71% peak-bandwidth reduction of chunk-level placement over LRU.

The metrics are byte hit rate, backhaul bytes, and cache occupancy spent on chunks that are never requested again before eviction. We also report retention-estimation error per depth against the injected ground truth.

The decisive checks are three. First, whether the advantage over the shared-window ablation grows as session counts become more unequal across depths, as the analysis predicts. Second, whether the method matches the fixed-curve oracle when there is no drift. Third, whether the per-depth-tuned moving-average bank closes the gap. A positive result requires the first two checks to pass and the third gap to remain open.