Latency-Aware Caching with Delayed Hits: From Bursty Traffic to Pipeline Architectures

Nadav Keren (Ben Gurion University of The Negev), Gil Einziger (Ben Gurion University of The Negev), Gabriel Scalosub (Ben Gurion University of The Negev)

23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26) · Day 3 · Hot Data, Cold Data

Overview

Modern distributed object storage systems often span wide-area networks or heterogeneous cloud tiers where data retrieval latencies vary dramatically, ranging from 100 milliseconds to over 1,000 milliseconds. In such environments, cache misses are not uniform; some misses exact a much heavier latency penalty than others. This talk introduces a fundamental shift in latency-aware caching by addressing the limitations of monolithic, ad-hoc caching algorithms. The authors propose the Adaptive Pipeline Cache, a modular, plug-and-play caching architecture that combines specialized eviction policies dynamically at runtime.

Watch on YouTube · Slides

Visual summary for Latency-Aware Caching with Delayed Hits: From Bursty Traffic to Pipeline Architectures by Nadav Keren, Gil Einziger, Gabriel Scalosub
Visual summary for Latency-Aware Caching with Delayed Hits: From Bursty Traffic to Pipeline Architectures by Nadav Keren, Gil Einziger, Gabriel Scalosub

Key moments

  1. 0:00 Introduction and motivation for latency-aware caching
  2. 1:54 Introduction of the adaptive pipeline cache architecture
  3. 4:47 Factoring in delayed hits in the caching model
  4. 8:00 Introducing the LBU (least bursty used) caching policy
  5. 9:37 Experimental settings and trace analysis overview
  6. 11:24 Performance results and comparison against competitive policies
  7. 12:35 Dynamic workload adaptation with concatenated traces
  8. 15:20 Conclusion and opening for questions

Latency-Aware Caching with Delayed Hits: From Bursty Traffic to Pipeline Architectures

Speakers: Nadav Keren (Ben Gurion University of The Negev); Gil Einziger (Ben Gurion University of The Negev); Gabriel Scalosub (Ben Gurion University of The Negev)

Conference: USENIX NSDI

YouTube: https://www.youtube.com/watch?v=nfCU9Nie-iw

Overview

Modern distributed object storage systems often span wide-area networks or heterogeneous cloud tiers where data retrieval latencies vary dramatically, ranging from 100 milliseconds to over 1,000 milliseconds. In such environments, cache misses are not uniform; some misses exact a much heavier latency penalty than others. This talk introduces a fundamental shift in latency-aware caching by addressing the limitations of monolithic, ad-hoc caching algorithms. The authors propose the Adaptive Pipeline Cache, a modular, plug-and-play caching architecture that combines specialized eviction policies dynamically at runtime.

The core motivation stems from the observation that traditional caching models fail to account for delayed hits—requests that arrive for an item while it is still in transit following a previous cache miss. To tackle this, the researchers introduce both a novel architecture and a specialized eviction policy called LBU (Least Bursty Used). By organizing caching blocks into a configurable pipeline and continuously tuning their memory allocations via a lightweight hill-climbing optimization process, the system achieves consistent, state-of-the-art performance across diverse, rapidly changing workloads.

This work matters deeply for systems and machine learning infrastructure engineers operating large-scale distributed training clusters, feature stores, and inference caches. By replacing rigid, workload-specific cache designs with an adaptive pipeline, infrastructure teams can reduce average request latency, handle traffic bursts gracefully, and adapt automatically to non-stationary access patterns without manual tuning.

Background

▶ Watch: Introduction and motivation for latency-aware caching (0:00)

Caching in systems and machine learning infrastructure traditionally relies on classical models that assume instantaneous item availability. In a classical setting, once a cache miss occurs and an item is fetched, any subsequent request is treated as an instantaneous cache hit. However, in distributed storage hierarchies with remote object stores or high-latency cloud backends, fetching an item takes non-negligible time.

