MatryoshkaKV: Adaptive KV Compression via Trainable Orthogonal Projection
KV cache has become a *de facto* technique for the inference of large language models (LLMs), where tensors of shape (layer number, head number, sequence length, feature dimension) are introduced to cache historical information for self-attention. As the size of the model and data grows, the KV cac…