mlsanityData to 7 Oct 2026

Improving the Performance of DNN-based Software Services using Automated Layer Caching

arXiv 2209.08625 ↗First posted 18 Sep 2022cs.LG cs.PFcited by 0

On the map: Efficient LLM inference and serving → KV cache optimization

Abstract (arXiv)

Deep Neural Networks (DNNs) have become an essential component in many application domains including web-based services. A variety of these services require high throughput and (close to) real-time features, for instance, to respond or react to users' requests or to process a stream of incoming data on time. However, the trend in DNN design is toward larger models with many layers and parameters to achieve more accurate results. Although these models are often pre-trained, the computational complexity in such large models can still be relatively significant, hindering low inference latency. Implementing a caching mechanism is a typical systems engineering solution for speeding up a service response time. However, traditional caching is often not suitable for DNN-based services. In this paper, we propose an end-to-end automated solution to improve the performance of DNN-based services in terms of their computational complexity and inference latency. Our caching method adopts the ideas of self-distillation of DNN models and early exits. The proposed solution is an automated online layer caching mechanism that allows early exiting of a large model during inference time if the cache model in one of the early exits is confident enough for final prediction. One of the main contributions of this paper is that we have implemented the idea as an online caching, meaning that the cache models do not need access to training data and perform solely based on the incoming data at run-time, making it suitable for applications using pre-trained models. Our experiments results on two downstream tasks (face and object classification) show that, on average, caching can reduce the computational complexity of those services up to 58% (in terms of FLOPs count) and improve their inference latency up to 46% with low to zero reduction in accuracy.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in KV cache optimization, one of 12 directions in Efficient LLM inference and serving. Builds on 34 of its 89 references that are in the map. First posted on arXiv 18 Sep 2022.

Builds on

34 of 89 references.

References · 34

  1. 2015Deep Residual Learning for Image Recognitioncited by 51,809
  2. 2015Distilling the Knowledge in a Neural Networkcited by 10,076
  3. 2017On Calibration of Modern Neural Networkscited by 4,860
  4. 2015Deep Compression: Compressing Deep Neural Networks with Pruning, Trained Quantization and Huffman Codingcited by 2,291
  5. 2016XNOR-Net: ImageNet Classification Using Binary Convolutional Neural Networkscited by 829
  6. 2018ProxylessNAS: Direct Neural Architecture Search on Target Task and Hardwarecited by 666
  7. 2016MS-Celeb-1M: A Dataset and Benchmark for Large-Scale Face Recognitioncited by 621
  8. 2018Rethinking the Value of Network Pruningcited by 595
  9. 2015BinaryConnect: Training Deep Neural Networks with binary weights during propagationscited by 571
  10. 2019Data-Free Quantization Through Weight Equalization and Bias Correctioncited by 328
  11. 2018Model compression via distillation and quantizationcited by 287
  12. 2020MCUNet: Tiny Deep Learning on IoT Devicescited by 269
22 more
  1. 2017Cross-Age LFW: A Database for Studying Cross-Age Face Recognition in Unconstrained Environmentscited by 258
  2. 2015The MegaFace Benchmark: 1 Million Faces for Recognition at Scalecited by 199
  3. 2016Clipper: A Low-Latency Online Prediction Serving Systemcited by 191
  4. 2018Auto-Keras: An Efficient Neural Architecture Search Systemcited by 169
  5. 2018A Systematic DNN Weight Pruning Framework using Alternating Direction Method of Multiplierscited by 118
  6. 2021Split Computing and Early Exiting for Deep Learning Applications: Survey and Research Challengescited by 114
  7. 2017TensorFlow-Serving: Flexible, High-Performance ML Servingcited by 85
  8. 2020Why should we add early exits to neural networks?cited by 70
  9. 2020Potential, Challenges and Future Directions for Deep Learning in Prognostics and Health Management Applicationscited by 63
  10. 2021Compute and Energy Consumption Trends in Deep Learning Inferencecited by 61
  11. 2019Benchmarking TPU, GPU, and CPU Platforms for Deep Learningcited by 51
  12. 2021FaceX-Zoo: A PyTorch Toolbox for Face Recognitioncited by 49
  13. 2021Self-Checking Deep Neural Networks in Deploymentcited by 18
  14. 2017Energy-efficient Amortized Inference with Cascaded Deep Classifierscited by 15
  15. 2017Performance Modeling and Evaluation of Distributed Deep Learning Frameworks on GPUscited by 13
  16. 2020Accelerating Deep Learning Inference via Freezingcited by 10
  17. 2021Accelerating Deep Learning Inference via Learned Cachescited by 8
  18. 2019Optimizing Deep Learning Inference on Embedded Systems Through Adaptive Model Selectioncited by 6
  19. 2018EdgeSpeechNets: Highly Efficient Deep Neural Networks for Speech Recognition on the Edgecited by 5
  20. 2021A Survey of Large-Scale Deep Learning Serving System Optimization: Challenges and Opportunitiescited by 5
  21. 2022Memory Planning for Deep Neural Networkscited by 3
  22. 2018Sustainable Cloud Computing: Foundations and Future Directionscited by 1

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2025IC-Cache: Efficient Large Language Model Serving via In-context Caching
  2. 2024Two-Timescale Model Caching and Resource Allocation for Edge-Enabled AI-Generated Content Services
  3. 2024Layer-Condensed KV Cache for Efficient Inference of Large Language Models
  4. 2026CALVO: Improve Serving Efficiency for LLM Inferences with Intense Network Demands
  5. 2025Semantic Caching for Low-Cost LLM Serving: From Offline Learning to Online Adaptation
  6. 2026DepthKV: Layer-Dependent KV Cache Pruning for Long-Context LLM Inference
  7. 2025Adaptive Contextual Caching for Mobile Edge Large Language Model Service ↗
  8. 2024MiniKV: Pushing the Limits of LLM Inference via 2-Bit Layer-Discriminative KV Cache