Prior work in latency-aware caching recognized that different items carry different access costs and fetch latencies, leading to latency-aware variants of classic policies like LRU star and LFU star. Despite these advancements, existing caching mechanisms suffer from two major structural pain points:

  1. Monolithic Design: Algorithms are built as monolithic blocks. Integrating a new signal, access pattern metric, or locality heuristic requires rewriting the cache policy from the bottom up, making extensions difficult to maintain and implement.
  2. Lack of Adaptability: Caching policies are typically static or ad-hoc, optimized for specific workloads. When production workloads shift between recency-biased, frequency-biased, and bursty patterns, static policies degrade significantly.

In distributed ML pipelines and large-scale data systems, traffic is rarely uniform. Bursty request arrivals can overwhelm standard caches, while transit delays mean that multiple requests for the same missing item arrive while the item is still being fetched from remote storage. Addressing these challenges requires an architecture that can decouple different eviction behaviors, compose them cleanly, and adapt their resource allocations at runtime.

Key Findings

▶ Watch: Factoring in delayed hits in the caching model (4:47)

The research demonstrates that decomposing caching policies into a modular pipeline significantly outperforms both static configurations and existing monolithic state-of-the-art algorithms. The primary findings and contributions include:

  • Modularity Outperforms Monoliths: By structuring the cache as a pipeline of independent blocks, the system can cleanly isolate different aspects of workload locality (recency, frequency, and burstiness) without complex algorithmic interleaving.
  • Superiority of the Adaptive Approach: An adaptive pipeline cache managed via runtime hill-climbing outperforms even the best possible static configuration for a given workload, even when that static baseline is chosen with full a priori knowledge of the trace.
  • The Power of LBU (Least Bursty Used): While LBU performs poorly as a standalone policy, placing it at the tail end of a pipeline specifically targets and captures bursty traffic that traditional recency and frequency policies miss.
  • State-of-the-Art Performance: Across 13 diverse production traces from IBM, Meta, and Twitter, the Adaptive LBU Pipeline achieves average request latencies 10% better than LRB (Learning-Based Replacement), a complex, state-of-the-art machine learning-based caching algorithm. Furthermore, it achieves the lowest standard deviation in latency across traces, demonstrating robust consistency.

Technical Deep Dive

▶ Watch: Experimental settings and trace analysis overview (9:37)

The technical foundation of this work rests on two main pillars: the Adaptive Pipeline Cache architecture and the Least Bursty Used (LBU) policy, orchestrated by a dynamic runtime adaptation mechanism.

The Pipeline Cache Architecture

The cache is composed of a predefined sequence of $N$ blocks. Each block operates according to its own unique eviction policy and is allocated a specific number of quanta, where each quantum consists of $K$ unit-sized items. The total cache size is the sum of all block allocations.

When a new item arrives at the cache, it is first offered to Block 1. Block 1 decides whether to admit the item, potentially evicting a victim item in the process. This evicted victim is then passed downstream as an input candidate to Block 2. This process cascades through the pipeline until the last block makes its decision. If the final block evicts an item, that item is fully ejected from the cache memory.

Delayed Hits Model

To model remote storage accurately, the framework formally incorporates delayed hits. When item $A$ experiences a cache miss, it enters a transit state. If a subsequent request for $A$ arrives while it is still in transit, it is classified as a delayed hit.

  • A true hit incurs zero retrieval cost (served from memory once available).
  • A cache miss incurs the full remote storage latency.
  • A delayed hit incurs an intermediate cost proportional to the remaining transit time, preventing the system from unfairly penalizing items that are already actively being fetched.

The LBU Policy and Pipeline Composition

The pipeline integrates latency-aware base blocks (LRU star and LFU star) with a specialized tail block called LBU (Least Bursty Used). LBU introduces a novel internal scoring metric tailored explicitly to capture items characterized by bursty arrival patterns. By positioning LBU at the end of the pipeline, items that escape the recency and frequency filters can be caught if they exhibit strong burstiness, effectively combining complementary behaviors that fail in isolation.

Runtime Adaptation via Hill-Climbing

