Lexico: Extreme KV Cache Compression via Sparse Coding over Universal Dictionaries

Junhyuck Kim, Jongho Park, Jaewoong Cho, Dimitris Papailiopoulos
2/12/2026

No official code found. Best implementation: krafton-ai/lexico (17 stars, Apache-2.0, last commit 2025-10-26).

Abstract

We introduce Lexico, a novel KV cache compression method that leverages sparse coding with a universal dictionary. Our key finding is that key-value cache in modern LLMs can be accurately approximated using sparse linear combination from a small, input-agnostic dictionary of ~4k atoms, enabling efficient compression across different input prompts, tasks and models. Using orthogonal matching pursuit for sparse approximation, Lexico achieves flexible compression ratios through direct sparsity control. On GSM8K, across multiple model families (Mistral, Llama 3, Qwen2.5), Lexico maintains 90-95% of the original performance while using only 15-25% of the full KV-cache memory, outperforming both quantization and token eviction methods. Notably, Lexico remains effective in low memory regimes where 2-bit quantization fails, achieving up to 1.7x better compression on LongBench and GSM8K while maintaining high accuracy.

View on arXivView PDF

Code Implementations(1)

krafton-ai/lexicoCommunity100%
Apache-2.0

KV cache compression via sparse coding

175PythonDec 12, 202411 months agoApache-2.0

Similar Papers

Cite this paper

@article{kim2026lexico,
  title  = {Lexico: Extreme KV Cache Compression via Sparse Coding over Universal Dictionaries},
  author = {Junhyuck Kim and Jongho Park and Jaewoong Cho and Dimitris Papailiopoulos},
  year   = {2026},
  eprint = {2412.08890},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2412.08890},
  journal = {ICML 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2412.08890.svg)](https://codeofpaper.com/paper/2412.08890)

Discussion