Skip to main content
QUICK REVIEW

[Paper Review] CacheNet: A Model Caching Framework for Deep Learning Inference on the Edge

Yihao Fang, Shervin Manzuri Shalmani|arXiv (Cornell University)|Jul 3, 2020
Advanced Neural Network ApplicationsComputer Science23 references8 citations
TL;DR

CacheNet is a model caching framework that accelerates deep learning inference on edge devices by caching low-complexity submodels locally while storing high-accuracy full models on edge or cloud servers. By exploiting temporal locality in streaming inputs, CacheNet achieves 58–217% faster inference than baseline edge-only or device-only approaches with minimal accuracy loss.

ABSTRACT

The success of deep neural networks (DNN) in machine perception applications such as image classification and speech recognition comes at the cost of high computation and storage complexity. Inference of uncompressed large scale DNN models can only run in the cloud with extra communication latency back and forth between cloud and end devices, while compressed DNN models achieve real-time inference on end devices at the price of lower predictive accuracy. In order to have the best of both worlds (latency and accuracy), we propose CacheNet, a model caching framework. CacheNet caches low-complexity models on end devices and high-complexity (or full) models on edge or cloud servers. By exploiting temporal locality in streaming data, high cache hit and consequently shorter latency can be achieved with no or only marginal decrease in prediction accuracy. Experiments on CIFAR-10 and FVG have shown CacheNet is 58-217% faster than baseline approaches that run inference tasks on end devices or edge servers alone.

Motivation & Objective

  • Address the trade-off between inference latency and predictive accuracy in edge-based deep learning applications.
  • Overcome the limitations of running large, uncompressed DNNs on resource-constrained end devices.
  • Reduce communication latency in cloud-based inference by caching frequently used submodels on edge devices.
  • Leverage temporal locality in streaming data to improve cache hit rates and system efficiency.
  • Provide a flexible, architecture-agnostic framework that supports multiple DNN compression and inference formats.

Proposed method

  • Generate multiple submodels from a pre-trained full DNN, each capturing a partition of the model's knowledge.
  • Cache low-complexity submodels on end devices based on predictive entropy and confidence thresholds.
  • Use a threshold-based cache policy: a cache hit occurs when predictive entropy is below a predefined threshold T.
  • Employ S-InfoVAE on end devices to select the most appropriate cached submodel for each input.
  • Apply LRU (Least Recently Used) cache replacement policy to manage submodel eviction and replacement.
  • Store the full model and all submodels on edge or cloud servers to handle cache misses.

Experimental results

Research questions

  • RQ1Can model caching on edge devices significantly reduce inference latency without sacrificing prediction accuracy?
  • RQ2Does exploiting temporal locality in streaming inputs improve cache hit rates in DNN inference?
  • RQ3How does increasing submodel capacity or the number of cached submodels affect cache performance in the proposed framework?
  • RQ4Can CacheNet avoid Bélády’s anomaly, where increasing cache size leads to worse performance?
  • RQ5To what extent does CacheNet outperform edge-only and device-only inference in terms of speed and accuracy?

Key findings

  • CacheNet achieves 2.2× faster inference than end-device-only approaches on CIFAR-10 and 1.5× faster on FVG.
  • On CIFAR-10, CacheNet is 58% faster than edge-server-only inference; on FVG, it is 71% faster.
  • The framework reduces latency by 58–217% compared to baseline approaches, depending on the dataset and configuration.
  • CacheNet maintains high prediction accuracy with only marginal degradation due to submodel compression.
  • Theoretical analysis confirms CacheNet does not suffer from Bélády’s anomaly, as increasing submodel capacity or number of cached submodels always improves or maintains hit rates.
  • Empirical evaluation confirms higher cache hit rates with larger submodels or more cached submodels, validating the theoretical guarantees.

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.