Skip to main content

One post tagged with "q-filters"

View All Tags

The Sign Was the Whole Paper: Debugging a KV Cache Compressor on Real Models

· 18 min read
Rajveer Rathod
Author of VeloxQuant-MLX

How one arbitrary minus sign turned a KV cache compressor from useful into noise — and what it took to prove it on real models​


I had a KV cache compression method in my library called Q-Filters. It had tests. It had docs. It had a benchmark harness with committed results. It shipped in version 0.31.0.

It also didn't work.

Not "worked slightly worse than the paper." Not "worked on some heads." On real trained weights, its scoring signal correlated with true attention at −0.032 — statistically indistinguishable from a coin flip, and pointing the wrong way about half the time.

Fixing it meant implementing the paper properly, writing two Metal kernels, finding a position-encoding bug that made end-to-end measurement impossible, and throwing away two benchmark harnesses that produced confident, meaningless numbers. Along the way the calibrated version went from ppl 598 to 16.3 on the same workload.

This is the whole run, including the parts where I was wrong.