paper-with-me

홈 › Papers

BUZZ: Beehive-structured Sparse KV Cache with Segmented Heavy Hitters for Efficient LLM Inference

2024-10-30 · Junqi Zhao, Zhijin Fang, Shu Li, Shaohui Yang, Shichao He

Large language models (LLMs) are essential in natural language processing but often struggle with inference speed and computational efficiency, limiting real-time deployment. The key-value (KV) cache mechanism reduces computational overhead in transformer models, but challenges in maintaining contextual understanding remain. In this paper, we propose BUZZ, a novel KV caching algorithm that leverages structured contextual information to minimize cache memory usage while enhancing inference speed. BUZZ employs a beehive-structured sparse cache, incorporating a sliding window to capture recent information and dynamically segmenting historical tokens into chunks to prioritize important tokens in local neighborhoods. We evaluate BUZZ on four real-world datasets: CNN/Daily Mail, XSUM, Wikitext, and 10-QA. Our results demonstrate that BUZZ (1) reduces cache memory usage by $\textbf{2.5}\times$ in LLM inference while maintaining over 99% accuracy in long-text summarization, and (2) surpasses state-of-the-art performance in multi-document question answering by $\textbf{7.69%}$ under the same memory limit, where full cache methods encounter out-of-memory issues. Additionally, BUZZ achieves significant inference speedup with a $\log{n}$ time complexity. The code is available at https://github.com/JunqiZhao888/buzz-llm.

📄 PDF Abstract BibTeX arXiv:2410.23079

Code (1)

junqizhao888/buzz-llm 공식 구현 pytorch

Tasks

Computational EfficiencyQuestion AnsweringText Summarization

Methods 이 논문이 사용한 방법론

SPEED The monocular depth estimation (MDE) is the task of estimating depth from a single frame. This information is an essential knowledge in many computer vision tasks such as scene…

Similar Papers 제목 키워드 기반

Mustafar: Promoting Unstructured Sparsity for KV Cache Pruning in LLM Inference

2025-05-28 · Donghyeon Joo, Helya Hosseini, Ramyad Hadidi, Bahar Asgari

We demonstrate that unstructured sparsity significantly improves KV cache compression for LLMs, enabling sparsity levels up to 70% without compromising accuracy or requiring fine-tuning. We conduct a systematic explorati…

Semi-Supervised Audio Representation Learning for Modeling Beehive Strengths

2021-05-21 · Tony Zhang, Szymon Zmyslony, Sergei Nozdrenkov, Matthew Smith 외

Honey bees are critical to our ecosystem and food security as a pollinator, contributing 35% of our global agriculture yield. In spite of their importance, beekeeping is exclusively dependent on human labor and experienc…

ManagementRepresentation Learning

Anomaly Detection in Beehives: An Algorithm Comparison

2021-10-08 · Padraig Davidson, Michael Steininger, Florian Lautenschlager, Anna Krause 외

Sensor-equipped beehives allow monitoring the living conditions of bees. Machine learning models can use the data of such hives to learn behavioral patterns and find anomalous events. One type of event that is of particu…

Anomaly DetectionBIG-bench Machine Learning

RetroInfer: A Vector-Storage Approach for Scalable Long-Context LLM Inference

2025-05-05 · Yaoqi Chen, Jinkai Zhang, Baotong Lu, Qianxi Zhang 외

The growing context lengths of large language models (LLMs) pose significant challenges for efficient inference, primarily due to GPU memory and bandwidth constraints. We present RetroInfer, a novel system that reconcept…

CPUGPU

Can Large Language Models Understand Internet Buzzwords Through User-Generated Content

2025-05-21 · Chen Huang, Junkai Luo, Xinzuo Wang, Wenqiang Lei 외

The massive user-generated content (UGC) available in Chinese social media is giving rise to the possibility of studying internet buzzwords. In this paper, we study if large language models (LLMs) can generate accurate d…