KVLinC : KV Cache Quantization with Hadamard Rotation and Linear Correction

Utkarsh Saxena, Kaushik Roy
10/6/2025
cs.LG

No confident code implementation found for this paper.

Abstract

Quantizing the key-value (KV) cache is a promising strategy for improving the inference efficiency of large language models (LLMs). However, aggressive quantization to very low precision (e.g., 2 bits) introduces significant errors in the stored key and value tensors, which propagate through the dot-product attention mechanism and ultimately degrade generation quality. To address this, we propose KVLinC, a framework to mitigate attention errors introduced by KV cache quantization in the extreme low-precision regime. KVLinC combines a Hadamard rotation, which reduces quantization error in values, with lightweight linear correction adapters that explicitly compensate for errors introduced by quantized keys. Across extensive evaluations on the LLaMA, Qwen2.5, and Qwen3 model families, KVLinC consistently matches or surpasses strong baselines while achieving higher KV-cache compression. Furthermore, we implement a custom attention kernel that results in upto 2.55x faster inference compared to Flash Attention baseline, enabling efficient long-context LLM inference.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{saxena2025kvlinc,
  title  = {KVLinC : KV Cache Quantization with Hadamard Rotation and Linear Correction},
  author = {Utkarsh Saxena and Kaushik Roy},
  year   = {2025},
  eprint = {2510.05373},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2510.05373v1}
}

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/2510.05373.svg)](https://codeofpaper.com/paper/2510.05373)

Discussion