Skip to main content
QUICK REVIEW

[Paper Review] Accelerating Deep Learning Inference via Learned Caches

Arjun Balasubramanian, Adarsh Kumar|arXiv (Cornell University)|Jan 18, 2021
Advanced Neural Network ApplicationsComputer Science67 references7 citations
TL;DR

This paper proposes Gati, a deep learning inference system that accelerates prediction latency using learned caches—machine learning models that predict cache hits and outputs for intermediate DNN layers. By dynamically skipping computation based on cached results and using incremental replanning, Gati reduces average inference latency by up to 7.69× while improving end-to-end accuracy by up to 1% without sacrificing model accuracy.

ABSTRACT

Deep Neural Networks (DNNs) are witnessing increased adoption in multiple domains owing to their high accuracy in solving real-world problems. However, this high accuracy has been achieved by building deeper networks, posing a fundamental challenge to the low latency inference desired by user-facing applications. Current low latency solutions trade-off on accuracy or fail to exploit the inherent temporal locality in prediction serving workloads. We observe that caching hidden layer outputs of the DNN can introduce a form of late-binding where inference requests only consume the amount of computation needed. This enables a mechanism for achieving low latencies, coupled with an ability to exploit temporal locality. However, traditional caching approaches incur high memory overheads and lookup latencies, leading us to design learned caches - caches that consist of simple ML models that are continuously updated. We present the design of GATI, an end-to-end prediction serving system that incorporates learned caches for low-latency DNN inference. Results show that GATI can reduce inference latency by up to 7.69X on realistic workloads.

Motivation & Objective

  • To address the growing inference latency in deep neural networks (DNNs) caused by increasing model depth and complexity.
  • To exploit temporal locality in user-facing prediction workloads, where frequently seen inputs can be served faster.
  • To enable late-binding of computation—delaying the choice of model complexity until inference time—without trading off accuracy.
  • To reduce memory and lookup overheads of traditional DNN caching by replacing raw feature storage with lightweight ML models.
  • To design a system that automatically selects optimal layers and architectures for learned caches to minimize latency under resource constraints.

Proposed method

  • Gati uses two learned neural networks per layer: a predictor network to estimate the final output and a selector network to determine if the prediction can be used as a cache hit.
  • The system performs initial offline tuning using a validation dataset to estimate hit rates and accuracy, selecting optimal cache layer placements and model architectures.
  • During inference, Gati checks for cache hits after each layer; if a hit occurs, it skips subsequent layers, reducing computation.
  • The system supports query planning over DAGs of models, enabling dynamic selection of DNNs based on latency SLOs and input characteristics.
  • Gati employs incremental replanning at runtime to adapt model choices based on changing workloads, improving both latency and accuracy.
  • The learned cache mechanism is integrated into an end-to-end serving system that maintains full accuracy while accelerating easier inputs.

Experimental results

Research questions

  • RQ1Can learned caches—ML models that predict intermediate DNN outputs and cache hits—reduce inference latency without sacrificing accuracy?
  • RQ2How can temporal locality in real-world prediction workloads be exploited to accelerate DNN inference?
  • RQ3To what extent can late-binding of computation (i.e., choosing model depth at inference time) reduce average latency?
  • RQ4Can incremental replanning improve both latency and accuracy in dynamic prediction workloads?
  • RQ5What is the optimal trade-off between memory, compute, and latency when deploying learned caches in DNN inference?

Key findings

  • Gati reduces average inference latency by up to 7.69× on realistic workloads by leveraging learned caches and dynamic model selection.
  • The system improves end-to-end accuracy by up to 1% through incremental replanning, which allows more accurate models to be used for frequently occurring inputs.
  • At tight latency SLOs (≤100 ms), Gati enables the use of more accurate models (e.g., SE-LResNet50E-IR for faces and ResNet-50 for vehicles) for ~79% and ~80% of requests, respectively, due to latency savings from cache hits.
  • The learned cache approach outperforms traditional caching by reducing memory overhead and lookup latency through compact ML models instead of storing high-dimensional feature maps.
  • Gati’s incremental replanning mechanism enables dynamic adaptation to workload changes, improving both latency and accuracy simultaneously.
  • The system demonstrates that learned caches can complement existing techniques like model cascades, offering additional latency benefits without accuracy loss.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.