Keep the Cost Down: A Review on Methods to Optimize LLM’ s KV-Cache Consumption

AmazUtah_NLP at SemEval-2024 Task 9: A MultiChoice Question Answering System for Commonsense Defying Reasoning


View a PDF of the paper titled Keep the Cost Down: A Review on Methods to Optimize LLM’ s KV-Cache Consumption, by Luohe Shi and 4 other authors

View PDF
HTML (experimental)

Abstract:Large Language Models (LLMs), epitomized by ChatGPT’s release in late 2022, have revolutionized various industries with their advanced language comprehension. However, their efficiency is challenged by the Transformer architecture’s struggle with handling long texts. KV Cache has emerged as a pivotal solution to this issue, converting the time complexity of token generation from quadratic to linear, albeit with increased GPU memory overhead proportional to conversation length. With the development of the LLM community and academia, various KV Cache compression methods have been proposed. In this review, we dissect the various properties of KV Cache and elaborate on various methods currently used to optimize the KV Cache space usage of LLMs. These methods span the pre-training phase, deployment phase, and inference phase, and we summarize the commonalities and differences among these methods. Additionally, we list some metrics for evaluating the long-text capabilities of large language models, from both efficiency and capability perspectives. Our review thus sheds light on the evolving landscape of LLM optimization, offering insights into future advancements in this dynamic field. Links to the papers mentioned in this review can be found in our Github Repo this https URL.

Submission history

From: Shi Luohe [view email]
[v1]
Thu, 25 Jul 2024 12:56:22 UTC (990 KB)
[v2]
Sun, 28 Jul 2024 14:42:12 UTC (991 KB)
[v3]
Tue, 13 Aug 2024 09:55:43 UTC (1,002 KB)
[v4]
Wed, 20 Nov 2024 02:04:10 UTC (1,002 KB)



Source link
lol

By stp2y

Leave a Reply

Your email address will not be published. Required fields are marked *

No widgets found. Go to Widget page and add the widget in Offcanvas Sidebar Widget Area.