Budget Feasible Mechanisms: A Survey

Abstract

Efficient key-value (KV) cache compression is critical for scaling transformer-based Large Language Models (LLMs) in long sequences and resource-limited settings. Existing methods evict tokens based on their positions or importance, but position-based strategies can miss crucial information outside predefined regions, while those relying on global importance scores resulting in strong regional biases, limiting the KV cache's overall context retention and potentially impairing the performance of LLMs on complex tasks. Our wavelet analysis reveals that as tokens approach the end of sequence, their contributions to generation gradually increase and tends to diverge more from neighboring tokens, indicating a smooth transition with increasing complexity and variability from distant to nearby context. Motivated by this observation, we propose TreeKV, an intuitive, training-free method that employs a tree structure for smooth cache compression. TreeKV maintains a fixed cache size, allowing LLMs to deliver high-quality output in long text scenarios and is applicable during both the generation and prefilling stages. TreeKV consistently surpasses all baseline models in language modeling tasks on PG19 and OpenWebText2, allowing LLMs trained with short context window to generalize to longer window with a 16x cache reduction. On the Longbench benchmark, TreeKV achieves the best performance with only 6% of the budget at optimal efficiency.

Cite

Text

Liu et al. "Budget Feasible Mechanisms: A Survey." International Joint Conference on Artificial Intelligence, 2024. doi:10.24963/ijcai.2024/899

Markdown

[Liu et al. "Budget Feasible Mechanisms: A Survey." International Joint Conference on Artificial Intelligence, 2024.](https://mlanthology.org/ijcai/2024/liu2024ijcai-budget/) doi:10.24963/ijcai.2024/899

BibTeX

@inproceedings{liu2024ijcai-budget,
  title     = {{Budget Feasible Mechanisms: A Survey}},
  author    = {Liu, Xiang and Chan, Hau and Li, Minming and Wu, Weiwei},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year      = {2024},
  pages     = {8132-8141},
  doi       = {10.24963/ijcai.2024/899},
  url       = {https://mlanthology.org/ijcai/2024/liu2024ijcai-budget/}
}