paper-with-me

홈 › Papers

MiniKV: Pushing the Limits of LLM Inference via 2-Bit Layer-Discriminative KV Cache

2024-11-27 · Akshat Sharma, Hangliang Ding, Jianping Li, Neel Dani, Minjia Zhang

How to efficiently serve LLMs in practice has become exceptionally challenging due to their prohibitive memory and computation requirements. In this study, we investigate optimizing the KV cache, whose memory footprint poses a critical bottleneck in LLM inference, especially when dealing with long context tasks. To tackle the challenge, we introduce MiniKV, a KV cache optimization method that simultaneously preserves long context task accuracy while significantly reducing KV cache size via a novel 2-bit layer-discriminative KV cache. More importantly, we develop specialized CUDA kernels to make MiniKV compatible with FlashAttention. Experiments on a wide range of long context tasks show that MiniKV effectively achieves 86% KV cache compression ratio while recovering over 98.5% of accuracy, outperforming state-of-the-art methods while achieving excellent measured system performance improvements.

📄 PDF Abstract BibTeX arXiv:2411.18077

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Pushing the limits of RNN Compression

2019-10-04 · Urmish Thakker, Igor Fedorov, Jesse Beu, Dibakar Gope 외

Recurrent Neural Networks (RNN) can be difficult to deploy on resource constrained devices due to their size. As a result, there is a need for compression techniques that can significantly compress RNNs without negativel…

Learning to Push the Limits of Efficient FFT-Based Image Deconvolution

2017-10-01 · ICCV 2017 10 · Jakob Kruse, Carsten Rother, Uwe Schmidt

This work addresses the task of non-blind image deconvolution. Motivated to keep up with the constant increase in image size, with megapixel images becoming the norm, we aim at pushing the limits of efficient FFT-based t…

Image Deconvolution

Dense2MoE: Pushing the Pareto Frontier of On-Device LLMs via Unified Pruning and Upcycling

2026-05-26 · Fengfa Li, Hongjin Ji, Yifeng Ding, Lei Ren 외 arxiv

The Mixture of Experts MoE architecture is highly promising for resource constrained on device deployments yet training these models from scratch incurs prohibitive costs Current methods attempt to alleviate this by upcy…

CascadeCNN: Pushing the performance limits of quantisation

2018-05-22 · Alexandros Kouris, Stylianos I. Venieris, Christos-Savvas Bouganis

This work presents CascadeCNN, an automated toolflow that pushes the quantisation limits of any given CNN model, to perform high-throughput inference by exploiting the computation time-accuracy trade-off. Without the nee…

CascadeCNN: Pushing the Performance Limits of Quantisation in Convolutional Neural Networks

2018-07-13 · Alexandros Kouris, Stylianos I. Venieris, Christos-Savvas Bouganis

This work presents CascadeCNN, an automated toolflow that pushes the quantisation limits of any given CNN model, aiming to perform high-throughput inference. A two-stage architecture tailored for any given CNN-FPGA pair …