To maintain optimal performance as workloads drift, the system employs a continuous hill-climbing process at runtime. This mechanism dynamically adjusts the memory allocation quanta assigned to each block in the pipeline. By periodically evaluating performance metrics and shifting allocation boundaries, the cache tracks optimal configurations without requiring manual intervention or prior workload analysis.

Experimental Setup & Results

▶ Watch: Performance results and comparison against competitive policies (11:24)

The evaluation uses a rigorous testbed comprising 13 diverse production traces sourced from enterprise and hyperscale environments (IBM, Meta, and Twitter). To simulate realistic remote storage hierarchies, these traces were augmented with real-world latency profiles measured in prior distributed storage systems, spanning latencies from 100 ms to 1,000 ms.

The authors compared their adaptive pipeline approach against 12 competitive caching policies, using average request latency across traces as the primary performance metric.

  • Baseline Grid Search: The researchers performed an exhaustive grid search across every trace to find the optimal static pipeline configuration, serving as an idealized baseline.
  • Trace Concatenation Experiment: To test dynamic adaptability, the authors concatenated distinct traces (Trace A, Trace B, and Trace C) into a rapid-fire non-stationary workload.
  • Headline Results:
  • The adaptive pipeline architecture without LBU already outperforms all baseline static algorithms on average.
  • Adding the LBU policy to the adaptive pipeline achieves state-of-the-art performance, outperforming LRB by 10% in average request latency.
  • The adaptive approach achieved the lowest standard deviation across traces, highlighting its stability and consistency.
  • Dynamic Tracking: In the concatenated trace experiment, when transitioning between recency-biased (Trace A), frequency-biased (Trace B), and bursty (Trace C) patterns, the hill-climbing allocator successfully resized the LBU and LRU blocks on the fly. When returning to Trace A, the allocation mirrored the behavior from the first iteration, proving that the runtime optimization converges reliably based on workload characteristics rather than arbitrary state.

Practical Implications

▶ Watch: Conclusion and opening for questions (15:20)

For infrastructure teams and machine learning platform builders, this work offers a compelling alternative to monolithic cache designs. Hard-coding cache policies for specific inference services or feature stores often fails when traffic patterns shift due to seasonality, upstream model updates, or flash crowds.

  • Modularity for ML Infrastructure: Platform engineers can implement custom caching signals (such as feature freshness, model tiering priorities, or embedding access frequencies) as drop-in pipeline blocks without rewriting the core eviction engine.
  • Mitigating Cloud Storage Latency: In disaggregated architectures where feature stores or KV caches sit behind slow network links, accounting for delayed hits prevents redundant fetch amplification and stabilizes tail latency ($p_{99}$).
  • Tradeoffs and Limitations: While the hill-climbing mechanism successfully adapts to non-stationary workloads, tuning the step size and evaluation frequency introduces a minor systems overhead. Furthermore, as the speakers emphasize, LBU is not a universal silver bullet; it must be paired with complementary recency and frequency blocks to be effective.

Key Takeaways

  • Latency-Aware Caching Requires Granular Models: Classical caching models that assume instantaneous availability fail to capture the reality of distributed storage and delayed hits.
  • Modular Pipeline Architecture: Replacing monolithic caches with a sequence of configurable blocks makes caching systems extensible, maintainable, and plug-and-play.
  • The Role of LBU: The Least Bursty Used policy is a specialized, complementary component designed to catch bursty traffic patterns at the tail of the pipeline rather than acting as a standalone algorithm.
  • Beating Static Optimality: Continuous runtime hill-climbing allows the adaptive pipeline to outperform even the best static configurations derived with advance knowledge of the workload.
  • Proven Scale: Evaluated across 13 diverse production traces from IBM, Meta, and Twitter, the adaptive LBU pipeline achieves a 10% reduction in average latency compared to LRB with industry-leading consistency.

About the Speaker(s)

Nadav Keren is a researcher at Ben-Gurion University of the Negev, advised by Gil Einziger and Gabriel Scalosub. His research focuses on advanced caching architectures, distributed systems performance, and algorithmic cache optimization. The artifact associated with this work is fully open-source and reproducible, available on GitHub.

Reviews

→ Top-rated talks at 23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26)

All talks from 23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26)